Who am I (user or service account).
GET
/me
const url = 'https://example.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://example.com/api/v1/me \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
Shape documented in docs/API.md; not frozen in v1 yet.
object
Example generated
{}No token, expired (code token_expired) or unknown token.
Media typeapplication/json
object
message
required
string
code
string
Example generated
{ "message": "example", "code": "example"}Service_token_required, ip_not_allowed or scope_missing.
Media typeapplication/json
object
message
required
string
code
string
Example generated
{ "message": "example", "code": "example"}Not found, or belongs to another organisation.
Media typeapplication/json
object
message
required
string
code
string
Example generated
{ "message": "example", "code": "example"}Rate limit of the token; see Retry-After.
Media typeapplication/json
object
message
required
string
code
string
Example generated
{ "message": "example", "code": "example"}