Lists
Saved segments — live queries or frozen snapshots — and the records in them.
- GET
/lists - POST
/lists - GET
/lists/{id} - PATCH
/lists/{id} - DELETE
/lists/{id} - GET
/lists/{id}/records - POST
/lists/{id}/freeze - POST
/lists/{id}/refresh
List saved lists (segments)
GET
/listsScope
objects:viewRead-onlyResponses
200OK201Created401Authentication failed403Insufficient scope / feature disabled404Not found
curl
curl -X GET "https://api.klerc.co/api/v1/lists" \ -H "Authorization: Bearer $KLERC_TOKEN"Create a list (segment)
POST
/listsScope
objects:useWrites dataRequest body
| Field | Type |
|---|---|
namerequired | string |
object | string |
description | string |
mode | "dynamic" | "static" |
queryText | string |
Responses
200OK201Created401Authentication failed403Insufficient scope / feature disabled404Not found
curl
curl -X POST "https://api.klerc.co/api/v1/lists" \ -H "Authorization: Bearer $KLERC_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"…","object":"…","description":"…","mode":"dynamic","queryText":"…"}'Get a list
GET
/lists/{id}Scope
objects:viewRead-onlyPath parameters
| Name | Type |
|---|---|
idrequired | string |
Responses
200OK201Created401Authentication failed403Insufficient scope / feature disabled404Not found
curl
curl -X GET "https://api.klerc.co/api/v1/lists/{id}" \ -H "Authorization: Bearer $KLERC_TOKEN"Update a list
PATCH
/lists/{id}Scope
objects:useWrites dataPath parameters
| Name | Type |
|---|---|
idrequired | string |
Responses
200OK201Created401Authentication failed403Insufficient scope / feature disabled404Not found
curl
curl -X PATCH "https://api.klerc.co/api/v1/lists/{id}" \ -H "Authorization: Bearer $KLERC_TOKEN"Delete a list
DELETE
/lists/{id}Scope
objects:useWrites dataPath parameters
| Name | Type |
|---|---|
idrequired | string |
Responses
200OK201Created401Authentication failed403Insufficient scope / feature disabled404Not found
curl
curl -X DELETE "https://api.klerc.co/api/v1/lists/{id}" \ -H "Authorization: Bearer $KLERC_TOKEN"Get the records in a list
GET
/lists/{id}/recordsScope
objects:viewRead-onlyPath parameters
| Name | Type |
|---|---|
idrequired | string |
Query parameters
| Name | Type |
|---|---|
limit | number |
cursor | string |
Responses
200OK201Created401Authentication failed403Insufficient scope / feature disabled404Not found
curl
curl -X GET "https://api.klerc.co/api/v1/lists/{id}/records?limit=25" \ -H "Authorization: Bearer $KLERC_TOKEN"Freeze a list (snapshot its members)
POST
/lists/{id}/freezeScope
objects:useWrites dataPath parameters
| Name | Type |
|---|---|
idrequired | string |
Responses
200OK201Created401Authentication failed403Insufficient scope / feature disabled404Not found
curl
curl -X POST "https://api.klerc.co/api/v1/lists/{id}/freeze" \ -H "Authorization: Bearer $KLERC_TOKEN"Refresh a dynamic list
POST
/lists/{id}/refreshScope
objects:useWrites dataPath parameters
| Name | Type |
|---|---|
idrequired | string |
Responses
200OK201Created401Authentication failed403Insufficient scope / feature disabled404Not found
curl
curl -X POST "https://api.klerc.co/api/v1/lists/{id}/refresh" \ -H "Authorization: Bearer $KLERC_TOKEN"