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_config": { "project_id": "string", "min_score": 0, "send_sitekey": true }, "allow_uploads": true, "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "organisation_uuid": "00000000-0000-0000-0000-000000000000", "has_captcha_secret": true, "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 number of days to retain submissions.
The captcha provider's site key.
The captcha provider's secret key, or the Google Cloud API key for google_enterprise.
The captcha provider: google (reCAPTCHA), google_enterprise (reCAPTCHA Enterprise), hcaptcha, or turnstile.
Options for the captcha provider: project_id is the Google Cloud project that holds the reCAPTCHA key, required for google_enterprise; min_score (0 to 1, default 0.5) rejects lower-scoring tokens for google and google_enterprise; send_sitekey (default true) tells hcaptcha which site key to expect. Keys you send are merged into the stored options, a key sent as null is removed, null for the whole object clears it, and keys for other providers are dropped.
Whether forms on this inbox accept file uploads.
- 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", "keep_form_hook_days": 0, "captcha_key": "string", "captcha_secret": "string", "captcha_type": "string", "captcha_config": { "project_id": "string", "min_score": 0, "send_sitekey": true }, "allow_uploads": true }' - 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_config": { "project_id": "string", "min_score": 0, "send_sitekey": true }, "allow_uploads": true, "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z", "organisation_uuid": "00000000-0000-0000-0000-000000000000", "has_captcha_secret": true, "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" }
Start an Inbox's submissions CSV export#
/api/v0/inboxes/{inbox_uuid}/export- Path parameters:
- Query parameters:
Filter submissions by category
Allowed values:
spamsentforwardederroredpendingOnly export the submissions with these UUIDs
- 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
JSONCopied to clipboard{ "status": "string", "token": "string" }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }
Get the status of an Inbox's submissions CSV export#
/api/v0/inboxes/{inbox_uuid}/export/{token}- Path parameters:
The export token returned when the export was started
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/inboxes/{inbox_uuid}/export/{token} \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "status": "string", "url": "string", "error": "string" }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:
spamsentforwardederroredpending- 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, "spam_checked": 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:
The integration type: email, webhook, zapier, make, ifttt, slack, discord, teams, hubspot, n8n, pipedream, integromat, automate.
The destination: an email address, or the integration's webhook URL.
Additional configuration options for the target.
- 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" }