Skip to content

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 /api/v1/users/:ref

:ref is your uuid or your email. Other users’ accounts return 403.

Terminal window
curl -H "Authorization: Bearer $DINIO_API_KEY" \
https://api-dinio.bitelex.com/api/v1/users/me@example.com
POST /api/v1/users/:uuid/api-key

Generates 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.

Terminal window
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.

DELETE /api/v1/users/:uuid/api-key

Your personal key stops working immediately. Returns your user, with has_api_key: false. Issue a new one in the Dinio web app.

Terminal window
curl -X DELETE -H "Authorization: Bearer $DINIO_API_KEY" \
https://api-dinio.bitelex.com/api/v1/users/$USER_ID/api-key