Skip to main content
POST
/
auth
/
sessions
Create session
curl --request POST \
  --url https://api.stack-auth.com/api/v1/auth/sessions \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "3241a285-8329-4d69-8f3d-316e08cf140c"
}
'
{
  "refresh_token": "<string>",
  "access_token": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://stackauth-e0affa27-chore-move-mcp-to-a-sep-app.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
user_id
string
required

The ID of the user, or the special value me for the currently authenticated user

Example:

"3241a285-8329-4d69-8f3d-316e08cf140c"

expires_in_millis
number
default:31536000000
is_impersonation
boolean

Response

200 - application/json

Successful response

refresh_token
string
required
access_token
string
required