Skip to main content
POST
Requires scope: api:org-config Pass both schema and mapping for a “full_spec” submission (e.g. your own agent already authored them); pass neither/either for an “assisted” submission Olira will author from your input_examples + description. Always lands as a pending request — Olira reviews and materializes it before it can be activated. Built-in platform types are in list_log_types() / GET /v1/log-types, not this endpoint.

Parameters

str
required
New org-defined source event subtype, e.g. rc_conversation_completed (lowercase snake_case, 3–64 chars).
str
default:"\"\""
What this source event represents.
list[dict] | None
default:"None"
Sample raw payloads (capped at 20).
dict | None
default:"None"
Full JSON Schema for the payload, if already authored (e.g. by your agent).
dict | None
default:"None"
Full mapping spec (source_root/targets/unmapped_fields_policy), if already authored.

Returns

SchemaRegistrationResult
str
Id of the created registration.
str
The registered subtype.
int
Version this registration is proposing (1 for a new subtype).
str
“full_spec” if both schema and mapping were provided, else “assisted”.
str
“pending_review” — registrations never auto-activate.
dict | None
Dry-run result against input_examples; populated only for full_spec submissions.

Raises