Authentication

Register

Register a new user account. Does not require an existing API key.

SDK Usage:

const result = await client.register('Jane', 'Smith', 'jane@example.com', 'SecureP@ss1');
client.updateApiKey(result.token);
post/api/user/register

Request body

firstNamestring required
lastNamestring required
emailstring email required
passwordstring password required

Example request

{
  "firstName": "Jane",
  "lastName": "Smith",
  "email": "jane@example.com",
  "password": "SecureP@ss1"
}

Response

Registration successful

tokenstring

JWT token

newUserIdstring uuid
emailstring email

Example response

{
  "token": "eyJhbGciOiJIUzI1NiIs...",
  "newUserId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "email": "jane@example.com"
}

Changes