Update form hook
PUT
/api/v0/form-hooks/{form_hook_uuid}- Path parameters:
- Request body:
Allowed values:
no_markspamham- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/form-hooks/{form_hook_uuid} \ -X PUT \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "explicitly_marked_status": "no_mark" }' - Responses:
200OK
JSONCopied to clipboard{ "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "sent": true, "recaptcha": true, "ip": "string", "host": "string", "data": {}, "timings": {}, "error": "string", "explicitly_marked_status": "no_mark", "automatically_marked_spam": true, "last_sent_at": "2024-01-01T00:00:00Z", "cleared_at": "2024-01-01T00:00:00Z", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "inbox_uuid": "string", "site_uuid": "00000000-0000-0000-0000-000000000000" }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Clear form hook
DELETE
/api/v0/form-hooks/{form_hook_uuid}- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/form-hooks/{form_hook_uuid} \ -X DELETE \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "sent": true, "recaptcha": true, "ip": "string", "host": "string", "data": {}, "timings": {}, "error": "string", "explicitly_marked_status": "no_mark", "automatically_marked_spam": true, "last_sent_at": "2024-01-01T00:00:00Z", "cleared_at": "2024-01-01T00:00:00Z", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "inbox_uuid": "string", "site_uuid": "00000000-0000-0000-0000-000000000000" }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Resend form hook
POST
/api/v0/form-hooks/{form_hook_uuid}/send- Path parameters:
- Request body:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/form-hooks/{form_hook_uuid}/send \ -X POST \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "inbox_target_uuid": "00000000-0000-0000-0000-000000000000" }' - Responses:
204Queued
401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }
List form hook sends
GET
/api/v0/form-hooks/{form_hook_uuid}/sends- Path parameters:
- Query parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/form-hooks/{form_hook_uuid}/sends \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard[ { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "success": true, "error": "string", "inbox_target": { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "target_type": "string", "target": "string", "validated": true, "config": {}, "inbox_uuid": "00000000-0000-0000-0000-000000000000", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z" }, "form_hook": { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "sent": true, "recaptcha": true, "ip": "string", "host": "string", "data": {}, "timings": {}, "error": "string", "explicitly_marked_status": "no_mark", "automatically_marked_spam": true, "last_sent_at": "2024-01-01T00:00:00Z", "cleared_at": "2024-01-01T00:00:00Z", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "inbox_uuid": "string", "site_uuid": "00000000-0000-0000-0000-000000000000" } } ]401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }