Sessions API — Agentuity Documentation

Sessions API

View agent execution sessions with timing, cost, and observability data

View agent execution sessions with timing, cost, and observability data.

https://catalyst-usw.agentuity.cloud

Authentication

All requests require a Bearer token. Pass your SDK key in the Authorization header.

HeaderValue
AuthorizationBearer YOUR_SDK_KEY

You can find your SDK key in the Agentuity Console under your project settings.


List Sessions

List sessions with optional filtering, sorting, and pagination.

GET/session
https://catalyst-usw.agentuity.cloud/session

Parameters

query
NameTypeRequiredDescription
limitnumberNoMax results, default 10
offsetnumberNoPagination offset
sortstringNo\`created\`, \`updated\`, \`duration\`, or \`startTime\`
directionstringNo\`asc\` or \`desc\`
orgIdstringNoFilter by organization ID
projectIdstringNoFilter by project ID
deploymentIdstringNoFilter by deployment ID
triggerstringNo\`agent\`, \`api\`, \`email\`, \`sms\`, \`cron\`, \`manual\`, \`discord\`, or \`websocket\`
envstringNoFilter by environment
devmodebooleanNoFilter by devmode status
successbooleanNoFilter by success status
threadIdstringNoFilter by thread ID
agentIdentifierstringNoFilter by agent identifier
startAfterstringNoISO 8601 start-after filter
startBeforestringNoISO 8601 start-before filter
metadatastringNoJSON-serialized filter

Response

Returns sessions matching the specified filters.

StatusDescription
200Sessions returned
401Unauthorized — invalid or missing API key

Response Fields

FieldTypeDescription
idstringthe session id
created_atstringthe creation timestamp
updated_atstringthe last update timestamp
deletedbooleanwhether the session is deleted
deleted_atstring | nullthe deletion timestamp
deleted_bystring | nullwho deleted the session
start_timestringthe session start time
end_timestring | nullthe session end time
durationnumber | nullthe session duration in nanoseconds
org_idstringthe organization id
project_idstringthe project id
deployment_idstringthe deployment id
agent_idsstring[]the agent ids involved
triggerstringhow the session was triggered
envstringthe environment
devmodebooleanwhether dev mode was enabled
pendingbooleanwhether the session is pending
successbooleanwhether the session succeeded
errorstring | nullthe error message if failed
metadataobject | nullunencrypted key-value metadata (optional)
cpu_timenumber | nullthe CPU time in nanoseconds
llm_costnumber | nullthe LLM cost
llm_prompt_token_countnumber | nullthe LLM prompt token count
llm_completion_token_countnumber | nullthe LLM completion token count
total_costnumber | nullthe total cost
methodstring | nullthe HTTP method
urlstring | nullthe request URL
route_idstring | nullthe route id
thread_idstring | nullthe thread id
timelineany | nullthe session timeline tree (optional)
user_datastring | nullthe user data as JSON (optional)

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/session' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Session

Retrieve a specific session with enriched data including agent info, eval runs, and route details.

GET/session/{id}
https://catalyst-usw.agentuity.cloud/session/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesSession ID

Response

Returns the session with enriched data including agent info, eval runs, and route details.

StatusDescription
200Session returned
401Unauthorized — invalid or missing API key
404Session not found

Response Fields

FieldTypeDescription
sessionobject
session.idstringthe session id
session.created_atstringthe creation timestamp
session.updated_atstringthe last update timestamp
session.deletedbooleanwhether the session is deleted
session.deleted_atstring | nullthe deletion timestamp
session.deleted_bystring | nullwho deleted the session
session.start_timestringthe session start time
session.end_timestring | nullthe session end time
session.durationnumber | nullthe session duration in nanoseconds
session.org_idstringthe organization id
session.project_idstringthe project id
session.deployment_idstringthe deployment id
session.agent_idsstring[]the agent ids involved
session.triggerstringhow the session was triggered
session.envstringthe environment
session.devmodebooleanwhether dev mode was enabled
session.pendingbooleanwhether the session is pending
session.successbooleanwhether the session succeeded
session.errorstring | nullthe error message if failed
session.metadataobject | nullunencrypted key-value metadata (optional)
session.cpu_timenumber | nullthe CPU time in nanoseconds
session.llm_costnumber | nullthe LLM cost
session.llm_prompt_token_countnumber | nullthe LLM prompt token count
session.llm_completion_token_countnumber | nullthe LLM completion token count
session.total_costnumber | nullthe total cost
session.methodstring | nullthe HTTP method
session.urlstring | nullthe request URL
session.route_idstring | nullthe route id
session.thread_idstring | nullthe thread id
session.timelineany | nullthe session timeline tree (optional)
session.user_datastring | nullthe user data as JSON (optional)
agentsobject[]resolved agents
agents[].namestringagent name
agents[].identifierstringagent identifier
eval_runsobject[]eval runs for this session
eval_runs[].idstringeval run id
eval_runs[].created_atstringcreation timestamp
eval_runs[].eval_idstringevaluation id
eval_runs[].pendingbooleanpending status
eval_runs[].successbooleansuccess status
eval_runs[].errorstring | nullerror message
eval_runs[].resultobject | nullresult object
routeobject | nullroute information

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/session/ses_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Logs

Get Session Logs

Retrieve log entries for a specific session.

GET/cli/session/{id}/logs
https://catalyst-usw.agentuity.cloud/cli/session/{id}/logs

Parameters

path
NameTypeRequiredDescription
idstringYesSession ID

Response

Returns log entries for the session.

StatusDescription
200Logs returned
401Unauthorized — invalid or missing API key
404Session not found

Response Fields

FieldTypeDescription
bodystringthe log body
severitystringthe log severity
timestampstringthe log timestamp

Notes

This endpoint uses the App API base URL (api.agentuity.com), not the regional Catalyst URL.

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/cli/session/ses_abc123/logs' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'