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
Example request
{
"firstName": "Jane",
"lastName": "Smith",
"email": "jane@example.com",
"password": "SecureP@ss1"
}Response
Registration successful
Example response
{
"token": "eyJhbGciOiJIUzI1NiIs...",
"newUserId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"email": "jane@example.com"
}