Skip to main content
POST
Creates a new agent directive. It is live immediately: there is no draft or publish step. Creating it does not attach it anywhere, so nothing loads it until you attach it to a template, a repo, or the whole org. Required scope: context:write

Headers

string
required
Bearer token. Example: Bearer runtm_xxx
string
Scope the directive to an organization.

Body

string
required
Directive type: skill_v0, mcp_server_v0, doc_v0, network_rule_v0, allowlist_rule_v0, hook_v0.
string
required
Unique name (1–128 chars). For hooks, must be a slug: ^[a-z0-9][a-z0-9-]{0,63}$.
string
Human-readable name shown in the UI.
string
Short description of what this directive does.
object
required
Type-specific content payload. Shape depends on type - see examples.

Response

Returns 201 with the created directive resource.
object
The created directive resource with id, content_hash, content, attachments, and timestamps.