POST
POST /events — Resend API
Resend APICreate an event
- Base URL
- https://api.resend.com
- Auth
- Authorization: Bearer <RESEND_API_KEY>
- Last verified
- 2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 181 tokens · Vary: Accept
→ 181 tokens · Vary: Accept
Critical gotchas
All requests must include a User-Agent header (e.g. User-Agent: my-app/1.0) or the API returns HTTP 403.
cURL
curl -X POST 'https://api.resend.com/events' \ -H "Authorization: Bearer $RESEND_API_KEY" \ -H 'User-Agent: my-app/1.0' \ -H 'Content-Type: application/json' \ -d '{ "name": "example-name", "schema": {}}'
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| name | body | string | Yes | The name of the event. Cannot start with the reserved `resend:` prefix. |
| schema | body | object | No | An optional flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`. |
Response 200 OK
{
"object": "event",
"id": "00000000-0000-4000-8000-000000000000"
} Get a free Resend API key → sponsored Affiliate link - we may earn a commission, at no extra cost to you.