Create a new account
POST
/auth/register
const url = 'https://localhost:3000/api/v1/auth/register';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:3000/api/v1/auth/registerCreates an account and returns an OSP (One-Shot Password) for login
Responses
Section titled “Responses”Account created successfully
Media typeapplication/json
object
account_id
required
string format: uuid
osp
required
string
Example
{ "account_id": "550e8400-e29b-41d4-a716-446655440000", "osp": "7a3b9c4d8e2f1a6b"}Registrations are closed (signup.enabled=false)
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Erreur interne
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}