Skip to main content
GET
/
v1
/
me
Get Me
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.topo.io/v1/me', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "key_prefix": "<string>",
  "scopes": [
    "<string>"
  ],
  "last_used_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer API key issued from Settings โ†’ Developers.

Response

200 - application/json

Successful Response

id
string<uuid>
required

Unique identifier of the API key.

organization_id
string<uuid>
required

Workspace the key belongs to.

name
string
required

Name of the key.

key_prefix
string
required

Leading characters of the raw key, safe to display.

scopes
string[]
required

Permissions granted to this key.

last_used_at
string<date-time> | null
required

When the key was last used to make a request.

created_at
string<date-time>
required

When the key was issued.