Skip to content

Identify the caller

GET
/me
curl --request GET \
--url https://app.buildworkpro.com/api/v1/me \
--header 'Authorization: Bearer <token>'

Returns the API key or OAuth token that authenticated this request: its id, name, organization, and granted scopes. No scope is required beyond a valid credential.

Caller identity

Media type application/json
object
data
required
object
keyId
required

API key id when the caller is an API key. Null for an OAuth access token.

integer | null
keyName
required

API key name when the caller is an API key. Null for an OAuth access token.

string | null
tenantId
required

Organization this credential is bound to.

integer
scopes
required

Scopes granted to this credential.

Array<string>
meta
required
object
request_id

Server-generated request identifier

string
pagination
object
cursor
required

Opaque cursor for the next page; null when no more results

string | null
has_more
required

Whether more pages are available after this one

boolean
count
required

Items in this page

integer
Example generated
{
"data": {
"keyId": 1,
"keyName": "example",
"tenantId": 1,
"scopes": [
"example"
]
},
"meta": {
"request_id": "example",
"pagination": {
"cursor": "example",
"has_more": true,
"count": 1
}
}
}

Missing or invalid credential

Media type application/problem+json
object
type
required

URL identifying the problem type

string format: uri
title
required

Short human-readable summary

string
status
required

HTTP status code

integer
detail

Human-readable explanation

string
request_id

Server-generated request identifier

string
errors

Validation error array (422 only)

Array<object>
object
field
required

Field path that failed validation

string
code
required

Validation error code

string
message
required

Human-readable validation message

string
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"request_id": "example",
"errors": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}