Skip to content

List a site's forms

GET
/api/v1/sites/{site}/forms
curl --request GET \
--url https://digize.com/api/v1/sites/example/forms \
--header 'x-api-key: <x-api-key>'

The forms a site sends to Digize, the oldest first: each one’s label, the tags everyone who sends it gets, the member new contacts from it belong to, how many times it’s been sent and when last. A form shows up on its first submission, or when the agent builds it into the site.

Needs the sites:read permission.

site
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
Array<object>
object
name
required

What the site posts as _form. A post matches it whatever its case.

string
label
required

What the app calls it; empty to show the name.

string
tags
required

Tags everyone who sends it gets on their contact.

Array<string>
ownerId
required

The member, by user id, new contacts from it belong to; null for CRM settings’ rule. A member who has left is passed over.

string | null
newsletter
required

Whether sending it subscribes people to newsletters: off, always, or checkbox when they tick a field named subscribe.

string
Allowed values: off always checkbox
submissions
required

How many times it’s been sent.

number
lastSubmissionAt
required
Any of:
string format: date-time
createdAt
required

When it was first sent or saved.

string format: date-time

Example

[
{
"newsletter": "off"
}
]

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}