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. YAML sources are stored verbatim, so comments and formatting survive; JSON sources, as text or as an object, are stored canonicalized, so the same JSON definition always maps to the same config.

source
required

Agent config source as YAML or JSON text, or, with source_format json, as a JSON object.

Minimum string length: 1
source_format
enum<string>
required

Format of source: yaml or json.

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. YAML sources keep their original text; JSON sources are stored canonicalized.

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