API reference › Resources
Account
Who owns the key, their language preferences and their API keys.
GET/api/me#
Returns the person who owns the key, their role in the organization and the teams they belong to. Useful to check that the key works.
curl https://doublex.ai/api/me -H "Authorization: Bearer $DOUBLEX_API_KEY"JSON
{
"user": {
"id": "usr_1a2b3c4d5e6f",
"email": "[email protected]",
"firstName": "Ana",
"lastName": "Souza",
"language": "pt",
"timezone": "America/Sao_Paulo",
"createdAt": "2026-10-20T13:02:44.120Z"
},
"role": "admin",
"isAdmin": true,
"organization": { "id": "org_7f6e5d4c3b2a", "name": "Empresa SA" },
"teams": [{ "id": "team_9c8b7a6d5e4f", "name": "Sales", "role": "admin" }]
}| Field | Description |
|---|---|
role | Role in the organization: owner, admin or member. |
isAdmin | true for owner and admin. |
teams[].role | Role in the team: admin or member. |
PATCH/api/me#
Updates the profile. All fields are optional.
| Field | Type | Description |
|---|---|---|
firstName | string, 1 to 30 | First name |
lastName | string, up to 30 | Last name |
timezone | string, up to 60 | IANA time zone, for example America/Sao_Paulo |
language | pt, en, es, fr, de, it, nl, ja, ko, zh, id, tr, pl, ru | Language of the app, API error messages, emails and agent replies. Docs, guides and terms exist in pt, en and es; in the other languages they show in English. |
Terminal
curl -X PATCH https://doublex.ai/api/me \
-H "Authorization: Bearer $DOUBLEX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"language": "en"}'Response: { "ok": true }.
GET/api/me/api-keys#
Lists the person's personal key and terminal keys. The key value is never returned, only its last characters.
JSON
{
"personal": { "id": "key_0a1b2c3d4e5f", "kind": "personal", "last4": "a1b2", "createdAt": "2026-10-21T10:00:00.000Z", "lastUsedAt": "2026-10-27T13:58:02.000Z" },
"cli": [
{ "id": "key_6f7e8d9c0b1a", "kind": "cli", "name": "Anas-MacBook", "last4": "9z8y", "createdAt": "2026-10-25T18:20:00.000Z" }
]
}DELETE/api/me/api-keys/{id}#
Revokes one of your own keys: the personal key or a terminal's key. It stops working immediately.
Response: { "ok": true }. Error 404 if the key doesn't exist or isn't yours.