Me

Describe the current credential

Changed on

Returns the scope of the credential making the request, the organization it acts in, its default project (if any) and the permissions it was granted. Works for both project-scoped API keys and user-scoped credentials from the CLI or an MCP connector.

get/v1/me

Request

  • Base URL
    https://api.roark.ai
  • URL
    https://api.roark.ai/v1/me
  • Auth
    HTTP bearer

Response

The current credential

Example response

{
  "data": {
    "tokenScope": "USER",
    "user": {
      "id": "0b2b1c34-5d6e-4f70-8192-a3b4c5d6e7f8",
      "email": "ada@example.com",
      "name": "Ada Lovelace"
    },
    "organization": {
      "id": "9f8e7d6c-5b4a-4312-9081-7f6e5d4c3b2a",
      "name": "Example Inc"
    },
    "defaultProject": {
      "id": "1a2b3c4d-5e6f-4701-8293-a4b5c6d7e8f9",
      "name": "Support Line",
      "slug": "support-line"
    },
    "grantedPermissions": [
      "call:read",
      "metric:read"
    ],
    "scopes": [
      "READ"
    ]
  }
}

Changes