Skip to main content
POST
Create agent config

Authorizations

Authorization
string
header
required

An opaque Omnara personal or organization bearer token.

Path Parameters

orgID
string
required

Organization ID (org_...).

Pattern: ^org_[a-z2-7]{26}$
projectID
string
required

Project ID (proj_...).

Pattern: ^proj_[a-z2-7]{26}$

Body

application/json

An agent config to compile. The source, YAML or JSON, as text or as a JSON object, is stored exactly as sent, so comments and formatting survive. Configs whose sources compile to the same definition share it, however their sources are formatted.

source
required

Config to compile: YAML or JSON text, or a JSON object when source_format is json.

Minimum string length: 1
source_format
enum<string>
required

Encoding of source.

Available options:
yaml,
json

Response

Existing agent config returned.

id
string
required

Agent config ID (acfg_...).

Pattern: ^acfg_[a-z2-7]{26}$
org_id
string
required
Pattern: ^org_[a-z2-7]{26}$
project_id
string
required

Project ID (proj_...).

Pattern: ^proj_[a-z2-7]{26}$
effective_definition_hash
string
required
model
object
required
created_at
string<date-time>
required
compiled_definition
object
required

Read-only saved compiled configuration, including default tools and derived subagent overrides.

source
string

Saved source text, exactly as sent.

source_format
enum<string>
Available options:
yaml,
json
instruction_hash
string