POST
/
v1
/
auth
/
session-token
curl --request POST \
  --url https://api.anam.ai/v1/auth/session-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expiresIn": "1h",
  "clientLabel": "<string>",
  "personaConfig": {
    "name": "Test Assistant",
    "personaPreset": "eva",
    "brainType": "ANAM_GPT_4O_MINI_V1",
    "personality": "You are a helpful and friendly AI assistant.",
    "systemPrompt": "You are an AI assistant focused on helping with technical questions.",
    "fillerPhrases": [
      "Let me think about that..."
    ],
    "maxSessionLengthSeconds": 180
  }
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
expiresIn
enum<string>
default:1h
Available options:
1h,
12h,
1d,
2d,
3d,
1w,
2w
clientLabel
string
personaConfig
object

Persona configuration for the session

Example:
{
  "name": "Test Assistant",
  "personaPreset": "eva",
  "brainType": "ANAM_GPT_4O_MINI_V1",
  "personality": "You are a helpful and friendly AI assistant.",
  "systemPrompt": "You are an AI assistant focused on helping with technical questions.",
  "fillerPhrases": ["Let me think about that..."],
  "maxSessionLengthSeconds": 180
}

Was this page helpful?