{"openapi":"3.1.0","info":{"title":"Signature Dash API","version":"1.0.0","description":"Contacts, form entries, bookings, signatures, analytics and short links, for Zapier, Make and your own systems, and Email sending from your own apps. Send your key as Authorization: Bearer sdk_… . Keys come with Agency (60 calls a minute each) and Enterprise (600). A read key reads; a read and write key also changes contacts. Short links are changed by Enterprise write keys only. Email sending uses its own sending keys (Studio and up: 3,000 free emails a month, more with the Email sending add-on): 120 requests a minute each, 300 a minute per workspace.","contact":{"name":"Signature Dash support","url":"https://app.signaturedash.com/help"}},"servers":[{"url":"https://app.signaturedash.com/api/v1"}],"security":[{"apiKey":[]}],"tags":[{"name":"Account"},{"name":"Contacts"},{"name":"Forms"},{"name":"Bookings"},{"name":"Signatures"},{"name":"Analytics"},{"name":"Short links"},{"name":"App subscriptions"},{"name":"Email sending"}],"paths":{"/me":{"get":{"tags":["Account"],"summary":"Check your key","description":"Which account and key this is, what the key may do, and its limit. Zapier and Make call this when you connect.","operationId":"getMe","x-scope":"read","responses":{"200":{"description":"The account and key.","content":{"application/json":{"schema":{"type":"object"},"example":{"account":{"id":"0a0a0a0a-0000-4000-8000-000000000001","name":"Harbour Dental","plan":"agency"},"key":{"name":"Zapier","prefix":"sdk_1a2b3c","scopes":["read","write"]},"rate_limit":{"per_minute":60}}}}},"401":{"$ref":"#/components/responses/E401"}}}},"/contacts":{"get":{"tags":["Contacts"],"summary":"List or find contacts","description":"Email marketing contacts, newest first. Add email= to find one person.","operationId":"listContacts","x-scope":"read","parameters":[{"name":"email","in":"query","required":false,"description":"Find the contact with this email.","schema":{"type":"string","format":"email"},"example":"mia@example.com"},{"name":"status","in":"query","required":false,"description":"Only contacts with this status.","schema":{"type":"string","enum":["subscribed","not_opted_in","unsubscribed","bounced","complained"]}},{"name":"tag","in":"query","required":false,"description":"Only contacts with this tag.","schema":{"type":"string"}},{"name":"list_id","in":"query","required":false,"description":"Only contacts on this list.","schema":{"type":"string","format":"uuid"}},{"name":"since","in":"query","required":false,"description":"Only those created at or after this time.","schema":{"type":"string","format":"date-time"},"example":"2026-11-18T00:00:00Z"},{"name":"limit","in":"query","required":false,"description":"How many to return, 1 to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","required":false,"description":"How many to skip, for the next page.","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Contacts.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"limit":{"type":"integer"},"offset":{"type":"integer"},"has_more":{"type":"boolean"}}},"example":{"data":[{"id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","email":"mia@example.com","first_name":"Mia","last_name":"Chen","status":"subscribed","tags":["webinar"],"fields":{"company":"Harbour Dental"},"source":"api","timezone":"Australia/Sydney","created_at":"2026-11-18T09:12:00Z","updated_at":"2026-11-18T09:12:00Z"}],"limit":50,"offset":0,"has_more":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"tags":["Contacts"],"summary":"Create or update a contact","description":"Creates a contact, or updates the one with this email. 201 when it's new, 200 when it was there already. consent: true subscribes them.","operationId":"upsertContact","x-scope":"write","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInput"},"example":{"email":"mia@example.com","first_name":"Mia","last_name":"Chen","tags":["webinar"],"consent":true,"consent_text":"Ticked \"Email me news and offers\" on the webinar sign-up"}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/Contact"},"created":{"type":"boolean"}}},"example":{"contact":{"id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","email":"mia@example.com","first_name":"Mia","last_name":"Chen","status":"subscribed","tags":["webinar"],"fields":{"company":"Harbour Dental"},"source":"api","timezone":"Australia/Sydney","created_at":"2026-11-18T09:12:00Z","updated_at":"2026-11-18T09:12:00Z"},"created":false}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/Contact"},"created":{"type":"boolean"}}},"example":{"contact":{"id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","email":"mia@example.com","first_name":"Mia","last_name":"Chen","status":"subscribed","tags":["webinar"],"fields":{"company":"Harbour Dental"},"source":"api","timezone":"Australia/Sydney","created_at":"2026-11-18T09:12:00Z","updated_at":"2026-11-18T09:12:00Z"},"created":true}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/contacts/{id}":{"get":{"tags":["Contacts"],"summary":"Get a contact","description":"One contact.","operationId":"getContact","x-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"The contact's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The contact.","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/Contact"}}},"example":{"contact":{"id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","email":"mia@example.com","first_name":"Mia","last_name":"Chen","status":"subscribed","tags":["webinar"],"fields":{"company":"Harbour Dental"},"source":"api","timezone":"Australia/Sydney","created_at":"2026-11-18T09:12:00Z","updated_at":"2026-11-18T09:12:00Z"}}}}},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}},"patch":{"tags":["Contacts"],"summary":"Change a contact","description":"Send only what changes. fields are merged; tags are added. The email can't change.","operationId":"updateContact","x-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"The contact's id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}},"timezone":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}}},"example":{"last_name":"Chen-Wu","fields":{"company":"Harbour Dental"}}}}},"responses":{"200":{"description":"The contact.","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/Contact"}}},"example":{"contact":{"id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","email":"mia@example.com","first_name":"Mia","last_name":"Chen","status":"subscribed","tags":["webinar"],"fields":{"company":"Harbour Dental"},"source":"api","timezone":"Australia/Sydney","created_at":"2026-11-18T09:12:00Z","updated_at":"2026-11-18T09:12:00Z"}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/contacts/{id}/tags":{"post":{"tags":["Contacts"],"summary":"Add tags","description":"Adds tags. A tag that starts an automation starts it.","operationId":"addTags","x-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"The contact's id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tags"],"properties":{"tags":{"type":"array","items":{"type":"string"}}}},"example":{"tags":["vip"]}}}},"responses":{"200":{"description":"The contact.","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/Contact"}}},"example":{"contact":{"id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","email":"mia@example.com","first_name":"Mia","last_name":"Chen","status":"subscribed","tags":["webinar","vip"],"fields":{"company":"Harbour Dental"},"source":"api","timezone":"Australia/Sydney","created_at":"2026-11-18T09:12:00Z","updated_at":"2026-11-18T09:12:00Z"}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}},"delete":{"tags":["Contacts"],"summary":"Remove tags","description":"Removes tags.","operationId":"removeTags","x-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"The contact's id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tags"],"properties":{"tags":{"type":"array","items":{"type":"string"}}}},"example":{"tags":["vip"]}}}},"responses":{"200":{"description":"The contact.","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/Contact"}}},"example":{"contact":{"id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","email":"mia@example.com","first_name":"Mia","last_name":"Chen","status":"subscribed","tags":["webinar"],"fields":{"company":"Harbour Dental"},"source":"api","timezone":"Australia/Sydney","created_at":"2026-11-18T09:12:00Z","updated_at":"2026-11-18T09:12:00Z"}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/contacts/{id}/lists":{"post":{"tags":["Contacts"],"summary":"Add to a list","description":"Adds the contact to a list, by id or by name. A list that starts an automation starts it. Adding someone already there is fine.","operationId":"addToList","x-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"The contact's id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"string","format":"uuid"},"list_name":{"type":"string"}}},"example":{"list_name":"Newsletter"}}}},"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"type":"object"},"example":{"list":{"id":"c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f","name":"Newsletter"},"contact_id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","added":true}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/contacts/{id}/unsubscribe":{"post":{"tags":["Contacts"],"summary":"Unsubscribe a contact","description":"No more marketing email: the address goes on the do-not-email list and their automations stop.","operationId":"unsubscribeContact","x-scope":"write","parameters":[{"name":"id","in":"path","required":true,"description":"The contact's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The contact.","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/Contact"}}},"example":{"contact":{"id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","email":"mia@example.com","first_name":"Mia","last_name":"Chen","status":"unsubscribed","tags":["webinar"],"fields":{"company":"Harbour Dental"},"source":"api","timezone":"Australia/Sydney","created_at":"2026-11-18T09:12:00Z","updated_at":"2026-11-18T09:12:00Z"}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/lists":{"get":{"tags":["Contacts"],"summary":"List email lists","description":"Your email lists.","operationId":"listLists","x-scope":"read","responses":{"200":{"description":"Lists.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"}}}}}},"example":{"data":[{"id":"c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f","name":"Newsletter","description":null,"created_at":"2026-10-01T00:00:00Z"}]}}}},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/forms":{"get":{"tags":["Forms"],"summary":"List forms","description":"Your forms that aren't archived.","operationId":"listForms","x-scope":"read","responses":{"200":{"description":"Forms.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}}}}},"example":{"data":[{"id":"9b8c7d6e-5f4a-4b3c-8d2e-1f0a9b8c7d6e","name":"Book a consult","status":"active","created_at":"2026-10-01T00:00:00Z"}]}}}},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/form-entries":{"get":{"tags":["Forms"],"summary":"List form entries","description":"Form entries, newest first, with each answer by its question.","operationId":"listFormEntries","x-scope":"read","parameters":[{"name":"form_id","in":"query","required":false,"description":"Only entries for this form.","schema":{"type":"string","format":"uuid"}},{"name":"since","in":"query","required":false,"description":"Only those created at or after this time.","schema":{"type":"string","format":"date-time"},"example":"2026-11-18T00:00:00Z"},{"name":"limit","in":"query","required":false,"description":"How many to return, 1 to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","required":false,"description":"How many to skip, for the next page.","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Entries.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FormEntry"}},"limit":{"type":"integer"},"offset":{"type":"integer"},"has_more":{"type":"boolean"}}},"example":{"data":[{"id":"2a9d4e10-7b3c-4f21-8d55-6e7f8a9b0c1d","form_id":"9b8c7d6e-5f4a-4b3c-8d2e-1f0a9b8c7d6e","form_name":"Book a consult","source":"landing_page","created_at":"2026-11-18T09:30:00Z","answers":{"Name":"Mia Chen","Email":"mia@example.com","What do you need?":"A check-up"},"fields":[{"id":"f1","label":"Name","value":"Mia Chen"},{"id":"f2","label":"Email","value":"mia@example.com"}]}],"limit":50,"offset":0,"has_more":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/bookings":{"get":{"tags":["Bookings"],"summary":"List bookings","description":"Bookings, newest first. With status=cancelled, by when they were cancelled.","operationId":"listBookings","x-scope":"read","parameters":[{"name":"status","in":"query","required":false,"description":"Only bookings with this status.","schema":{"type":"string","enum":["pending","confirmed","cancelled","declined"]}},{"name":"since","in":"query","required":false,"description":"Only those created at or after this time.","schema":{"type":"string","format":"date-time"},"example":"2026-11-18T00:00:00Z"},{"name":"limit","in":"query","required":false,"description":"How many to return, 1 to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","required":false,"description":"How many to skip, for the next page.","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Bookings.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Booking"}},"limit":{"type":"integer"},"offset":{"type":"integer"},"has_more":{"type":"boolean"}}},"example":{"data":[{"id":"4c3b2a19-8f7e-4d6c-9b5a-4e3d2c1b0a9f","status":"confirmed","start_at":"2026-11-20T23:00:00Z","end_at":"2026-11-20T23:30:00Z","event_type_id":"7a7a7a7a-0000-4000-8000-000000000001","event_type_name":"New patient consult","guest_name":"Mia Chen","guest_email":"mia@example.com","guest_timezone":"Australia/Sydney","answers":[],"source":"signature","created_at":"2026-11-18T10:02:00Z","cancelled_at":null,"cancelled_by":null,"cancel_reason":null}],"limit":50,"offset":0,"has_more":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/signatures":{"get":{"tags":["Signatures"],"summary":"List signatures","description":"Your email signatures.","operationId":"listSignatures","x-scope":"read","parameters":[{"name":"archived","in":"query","required":false,"description":"true for archived ones, all for both.","schema":{"type":"string","enum":["true","false","all"],"default":"false"}},{"name":"limit","in":"query","required":false,"description":"How many to return, 1 to 100.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","required":false,"description":"How many to skip, for the next page.","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Signatures.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Signature"}},"limit":{"type":"integer"},"offset":{"type":"integer"},"has_more":{"type":"boolean"}}},"example":{"data":[{"id":"1e2d3c4b-5a69-4788-9a0b-1c2d3e4f5a6b","name":"Sam Lee","person":{"name":"Sam Lee","title":"Practice Manager","email":"sam@harbour.example"},"assigned_to":null,"archived":false,"created_at":"2026-10-01T00:00:00Z","updated_at":"2026-11-10T04:00:00Z"}],"limit":50,"offset":0,"has_more":false}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/signatures/{id}":{"get":{"tags":["Signatures"],"summary":"Get a signature","description":"One email signature.","operationId":"getSignature","x-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"The signature's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The signature.","content":{"application/json":{"schema":{"type":"object","properties":{"signature":{"$ref":"#/components/schemas/Signature"}}},"example":{"signature":{"id":"1e2d3c4b-5a69-4788-9a0b-1c2d3e4f5a6b","name":"Sam Lee","person":{"name":"Sam Lee","title":"Practice Manager","email":"sam@harbour.example"},"assigned_to":null,"archived":false,"created_at":"2026-10-01T00:00:00Z","updated_at":"2026-11-10T04:00:00Z"}}}}},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/events":{"get":{"tags":["Analytics"],"summary":"List recent events","description":"Clicks, scans, views and form entries, newest first (the last 30 days unless since is earlier).","operationId":"listEvents","x-scope":"read","parameters":[{"name":"type","in":"query","required":false,"description":"Only this kind.","schema":{"type":"string","enum":["click","scan","view","form_entry"]}},{"name":"since","in":"query","required":false,"description":"Only events at or after this time.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"How many, 1 to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}}],"responses":{"200":{"description":"Events.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"limit":{"type":"integer"}}},"example":{"data":[{"id":"3f2e1d0c-9b8a-4776-8554-433221100fed","type":"click","occurred_at":"2026-11-18T09:40:00Z","metric":"short_link_click","item":{"type":"short_link","id":"5b4a3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d","name":"Spring offer"},"visitor":{"country":"AU","city":"Sydney","device":"mobile"},"source":{"referrer_host":"mail.google.com","utm_source":"signature"}}],"limit":100}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/reports":{"get":{"tags":["Analytics"],"summary":"Get a report","description":"The same report as the Analytics page: totals, the period before, visitors, form entries and where they came from, daily counts and breakdowns.","operationId":"getReport","x-scope":"read","parameters":[{"name":"from","in":"query","required":false,"description":"First day.","schema":{"type":"string","format":"date"},"example":"2026-11-01"},{"name":"to","in":"query","required":false,"description":"Last day.","schema":{"type":"string","format":"date"},"example":"2026-11-30"},{"name":"metric","in":"query","required":false,"description":"One kind of count, like short_link_click.","schema":{"type":"string"}},{"name":"object_id","in":"query","required":false,"description":"One item.","schema":{"type":"string","format":"uuid"}},{"name":"tag_id","in":"query","required":false,"description":"One tag.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The report.","content":{"application/json":{"schema":{"type":"object","properties":{"report":{"type":"object"}}},"example":{"report":{"from":"2026-11-01","to":"2026-11-30","total":1240,"previous_total":1010}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}}},"/links":{"get":{"tags":["Short links"],"summary":"List short links","description":"Short links you made yourself.","operationId":"listLinks","x-scope":"read","parameters":[{"name":"archived","in":"query","required":false,"description":"true for archived, all for both.","schema":{"type":"string","enum":["true","false","all"]}},{"name":"folder","in":"query","required":false,"description":"Only this folder.","schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"description":"Only this tag.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"offset","in":"query","required":false,"description":"How many to skip.","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"Links.","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"total":{"type":["integer","null"]},"limit":{"type":"integer"},"offset":{"type":"integer"}}},"example":{"links":[{"id":"5b4a3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d","slug":"spring","short_url":"https://sdash.co/spring","destination_url":"https://example.com/spring","title":"Spring offer","folder":"Campaigns","tags":["email"],"archived":false,"created_at":"2026-11-01T00:00:00Z"}],"total":1,"limit":100,"offset":0}}}},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"tags":["Short links"],"summary":"Make a short link","description":"Enterprise keys with write access.","operationId":"createLink","x-scope":"links","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInput"},"example":{"destination_url":"https://example.com/spring","title":"Spring offer","folder":"Campaigns","tags":["email"]}}}},"responses":{"201":{"description":"The link.","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"$ref":"#/components/schemas/Link"}}},"example":{"link":{"id":"5b4a3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d","slug":"spring","short_url":"https://sdash.co/spring","destination_url":"https://example.com/spring","title":"Spring offer","folder":"Campaigns","tags":["email"],"archived":false,"created_at":"2026-11-01T00:00:00Z"}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/links/{id}":{"get":{"tags":["Short links"],"summary":"Get a short link","description":"One link.","operationId":"getLink","x-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"The link's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The link.","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"$ref":"#/components/schemas/Link"}}},"example":{"link":{"id":"5b4a3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d","slug":"spring","short_url":"https://sdash.co/spring","destination_url":"https://example.com/spring","title":"Spring offer","folder":"Campaigns","tags":["email"],"archived":false,"created_at":"2026-11-01T00:00:00Z"}}}}},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}},"patch":{"tags":["Short links"],"summary":"Change a short link","description":"Send only what changes, including \"archived\": true or false. Enterprise keys with write access.","operationId":"updateLink","x-scope":"links","parameters":[{"name":"id","in":"path","required":true,"description":"The link's id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination_url":{"type":"string","format":"uri"},"title":{"type":"string"},"folder":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"archived":{"type":"boolean"}}},"example":{"destination_url":"https://example.com/summer"}}}},"responses":{"200":{"description":"The link.","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"$ref":"#/components/schemas/Link"}}},"example":{"link":{"id":"5b4a3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d","slug":"spring","short_url":"https://sdash.co/spring","destination_url":"https://example.com/spring","title":"Spring offer","folder":"Campaigns","tags":["email"],"archived":false,"created_at":"2026-11-01T00:00:00Z"}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/links/bulk":{"post":{"tags":["Short links"],"summary":"Make many short links","description":"Up to 1,000 at once. All or nothing. Enterprise keys with write access.","operationId":"createLinks","x-scope":"links","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["links"],"properties":{"links":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/LinkInput"}}}},"example":{"links":[{"destination_url":"https://example.com/a"},{"destination_url":"https://example.com/b","title":"B"}]}}}},"responses":{"201":{"description":"The links.","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"example":{"links":[{"id":"5b4a3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d","slug":"spring","short_url":"https://sdash.co/spring","destination_url":"https://example.com/spring","title":"Spring offer","folder":"Campaigns","tags":["email"],"archived":false,"created_at":"2026-11-01T00:00:00Z"}]}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/links/archive":{"post":{"tags":["Short links"],"summary":"Archive or restore links","description":"Up to 1,000 at once. Enterprise keys with write access.","operationId":"archiveLinks","x-scope":"links","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ids","archived"],"properties":{"ids":{"type":"array","items":{"type":"string","format":"uuid"}},"archived":{"type":"boolean"}}},"example":{"ids":["5b4a3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d"],"archived":true}}}},"responses":{"200":{"description":"How many changed.","content":{"application/json":{"schema":{"type":"object","properties":{"changed":{"type":"integer"}}},"example":{"changed":1}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}}},"/hooks":{"get":{"tags":["App subscriptions"],"summary":"List subscriptions","description":"This key's app subscriptions.","operationId":"listHooks","x-scope":"read","responses":{"200":{"description":"Subscriptions.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Hook"}}}},"example":{"data":[{"id":"0d9c8b7a-6f5e-4d3c-8b2a-1f0e9d8c7b6a","event":"form_entry.created","target_url":"https://hooks.zapier.com/hooks/standard/123/abc/","source":"zapier","form_id":null,"active":true,"disabled_reason":null,"created_at":"2026-11-18T09:00:00Z","last_sent_at":null}]}}}},"401":{"$ref":"#/components/responses/E401"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"tags":["App subscriptions"],"summary":"Subscribe to an event","description":"Each new event of this kind is sent to target_url as a signed POST (see Webhooks). The answer includes the signing secret, once. Subscribing the same address again gives the same subscription. form_id narrows form_entry.created to one form.","operationId":"createHook","x-scope":"read","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["event","target_url"],"properties":{"event":{"type":"string","enum":["form_entry.created","booking.created","booking.cancelled","contact.created","contact.unsubscribed","email.bounced","client.created","invoice.sent","invoice.paid","quote.accepted","contract.signed"]},"target_url":{"type":"string","format":"uri","description":"https only."},"form_id":{"type":"string","format":"uuid"}}},"example":{"event":"form_entry.created","target_url":"https://hooks.zapier.com/hooks/standard/123/abc/"}}}},"responses":{"200":{"description":"Already subscribed.","content":{"application/json":{"schema":{"type":"object","properties":{"hook":{"$ref":"#/components/schemas/Hook"}}},"example":{"hook":{"id":"0d9c8b7a-6f5e-4d3c-8b2a-1f0e9d8c7b6a","event":"form_entry.created","target_url":"https://hooks.zapier.com/hooks/standard/123/abc/","source":"zapier","form_id":null,"active":true,"disabled_reason":null,"created_at":"2026-11-18T09:00:00Z","last_sent_at":null}}}}},"201":{"description":"Subscribed.","content":{"application/json":{"schema":{"type":"object","properties":{"hook":{"$ref":"#/components/schemas/Hook"}}},"example":{"hook":{"id":"0d9c8b7a-6f5e-4d3c-8b2a-1f0e9d8c7b6a","event":"form_entry.created","target_url":"https://hooks.zapier.com/hooks/standard/123/abc/","source":"zapier","form_id":null,"active":true,"disabled_reason":null,"created_at":"2026-11-18T09:00:00Z","last_sent_at":null,"secret":"whsec_…"}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/emails":{"post":{"tags":["Email sending"],"summary":"Send an email","description":"Sends one email from your app. It goes straight away (or at scheduled_at). Recipients on your suppression list are skipped and listed in the answer. Send an Idempotency-Key header to make retries safe: the same key and body within 24 hours gets the same answer and sends nothing new.","operationId":"sendEmail","x-scope":"send","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique text up to 256 characters, like your order id. Retrying with the same key and body within 24 hours sends nothing new and gives the same answer.","schema":{"type":"string","maxLength":256},"example":"order-1042-receipt"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInput"},"example":{"from":"Harbour Dental <hello@harbour.example>","to":["mia@example.com"],"subject":"Your appointment is confirmed","html":"<p>See you on Thursday at 9am.</p>","text":"See you on Thursday at 9am.","tags":[{"name":"category","value":"confirmation"}]}}}},"responses":{"200":{"description":"Taken.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCreated"},"example":{"id":"9c1e7f30-2b4d-4a6e-8f10-3d5c7b9a1e2f","status":"sent","suppressed":[]}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"413":{"$ref":"#/components/responses/E413"},"429":{"$ref":"#/components/responses/E429"}}}},"/emails/batch":{"post":{"tags":["Email sending"],"summary":"Send a batch of emails","description":"Up to 100 emails in one request, each like Send an email but without attachments or scheduled_at. All or nothing: if any email has a problem, nothing is sent and error.errors lists each one by its position. Each recipient counts towards your month.","operationId":"sendEmailBatch","x-scope":"send","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique text up to 256 characters, like your order id. Retrying with the same key and body within 24 hours sends nothing new and gives the same answer.","schema":{"type":"string","maxLength":256},"example":"order-1042-receipt"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/EmailInput"}},"example":[{"from":"Harbour Dental <hello@harbour.example>","to":"mia@example.com","subject":"Your receipt","html":"<p>Thanks, Mia.</p>"},{"from":"Harbour Dental <hello@harbour.example>","to":"ben@example.com","subject":"Your receipt","html":"<p>Thanks, Ben.</p>"}]}}},"responses":{"200":{"description":"Taken, in the same order.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EmailCreated"}}}},"example":{"data":[{"id":"9c1e7f30-2b4d-4a6e-8f10-3d5c7b9a1e2f","status":"sent","suppressed":[]},{"id":"0b2c4d6e-8f10-4a2b-9c3d-5e7f9a1b3c5d","status":"sent","suppressed":[]}]}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"402":{"$ref":"#/components/responses/E402"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"429":{"$ref":"#/components/responses/E429"}}}},"/emails/{id}":{"get":{"tags":["Email sending"],"summary":"Get an email","description":"One email: its status, recipients, what happened to it (events) and its content. Kept 30 days.","operationId":"getEmail","x-scope":"send","parameters":[{"name":"id","in":"path","required":true,"description":"The email's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The email.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email"},"example":{"object":"email","id":"9c1e7f30-2b4d-4a6e-8f10-3d5c7b9a1e2f","status":"delivered","type":"transactional","from":"Harbour Dental <hello@harbour.example>","to":["mia@example.com"],"cc":[],"bcc":[],"reply_to":[],"subject":"Your appointment is confirmed","tags":[{"name":"category","value":"confirmation"}],"suppressed":[],"attachments":[],"scheduled_at":null,"sent_at":"2026-11-18T09:15:02Z","created_at":"2026-11-18T09:15:01Z","last_event_at":"2026-11-18T09:15:04Z","opens":1,"clicks":0,"error":null,"html":"<p>See you on Thursday at 9am.</p>","text":"See you on Thursday at 9am.","events":[{"type":"queued","recipient":null,"at":"2026-11-18T09:15:01Z"},{"type":"sent","recipient":null,"at":"2026-11-18T09:15:02Z"},{"type":"delivered","recipient":"mia@example.com","at":"2026-11-18T09:15:04Z"},{"type":"opened","recipient":"mia@example.com","at":"2026-11-18T09:20:40Z"}]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/emails/{id}/cancel":{"post":{"tags":["Email sending"],"summary":"Cancel a scheduled email","description":"Stops a scheduled email before it goes. It no longer counts towards your month. Only scheduled emails can be cancelled.","operationId":"cancelEmail","x-scope":"send","parameters":[{"name":"id","in":"path","required":true,"description":"The email's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Cancelled.","content":{"application/json":{"schema":{"type":"object"},"example":{"object":"email","id":"9c1e7f30-2b4d-4a6e-8f10-3d5c7b9a1e2f","status":"cancelled"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"409":{"$ref":"#/components/responses/E409"},"429":{"$ref":"#/components/responses/E429"}}}},"/email-webhooks":{"get":{"tags":["Email sending"],"summary":"List email webhooks","description":"This key's webhooks and the workspace's own.","operationId":"listEmailWebhooks","x-scope":"send","responses":{"200":{"description":"Webhooks.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EmailWebhook"}}}},"example":{"data":[{"id":"5e4d3c2b-1a09-4f8e-9d7c-6b5a4f3e2d1c","name":"Order system","url":"https://yourapp.com/webhooks/email","events":["email.delivered","email.bounced","email.complained"],"scope":"key","active":true,"disabled_reason":null,"created_at":"2026-11-18T09:00:00Z","last_sent_at":null}]}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"}}},"post":{"tags":["Email sending"],"summary":"Add an email webhook","description":"We POST each event you choose to your https address, signed (see Webhooks: signing and retries). scope key (the default) covers emails sent with this key; workspace covers every email. The answer includes the signing secret, once.","operationId":"createEmailWebhook","x-scope":"send","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url","events"],"properties":{"url":{"type":"string","format":"uri","description":"https only."},"events":{"type":"array","items":{"type":"string","enum":["email.sent","email.delivered","email.bounced","email.complained","email.opened","email.clicked","email.failed"]}},"scope":{"type":"string","enum":["key","workspace"],"default":"key"},"name":{"type":"string","maxLength":80,"description":"Optional label, like Order system."}}},"example":{"url":"https://yourapp.com/webhooks/email","events":["email.delivered","email.bounced","email.complained"],"name":"Order system"}}}},"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"type":"object","properties":{"webhook":{"$ref":"#/components/schemas/EmailWebhook"}}},"example":{"webhook":{"id":"5e4d3c2b-1a09-4f8e-9d7c-6b5a4f3e2d1c","name":"Order system","url":"https://yourapp.com/webhooks/email","events":["email.delivered","email.bounced","email.complained"],"scope":"key","active":true,"disabled_reason":null,"created_at":"2026-11-18T09:00:00Z","last_sent_at":null,"secret":"whsec_…"}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"409":{"$ref":"#/components/responses/E409"},"429":{"$ref":"#/components/responses/E429"}}}},"/email-webhooks/{id}":{"patch":{"tags":["Email sending"],"summary":"Rename an email webhook","description":"Changes the name of a webhook this key made. null or an empty name removes it. Workspace webhooks made on the dashboard are renamed there.","operationId":"updateEmailWebhook","x-scope":"send","parameters":[{"name":"id","in":"path","required":true,"description":"The webhook's id.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":["string","null"],"maxLength":80,"description":"Up to 80 characters."}}},"example":{"name":"Order system"}}}},"responses":{"200":{"description":"Renamed.","content":{"application/json":{"schema":{"type":"object","properties":{"webhook":{"$ref":"#/components/schemas/EmailWebhook"}}},"example":{"webhook":{"id":"5e4d3c2b-1a09-4f8e-9d7c-6b5a4f3e2d1c","name":"Order system","url":"https://yourapp.com/webhooks/email","events":["email.delivered","email.bounced","email.complained"],"scope":"key","active":true,"disabled_reason":null,"created_at":"2026-11-18T09:00:00Z","last_sent_at":null}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}},"delete":{"tags":["Email sending"],"summary":"Remove an email webhook","description":"Removes a webhook this key made. Workspace webhooks made on the dashboard are removed there.","operationId":"deleteEmailWebhook","x-scope":"send","parameters":[{"name":"id","in":"path","required":true,"description":"The webhook's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Removed."},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}},"/hooks/{id}":{"delete":{"tags":["App subscriptions"],"summary":"Unsubscribe","description":"Stops a subscription. Zapier and Make call this when a Zap or scenario is turned off.","operationId":"deleteHook","x-scope":"read","parameters":[{"name":"id","in":"path","required":true,"description":"The subscription's id.","schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Stopped."},"401":{"$ref":"#/components/responses/E401"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"}}}}},"webhooks":{"form_entry.created":{"post":{"summary":"A new form entry arrives","description":"Sent when a new form entry arrives. The body is the form entry itself.","operationId":"on_form_entry_created","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"form_entry.created"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormEntry"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"booking.created":{"post":{"summary":"A booking is made","description":"Sent when a booking is made. The body is the booking itself.","operationId":"on_booking_created","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"booking.created"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"booking.cancelled":{"post":{"summary":"A booking is cancelled","description":"Sent when a booking is cancelled. The body is the booking itself.","operationId":"on_booking_cancelled","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"booking.cancelled"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"contact.created":{"post":{"summary":"A new contact is added","description":"Sent when a new contact is added. The body is the contact itself.","operationId":"on_contact_created","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"contact.created"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"contact.unsubscribed":{"post":{"summary":"A contact unsubscribes","description":"Sent when a contact unsubscribes. The body is the contact itself.","operationId":"on_contact_unsubscribed","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"contact.unsubscribed"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"email.bounced":{"post":{"summary":"An email bounces","description":"Sent when an email bounces. The body is the bounced email itself.","operationId":"on_email_bounced","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"email.bounced"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BouncedEmail"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"client.created":{"post":{"summary":"A new Client Dash client is added","description":"Sent when a new client dash client is added. The body is the client itself.","operationId":"on_client_created","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"client.created"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"invoice.sent":{"post":{"summary":"An invoice is sent","description":"Sent when an invoice is sent. The body is the invoice itself.","operationId":"on_invoice_sent","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"invoice.sent"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"invoice.paid":{"post":{"summary":"An invoice is paid in full","description":"Sent when an invoice is paid in full. The body is the invoice itself.","operationId":"on_invoice_paid","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"invoice.paid"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"quote.accepted":{"post":{"summary":"A quote is accepted","description":"Sent when a quote is accepted. The body is the quote itself.","operationId":"on_quote_accepted","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"quote.accepted"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"contract.signed":{"post":{"summary":"A contract is signed","description":"Sent when a contract is signed. The body is the contract itself.","operationId":"on_contract_signed","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"contract.signed"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"},"example":"t=1763456400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contract"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."},"410":{"description":"Removes the subscription."}}}},"sending:email.sent":{"post":{"summary":"Email sending: sent","description":"Sent to your email webhooks when an email you sent through the API is sent. Signed like every webhook.","operationId":"on_sending_email_sent","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"email.sent"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendingEvent"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."}}}},"sending:email.delivered":{"post":{"summary":"Email sending: delivered","description":"Sent to your email webhooks when an email you sent through the API is delivered. Signed like every webhook.","operationId":"on_sending_email_delivered","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"email.delivered"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendingEvent"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."}}}},"sending:email.bounced":{"post":{"summary":"Email sending: bounced","description":"Sent to your email webhooks when an email you sent through the API is bounced. Signed like every webhook.","operationId":"on_sending_email_bounced","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"email.bounced"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendingEvent"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."}}}},"sending:email.complained":{"post":{"summary":"Email sending: marked as spam","description":"Sent to your email webhooks when an email you sent through the API is marked as spam. Signed like every webhook.","operationId":"on_sending_email_complained","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"email.complained"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendingEvent"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."}}}},"sending:email.opened":{"post":{"summary":"Email sending: opened","description":"Sent to your email webhooks when an email you sent through the API is opened. Signed like every webhook.","operationId":"on_sending_email_opened","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"email.opened"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendingEvent"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."}}}},"sending:email.clicked":{"post":{"summary":"Email sending: link clicked","description":"Sent to your email webhooks when an email you sent through the API is link clicked. Signed like every webhook.","operationId":"on_sending_email_clicked","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"email.clicked"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendingEvent"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."}}}},"sending:email.failed":{"post":{"summary":"Email sending: failed","description":"Sent to your email webhooks when an email you sent through the API is failed. Signed like every webhook.","operationId":"on_sending_email_failed","parameters":[{"name":"Signature-Dash-Event","in":"header","schema":{"type":"string","const":"email.failed"}},{"name":"Signature-Dash-Delivery","in":"header","schema":{"type":"string","format":"uuid"}},{"name":"Signature-Dash-Signature","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendingEvent"}}}},"responses":{"200":{"description":"Any 2xx within 8 seconds means delivered."}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"sdk_xxxxxx_…","description":"Make a key in Account, API access. Sending keys (for /emails and /email-webhooks) are made in Email sending, API keys."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["conflict","invalid_key","plan","read_only","rate_limited","not_found","plan_limit","bad_request","server","unavailable","send_only","no_send","domain_not_verified","domain_not_allowed","sending_paused","monthly_limit","daily_limit","idempotency_conflict","not_cancellable","too_large"]},"message":{"type":"string"},"errors":{"type":"array","description":"Batch only: each email with a problem, by its position.","items":{"type":"object","properties":{"index":{"type":"integer"},"field":{"type":["string","null"]},"message":{"type":"string"}}}}}}}},"Contact":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","format":"email"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"status":{"type":"string","enum":["subscribed","not_opted_in","unsubscribed","bounced","complained"]},"tags":{"type":"array","items":{"type":"string"}},"fields":{"type":"object","additionalProperties":{"type":"string"}},"source":{"type":"string"},"timezone":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"example":{"id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","email":"mia@example.com","first_name":"Mia","last_name":"Chen","status":"subscribed","tags":["webinar"],"fields":{"company":"Harbour Dental"},"source":"api","timezone":"Australia/Sydney","created_at":"2026-11-18T09:12:00Z","updated_at":"2026-11-18T09:12:00Z"}},"ContactInput":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"},"first_name":{"type":"string"},"last_name":{"type":"string"},"tags":{"type":"array","items":{"type":"string"},"description":"Added to any tags they already have."},"fields":{"type":"object","additionalProperties":{"type":"string"},"description":"Custom fields, merged with what is there."},"timezone":{"type":"string","description":"A time zone name, like Australia/Sydney."},"consent":{"type":"boolean","description":"true subscribes them: you confirm they agreed to marketing email. Someone who unsubscribed, bounced or complained stays that way."},"consent_text":{"type":"string","description":"What they agreed to, kept as the consent record."},"list_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Lists to add them to."}}},"FormEntry":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"form_id":{"type":"string","format":"uuid"},"form_name":{"type":["string","null"]},"source":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"answers":{"type":"object","description":"Each answer by its question.","additionalProperties":true},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"value":{}}}}},"example":{"id":"2a9d4e10-7b3c-4f21-8d55-6e7f8a9b0c1d","form_id":"9b8c7d6e-5f4a-4b3c-8d2e-1f0a9b8c7d6e","form_name":"Book a consult","source":"landing_page","created_at":"2026-11-18T09:30:00Z","answers":{"Name":"Mia Chen","Email":"mia@example.com","What do you need?":"A check-up"},"fields":[{"id":"f1","label":"Name","value":"Mia Chen"},{"id":"f2","label":"Email","value":"mia@example.com"}]}},"Booking":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["pending","confirmed","cancelled","declined"]},"start_at":{"type":"string","format":"date-time"},"end_at":{"type":"string","format":"date-time"},"event_type_id":{"type":"string","format":"uuid"},"event_type_name":{"type":["string","null"]},"guest_name":{"type":"string"},"guest_email":{"type":"string","format":"email"},"guest_timezone":{"type":["string","null"]},"answers":{"type":"array","items":{}},"source":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"cancelled_at":{"type":["string","null"],"format":"date-time"},"cancelled_by":{"type":["string","null"],"enum":["guest","host","system",null]},"cancel_reason":{"type":["string","null"]}},"example":{"id":"4c3b2a19-8f7e-4d6c-9b5a-4e3d2c1b0a9f","status":"confirmed","start_at":"2026-11-20T23:00:00Z","end_at":"2026-11-20T23:30:00Z","event_type_id":"7a7a7a7a-0000-4000-8000-000000000001","event_type_name":"New patient consult","guest_name":"Mia Chen","guest_email":"mia@example.com","guest_timezone":"Australia/Sydney","answers":[],"source":"signature","created_at":"2026-11-18T10:02:00Z","cancelled_at":null,"cancelled_by":null,"cancel_reason":null}},"Signature":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"person":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"department":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"mobile":{"type":"string"},"website":{"type":"string"}}},"assigned_to":{"type":["string","null"],"format":"uuid"},"archived":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"example":{"id":"1e2d3c4b-5a69-4788-9a0b-1c2d3e4f5a6b","name":"Sam Lee","person":{"name":"Sam Lee","title":"Practice Manager","email":"sam@harbour.example"},"assigned_to":null,"archived":false,"created_at":"2026-10-01T00:00:00Z","updated_at":"2026-11-10T04:00:00Z"}},"Hook":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"event":{"type":"string","enum":["form_entry.created","booking.created","booking.cancelled","contact.created","contact.unsubscribed","email.bounced","client.created","invoice.sent","invoice.paid","quote.accepted","contract.signed"]},"target_url":{"type":"string","format":"uri"},"source":{"type":"string","enum":["zapier","make","other"]},"form_id":{"type":["string","null"],"format":"uuid"},"active":{"type":"boolean"},"disabled_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"last_sent_at":{"type":["string","null"],"format":"date-time"},"secret":{"type":"string","description":"Only in the answer that creates it."}},"example":{"id":"0d9c8b7a-6f5e-4d3c-8b2a-1f0e9d8c7b6a","event":"form_entry.created","target_url":"https://hooks.zapier.com/hooks/standard/123/abc/","source":"zapier","form_id":null,"active":true,"disabled_reason":null,"created_at":"2026-11-18T09:00:00Z","last_sent_at":null}},"Link":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"short_url":{"type":"string","format":"uri"},"destination_url":{"type":"string","format":"uri"},"title":{"type":["string","null"]},"folder":{"type":["string","null"]},"tags":{"type":"array","items":{"type":"string"}},"archived":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"}},"example":{"id":"5b4a3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d","slug":"spring","short_url":"https://sdash.co/spring","destination_url":"https://example.com/spring","title":"Spring offer","folder":"Campaigns","tags":["email"],"archived":false,"created_at":"2026-11-01T00:00:00Z"}},"LinkInput":{"type":"object","required":["destination_url"],"properties":{"destination_url":{"type":"string","format":"uri"},"title":{"type":"string"},"folder":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}}},"Event":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["click","scan","view","form_entry"]},"occurred_at":{"type":"string","format":"date-time"},"metric":{"type":"string"},"item":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]}}},"visitor":{"type":"object","additionalProperties":true},"source":{"type":"object","additionalProperties":true}},"example":{"id":"3f2e1d0c-9b8a-4776-8554-433221100fed","type":"click","occurred_at":"2026-11-18T09:40:00Z","metric":"short_link_click","item":{"type":"short_link","id":"5b4a3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d","name":"Spring offer"},"visitor":{"country":"AU","city":"Sydney","device":"mobile"},"source":{"referrer_host":"mail.google.com","utm_source":"signature"}}},"EmailInput":{"type":"object","required":["from","to","subject"],"properties":{"from":{"type":"string","description":"An address on one of your verified sending domains, like \"Harbour Dental <hello@harbour.example>\"."},"to":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"One address or a list. Up to 50 recipients across to, cc and bcc."},"cc":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Copies."},"bcc":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Hidden copies."},"reply_to":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Where replies go. Up to 10."},"subject":{"type":"string","description":"Up to 998 characters."},"html":{"type":"string","description":"The email as HTML. Send html, text or both."},"text":{"type":"string","description":"The plain text version."},"attachments":{"type":"array","maxItems":10,"description":"Up to 10 files, 3 MB in all (before base64). Not in batches.","items":{"type":"object","required":["filename","content"],"properties":{"filename":{"type":"string"},"content":{"type":"string","description":"The file, base64 encoded."},"content_type":{"type":"string","description":"Worked out from the file name if left out."}}}},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Extra headers, up to 20. From, To, Subject and the like are set for you."},"tags":{"type":"array","maxItems":10,"description":"Labels to find emails by in Logs and in webhooks. Letters, numbers, _ and - only.","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"}}}},"scheduled_at":{"type":"string","format":"date-time","description":"Send later, up to 30 days ahead. Not in batches. Cancel with POST /emails/{id}/cancel."},"type":{"type":"string","enum":["transactional","marketing"],"default":"transactional","description":"marketing needs a List-Unsubscribe header with your own link, and skips everyone on your suppression list. transactional still reaches people who unsubscribed from marketing, but never hard bounces, spam complaints or addresses you blocked. Opens and clicks are counted for marketing emails only: transactional emails keep their links as written."}}},"EmailCreated":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["sent","queued","scheduled","suppressed","failed"],"description":"sent: Amazon SES has it. queued: it goes within a minute. suppressed: every recipient is on your suppression list, so nothing was sent."},"suppressed":{"type":"array","items":{"type":"string","format":"email"},"description":"Recipients skipped because they are on your suppression list."}},"example":{"id":"9c1e7f30-2b4d-4a6e-8f10-3d5c7b9a1e2f","status":"sent","suppressed":[]}},"Email":{"type":"object","properties":{"object":{"type":"string","const":"email"},"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["scheduled","queued","sending","sent","delivered","bounced","complained","failed","cancelled","suppressed"],"description":"The most serious thing that happened to any recipient."},"type":{"type":"string","enum":["transactional","marketing"]},"from":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"reply_to":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"tags":{"type":"array","items":{"type":"object"}},"suppressed":{"type":"array","items":{"type":"string"}},"attachments":{"type":"array","items":{"type":"object"}},"scheduled_at":{"type":["string","null"],"format":"date-time"},"sent_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"last_event_at":{"type":["string","null"],"format":"date-time"},"opens":{"type":"integer"},"clicks":{"type":"integer"},"error":{"type":["string","null"]},"html":{"type":["string","null"]},"text":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"recipient":{"type":["string","null"]},"at":{"type":"string","format":"date-time"},"url":{"type":"string"},"detail":{"type":"string"}}}}},"example":{"object":"email","id":"9c1e7f30-2b4d-4a6e-8f10-3d5c7b9a1e2f","status":"delivered","type":"transactional","from":"Harbour Dental <hello@harbour.example>","to":["mia@example.com"],"cc":[],"bcc":[],"reply_to":[],"subject":"Your appointment is confirmed","tags":[{"name":"category","value":"confirmation"}],"suppressed":[],"attachments":[],"scheduled_at":null,"sent_at":"2026-11-18T09:15:02Z","created_at":"2026-11-18T09:15:01Z","last_event_at":"2026-11-18T09:15:04Z","opens":1,"clicks":0,"error":null,"html":"<p>See you on Thursday at 9am.</p>","text":"See you on Thursday at 9am.","events":[{"type":"queued","recipient":null,"at":"2026-11-18T09:15:01Z"},{"type":"sent","recipient":null,"at":"2026-11-18T09:15:02Z"},{"type":"delivered","recipient":"mia@example.com","at":"2026-11-18T09:15:04Z"},{"type":"opened","recipient":"mia@example.com","at":"2026-11-18T09:20:40Z"}]}},"EmailWebhook":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"],"maxLength":80,"description":"Optional label, like Order system."},"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["email.sent","email.delivered","email.bounced","email.complained","email.opened","email.clicked","email.failed"]}},"scope":{"type":"string","enum":["key","workspace"]},"active":{"type":"boolean"},"disabled_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"last_sent_at":{"type":["string","null"],"format":"date-time"},"secret":{"type":"string","description":"Only in the answer that creates it."}},"example":{"id":"5e4d3c2b-1a09-4f8e-9d7c-6b5a4f3e2d1c","name":"Order system","url":"https://yourapp.com/webhooks/email","events":["email.delivered","email.bounced","email.complained"],"scope":"key","active":true,"disabled_reason":null,"created_at":"2026-11-18T09:00:00Z","last_sent_at":null}},"SendingEvent":{"type":"object","properties":{"type":{"type":"string","enum":["email.sent","email.delivered","email.bounced","email.complained","email.opened","email.clicked","email.failed"]},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"email_id":{"type":"string","format":"uuid"},"from":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"tags":{"type":"array","items":{"type":"object"}},"type":{"type":"string"},"recipient":{"type":"string","description":"Who it happened to (not on email.sent and email.failed)."},"bounce":{"type":"object","properties":{"detail":{"type":"string"}}},"complaint":{"type":"object"},"click":{"type":"object","properties":{"link":{"type":"string"}}},"error":{"type":"string"}}}},"example":{"type":"email.bounced","created_at":"2026-11-18T09:15:05Z","data":{"email_id":"9c1e7f30-2b4d-4a6e-8f10-3d5c7b9a1e2f","from":"Harbour Dental <hello@harbour.example>","to":["old@example.com"],"subject":"Your appointment is confirmed","tags":[],"type":"transactional","recipient":"old@example.com","bounce":{"detail":"Permanent General"}}}},"Client":{"type":"object","description":"A Client Dash client.","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"company":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"kind":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"source":{"type":"string"},"created_at":{"type":"string","format":"date-time"}},"example":{"id":"7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","name":"Pat Lee","company":"Harbour Dental","email":"pat@harbour.example","phone":"","kind":"client","tags":[],"source":"manual","created_at":"2026-11-30T09:00:00Z"}},"Invoice":{"type":"object","description":"A Client Dash invoice.","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["sent","paid"]},"currency":{"type":"string"},"total_cents":{"type":"integer"},"amount_paid_cents":{"type":"integer"},"issue_date":{"type":"string","format":"date"},"due_date":{"type":["string","null"],"format":"date"},"sent_at":{"type":["string","null"],"format":"date-time"},"paid_at":{"type":["string","null"],"format":"date-time"},"client":{"anyOf":[{"$ref":"#/components/schemas/Client"},{"type":"null"}]}}},"Quote":{"type":"object","description":"A Client Dash quote.","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":"string"},"title":{"type":"string"},"currency":{"type":"string"},"total_cents":{"type":"integer"},"accepted_at":{"type":["string","null"],"format":"date-time"},"accepted_name":{"type":"string"},"client":{"anyOf":[{"$ref":"#/components/schemas/Client"},{"type":"null"}]}}},"Contract":{"type":"object","description":"A Client Dash contract.","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"signed_at":{"type":["string","null"],"format":"date-time"},"signer_name":{"type":"string"},"signer_email":{"type":"string"},"client":{"anyOf":[{"$ref":"#/components/schemas/Client"},{"type":"null"}]}}},"BouncedEmail":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string","format":"email"},"contact_id":{"type":["string","null"],"format":"uuid"},"campaign_id":{"type":["string","null"],"format":"uuid"},"automation_id":{"type":["string","null"],"format":"uuid"},"detail":{"type":["string","null"]},"occurred_at":{"type":"string","format":"date-time"}},"example":{"id":"81723","email":"old@example.com","contact_id":"6f1c2b8e-1d2a-4c5b-9e8f-0a1b2c3d4e5f","campaign_id":"8e7d6c5b-4a39-4281-9f0e-1d2c3b4a5f6e","automation_id":null,"detail":"Permanent: General","occurred_at":"2026-11-18T11:00:00Z"}}},"responses":{"E400":{"description":"Something in the request is wrong. The message says what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"bad_request","message":"email is required."}}}}},"E401":{"description":"No key, or the key is wrong or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"invalid_key","message":"This API key isn't valid. It may have been revoked. Check it, or make a new one in Account, API access (sending keys: Email sending, API keys)."}}}}},"E402":{"description":"Over the plan's allowance: contacts or links (plan_limit), or this month's emails (monthly_limit, never charged as extra).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"plan_limit","message":"That would take you over your plan's contact allowance."}}}}},"E403":{"description":"The plan or the key doesn't allow this. read_only: the key can only read. send_only / no_send: sending keys only send, other keys can't. domain_not_verified / domain_not_allowed: from isn't on a verified domain (or the key's one domain). sending_paused: too many bounces or complaints.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"read_only","message":"This key can only read. Make a key with read and write access to change things."}}}}},"E404":{"description":"Not found in this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"not_found","message":"No such contact in this account."}}}}},"E409":{"description":"A conflict: an Idempotency-Key used for a different request, an email that can no longer be cancelled, or something that already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"idempotency_conflict","message":"This Idempotency-Key was used for a different request in the last 24 hours. Use a new key for a new email."}}}}},"E413":{"description":"Too big: attachments over 3 MB in all, or a body over 1 MB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"too_large","message":"Attachments can add up to 3 MB per email."}}}}},"E429":{"description":"Over the key's limit for this minute (rate_limited): wait for the Retry-After header (seconds). Or over today's sending limit (daily_limit): try tomorrow.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"rate_limited","message":"Too many requests. This key allows 60 a minute."}}}}}}}}