Your account
With a personal key you can read your own user and manage your personal key.
interface User { uuid: string; email: string; role: 'User' | 'Admin'; suspended: boolean; has_api_key: boolean; // whether a personal key exists auth_provider: string; external_id: string; created_at: number; updated_at: number;}Get your account
Section titled “Get your account”GET
/api/v1/users/:ref:ref is your uuid or your email. Other users’ accounts return 403.
curl -H "Authorization: Bearer $DINIO_API_KEY" \ https://api-dinio.bitelex.com/api/v1/users/me@example.comIssue a personal key
Section titled “Issue a personal key”POST
/api/v1/users/:uuid/api-keyGenerates a new personal key (du_…) and returns it — the only time it is shown. The
previous key stops working immediately, including the one you send this request with. See
API keys.
curl -X POST -H "Authorization: Bearer $DINIO_API_KEY" \ https://api-dinio.bitelex.com/api/v1/users/$USER_ID/api-key{ "success": true, "data": { "api_key": "du_8LkQ2…" } }Returns 201.
Revoke your personal key
Section titled “Revoke your personal key”DELETE
/api/v1/users/:uuid/api-keyYour personal key stops working immediately. Returns your user, with has_api_key: false.
Issue a new one in the Dinio web app.
curl -X DELETE -H "Authorization: Bearer $DINIO_API_KEY" \ https://api-dinio.bitelex.com/api/v1/users/$USER_ID/api-key