How to authenticate with the GeoArk AI API.
POST /api/auth/register Content-Type: application/json { "email": "user@example.com", "password": "SecurePass123!", "name": "Jane Doe" }
{ "user": { "id": "...", "email": "user@example.com", "name": "Jane Doe" }, "token": "eyJhbGciOiJIUzI1NiIs..." }
POST /api/auth/login Content-Type: application/json { "email": "user@example.com", "password": "SecurePass123!" }
{ "user": { "id": "...", "email": "user@example.com" }, "token": "eyJhbGciOiJIUzI1NiIs..." }
Authorization
GET /api/brands Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
GET /api/auth/me Authorization: Bearer <token>