Get an Inbox's details
/api/v0/inboxes/{inbox_uuid}- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/inboxes/{inbox_uuid} \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "name": "string", "key": "string", "monthly_quota": 0, "keep_form_hook_days": 0, "organisation_id": 0, "captcha_type": "string", "captcha_key": "string", "captcha_secret": "string", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "organisation_uuid": "00000000-0000-0000-0000-000000000000", "inbox_targets": [ { "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" } ] }403Forbidden
JSONCopied to clipboard{ "error": "string" }
Update an Inbox's details
/api/v0/inboxes/{inbox_uuid}- Path parameters:
- Request body:
A name for the Inbox.
The Inbox's unique key.
The maximum number of submissions to accept per month.
The number of days to retain submissions.
The captcha provider's site key.
The captcha provider's secret key.
The captcha provider: google (reCAPTCHA), hcaptcha, or turnstile.
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/inboxes/{inbox_uuid} \ -X PUT \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "key": "string", "monthly_quota": 0, "keep_form_hook_days": 0, "captcha_key": "string", "captcha_secret": "string", "captcha_type": "string" }' - Responses:
200OK
JSONCopied to clipboard{ "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "name": "string", "key": "string", "monthly_quota": 0, "keep_form_hook_days": 0, "organisation_id": 0, "captcha_type": "string", "captcha_key": "string", "captcha_secret": "string", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "organisation_uuid": "00000000-0000-0000-0000-000000000000", "inbox_targets": [ { "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" } ] }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Delete an Inbox
/api/v0/inboxes/{inbox_uuid}- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/inboxes/{inbox_uuid} \ -X DELETE \ -H "X-API-KEY: <your-api-key>" - Responses:
204Deleted
401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }
Export an Inbox's submissions as CSV
/api/v0/inboxes/{inbox_uuid}/export- Path parameters:
- Filters:
Filter submissions by category
Allowed values:
spamsenterroredpending- Sorting:
Attribute to sort the results by
Defaults to:
"created_at"Allowed values:
last_sent_atcreated_atiduuidDirection to sort the results
Defaults to:
"DESC"Allowed values:
ASCDESC- Pagination:
Page number to fetch (1-indexed)
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/inboxes/{inbox_uuid}/export \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }
List an Inbox's Form Hooks
/api/v0/inboxes/{inbox_uuid}/form-hooks- Path parameters:
- Filters:
Filter Form Hooks by category
Allowed values:
spamsenterroredpending- Sorting:
Attribute to sort the results by
Defaults to:
"created_at"Allowed values:
last_sent_atcreated_atiduuidDirection to sort the results
Defaults to:
"DESC"Allowed values:
ASCDESC- Pagination:
Page number to fetch (1-indexed)
Number of items per page
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/inboxes/{inbox_uuid}/form-hooks \ -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" }
List an Inbox's Targets
/api/v0/inboxes/{inbox_uuid}/targets- Path parameters:
- Query parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/inboxes/{inbox_uuid}/targets \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard[ { "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" } ]403Forbidden
JSONCopied to clipboard{ "error": "string" }
Create an Inbox Target
/api/v0/inboxes/{inbox_uuid}/targets- Path parameters:
- Request body:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/inboxes/{inbox_uuid}/targets \ -X POST \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "target_type": "string", "target": "string", "config": {} }' - Responses:
201Created
JSONCopied to clipboard{ "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" }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
View a file uploaded to an Inbox
/api/v0/inboxes/{inbox_uuid}/upload/{key}- Path parameters:
The uploaded file's key
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/inboxes/{inbox_uuid}/upload/{key} \ -H "X-API-KEY: <your-api-key>" - Responses:
303Redirect
401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }404Not Found
JSONCopied to clipboard{ "error": "string" }