Me
Get my user information.
Successful Response
The user info object type.
userInfoThe user ID.
The user email.
The user name.
The user organization ID.
The user expiration timestamp. If None, the user will never expire.
Invalid authentication scheme.
Invalid API key.
Your account has expired. Please contact support to renew your account.
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 information about the current user.
The user update request.
The user name.
The user email.
The current user password. If None, the password is not changed and password is ignored. At most 72 bytes once UTF-8 encoded.
The new user password. Required when current_password is provided. Ignored when current_password is None. At most 72 bytes once UTF-8 encoded.
Successful Response
No content
Invalid current password.
Invalid authentication scheme.
Invalid API key.
Your account has expired. Please contact support to renew your account.
User {user_id}|{email} not found.
User {email} already exists.
Validation Error
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
Get my user information.
Successful Response
The user info object type.
userInfoThe user ID.
The user email.
The user name.
The user organization ID.
The user expiration timestamp. If None, the user will never expire.
Invalid authentication scheme.
Invalid API key.
Your account has expired. Please contact support to renew your account.
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"
}Update information about the current user.
The user update request.
The user name.
The user email.
The current user password. If None, the password is not changed and password is ignored. At most 72 bytes once UTF-8 encoded.
The new user password. Required when current_password is provided. Ignored when current_password is None. At most 72 bytes once UTF-8 encoded.
Successful Response
No content
Invalid current password.
Invalid authentication scheme.
Invalid API key.
Your account has expired. Please contact support to renew your account.
User {user_id}|{email} not found.
User {email} already exists.
Validation Error
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?