Diska
Identity

Get the key and organization

Returns the organization and the API key behind the request.
GET https://api.diska.ai/v1/me

Scope: none — any valid key

It needs no scope: use it to check that the key works. scopes: [] means full access.

Examples

curl "https://api.diska.ai/v1/me" \
  -H "Authorization: Bearer $DISKA_API_KEY"

Try it

Send the request from this page, with your key. The key stays on this page: it is not stored and is only sent to api.diska.ai. Use a test key with the fewest scopes you need.

GEThttps://api.diska.ai/v1/me
Starts with dsk_. It stays in this browser tab only.
Enter an API key (dsk_…).

Response 200

FieldTypeDescription
organizationobjectThe key's organization.
organization.idstringOrganization ID.
organization.namestringOrganization name.
organization.slugstringReadable organization identifier.
keyobjectThe key used in the request.
key.idstringKey ID.
key.namestringName given to the key.
key.key_previewstringStart and end of the key, to identify it (dsk_a1b2…F5A4).
key.scopesarrayThe key's scopes. Empty list = full access.
key.expires_atstring | nullExpiry date, or null if it does not expire.
key.created_atstring | nullCreation date (ISO 8601).
key.last_used_atstring | nullLast use (updated at most every 5 minutes).
{
  "organization": {
    "id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
    "name": "A Minha Empresa",
    "slug": "recepcao"
  },
  "key": {
    "id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
    "name": "Integração CRM",
    "key_preview": "dsk_a1b2…F5A4",
    "scopes": [
      "agents:read",
      "calls:read"
    ],
    "expires_at": "2026-10-25T18:40:00Z",
    "created_at": "2026-10-25T18:40:00Z",
    "last_used_at": "2026-10-25T18:40:00Z"
  }
}

Errors

This endpoint has no errors of its own.

Errors common to every endpoint (401, 403, 422, 429 and 5xx) are in Errors.

Copyright © 2026