Destinations
Create a destination
/v1/destinationsCreates a URL destination. Pass type: "inbox" to create an agent inbox instead (see Create an inbox).
Parameters
Body parameters12
namestringRequired2–41 lowercase letters, numbers or dashes. Must be unique.
urlstringRequiredHTTPS URL that receives deliveries. Ensue refuses URLs that would loop back into itself.
type?stringinbox creates an inbox. Leave out for a URL destination.
auth_type?stringHow Ensue authenticates to your URL (none, bearer, basic, apikey), with token, username and password, or header and value.
timeout_ms?integerPer-attempt timeout, 1000 to 30000. Default 15000.
max_attempts?integerDeliveries before the event fails.
retry?objectThe retry schedule.
format?stringagent delivers the agent envelope instead of the raw body.
view_bytes?integerFor format: agent: cap on the view, 1 KB to 64 KB. Default 8 KB.
max_in_flight?integerMost deliveries running at once.
rate_per_second?numberMost deliveries started per second.
groups?objectDelivery 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.