DoubleX AgentesDocs

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" }]
}
FieldDescription
roleRole in the organization: owner, admin or member.
isAdmintrue for owner and admin.
teams[].roleRole in the team: admin or member.

PATCH/api/me#

Updates the profile. All fields are optional.

FieldTypeDescription
firstNamestring, 1 to 30First name
lastNamestring, up to 30Last name
timezonestring, up to 60IANA time zone, for example America/Sao_Paulo
languagept, en, es, fr, de, it, nl, ja, ko, zh, id, tr, pl, ruLanguage 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.