Aller au contenu
NimbusNexus

Vue d’ensemble du compte

Ces endpoints gèrent votre connexion et la session qu’elle ouvre. L’inscription crée un espace de travail qui porte le nom de votre adresse e-mail et dont vous êtes le premier utilisateur. La facturation relève de cet espace de travail ; voir Facturation.

Chaque appel agit sur la connexion, la session ou le mot de passe de l’appelant lui-même :

  • Inscription — POST /api/v1/account/registration envoie un token de vérification par e-mail. POST /api/v1/account/reset_password avec type: register, le token et un new_password (au moins 8 caractères, répété dans confirm_password) termine l’inscription.
  • Connexion et déconnexion — POST /api/v1/account/login prend email et password et renvoie un access_token avec son expires_at. Un utilisateur créé au sein d’un espace de travail envoie aussi domain, le nom de l’espace de travail. GET /api/v1/account/logout met fin à la session.
  • Mots de passe — POST /api/v1/account/forgot_password_request envoie par e-mail un token de réinitialisation à usage unique, et POST /api/v1/account/reset_password avec type: reset définit le nouveau mot de passe. POST /api/v1/account/change_password prend le current_password et le nouveau.
  • Portée et région — GET /api/v1/account/rescope fait passer la session sur un project ou un domain (un espace de travail), et peut aussi changer sa region. GET /api/v1/account/get_scope_choices liste les espaces de travail, les projets et les régions vers lesquels vous pouvez basculer, GET /api/v1/account/datacenters liste les régions avec leur état de santé, et GET /api/v1/account/un_scope retire la portée.

Étapes suivantes

Reference

POST/api/v1/account/change_password

Change Password

Change the authenticated user's password after verifying their current password.

Request body

FieldTypeDescription
new_password*string—
confirm_password*string—
current_password*string—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/account/change_password" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "new_password": "example",
    "confirm_password": "example",
    "current_password": "example"
  }'
GET/api/v1/account/config

Get Config

Return the public payment provider configuration available to the calling user.

Responses

  • 200Successful Response

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/config" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/account/datacenters

List Datacenters

List the datacenters the portal serves (discovered ∩ configured), with display metadata, per-datacenter health and the current selection.

Responses

  • 200Successful Response
  • 401Unauthorized
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/datacenters" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/account/forgot_password_request

Forgot Password Request

Send a password reset email containing a one-time token to the supplied address.

Request body

FieldTypeDescription
email*string—

Responses

  • 200Successful Response
  • 400Bad Request
  • 422Validation error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/account/forgot_password_request" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]"
  }'
GET/api/v1/account/get_scope_choices

Get Auth Projects

List the workspaces, domains and projects the caller may rescope into.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/get_scope_choices" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/account/get_session_auth_data

Get Session Auth Data

Return the authentication data stored in the current session, including the active scope.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/get_session_auth_data" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/account/login

Login

Authenticate with email and password and return a JWT access token together with the user's auth data.

Request body

FieldTypeDescription
email*stringUser email
password*stringUser password
domainstring | nullUser domain
systembooleanSystem scope flag

Responses

  • 200Successful Response
  • 400Bad Request
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/account/login" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "example"
  }'
GET/api/v1/account/logout

Logout

Revoke the caller's identity token and clear the server-side session.

Responses

  • 200Successful Response
  • 400Bad Request
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/logout" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/account/registration

Registration

Start a new user registration by emailing a verification token to the supplied address.

Request body

FieldTypeDescription
email*string—

Responses

  • 200Successful Response
  • 400Bad Request
  • 422Validation error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/account/registration" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]"
  }'
GET/api/v1/account/rescope

Rescope

Rescope the current token (project or domain) and/or switch the session's region. A region switch is orthogonal to the token scope, so it may be combined with a project- or domain-rescope in one call. Required: at least one of the three; project and domain remain mutually exclusive.

Parameters

NameInTypeDescription
projectquerystring | null—
domainquerystring | null—
regionquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/rescope" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/account/reset_password

Reset Password

Complete a password reset or registration flow by validating the emailed token and setting the new password.

Request body

FieldTypeDescription
new_password*string—
confirm_password*string—
token*string—
type*"register" | "reset"—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/account/reset_password" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "new_password": "example",
    "confirm_password": "example",
    "token": "example",
    "type": "register"
  }'
GET/api/v1/account/un_scope

Un Scope

Drop the current scope and switch the session back to the unscoped token.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/un_scope" \
  -H "Authorization: Bearer $NIMBUS_KEY"

Need to make a real call? Try these endpoints in the live Swagger UI →