Skip to main content
POST
/
user-api-keys
Create user API key
curl --request POST \
  --url https://api.stack-auth.com/api/v1/user-api-keys \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "3241a285-8329-4d69-8f3d-316e08cf140c"
}
'
{
  "value": "<string>",
  "id": "<string>",
  "description": "<string>",
  "created_at_millis": 123,
  "is_public": true,
  "type": "<string>",
  "user_id": "3241a285-8329-4d69-8f3d-316e08cf140c",
  "expires_at_millis": 123,
  "manually_revoked_at_millis": 123
}

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
description
string
required
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_at_millis
number
is_public
boolean

Response

200 - application/json

Successful response

value
string
required
id
string
required
description
string
required
created_at_millis
number
required
is_public
boolean
required
type
string
required
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_at_millis
number
manually_revoked_at_millis
number