Skip to main content
POST
Requires scope: sdk:actions The signing secret is returned in plaintext exactly once — store it immediately, it can only be rotated afterward, never re-read.

Parameters

WebhookDestinationConfig | EmailDestinationConfig | dict
required
Destination type and its config: WebhookDestinationConfig (url, optional api_version) or EmailDestinationConfig (to_email, optional subject/from_name). A raw dict is accepted for destination types not yet modeled by this SDK version.
list[ActionTrigger | str] | None
Triggers this destination receives. [”*”] subscribes to every currently available trigger, and, because it is evaluated by the platform rather than by this list, could start receiving additional trigger types later without another call on your part.
str | None
Free-text label shown in the Olira Console.
dict[str, str] | None
Extra headers replayed on every request, e.g. an API key your endpoint expects. Write-only — never read back.
int | None
default:"600"
Per-destination delivery cap, 1–6000.
DigestSchedule | None
Opt in to daily batching for high-frequency triggers instead of one delivery per event.

Returns

ActionDestination — Created destination, including the one-time signing_secret.
str
Olira-assigned destination id.
str | None
Project this destination watches. None = the org’s default project.
str
“webhook” or “email”.
str
“active”, “disabled”, or “auto_disabled”.
str | None
Free-text description.
list[str]
Triggers this destination receives.
dict
Type-specific config as returned by the server (url, api_version, etc).
str | None
Last 4 characters of the current signing secret.
int | None
Per-destination delivery rate cap.
DigestSchedule | None
Digest batching config, if enabled.
int
Running failure streak; resets to 0 on any successful delivery.
str | None
When the destination was auto-disabled (20+ consecutive failures over 72h+), if applicable.
str | None
When the signing secret was last rotated.
str | None
Plaintext signing secret — present only here and on rotate_action_destination_secret responses.

Raises