Skip to main content
POST
Create agent

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
name
string
required
Required string length: 1 - 120
instructions
string
required
Required string length: 1 - 20000
capabilities
enum<string>[]
required
Required array length: 1 - 10 elements
Available options:
CHAT,
CODING,
AMBIENT
description
string
Maximum string length: 500
ambient
object | null
model_policy
object

Response

Agent 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
name
string
required
description
string | null
required
instructions
string
required
state
enum<string>
required
Available options:
ENABLED,
ARCHIVED
origin
enum<string>
required
Available options:
PLATFORM,
USER,
SYSTEM
capabilities
enum<string>[]
required
Available options:
CHAT,
CODING,
AMBIENT
ambient
object | null
required
model_policy
object
required
created_by
string
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