Skip to main content
GET
/
api
/
auth
/
me
cURL
curl --request GET \
  --url https://app.cotool.ai/api/auth/me \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "jsmith@example.com",
  "isVerified": true,
  "groupId": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "lastLoginAt": "<string>",
  "googleId": "<string>",
  "microsoftId": "<string>",
  "metadata": {},
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "authType": "oauth",
  "isAdmin": true
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Response

200 - application/json

Successful response

id
string<uuid>
required

Unique identifier for the user

email
string<email>
required

Email address of the user (normalized and validated)

isVerified
boolean
required

Whether the user has verified their email address

groupId
string
required

The group the user belongs to

createdAt
string
required

When the user account was created

updatedAt
string
required

When the user account was last updated

lastLoginAt
string | null
required

When the user last logged in (null if never logged in)

googleId
string | null
required

Google OAuth ID if user signed up with Google (null if not linked)

microsoftId
string | null
required

Microsoft OAuth ID if user signed up with Microsoft (null if not linked)

metadata
object | null
required

Additional user metadata as key-value pairs (null if no metadata)

organizationId
string<uuid>
required

ID of the organization this user belongs to

authType
enum<string>
required

Type of authentication used for the user

Available options:
oauth,
local,
mixed
isAdmin
boolean
required

Whether the user is an admin