Identify the caller
const url = 'https://app.buildworkpro.com/api/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”Caller identity
object
object
API key id when the caller is an API key. Null for an OAuth access token.
API key name when the caller is an API key. Null for an OAuth access token.
Organization this credential is bound to.
Scopes granted to this credential.
object
Server-generated request identifier
object
Opaque cursor for the next page; null when no more results
Whether more pages are available after this one
Items in this page
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
object
URL identifying the problem type
Short human-readable summary
HTTP status code
Human-readable explanation
Server-generated request identifier
Validation error array (422 only)
object
Field path that failed validation
Validation error code
Human-readable validation message
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}