The ‘handle’ attribute may be used as a key for a contact resource, e.g. custom_1, custom_2, custom_3
Use page[number] and page[size] parameters to paginate results:
GET /v1/custom_fields?page[number]=1&page[size]=10GET /v1/custom_fields?page[number]=2&page[size]=25The response includes pagination links and meta data:
{
"links": {
"self": "https://app.kajabi.com/api/v1/custom_fields?page[number]=2&page[size]=10",
"first": "https://app.kajabi.com/api/v1/custom_fields?page[number]=1&page[size]=10",
"prev": "https://app.kajabi.com/api/v1/custom_fields?page[number]=1&page[size]=10",
"next": "https://app.kajabi.com/api/v1/custom_fields?page[number]=3&page[size]=10",
"last": "https://app.kajabi.com/api/v1/custom_fields?page[number]=5&page[size]=10"
},
"meta": {
"total_pages": 5,
"total_count": 50,
"current_page": 2
}
}
Use the filter[site_id] parameter to get custom fields for a specific site:
GET /v1/custom_fields?filter[site_id]=123Response will only include custom fields for that site
{
"data": [
{
"id": "123",
"type": "custom_fields",
"attributes": {
"handle": "custom_1",
"title": "Favorite Song",
"type": "TextField",
"required": false
},
"relationships": {
"site": {
"data": {
"id": "123",
"type": "sites"
}
}
}
}
]
}
Use the sort parameter to sort the results:
GET /v1/custom_fields?sort=titleGET /v1/custom_fields?sort=-titleUse the filter[title_cont] parameter to find custom fields where the title contains specific text:
GET /v1/custom_fields?filter[title_cont]=favoriteResponse will include custom fields with matching titles
{
"data": [{
"id": "123",
"type": "custom_fields",
"attributes": {
"handle": "custom_1",
"title": "Favorite Song",
"type": "TextField",
"required": false
}
},
{
"id": "456",
"type": "custom_fields",
"attributes": {
"handle": "custom_2",
"title": "Favorite Movie",
"type": "TextField",
"required": false
}
}]
}
Use the filter[required_eq] parameter to find custom fields based on their required status:
GET /v1/custom_fields?filter[required_eq]=trueResponse will include custom fields that are required
{
"data": [{
"id": "123",
"type": "custom_fields",
"attributes": {
"handle": "custom_1",
"title": "Phone Number",
"type": "TextField",
"required": true
}
}]
}
You can combine pagination, sorting, sparse fields and filtering in a single request:
GET /v1/custom_fields?page[number]=2&page[size]=10&sort=-title&filter[site_id]=123&fields[custom_fields]=handle,titleResponse will include paginated and filtered custom fields with sparse fields
{
"data": [
{
"id": "456",
"type": "custom_fields",
"attributes": {
"handle": "custom_2",
"title": "Favorite Movie"
},
"relationships": {
"site": {
"data": {
"id": "123",
"type": "sites"
}
}
}
}
],
"links": {
"self": "https://app.kajabi.com/api/v1/custom_fields?page[number]=2&page[size]=10&sort=-title&filter[site_id]=123&fields[custom_fields]=handle,title",
"first": "https://app.kajabi.com/api/v1/custom_fields?page[number]=1&page[size]=10&sort=-title&filter[site_id]=123&fields[custom_fields]=handle,title",
"prev": "https://app.kajabi.com/api/v1/custom_fields?page[number]=1&page[size]=10&sort=-title&filter[site_id]=123&fields[custom_fields]=handle,title",
"next": null,
"last": "https://app.kajabi.com/api/v1/custom_fields?page[number]=2&page[size]=10&sort=-title&filter[site_id]=123&fields[custom_fields]=handle,title"
},
"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, handle, type, required for descending order use '-' e.g. &sort=-title
Number of documents
Partial attributes as specified, e.g. fields[custom_fields]=handle,title,required
Filter by site_id, for example ?filter[site_id]=111
Filter by title contains, for example ?filter[title_cont]=favorite
Filter by field type equals, for example ?filter[type_eq]=TextField
Filter by required field equals, for example ?filter[required_eq]=true