{"catalog_version":1,"app":"programmable.contact","openapi":"https://programmable.contact/openapi.json","subscribe":{"method":"POST","url":"https://programmable.contact/api/v1/webhooks","body":"{ url, events? }","key":"full","secret":"Made here and returned once in the answer (whsec_…)."},"delivery":{"envelope":"{ id, type, created_at, data }","id":"The event's id: the same at every endpoint and on every retry.","headers":{"X-Programmable-Signature":"t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" keyed by the whole whsec_… string>","X-Programmable-Id":"The delivery's id: one per event per endpoint, the same on every retry.","X-Programmable-Event":"The event's type."},"success":"Any 2xx within 10 seconds. Redirects are not followed.","retries":"After 1, 5, 30, 120, 360 minutes, then the delivery has failed. Twenty failures in a row turn the webhook off.","personal_data":"No event carries an email address or a name. Each names a contact by id; read more with a key that may."},"events":[{"type":"contact.created","description":"A new person is on record: an app reported an account, someone answered a prompt or signed up on a form, or someone in the workspace added them by hand.","data_schema":{"type":"object","properties":{"contact_id":{"type":"string","description":"The contact's id (GET /api/v1/contacts/{id}).","format":"uuid"},"source":{"type":"string","description":"Where they came from: app:<key>, form:<key>, import:<label>, or operator (added by hand in the dashboard)."}},"required":["contact_id"]},"sample":{"contact_id":"7d9f3c1e-2b4a-4c6d-8e0f-1a2b3c4d5e6f","source":"app:talk"}},{"type":"lead.created","description":"Someone signed up on a form and was sent a link to confirm. Nothing is subscribed until they do (lead.confirmed).","data_schema":{"type":"object","properties":{"contact_id":{"type":"string","description":"The contact's id (GET /api/v1/contacts/{id}).","format":"uuid"},"form":{"type":"string","description":"The form's key."},"topics":{"type":"array","items":{"type":"string"}}},"required":["contact_id","form","topics"]},"sample":{"contact_id":"7d9f3c1e-2b4a-4c6d-8e0f-1a2b3c4d5e6f","form":"newsletter","topics":["newsletter"]}},{"type":"contact.subscribed","description":"A person said yes to a topic: in an app's consent prompt, by confirming a sign-up, or in their email preferences.","data_schema":{"type":"object","properties":{"contact_id":{"type":"string","description":"The contact's id (GET /api/v1/contacts/{id}).","format":"uuid"},"topic":{"type":"string","description":"The topic's key."},"basis":{"type":"string","description":"How: express, double_opt_in or imported."}},"required":["contact_id","topic","basis"]},"sample":{"contact_id":"7d9f3c1e-2b4a-4c6d-8e0f-1a2b3c4d5e6f","topic":"newsletter","basis":"double_opt_in"}},{"type":"contact.unsubscribed","description":"A person stopped a topic, or all optional email (topic is then null).","data_schema":{"type":"object","properties":{"contact_id":{"type":"string","description":"The contact's id (GET /api/v1/contacts/{id}).","format":"uuid"},"topic":{"type":["string","null"],"description":"The topic's key, or null for all optional email."},"how":{"type":"string","description":"preference_centre, one_click, app, api, import, operator or merge."}},"required":["contact_id","topic"]},"sample":{"contact_id":"7d9f3c1e-2b4a-4c6d-8e0f-1a2b3c4d5e6f","topic":null,"how":"one_click"}},{"type":"lead.confirmed","description":"Someone who signed up on a form confirmed their address, and is now a contact subscribed to what they asked for.","data_schema":{"type":"object","properties":{"contact_id":{"type":"string","description":"The contact's id (GET /api/v1/contacts/{id}).","format":"uuid"},"form":{"type":"string","description":"The form's key."},"topics":{"type":"array","items":{"type":"string"}}},"required":["contact_id","form","topics"]},"sample":{"contact_id":"7d9f3c1e-2b4a-4c6d-8e0f-1a2b3c4d5e6f","form":"newsletter","topics":["newsletter"]}},{"type":"import.staged","description":"An API key staged a list of subscribers. Nobody is added until an owner or admin approves it in the dashboard; a list nobody decides on is deleted after 30 days.","data_schema":{"type":"object","properties":{"import_id":{"type":"string","description":"The staged list's id (GET /api/v1/subscribers/import/{id}).","format":"uuid"},"topic":{"type":"string","description":"The topic's key."},"basis":{"type":"string","description":"double_opt_in or imported."},"rows":{"type":"integer","description":"How many rows were sent."}},"required":["import_id","topic","basis","rows"]},"sample":{"import_id":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","topic":"newsletter","basis":"double_opt_in","rows":120}},{"type":"contact.erased","description":"A person's record was erased at their request or an operator's. Delete anything you keep under this contact id; it will never be used again.","data_schema":{"type":"object","properties":{"contact_id":{"type":"string","description":"The contact's id (GET /api/v1/contacts/{id}).","format":"uuid"}},"required":["contact_id"]},"sample":{"contact_id":"7d9f3c1e-2b4a-4c6d-8e0f-1a2b3c4d5e6f"}},{"type":"message.bounced","description":"A message could not be delivered and the address is now stopped (a permanent bounce).","data_schema":{"type":"object","properties":{"contact_id":{"type":["string","null"],"description":"The contact, when the message was to one."},"message_id":{"type":"string","description":"The message's id.","format":"uuid"},"kind":{"type":"string","description":"confirmation, test, campaign, lifecycle or sequence."}},"required":["message_id","kind"]},"sample":{"contact_id":"7d9f3c1e-2b4a-4c6d-8e0f-1a2b3c4d5e6f","message_id":"0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e","kind":"campaign"}},{"type":"message.complained","description":"A recipient marked a message as spam. The address is stopped and is never started again.","data_schema":{"type":"object","properties":{"contact_id":{"type":["string","null"],"description":"The contact, when the message was to one."},"message_id":{"type":"string","description":"The message's id.","format":"uuid"},"kind":{"type":"string","description":"confirmation, test, campaign, lifecycle or sequence."}},"required":["message_id","kind"]},"sample":{"contact_id":"7d9f3c1e-2b4a-4c6d-8e0f-1a2b3c4d5e6f","message_id":"0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e","kind":"campaign"}},{"type":"campaign.finished","description":"Every recipient of a campaign has been tried. Counts are by outcome at that moment; bounces and complaints can still arrive.","data_schema":{"type":"object","properties":{"campaign_id":{"type":"string","description":"The campaign's id.","format":"uuid"},"name":{"type":"string","description":"Its name."},"topic":{"type":"string","description":"The topic it was sent under."},"results":{"type":"object","additionalProperties":{"type":"integer"},"description":"Messages by outcome."}},"required":["campaign_id","results"]},"sample":{"campaign_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","name":"November news","topic":"newsletter","results":{"sent":412,"refused":3}}},{"type":"reply.received","description":"A person replied to a campaign, sequence or lifecycle email (only for a workspace with replies on). The words are read with GET /api/v1/replies; this event carries ids and flags only. A reply that seems to ask to stop is flagged, never acted on: nothing about their consent changed.","data_schema":{"type":"object","properties":{"reply_id":{"type":"string","description":"The reply's id (GET /api/v1/replies).","format":"uuid"},"contact_id":{"type":"string","description":"The contact's id (GET /api/v1/contacts/{id}).","format":"uuid"},"message_id":{"type":"string","description":"The message it answers.","format":"uuid"},"kind":{"type":"string","description":"What that message was: campaign, lifecycle or sequence."},"auto_reply":{"type":"boolean","description":"An automatic answer (an out-of-office, an auto-responder, a delivery report), not a person's reply. It ends no sequence."},"unsubscribe_intent":{"type":"boolean","description":"It seems to ask to stop. For a person to read and act on; nothing was stopped."},"sequences_ended":{"type":"integer","description":"How many of their places in sequences it ended (stop-on-reply)."}},"required":["reply_id","contact_id","message_id","kind","auto_reply","unsubscribe_intent","sequences_ended"]},"sample":{"reply_id":"9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b","contact_id":"7d9f3c1e-2b4a-4c6d-8e0f-1a2b3c4d5e6f","message_id":"0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e","kind":"sequence","auto_reply":false,"unsubscribe_intent":false,"sequences_ended":1}},{"type":"ping","description":"A test, sent when someone presses Send a test. Nothing happened.","data_schema":{"type":"object","properties":{"message":{"type":"string","description":"A fixed sentence."}},"required":["message"]},"sample":{"message":"A test from Programmable Contact."}}]}