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"
import os
import requests
response = requests.get(
"https://api.diska.ai/v1/me",
headers={"Authorization": f"Bearer {os.environ['DISKA_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.json())
// Node.js 18 or later, in a .mjs file
const response = await fetch('https://api.diska.ai/v1/me', {
headers: { Authorization: `Bearer ${process.env.DISKA_API_KEY}` }
})
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())
<?php
$ch = curl_init('https://api.diska.ai/v1/me');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('DISKA_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($status >= 400) {
throw new RuntimeException("HTTP $status: $body");
}
print_r(json_decode($body, true));
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.
GET
https://api.diska.ai/v1/meStarts with dsk_. It stays in this browser tab only.
Enter an API key (dsk_…).
Response 200
| Field | Type | Description |
|---|---|---|
organization | object | The key's organization. |
organization.id | string | Organization ID. |
organization.name | string | Organization name. |
organization.slug | string | Readable organization identifier. |
key | object | The key used in the request. |
key.id | string | Key ID. |
key.name | string | Name given to the key. |
key.key_preview | string | Start and end of the key, to identify it (dsk_a1b2…F5A4). |
key.scopes | array | The key's scopes. Empty list = full access. |
key.expires_at | string | null | Expiry date, or null if it does not expire. |
key.created_at | string | null | Creation date (ISO 8601). |
key.last_used_at | string | null | Last 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.

