Auth

Create a Bearer session (human auth)

Exchange user credentials for a Bearer token. Pass the returned bearer as Authorization: Bearer <bearer> on subsequent requests. Optional expires_in (seconds) controls duration (default 86400, range 60..2592000).

post/api/sessions

Request

  • Base URL: http://localhost:4100
  • URL: http://localhost:4100/api/sessions
  • Auth: none required

Request body

emailstring email required
expires_ininteger nullable

Bearer session duration in seconds. Default 86400 (24h).

passwordstring password required
tenant_slugstring required

Example request

{
  "email": "",
  "expires_in": 60,
  "password": "a",
  "tenant_slug": ""
}

Changes

No recorded changes to this operation across all 4 revisions of this API.