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/companies

List Companies

The companies you have created, and how far each one got.

More

⚠ invitation_sent means we asked Keycloak to email you — not that you accepted. Accepting is what makes you a member, and it happens on Keycloak's own page.

Responses

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

Example

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

Create Company

Create a company and invite yourself to it as its first member.

More

Four things happen: the organisation is created (holding no domain yet), its cloud workspace is provisioned, its billing record is opened, and an invitation is emailed to you. Accepting that invitation is what makes you a member — it is the only way into a company account, so it cannot be skipped.

Claim your email domain afterwards with POST /account/domain-claims, from a session signed in to the company.

What this does to your own account: Creating a company sets up a separate company sign-in, with its own password, at the same email address you are signed in with now. Your personal account is not replaced: its sign-in, workspace, resources and billing stay as they are and do not move into the company. To enter the company, accept the invitation we email to that address.

Request body

FieldTypeDescription
name*stringThe company's name. Also becomes the organisation's name and alias, and the name of its cloud workspace — the identity mapping renders the workspace from the organisation, so the two cannot differ.

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 409Conflict
  • 422Validation error
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/account/companies" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example"
  }'
GET/api/v1/account/companies/{company_id}

Get Company

One company you created, and how far it got.

Parameters

NameInTypeDescription
company_id*pathstring—

Responses

  • 200Successful Response
  • 401Unauthorized
  • 404Not Found
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/companies/<company_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
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"
GET/api/v1/account/domain-claims

List Domain Claims

Every domain claim you have opened, newest first.

Responses

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

Example

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

Open Domain Claim

Open a claim on an email domain and get the DNS record to publish.

More

The claim is inert until you verify it: it changes nobody's login, and a pending claim is invisible to routing. Many organisations may hold pending claims on one domain — only the grant is exclusive.

Nothing checks automatically. Publish the returned TXT record, then call POST /account/domain-claims/{claim_id}/verify. Re-read the claim for the current record before publishing it: the value rotates weekly, and a published value keeps verifying for 7–14 days.

⚠ Where this deployment routes by proven domain (sso.proven_routes), verifying routes every address at exactly this domain to your company sign-in — the founder's own personal address at it included. Subdomains are not affected. Releasing the claim undoes it.

Requires your company sign-in, scoped to your company's workspace.

Request body

FieldTypeDescription
domain*stringThe email domain this company owns, e.g. `acme.com`. Subdomains are allowed (`dev.acme.com` is a domain in its own right) — proof is then demanded at that exact name, never at the parent.

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 409Conflict
  • 422Validation error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/account/domain-claims" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "example"
  }'
GET/api/v1/account/domain-claims/{claim_id}

Get Domain Claim

One claim, with the record to publish re-derived at read time.

More

The challenge value is bound to a weekly bucket, so a value shown when the claim was opened stops verifying after 7–14 days. Always read the record from here rather than storing what the create call returned.

Parameters

NameInTypeDescription
claim_id*pathstring—

Responses

  • 200Successful Response
  • 401Unauthorized
  • 404Not Found
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/domain-claims/<claim_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/account/domain-claims/{claim_id}/release

Release Domain Claim

Release a claim: a granted domain stops routing to your company sign-in at once, and a pending claim is withdrawn. The claim is kept, marked released, with the evidence of its verification.

More

Releasing twice is harmless. To route the domain again, open a new claim and verify it.

Requires your company sign-in, scoped to your company's workspace, and the claim must be one you opened.

Parameters

NameInTypeDescription
claim_id*pathstring—

Responses

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

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/account/domain-claims/<claim_id>/release" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/account/domain-claims/{claim_id}/verify

Verify Domain Claim

Check DNS for this claim's record now, and grant the claim if it is there.

More

This is the only thing that checks. A 200 carries an outcome: granted, not_found (the resolvers answered and none carried the value) or unresolved (we could not tell — try again after retry_after seconds).

A 4xx/5xx means nothing was granted. Usually the check did not run — not your claim, no longer pending, too soon, or busy. But a 409 can also come after a check that found your record, when the domain cannot be granted to this claim (another organisation verified it first, say); calling again gives the same answer. One check per claim per minute: calling sooner answers 429 with Retry-After. Calling it on a granted claim answers granted again without a check.

⚠ Where this deployment routes by proven domain (sso.proven_routes), a grant routes every address at exactly this domain to your company sign-in — the founder's own personal address at it included — from the moment this call returns. Subdomains are not affected. POST /account/domain-claims/{claim_id}/release undoes it.

Requires your company sign-in, scoped to your company's workspace, and the claim must be one you opened.

Parameters

NameInTypeDescription
claim_id*pathstring—

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/domain-claims/<claim_id>/verify" \
  -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—
typestring | nullWhich flow the caller is starting.
emailUpdatesbooleanConsent to product email.
accountTypestring | null`personal` or `team`. ⚠ `team` is REFUSED for now — the organisation half of self-service does not exist yet (ADR-0010 §12), and creating a personal account instead is the silent-wrong-result this field was added to stop.
orgNamestring | nullCompany name, team signups only. Recorded nowhere yet — see `accountType`.

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"
  }'
POST/api/v1/account/sso/callback

Sso Callback

Receive Keystone's websso POST-back and establish the session.

Request body

JSON body required.

Responses

  • 303Successful Response
  • 422Validation Error

Example

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

Sso Invited

Landing for an accepted company invitation: continue to the company sign-in.

Responses

  • 303Successful Response

Example

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

Sso Logout

Clear the local session, then end the Keycloak SSO session (RP-initiated logout).

Responses

  • 302Successful Response

Example

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

Sso Logout Done

Logout trampoline: end the next Keycloak realm, or start the login when none remain.

Responses

  • 302Successful Response

Example

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

Sso Register

Begin self-service registration: redirect the browser to Keycloak's sign-up page.

Parameters

NameInTypeDescription
return_toquerystring | null—

Responses

  • 302Successful Response
  • 422Validation Error

Example

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

Sso Register Callback

Receive Keycloak's registration redirect, provision keystone tenancy, then log in.

Parameters

NameInTypeDescription
codequerystring | null—
statequerystring | null—
errorquerystring | null—

Responses

  • 302Successful Response
  • 422Validation Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/sso/register/callback" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/account/sso/route

Sso Route

Resolve an email address to an identity provider and begin that login.

Request body

JSON body required.

Responses

  • 200Successful Response
  • 422Validation Error

Example

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

Sso Start

Begin federated login: redirect the browser to Keystone's websso endpoint.

Parameters

NameInTypeDescription
idpquerystring | null—
return_toquerystring | null—

Responses

  • 302Successful Response
  • 422Validation Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/account/sso/start" \
  -H "Authorization: Bearer $NIMBUS_KEY"
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 →