The principal the token acts as
curl --request GET \ --url https://api.whatsbuilt.fi/v1/me \ --header 'Authorization: Bearer <token>'Any valid token may call it, whatever its scopes. Use it to check a new token.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The principal
Who the token acts as.
object
integration for an integration’s token; person for an app acting for a person
object
integration or person.
The principal’s users.id.
The principal’s own name.
For an integration’s token
object
The integration’s id.
The integration’s name.
For an app acting for a person: the registered app and the person’s connection to it
object
The app’s client id.
The app’s name.
The person’s connection to the app.
The principal’s organisation.
object
The account’s id.
The account’s name.
The token’s scopes the principal still holds: an integration’s current scopes, an app’s within its organisation’s cap
Example
{ "principal": { "kind": "integration" }}Missing, malformed, expired or revoked token
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}INSUFFICIENT_SCOPE, or PUBLIC_API_DISABLED when an admin of the integration’s organisation, or on a per-project route of the project’s owning organisation, has turned the API off
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}The principal no longer exists
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}RATE_LIMITED; wait for Retry-After seconds
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}