sessions
Retrieve a session
Changed onRetrieve a single session by its friendly id (session_…) or your externalId. The response includes triggerConfig and the friendly currentRunId of the live run, if any.
get/api/v1/sessions/{session}
Request
- Base URLhttps://api.trigger.dev
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successful request
Example response
{
"id": "session_abc123",
"externalId": "chat_1234",
"type": "chat.agent",
"taskIdentifier": "my-chat",
"triggerConfig": {
"machine": "small-1x",
"lockToVersion": "20240523.1"
},
"currentRunId": "run_def456",
"tags": [
"chat:1234"
]
}Changes
- info
endpoint added
- info