Destinations

Create a destination

POST/v1/destinations

Creates a URL destination. Pass type: "inbox" to create an agent inbox instead (see Create an inbox).

Parameters

Body parameters12
namestringRequired

2–41 lowercase letters, numbers or dashes. Must be unique.

urlstringRequired

HTTPS URL that receives deliveries. Ensue refuses URLs that would loop back into itself.

type?string

inbox creates an inbox. Leave out for a URL destination.

auth_type?string

How Ensue authenticates to your URL (none, bearer, basic, apikey), with token, username and password, or header and value.

timeout_ms?integer

Per-attempt timeout, 1000 to 30000. Default 15000.

max_attempts?integer

Deliveries before the event fails.

retry?object

The retry schedule.

format?string

agent delivers the agent envelope instead of the raw body.

view_bytes?integer

For format: agent: cap on the view, 1 KB to 64 KB. Default 8 KB.

max_in_flight?integer

Most deliveries running at once.

rate_per_second?number

Most deliveries started per second.

groups?object

Delivery group rules, for per-tenant rates. Not for inboxes.

Returns

201The sample response is on the right.Errors return error and message; see Errors and limits.