Skip to content

Who am I

GET
/v1/me
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.

The API token works.

Media type application/json
object
robot
required

The robot account’s name.

string
organization
required

The organization’s name.

string
token
required

The API token’s name.

string
expires_at
required

When the API token stops working, or null for a token that never expires.

Any of:
string format: date-time

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

Example

{
"message": "API token turned off",
"code": "BR401"
}