Skip to main content
POST
This endpoint accepts a project API key (AS_ prefix). The signing secret is returned only on creation — store it securely. You can later retrieve it via the Reveal Webhook Secret endpoint.

Authorizations

string | header
required
Project API key header of the form Bearer AS_<key>.

Body

string
required
The HTTPS (or HTTP) endpoint AutoSend will POST events to. Must include the protocol.Example: "https://example.com/webhooks/autosend"
string[]
required
One or more event types to subscribe to. Must contain at least one valid event. See List Available Events for the full set.Example: ["email.delivered", "email.bounced"]

Response

Webhook created (201)
boolean
Indicates if the request was successfulExample: true
object
Wrapper containing the created webhook

Error Responses

object
Returned when the URL is invalid or no valid events are supplied.