Auth
verify
auth.verify
Retrieve the current key or connection
Risk: read
await corsair.formcarry.api.auth.verify({});
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | — |
key | object | null | No | — |
app | object | null | No | — |
scopes | string[] | null | No | — |
teams | object[] | null | No | — |
key full type
key full type
{
id?: string | null,
name?: string | null,
prefix?: string | null,
last4?: string | null,
kind?: string | null
} | null
app full type
app full type
{
id?: string | null,
name?: string | null
} | null
teams full type
teams full type
{
id?: string | null,
name?: string | null,
scopes?: string[] | null,
form_access?: {
mode?: string | null,
forms?: string[] | null
} | null
}[] | null
Email Servers
list
emailServers.list
List email servers
Risk: read
await corsair.formcarry.api.emailServers.list({});
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | Yes | — |
data full type
data full type
{
id?: string | null,
team_id?: string | null,
kind?: string | null,
name?: string | null,
host_or_domain?: string | null,
active?: boolean | null
}[]
Forms
create
forms.create
Create a form
Risk: write
await corsair.formcarry.api.forms.create({ body: { name: 'Contact' } });
| Name | Type | Required | Description |
|---|---|---|---|
body | object | Yes | — |
body full type
body full type
{
active?: boolean,
folder_id?: string | null,
storage?: {
store_submissions?: boolean,
keep_for?: 30_days | 60_days | 90_days | 180_days | 365_days | forever
},
spam?: {
protection?: boolean,
captcha?: {
provider?: none | recaptcha | hcaptcha | turnstile,
secret_key?: string | null,
secret_key_set?: boolean
}
},
self_email_notification?: {
enabled?: boolean,
recipients?: string[],
include_spam?: boolean,
subject?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: formcarry | custom,
theme?: formal | fancy,
html?: string | null
},
sender?: {
type?: formcarry | email_server | premium_server,
server_id?: string | null,
name?: string | null,
email?: string | null
}
},
auto_response?: {
enabled?: boolean,
subject?: string | null,
from_name?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: formcarry | custom,
theme?: formal | fancy,
message?: string | null,
html?: string | null
}
},
after_submit?: {
type?: formcarry_page | redirect,
page?: {
theme?: sweet | fancy | formal,
mode?: light | dark | system,
headline?: string | null,
message?: string | null,
logo_url?: string | null,
logo_dark_url?: string | null,
logo_size?: normal | big,
primary_color?: string | null,
secondary_color?: string | null,
return_button?: {
text?: string | null,
url?: string | null
},
download_button?: {
text?: string | null,
url?: string | null
}
},
redirect?: {
success_url?: string | null,
fail_url?: string | null,
append_submission_to_url?: boolean
}
},
validation?: {
enabled?: boolean,
rules?: {
field: string,
checks: {
type: required | email | url | phone_number | integer | min_length | max_length | contains | not_contains,
value?: string | null,
message?: string | null
}[]
}[]
},
team_id?: string,
name: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
team_id | string | null | No | — |
name | string | null | No | — |
endpoint | string | null | No | — |
active | boolean | null | No | — |
avatar | string | null | No | — |
folder_id | string | null | No | — |
created_at | string | null | No | — |
last_submission_at | string | null | No | — |
submissions | object | null | No | — |
storage | object | null | No | — |
spam | object | null | No | — |
self_email_notification | object | null | No | — |
auto_response | object | null | No | — |
after_submit | object | null | No | — |
webhooks | object[] | null | No | — |
validation | object | null | No | — |
submissions full type
submissions full type
{
this_month?: number | null,
all_time?: number | null
} | null
storage full type
storage full type
{
store_submissions?: boolean | null,
keep_for?: string | null
} | null
spam full type
spam full type
{
protection?: boolean | null,
captcha?: {
provider?: string | null,
secret_key?: string | null,
secret_key_set?: boolean | null
} | null
} | null
self_email_notification full type
self_email_notification full type
{
enabled?: boolean | null,
recipients?: string[] | null,
include_spam?: boolean | null,
subject?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: string | null,
theme?: string | null,
html?: string | null
} | null,
sender?: {
type?: string | null,
server_id?: string | null,
name?: string | null,
email?: string | null
} | null
} | null
auto_response full type
auto_response full type
{
enabled?: boolean | null,
subject?: string | null,
from_name?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: string | null,
theme?: string | null,
message?: string | null,
html?: string | null
} | null
} | null
after_submit full type
after_submit full type
{
type?: string | null,
page?: {
theme?: string | null,
mode?: string | null,
headline?: string | null,
message?: string | null,
logo_url?: string | null,
logo_dark_url?: string | null,
logo_size?: string | null,
primary_color?: string | null,
secondary_color?: string | null,
return_button?: {
text?: string | null,
url?: string | null
} | null,
download_button?: {
text?: string | null,
url?: string | null
} | null
} | null,
redirect?: {
success_url?: string | null,
fail_url?: string | null,
append_submission_to_url?: boolean | null
} | null
} | null
webhooks full type
webhooks full type
{
id?: string | null,
url?: string | null,
enabled?: boolean | null,
description?: string | null,
events?: string[] | null,
signing?: {
algorithm?: string | null,
header?: string | null
} | null,
last_delivery?: {
at?: string | null,
status?: string | null,
response_status?: number | null,
attempt?: number | null
} | null,
created_at?: string | null
}[] | null
validation full type
validation full type
{
enabled?: boolean | null,
rules?: {
field?: string | null,
checks?: {
type?: string | null,
value?: string | null,
message?: string | null
}[] | null
}[] | null
} | null
delete
forms.delete
Delete a form
Risk: destructive
await corsair.formcarry.api.forms.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
deleted | true | Yes | — |
get
forms.get
Retrieve a form
Risk: read
await corsair.formcarry.api.forms.get({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
team_id | string | null | No | — |
name | string | null | No | — |
endpoint | string | null | No | — |
active | boolean | null | No | — |
avatar | string | null | No | — |
folder_id | string | null | No | — |
created_at | string | null | No | — |
last_submission_at | string | null | No | — |
submissions | object | null | No | — |
storage | object | null | No | — |
spam | object | null | No | — |
self_email_notification | object | null | No | — |
auto_response | object | null | No | — |
after_submit | object | null | No | — |
webhooks | object[] | null | No | — |
validation | object | null | No | — |
submissions full type
submissions full type
{
this_month?: number | null,
all_time?: number | null
} | null
storage full type
storage full type
{
store_submissions?: boolean | null,
keep_for?: string | null
} | null
spam full type
spam full type
{
protection?: boolean | null,
captcha?: {
provider?: string | null,
secret_key?: string | null,
secret_key_set?: boolean | null
} | null
} | null
self_email_notification full type
self_email_notification full type
{
enabled?: boolean | null,
recipients?: string[] | null,
include_spam?: boolean | null,
subject?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: string | null,
theme?: string | null,
html?: string | null
} | null,
sender?: {
type?: string | null,
server_id?: string | null,
name?: string | null,
email?: string | null
} | null
} | null
auto_response full type
auto_response full type
{
enabled?: boolean | null,
subject?: string | null,
from_name?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: string | null,
theme?: string | null,
message?: string | null,
html?: string | null
} | null
} | null
after_submit full type
after_submit full type
{
type?: string | null,
page?: {
theme?: string | null,
mode?: string | null,
headline?: string | null,
message?: string | null,
logo_url?: string | null,
logo_dark_url?: string | null,
logo_size?: string | null,
primary_color?: string | null,
secondary_color?: string | null,
return_button?: {
text?: string | null,
url?: string | null
} | null,
download_button?: {
text?: string | null,
url?: string | null
} | null
} | null,
redirect?: {
success_url?: string | null,
fail_url?: string | null,
append_submission_to_url?: boolean | null
} | null
} | null
webhooks full type
webhooks full type
{
id?: string | null,
url?: string | null,
enabled?: boolean | null,
description?: string | null,
events?: string[] | null,
signing?: {
algorithm?: string | null,
header?: string | null
} | null,
last_delivery?: {
at?: string | null,
status?: string | null,
response_status?: number | null,
attempt?: number | null
} | null,
created_at?: string | null
}[] | null
validation full type
validation full type
{
enabled?: boolean | null,
rules?: {
field?: string | null,
checks?: {
type?: string | null,
value?: string | null,
message?: string | null
}[] | null
}[] | null
} | null
list
forms.list
List forms
Risk: read
await corsair.formcarry.api.forms.list({ limit: 10 });
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | No | — |
cursor | string | No | — |
team_id | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | Yes | — |
has_more | boolean | null | No | — |
next_cursor | string | null | No | — |
data full type
data full type
{
id?: string | null,
team_id?: string | null,
name?: string | null,
endpoint?: string | null,
active?: boolean | null,
avatar?: string | null,
folder_id?: string | null,
created_at?: string | null,
last_submission_at?: string | null,
submissions?: {
this_month?: number | null,
all_time?: number | null
} | null,
storage?: {
store_submissions?: boolean | null,
keep_for?: string | null
} | null,
spam?: {
protection?: boolean | null,
captcha?: {
provider?: string | null,
secret_key?: string | null,
secret_key_set?: boolean | null
} | null
} | null,
self_email_notification?: {
enabled?: boolean | null,
recipients?: string[] | null,
include_spam?: boolean | null,
subject?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: string | null,
theme?: string | null,
html?: string | null
} | null,
sender?: {
type?: string | null,
server_id?: string | null,
name?: string | null,
email?: string | null
} | null
} | null,
auto_response?: {
enabled?: boolean | null,
subject?: string | null,
from_name?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: string | null,
theme?: string | null,
message?: string | null,
html?: string | null
} | null
} | null,
after_submit?: {
type?: string | null,
page?: {
theme?: string | null,
mode?: string | null,
headline?: string | null,
message?: string | null,
logo_url?: string | null,
logo_dark_url?: string | null,
logo_size?: string | null,
primary_color?: string | null,
secondary_color?: string | null,
return_button?: {
text?: string | null,
url?: string | null
} | null,
download_button?: {
text?: string | null,
url?: string | null
} | null
} | null,
redirect?: {
success_url?: string | null,
fail_url?: string | null,
append_submission_to_url?: boolean | null
} | null
} | null,
webhooks?: {
id?: string | null,
url?: string | null,
enabled?: boolean | null,
description?: string | null,
events?: string[] | null,
signing?: {
algorithm?: string | null,
header?: string | null
} | null,
last_delivery?: {
at?: string | null,
status?: string | null,
response_status?: number | null,
attempt?: number | null
} | null,
created_at?: string | null
}[] | null,
validation?: {
enabled?: boolean | null,
rules?: {
field?: string | null,
checks?: {
type?: string | null,
value?: string | null,
message?: string | null
}[] | null
}[] | null
} | null
}[]
listFields
forms.listFields
List a form’s fields
Risk: read
await corsair.formcarry.api.forms.listFields({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | Yes | — |
submissions_read | number | null | No | — |
data full type
data full type
{
name?: string | null,
count?: number | null,
last_seen?: string | null
}[]
update
forms.update
Update a form
Risk: write
await corsair.formcarry.api.forms.update({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
body | object | Yes | — |
body full type
body full type
{
name?: string,
active?: boolean,
folder_id?: string | null,
storage?: {
store_submissions?: boolean,
keep_for?: 30_days | 60_days | 90_days | 180_days | 365_days | forever
},
spam?: {
protection?: boolean,
captcha?: {
provider?: none | recaptcha | hcaptcha | turnstile,
secret_key?: string | null,
secret_key_set?: boolean
}
},
self_email_notification?: {
enabled?: boolean,
recipients?: string[],
include_spam?: boolean,
subject?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: formcarry | custom,
theme?: formal | fancy,
html?: string | null
},
sender?: {
type?: formcarry | email_server | premium_server,
server_id?: string | null,
name?: string | null,
email?: string | null
}
},
auto_response?: {
enabled?: boolean,
subject?: string | null,
from_name?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: formcarry | custom,
theme?: formal | fancy,
message?: string | null,
html?: string | null
}
},
after_submit?: {
type?: formcarry_page | redirect,
page?: {
theme?: sweet | fancy | formal,
mode?: light | dark | system,
headline?: string | null,
message?: string | null,
logo_url?: string | null,
logo_dark_url?: string | null,
logo_size?: normal | big,
primary_color?: string | null,
secondary_color?: string | null,
return_button?: {
text?: string | null,
url?: string | null
},
download_button?: {
text?: string | null,
url?: string | null
}
},
redirect?: {
success_url?: string | null,
fail_url?: string | null,
append_submission_to_url?: boolean
}
},
validation?: {
enabled?: boolean,
rules?: {
field: string,
checks: {
type: required | email | url | phone_number | integer | min_length | max_length | contains | not_contains,
value?: string | null,
message?: string | null
}[]
}[]
}
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
team_id | string | null | No | — |
name | string | null | No | — |
endpoint | string | null | No | — |
active | boolean | null | No | — |
avatar | string | null | No | — |
folder_id | string | null | No | — |
created_at | string | null | No | — |
last_submission_at | string | null | No | — |
submissions | object | null | No | — |
storage | object | null | No | — |
spam | object | null | No | — |
self_email_notification | object | null | No | — |
auto_response | object | null | No | — |
after_submit | object | null | No | — |
webhooks | object[] | null | No | — |
validation | object | null | No | — |
submissions full type
submissions full type
{
this_month?: number | null,
all_time?: number | null
} | null
storage full type
storage full type
{
store_submissions?: boolean | null,
keep_for?: string | null
} | null
spam full type
spam full type
{
protection?: boolean | null,
captcha?: {
provider?: string | null,
secret_key?: string | null,
secret_key_set?: boolean | null
} | null
} | null
self_email_notification full type
self_email_notification full type
{
enabled?: boolean | null,
recipients?: string[] | null,
include_spam?: boolean | null,
subject?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: string | null,
theme?: string | null,
html?: string | null
} | null,
sender?: {
type?: string | null,
server_id?: string | null,
name?: string | null,
email?: string | null
} | null
} | null
auto_response full type
auto_response full type
{
enabled?: boolean | null,
subject?: string | null,
from_name?: string | null,
logo_url?: string | null,
logo_height?: number | null,
template?: {
type?: string | null,
theme?: string | null,
message?: string | null,
html?: string | null
} | null
} | null
after_submit full type
after_submit full type
{
type?: string | null,
page?: {
theme?: string | null,
mode?: string | null,
headline?: string | null,
message?: string | null,
logo_url?: string | null,
logo_dark_url?: string | null,
logo_size?: string | null,
primary_color?: string | null,
secondary_color?: string | null,
return_button?: {
text?: string | null,
url?: string | null
} | null,
download_button?: {
text?: string | null,
url?: string | null
} | null
} | null,
redirect?: {
success_url?: string | null,
fail_url?: string | null,
append_submission_to_url?: boolean | null
} | null
} | null
webhooks full type
webhooks full type
{
id?: string | null,
url?: string | null,
enabled?: boolean | null,
description?: string | null,
events?: string[] | null,
signing?: {
algorithm?: string | null,
header?: string | null
} | null,
last_delivery?: {
at?: string | null,
status?: string | null,
response_status?: number | null,
attempt?: number | null
} | null,
created_at?: string | null
}[] | null
validation full type
validation full type
{
enabled?: boolean | null,
rules?: {
field?: string | null,
checks?: {
type?: string | null,
value?: string | null,
message?: string | null
}[] | null
}[] | null
} | null
uploadImage
forms.uploadImage
Upload an image
Risk: write
await corsair.formcarry.api.forms.uploadImage({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
body | object | Yes | — |
body full type
body full type
{
file: string,
use: self_email_notification_logo | auto_response_logo | after_submit_logo | after_submit_logo_dark,
name?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | — |
Health
check
health.check
Check that the API is up
Risk: read
await corsair.formcarry.api.health.check({});
| Name | Type | Required | Description |
|---|---|---|---|
status | ok | Yes | — |
Legacy
createForm
legacy.createForm
Create a form with the legacy API
Risk: write
await corsair.formcarry.api.legacy.createForm({});
| Name | Type | Required | Description |
|---|---|---|---|
body | object | Yes | — |
body full type
body full type
{
name: string,
email?: string,
returnUrl?: string,
failUrl?: string,
returnParams?: boolean,
googleRecaptcha?: string,
webhook?: string,
retention?: boolean,
thankYouPage_theme?: Fancy | Formal | Sweet,
thankYouPage_headline?: string,
thankYouPage_message?: string,
thankYouPage_mode?: Dark | System | Light,
thankYouPage_returnText?: string,
thankYouPage_returnUrl?: string,
selfEmail_theme?: Fancy | Formal | Custom,
selfEmail_code?: string,
selfEmail_from?: string,
selfEmail_subject?: string,
selfEmail_sendOnSpam?: boolean,
autoResponse?: boolean,
autoResponse_from?: string,
autoResponse_theme?: Fancy | Formal | Custom,
autoResponse_subject?: string,
autoResponse_message?: string,
autoResponse_code?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
code | 200 | Yes | — |
type | success | Yes | — |
title | string | null | No | — |
message | string | null | No | — |
formUrl | string | null | No | — |
deleteForm
legacy.deleteForm
Delete a form with the legacy API
Risk: destructive
await corsair.formcarry.api.legacy.deleteForm({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
code | 200 | Yes | — |
type | success | Yes | — |
title | string | null | No | — |
message | string | null | No | — |
listSubmissions
legacy.listSubmissions
List form submissions with legacy page numbers
Risk: read
await corsair.formcarry.api.legacy.listSubmissions({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
page | number | No | — |
limit | number | No | — |
sort | string | No | — |
filter | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
form | string | null | No | — |
results | number | null | No | — |
pagination | object | null | No | — |
submissions | object[] | Yes | — |
pagination full type
pagination full type
{
current_page?: number | null,
previous_page?: number | null,
next_page?: number | null,
total_page?: number | null,
total_submissions?: number | null
} | null
submissions full type
submissions full type
{
_id?: string | null
}[]
verify
legacy.verify
Call the legacy auth route. It answers success for any key, so use auth.verify to check a key
Risk: read
await corsair.formcarry.api.legacy.verify({});
| Name | Type | Required | Description |
|---|---|---|---|
status | success | Yes | — |
message | string | null | No | — |
Recipients
add
recipients.add
Add a recipient
Risk: destructive
await corsair.formcarry.api.recipients.add({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
body | object | Yes | — |
body full type
body full type
{
email: string
}
| Name | Type | Required | Description |
|---|---|---|---|
recipients | string[] | Yes | — |
pending_approval | string[] | null | No | — |
remove
recipients.remove
Remove a recipient
Risk: destructive
await corsair.formcarry.api.recipients.remove({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
email | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
recipients | string[] | Yes | — |
pending_approval | string[] | null | No | — |
Submissions
delete
submissions.delete
Delete a submission
Risk: destructive
await corsair.formcarry.api.submissions.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
submission_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
deleted | true | Yes | — |
get
submissions.get
Retrieve a submission
Risk: read
await corsair.formcarry.api.submissions.get({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
submission_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
form_id | string | null | No | — |
created_at | string | null | No | — |
spam | boolean | null | No | — |
read | boolean | null | No | — |
ip | string | null | No | — |
country | string | null | No | — |
user_agent | string | null | No | — |
referer | string | null | No | — |
fields | object[] | null | No | — |
attachments | object[] | null | No | — |
fields full type
fields full type
{
key?: string | null,
value?: string | null
}[] | null
attachments full type
attachments full type
{
key?: string | null,
url?: string | null,
mime_type?: string | null
}[] | null
list
submissions.list
List submissions
Risk: read
await corsair.formcarry.api.submissions.list({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
status | inbox | spam | all | No | — |
read | true | false | No | — |
has_attachments | true | false | No | — |
created_after | string | No | — |
created_before | string | No | — |
country | string | No | — |
q | string | No | — |
order | newest | oldest | No | — |
limit | number | No | — |
cursor | string | No | — |
fields | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | Yes | — |
has_more | boolean | null | No | — |
next_cursor | string | null | No | — |
data full type
data full type
{
id?: string | null,
form_id?: string | null,
created_at?: string | null,
spam?: boolean | null,
read?: boolean | null,
ip?: string | null,
country?: string | null,
user_agent?: string | null,
referer?: string | null,
fields?: {
key?: string | null,
value?: string | null
}[] | null,
attachments?: {
key?: string | null,
url?: string | null,
mime_type?: string | null
}[] | null
}[]
listDeliveries
submissions.listDeliveries
Read what happened to submissions
Risk: read
await corsair.formcarry.api.submissions.listDeliveries({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
submission_ids | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | Yes | — |
data full type
data full type
{
submission_id?: string | null,
status?: string | null,
deliveries?: {
channel?: string | null,
target?: string | null,
webhook_id?: string | null,
name?: string | null,
status?: string | null,
code?: string | null,
attempt?: number | null,
http_status?: number | null,
smtp_code?: number | null,
node_error_code?: string | null,
message?: string | null,
occurred_at?: string | null
}[] | null
}[]
restore
submissions.restore
Restore a submission from spam
Risk: write
await corsair.formcarry.api.submissions.restore({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
submission_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
form_id | string | null | No | — |
created_at | string | null | No | — |
spam | boolean | null | No | — |
read | boolean | null | No | — |
ip | string | null | No | — |
country | string | null | No | — |
user_agent | string | null | No | — |
referer | string | null | No | — |
fields | object[] | null | No | — |
attachments | object[] | null | No | — |
fields full type
fields full type
{
key?: string | null,
value?: string | null
}[] | null
attachments full type
attachments full type
{
key?: string | null,
url?: string | null,
mime_type?: string | null
}[] | null
search
submissions.search
Search submissions across forms
Risk: read
await corsair.formcarry.api.submissions.search({});
| Name | Type | Required | Description |
|---|---|---|---|
status | inbox | spam | all | No | — |
read | true | false | No | — |
has_attachments | true | false | No | — |
created_after | string | No | — |
created_before | string | No | — |
country | string | No | — |
q | string | No | — |
order | newest | oldest | No | — |
limit | number | No | — |
fields | string | No | — |
team_id | string | No | — |
form_ids | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | Yes | — |
forms_searched | number | null | No | — |
forms_matched | number | null | No | — |
complete | boolean | null | No | — |
data full type
data full type
{
id?: string | null,
form_id?: string | null,
created_at?: string | null,
spam?: boolean | null,
read?: boolean | null,
ip?: string | null,
country?: string | null,
user_agent?: string | null,
referer?: string | null,
fields?: {
key?: string | null,
value?: string | null
}[] | null,
attachments?: {
key?: string | null,
url?: string | null,
mime_type?: string | null
}[] | null
}[]
spam
submissions.spam
Mark a submission as spam
Risk: write
await corsair.formcarry.api.submissions.spam({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
submission_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
form_id | string | null | No | — |
created_at | string | null | No | — |
spam | boolean | null | No | — |
read | boolean | null | No | — |
ip | string | null | No | — |
country | string | null | No | — |
user_agent | string | null | No | — |
referer | string | null | No | — |
fields | object[] | null | No | — |
attachments | object[] | null | No | — |
fields full type
fields full type
{
key?: string | null,
value?: string | null
}[] | null
attachments full type
attachments full type
{
key?: string | null,
url?: string | null,
mime_type?: string | null
}[] | null
summary
submissions.summary
Count submissions
Risk: read
await corsair.formcarry.api.submissions.summary({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
status | inbox | spam | all | No | — |
read | true | false | No | — |
has_attachments | true | false | No | — |
created_after | string | No | — |
created_before | string | No | — |
country | string | No | — |
q | string | No | — |
group_by | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
total | number | Yes | — |
exact | boolean | null | No | — |
group_by | string | null | No | — |
buckets | object[] | null | No | — |
other | number | null | No | — |
truncated | boolean | null | No | — |
buckets full type
buckets full type
{
key?: string | null,
count?: number | null
}[] | null
Webhook Deliveries
get
webhookDeliveries.get
Retrieve a delivery
Risk: read
await corsair.formcarry.api.webhookDeliveries.get({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
webhook_id | string | Yes | — |
submission_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
submission_id | string | null | No | — |
webhook_id | string | null | No | — |
status | string | null | No | — |
code | string | null | No | — |
attempt | number | null | No | — |
http_status | number | null | No | — |
node_error_code | string | null | No | — |
message | string | null | No | — |
occurred_at | string | null | No | — |
list
webhookDeliveries.list
List deliveries
Risk: read
await corsair.formcarry.api.webhookDeliveries.list({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
webhook_id | string | Yes | — |
status | succeeded | failed | retrying | pending | skipped | No | — |
limit | number | No | — |
before | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | Yes | — |
has_more | boolean | null | No | — |
data full type
data full type
{
submission_id?: string | null,
webhook_id?: string | null,
status?: string | null,
code?: string | null,
attempt?: number | null,
http_status?: number | null,
node_error_code?: string | null,
message?: string | null,
occurred_at?: string | null
}[]
redeliver
webhookDeliveries.redeliver
Send a submission again
Risk: destructive
await corsair.formcarry.api.webhookDeliveries.redeliver({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
webhook_id | string | Yes | — |
submission_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
submission_id | string | null | No | — |
webhook_id | string | null | No | — |
queued | true | Yes | — |
Webhooks
create
webhooks.create
Add a webhook
Risk: write
await corsair.formcarry.api.webhooks.create({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
body | object | Yes | — |
body full type
body full type
{
url: string,
enabled?: boolean,
description?: string | null,
events?: submission.created[]
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
url | string | null | No | — |
enabled | boolean | null | No | — |
description | string | null | No | — |
events | string[] | null | No | — |
signing | object | null | No | — |
last_delivery | object | null | No | — |
created_at | string | null | No | — |
secret | string | Yes | — |
signing full type
signing full type
{
algorithm?: string | null,
header?: string | null
} | null
last_delivery full type
last_delivery full type
{
at?: string | null,
status?: string | null,
response_status?: number | null,
attempt?: number | null
} | null
delete
webhooks.delete
Delete a webhook
Risk: destructive
await corsair.formcarry.api.webhooks.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
webhook_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
deleted | true | Yes | — |
get
webhooks.get
Retrieve a webhook
Risk: read
await corsair.formcarry.api.webhooks.get({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
webhook_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
url | string | null | No | — |
enabled | boolean | null | No | — |
description | string | null | No | — |
events | string[] | null | No | — |
signing | object | null | No | — |
last_delivery | object | null | No | — |
created_at | string | null | No | — |
signing full type
signing full type
{
algorithm?: string | null,
header?: string | null
} | null
last_delivery full type
last_delivery full type
{
at?: string | null,
status?: string | null,
response_status?: number | null,
attempt?: number | null
} | null
list
webhooks.list
List webhooks
Risk: read
await corsair.formcarry.api.webhooks.list({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | Yes | — |
data full type
data full type
{
id?: string | null,
url?: string | null,
enabled?: boolean | null,
description?: string | null,
events?: string[] | null,
signing?: {
algorithm?: string | null,
header?: string | null
} | null,
last_delivery?: {
at?: string | null,
status?: string | null,
response_status?: number | null,
attempt?: number | null
} | null,
created_at?: string | null
}[]
update
webhooks.update
Update a webhook
Risk: write
await corsair.formcarry.api.webhooks.update({});
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | Yes | — |
webhook_id | string | Yes | — |
body | object | Yes | — |
body full type
body full type
{
url?: string,
enabled?: boolean,
description?: string | null,
events?: submission.created[]
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
url | string | null | No | — |
enabled | boolean | null | No | — |
description | string | null | No | — |
events | string[] | null | No | — |
signing | object | null | No | — |
last_delivery | object | null | No | — |
created_at | string | null | No | — |
signing full type
signing full type
{
algorithm?: string | null,
header?: string | null
} | null
last_delivery full type
last_delivery full type
{
at?: string | null,
status?: string | null,
response_status?: number | null,
attempt?: number | null
} | null