Auth

Login as tenant

Authenticate with email and password. Returns an access token and refresh token.

post/api/auth/login

Request body

emailstring required
passwordstring required

Example request

{
  "email": "john@company.com",
  "password": "securePassword123"
}

Response

Login successful.

accessTokenstring required
refreshTokenstring required

Example response

{
  "accessToken": "eyJhbGciOiJIUzI1NiIs...",
  "refreshToken": "eyJhbGciOiJIUzI1NiIs...",
  "tenant": {
    "id": "clx1234567890",
    "name": "Acme Corp",
    "slug": "acme-corp",
    "email": "john@company.com",
    "apiKey": "sk_live_abc123...",
    "webhookUrl": "https://example.com/webhooks",
    "isActive": true
  }
}

Changes

Changed in 1 of the 2 revisions of this API.1

    • added the media type application/json for the response with the status 200

      response-media-type-added