Skip to content
Last updated

πŸ”¨ In Development β€” This section is still being developed and may change.
POSThttps://api.freddy.aitronos.com/v1/auth/verify

Verify a user's email address for both registration and login flows using a one-time 4-digit code. Successful requests return access and refresh tokens.

Authentication

  • Content-Type: application/json

Request body

FieldTypeRequiredDescription
email_keystringYesVerification key returned by registration or login initiation.
verification_codeintegerYes4-digit code sent to the user’s email.
is_registerbooleanYestrue for registration verification, false for login verification.
device_infoobjectNoAdditional device metadata for security tracking.
Show device_info properties
  • device β€” Device name (e.g., Chrome Browser)
  • platform β€” One of: web, mobile, desktop, tablet, unknown
  • operating_system β€” OS name and version
  • device_id β€” Unique identifier for the device
  • location β€” Human-readable location
  • latitude β€” Latitude coordinate
  • longitude β€” Longitude coordinate

Returns

A JSON object containing JWT access/refresh tokens, device info, and user details.

curl -X POST "https://api.freddy.aitronos.com/v1/auth/verify" \
  -H "Content-Type: application/json" \
  -d '{
    "email_key": "uuid-12345678-1234-1234-1234-123456789abc",
    "verification_code": 1234,
    "is_register": true,
    "device_info": {
      "device": "Chrome Browser",
      "platform": "web",
      "operating_system": "macOS 14.1",
      "device_id": "device-123"
    }
  }'