Contact forms for a site
Use page[number] and page[size] parameters to paginate results:
GET /v1/forms?page[number]=1&page[size]=10GET /v1/forms?page[number]=2&page[size]=25The response includes pagination links and meta data:
{
"links": {
"self": "https://api.kajabi.com/v1/forms?page[number]=2&page[size]=10",
"first": "https://api.kajabi.com/v1/forms?page[number]=1&page[size]=10",
"prev": "https://api.kajabi.com/v1/forms?page[number]=1&page[size]=10",
"next": "https://api.kajabi.com/v1/forms?page[number]=3&page[size]=10",
"last": "https://api.kajabi.com/v1/forms?page[number]=5&page[size]=10"
},
"meta": {
"total_pages": 5,
"total_count": 50,
"current_page": 2
}
}
Use the sort parameter to sort the results:
GET /v1/forms?sort=titleGET /v1/forms?sort=-titleResponse will include forms sorted by the specified field
{
"data": [
{
"id": "123",
"type": "forms",
"attributes": {
"title": "Contact Form A",
"description": "General contact form"
}
},
{
"id": "456",
"type": "forms",
"attributes": {
"title": "Contact Form B",
"description": "Newsletter signup form"
}
}
]
}
Use the fields[forms] parameter to request only specific attributes:
GET /v1/forms?fields[forms]=title,descriptionResponse will only include requested fields
{
"data": [{
"id": "123",
"type": "forms",
"attributes": {
"title": "Contact Form A",
"description": "General contact form"
}
}]
}
Use the filter[site_id] parameter to get forms for a specific site:
GET /v1/forms?filter[site_id]=123Response will only include forms for that site
{
"data": [{
"id": "456",
"type": "forms",
"attributes": {
"title": "Contact Form A",
"description": "General contact form"
},
"relationships": {
"site": {
"data": {
"id": "123",
"type": "sites"
}
}
}
}]
}
Use the filter[title_cont] parameter to find forms where the title contains specific text:
GET /v1/forms?filter[title_cont]=courseResponse will include forms with matching titles
{
"data": [{
"id": "456",
"type": "forms",
"attributes": {
"title": "Course Registration Form",
"description": "Sign up form for online courses"
}
}]
}
You can combine pagination, sorting, sparse fields and filtering in a single request:
GET /v1/forms?page[number]=2&page[size]=10&sort=-title&filter[site_id]=123&fields[forms]=title,descriptionResponse will include paginated and filtered forms with sparse fields
{
"data": [
{
"id": "456",
"type": "forms",
"attributes": {
"title": "Newsletter Form",
"description": "Newsletter signup form"
},
"relationships": {
"site": {
"data": {
"id": "123",
"type": "sites"
}
}
}
}
],
"links": {
"self": "https://api.kajabi.com/v1/forms?page[number]=2&page[size]=10&sort=-title&filter[site_id]=123&fields[forms]=title,description",
"first": "https://api.kajabi.com/v1/forms?page[number]=1&page[size]=10&sort=-title&filter[site_id]=123&fields[forms]=title,description",
"prev": "https://api.kajabi.com/v1/forms?page[number]=1&page[size]=10&sort=-title&filter[site_id]=123&fields[forms]=title,description",
"next": null,
"last": "https://api.kajabi.com/v1/forms?page[number]=2&page[size]=10&sort=-title&filter[site_id]=123&fields[forms]=title,description"
},
"meta": {
"total_pages": 2,
"total_count": 15,
"current_page": 2
}
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Sort order, use: title for descending order use '-' e.g. &sort=-title
Number of documents
Partial attributes as specified, e.g. fields[forms]=title
Filter by site_id, for example ?filter[site_id]=111
Filter by title contains, for example ?filter[title_cont]=course
Success, list of forms which the current user may access