---
title: "Sign in an auth user"
method: POST
path: "/auth/signin"
tags: ["Authentication"]
---

# Sign in an auth user

`POST /auth/signin`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/auth/signin`
- Auth: HTTP bearer

Authenticate with email and password. Requires an anon key.

Set `session_mode` to `cookie` to request HttpOnly refresh-token
storage. Cookie mode is honored only for an exact, credentialed CORS
origin on the same schemeful site as this API. Otherwise the response
retains the refresh token in its body. A frontend on its default
Volcano URL is cross-site with this API and so always gets the body
token.

## Headers

- `X-Volcano-Proxy-Authorization` string
- `X-Volcano-Client-IP` string

## Request body

- object
  - `email` string, required
  - `password` string, required
  - `session_mode` 'cookie'

## Response `200`

Signin successful

- AuthTokenResponse
  - `access_token` string, required: JWT access token (expires after configured lifetime)
  - `token_type` string, required
  - `expires_in` integer, required: Access token lifetime in seconds
  - `refresh_token` string: Long-lived token for getting new access tokens. Omitted when the request uses eligible HttpOnly cookie session storage.
  - `user` AuthUser, required
    - `id` string, uuid, required
    - `project_id` string, uuid
    - `email` string, email, required
    - `email_confirmed` boolean
    - `user_metadata` object: User-editable metadata
    - `app_metadata` object: Application-controlled metadata (read-only for users)
    - `avatar_url` string, uri: User avatar URL (from OAuth provider or manually set)
    - `status` 'active' | 'banned' | 'deleted', required
    - `banned_until` string, date-time, nullable: When temporary ban expires (null if not banned or permanent)
    - `last_sign_in_at` string, date-time
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Invalid input (missing email/password)
- `401`: Unauthorized - Invalid credentials, invalid/tampered/revoked anon key, or account banned/deleted; or invalid auth proxy metadata
- `403`: Forbidden - Anon key lacks signin permission, or the email domain is not in `allowed_email_domains` while `allowed_email_domains_mode` is `signup_and_signin`. The domain is taken from the account's canonical email (its primary identity), which is not necessarily the address in the request.
- `429`: Rate limit exceeded

## Changes

- **2026-10-23** `5113707385cc`: 2 info
  - added the new optional `header` request parameter `X-Volcano-Client-IP`
  - added the new optional `header` request parameter `X-Volcano-Proxy-Authorization`
- **2026-09-19** `3a6f365f3f35`: 1 breaking, 5 info
  - the response's body type changed from no type to `object` for status `200`
  - added the optional property `refresh_token` to the response with the `200` status
  - added the required property `access_token` to the response with the `200` status
  - added the required property `expires_in` to the response with the `200` status
  - …2 more
- **2026-08-27** `bb44e98aba2e`: 6 breaking, 1 info
  - the response's body type changed from `object` to no type for status `200`
  - removed the required property `access_token` from the response with the `200` status
  - removed the required property `expires_in` from the response with the `200` status
  - removed the required property `refresh_token` from the response with the `200` status
  - …3 more

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/auth/signin/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
