Prisma

Login with credentials

Authenticate with username/email and password. Returns access token, refresh token, and ID token on success. Uses Zitadel's V2 Session API.

POST
/api/v1/auth/login

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X post "http://localhost:8000/api/v1/auth/login" \  -H "Content-Type: application/json" \  -d '{    "login_name": "[email protected]",    "organization_id": "550e8400-e29b-41d4-a716-446655440000",    "password": "SecureP@ssw0rd!"  }'
{
  "access_token": "string",
  "token_type": "Bearer",
  "expires_in": 0,
  "refresh_token": "string",
  "id_token": "string",
  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
  "session_id": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}