ENDPOINT | GET

Who am I

The person and organisation the token acts for, and its scopes. A good first call to check a token works.

GEThttps://api.cloverr.co.uk/v1/me

Scope: anySuccess: 200120 requests a minute per token

Example request & response

Send your token in the Authorization header. A successful response wraps the result in data.

curl https://api.cloverr.co.uk/v1/me \
  -H "Authorization: Bearer $CLOVERR_TOKEN"
200 · JSON
{
  "data": {
    "user": {
      "id": "u_8Kd2…",
      "name": "Kyle",
      "email": "[email protected]"
    },
    "workspace": {
      "id": "9b2e4f61-7c3d-4a5b-8e9f-0a1b2c3d4e5f",
      "name": "Acme",
      "slug": "acme"
    },
    "scopes": [
      "read",
      "write"
    ]
  }
}

Errors

StatusCodeWhen
401unauthorizedNo token, or it's invalid, expired, revoked, or its owner left the organisation.
403forbiddenThe token doesn't have this endpoint's scope.
403ip_not_allowedThe token only works from listed addresses, and this request came from another.
403two_factor_requiredThe organisation requires login verification and the token's owner hasn't set it up.
429rate_limitedMore than 120 requests in a minute with this token. Wait for Retry-After.
500server_errorSomething went wrong on our side. Safe to retry.

Errors look like { "error": { "code", "message" } }. All error codes.