Me
GET
/auth/me/
const url = 'https://example.com/auth/me/';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/auth/me/ \ --header 'Authorization: Bearer <token>'Return the currently authenticated user’s profile and roles.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
UserResponse
object
created_at
required
Created At
string format: date-time
id
required
Id
string format: uuid
is_active
required
Is Active
boolean
quota_usage
Any of:
UserQuotaUsage
Per-user quota usage: current consumption vs configured caps.
object
bytes_used
required
Bytes Used
integer
count_cap
required
Count Cap
integer
dataset_count
required
Dataset Count
integer
storage_cap
required
Storage Cap
integer
null
roles
required
Roles
Assigned role names, e.g. [‘admin’, ‘editor’]
Array<string>
status
required
Status
Account status: active, pending, suspended, or deactivated.
string
username
required
Username
string
Example
{ "status": "active"}Bad request — invalid query parameters or payload
Media type application/problem+json
Unauthorized — missing or invalid credentials
Media type application/problem+json
Forbidden — caller lacks access to this resource
Media type application/problem+json
Not found
Media type application/problem+json
Validation error
Media type application/problem+json
Too many requests — retry after the advertised interval
Media type application/problem+json
Headers
Section titled “Headers ” Retry-After
integer
Seconds until the request may be retried
Internal server error
Media type application/problem+json
Service unavailable — the database could not serve the request
Media type application/problem+json