Skip to main content
POST
/
api
/
run
/
users
/
queries
/
getCurrentUser
getCurrentUser
curl --request POST \
  --url https://connvo-dev.convex.cloud/api/run/users/queries/getCurrentUser \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "args": {}
}'
{
  "status": "success",
  "errorMessage": "",
  "errorData": {},
  "value": {
    "_id": "user_9f3c2ab457",
    "_creationTime": 1716403200000,
    "workosUserId": "org_user_123",
    "email": "member@example.com",
    "displayName": "Member Example",
    "orgId": "org_abc123",
    "orgRole": "member",
    "isActive": true,
    "onboardingComplete": true,
    "onboardingStartedAt": 1716406800000,
    "onboardingCompletedAt": 1716489600000,
    "createdAt": 1716403200000,
    "updatedAt": 1716489600000
  }
}

Authorizations

Authorization
string
header
required

Standard user authentication token issued via WorkOS. Provide as Authorization: Bearer <user-token>.

Body

application/json
args
object
required

Response

Convex executed your request and returned a result

status
enum<string>
required
Available options:
success,
error
errorMessage
string
errorData
object
value
object | null