Skip to main content
POST
Create agent session

Authorizations

Authorization
string
header
required

workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens

Headers

akua-context
string

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens — a workspace-owned token implies its workspace.

Required string length: 1 - 53
Example:

"ws_j572abc123def456"

Body

application/json
agent_id
string
required
Required string length: 1 - 54
title
string
Required string length: 1 - 200
communication_profile
enum<string>
default:ADAPTIVE
Available options:
BEGINNER,
INTERMEDIATE,
ADVANCED,
EXPERT,
ADAPTIVE
parent_session_id
string
Required string length: 1 - 54
forked_from_session_id
string
Required string length: 1 - 54
spawned_by_turn_id
string
Required string length: 1 - 54
agent_role
string
Required string length: 1 - 80

Response

Agent session created

id
string
required
Required string length: 1 - 54
workspace_id
string
required
Required string length: 1 - 53
organization_id
string | null
required
Required string length: 1 - 54
agent_id
string
required
Required string length: 1 - 54
state
enum<string>
required
Available options:
ACTIVE,
WAITING_FOR_INPUT,
WAITING_FOR_PERMISSION,
COMPLETED,
FAILED,
CANCELLED,
ARCHIVED
origin
enum<string>
required
Available options:
DASHBOARD,
API,
MCP,
ACP,
AMBIENT,
SYSTEM
title
string | null
required
communication_profile
enum<string>
required
Available options:
BEGINNER,
INTERMEDIATE,
ADVANCED,
EXPERT,
ADAPTIVE
created_by
string
required
parent_session_id
string | null
required
Required string length: 1 - 54
forked_from_session_id
string | null
required
Required string length: 1 - 54
spawned_by_turn_id
string | null
required
Required string length: 1 - 54
agent_role
string | null
required
current_sandbox_id
string | null
required
Required string length: 1 - 54
last_event_cursor
string | null
required
events_retained_until
integer
required

Unix timestamp (seconds)

Required range: x >= 0
filesystem_retained_until
integer
required

Unix timestamp (seconds)

Required range: x >= 0
filesystem_pinned
boolean
required
usage_summary
object
required
created_at
integer
required

Unix timestamp (seconds)

Required range: x >= 0
updated_at
integer
required

Unix timestamp (seconds)

Required range: x >= 0
etag
string
required