# Sendsational > Sendsational is email marketing and sending software with a public REST API. A store, a site, a script or another app connects through the API: contacts and their consent go in, events describe what people did, and signed webhooks report unsubscribes, bounces and complaints back. The API is REST with JSON at `https://api.sendsational.app/v1`. Authenticate with an API key from Settings, API keys in the app: `Authorization: Bearer ss_live_…`. Keys belong to one workspace, carry scopes, and are shown once. ## Docs - [API reference](https://app.sendsational.app/docs/api): every endpoint with its fields, the error shape, idempotency keys, rate limits, and how to verify a webhook signature. - [OpenAPI 3.1 file](https://app.sendsational.app/openapi.json): the machine-readable description, generated from the code that serves the API. ## Endpoints - `GET /me`: Check a key. - `POST /contacts`: Create or update a contact. Scope: `contacts:write`. - `POST /contacts/bulk`: Create or update many contacts. Scope: `contacts:write`. - `GET /contacts`: List contacts. Scope: `contacts:read`. - `GET /contacts/{id}`: Get a contact. Scope: `contacts:read`. - `PATCH /contacts/{id}`: Update a contact by id. Scope: `contacts:write`. - `DELETE /contacts/{id}`: Delete a contact. Scope: `contacts:write`. - `POST /events`: Track an event. Scope: `events:write`. - `POST /events/bulk`: Track many events. Scope: `events:write`. - `PUT /products/{id}`: Create or replace a product. Scope: `products:write`. - `GET /products/{id}`: Get a product. Scope: `products:read`. - `PUT /orders/{id}`: Create or replace an order. Scope: `orders:write`. - `GET /orders/{id}`: Get an order. Scope: `orders:read`. - `POST /webhook_endpoints`: Add a webhook endpoint. Scope: `webhooks:write`. - `GET /webhook_endpoints`: List webhook endpoints. Scope: `webhooks:read`. - `GET /webhook_endpoints/{id}`: Get a webhook endpoint. Scope: `webhooks:read`. - `PATCH /webhook_endpoints/{id}`: Change a webhook endpoint. Scope: `webhooks:write`. - `DELETE /webhook_endpoints/{id}`: Remove a webhook endpoint. Scope: `webhooks:write`. ## Events - Standard store events, checked for required properties: `product_viewed`, `added_to_cart`, `checkout_started`, `order_placed`, `order_fulfilled`. - Any other lower-case name is a custom event and is stored as sent. - Identify the contact by `email`, `id` or `external_id`. An unknown email creates the contact with no consent. ## Webhooks - Event types: `contact.subscribed`, `contact.unsubscribed`, `contact.consent_changed`, `email.bounced`, `email.complained`. - Signed the Standard Webhooks way: headers `webhook-id`, `webhook-timestamp`, `webhook-signature` ("v1," + base64 HMAC-SHA256 of "{id}.{timestamp}.{body}" with the endpoint's `whsec_` secret). - Retried up to 8 times over about two days. `webhook-id` is the same on every retry. ## Rules worth knowing - Send an `Idempotency-Key` header on POST and PATCH to make retries safe. The first answer is replayed for 24 hours. - Consent changes carry `occurred_at`. An older change never overrides a newer one, and an import never resubscribes someone who unsubscribed. - A hard bounce or a complaint suppresses the address: it is not emailed even if its consent says subscribed. - Unknown fields in a request body are refused with 422, never ignored. - Errors always look like `{ "error": { "type", "code", "message", "details"?, "request_id" } }`. Match on `code`. - Limits: 600 requests a minute per key by default, 500 items per bulk request, 2 MB per request body.