Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sertexity.com/llms.txt

Use this file to discover all available pages before exploring further.

Register

Create a new user account. POST /auth/register  ·  No auth required

Request

{
  "email": "alice@example.com",
  "password": "Str0ng!Pass",
  "name": "Alice"
}
FieldTypeRequiredNotes
emailstringMust be unique
passwordstringMin 8 chars, must include uppercase, lowercase, digit, special char
namestring2–100 characters

Response 201 Created

{
  "user": {
    "id": "usr_01hx3k9j2e4m7n8p",
    "email": "alice@example.com",
    "name": "Alice",
    "created_at": "2024-09-15T10:30:00Z"
  },
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refresh_token": "dGhpcyBpcyBhIHJlZnJlc2ggdG9rZW4...",
  "expires_in": 900,
  "token_type": "Bearer"
}

Errors

CodeHTTPCause
VALIDATION_ERROR400Missing or malformed fields
DUPLICATE_EMAIL409Email already registered

Example

curl -X POST https://api.sertexity.com/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{"email":"alice@example.com","password":"Str0ng!Pass","name":"Alice"}'