Who am I
GET
/v1/me
const url = 'https://app.region.admire.ai/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.region.admire.ai/api/v1/me \ --header 'Authorization: Bearer <token>'Answers with the robot account’s and organization’s names, and the API token’s name and expiry. Needs nothing shared with the robot account, so it checks a token before anything else is set up.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”The API token works.
Media type application/json
object
Example
{ "robot": "GitHub weekly sync", "organization": "Acme Coaching", "token": "GitHub Actions", "expires_at": "2027-02-25T17:00:00.000Z"}The API token is missing, made up or expired, and the gateway refused it with only message; or it is unknown, turned off or expired, or its robot account is disabled.
Media type application/json
Any of:
object
message
required
What went wrong.
string
hint
More about the error, such as which field is wrong.
string
code
required
A stable code for the kind of error.
string
details
Detail on the error, as a JSON string. A 400 for a field lists each field and why under errors.
string
object
message
required
Always Unauthorized.
string
Example
{ "message": "API token turned off", "code": "BR401"}