For the complete documentation index, see llms.txt. This page is also available as Markdown.

Me

Get Me

get

Get my user information.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Successful Response

application/json
objectconst: userInfoOptional

The user info object type.

Default: userInfo
idintegerRequired

The user ID.

emailstringRequired

The user email.

namestring · nullableOptional

The user name.

organization_idintegerRequired

The user organization ID.

expiresinteger · nullableOptional

The user expiration timestamp. If None, the user will never expire.

Other propertiesanyOptional
get/v1/me
GET /v1/me HTTP/1.1
Host: albert.api.etalab.gouv.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "object": "userInfo",
  "id": 1,
  "email": "text",
  "name": "text",
  "organization_id": 1,
  "permissions": [
    "admin"
  ],
  "limits": [
    {
      "router_id": 1,
      "type": "tpm",
      "value": 1,
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  ],
  "expires": 1,
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Update Me

patch

Update information about the current user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

The user update request.

namestring · min: 1Required

The user name.

emailstring · min: 1 · max: 254Required

The user email.

current_passwordstring · min: 6 · nullableOptional

The current user password. If None, the password is not changed and password is ignored. At most 72 bytes once UTF-8 encoded.

passwordstring · min: 6 · nullableOptional

The new user password. Required when current_password is provided. Ignored when current_password is None. At most 72 bytes once UTF-8 encoded.

Other propertiesanyOptional
Responses
204

Successful Response

No content

patch/v1/me
PATCH /v1/me HTTP/1.1
Host: albert.api.etalab.gouv.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 111

{
  "name": "text",
  "email": "text",
  "current_password": "text",
  "password": "text",
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

No content

Deprecated

Get Me

get

Get my user information.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Successful Response

application/json
objectconst: userInfoOptional

The user info object type.

Default: userInfo
idintegerRequired

The user ID.

emailstringRequired

The user email.

namestring · nullableOptional

The user name.

organization_idintegerRequired

The user organization ID.

expiresinteger · nullableOptional

The user expiration timestamp. If None, the user will never expire.

Other propertiesanyOptional
get/v1/me/info
GET /v1/me/info HTTP/1.1
Host: albert.api.etalab.gouv.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "object": "userInfo",
  "id": 1,
  "email": "text",
  "name": "text",
  "organization_id": 1,
  "permissions": [
    "admin"
  ],
  "limits": [
    {
      "router_id": 1,
      "type": "tpm",
      "value": 1,
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  ],
  "expires": 1,
  "ANY_ADDITIONAL_PROPERTY": "anything"
}
Deprecated

Update Me

patch

Update information about the current user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

The user update request.

namestring · min: 1Required

The user name.

emailstring · min: 1 · max: 254Required

The user email.

current_passwordstring · min: 6 · nullableOptional

The current user password. If None, the password is not changed and password is ignored. At most 72 bytes once UTF-8 encoded.

passwordstring · min: 6 · nullableOptional

The new user password. Required when current_password is provided. Ignored when current_password is None. At most 72 bytes once UTF-8 encoded.

Other propertiesanyOptional
Responses
204

Successful Response

No content

patch/v1/me/info
PATCH /v1/me/info HTTP/1.1
Host: albert.api.etalab.gouv.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 111

{
  "name": "text",
  "email": "text",
  "current_password": "text",
  "password": "text",
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

No content

Last updated

Was this helpful?