Skip to content

Try “workflows”, “templates”, “SOQL” or “create a record”.

Lists

Saved segments — live queries or frozen snapshots — and the records in them.

List saved lists (segments)

GET/lists
Scope objects:viewRead-only

Responses

  • 200OK
  • 201Created
  • 401Authentication failed
  • 403Insufficient scope / feature disabled
  • 404Not found
curl
curl -X GET "https://api.klerc.co/api/v1/lists" \  -H "Authorization: Bearer $KLERC_TOKEN"

Create a list (segment)

POST/lists
Scope objects:useWrites data

Request body

FieldType
namerequiredstring
objectstring
descriptionstring
mode"dynamic" | "static"
queryTextstring

Responses

  • 200OK
  • 201Created
  • 401Authentication failed
  • 403Insufficient scope / feature disabled
  • 404Not 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-only

Path parameters

NameType
idrequiredstring

Responses

  • 200OK
  • 201Created
  • 401Authentication failed
  • 403Insufficient scope / feature disabled
  • 404Not 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 data

Path parameters

NameType
idrequiredstring

Responses

  • 200OK
  • 201Created
  • 401Authentication failed
  • 403Insufficient scope / feature disabled
  • 404Not 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 data

Path parameters

NameType
idrequiredstring

Responses

  • 200OK
  • 201Created
  • 401Authentication failed
  • 403Insufficient scope / feature disabled
  • 404Not 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}/records
Scope objects:viewRead-only

Path parameters

NameType
idrequiredstring

Query parameters

NameType
limitnumber
cursorstring

Responses

  • 200OK
  • 201Created
  • 401Authentication failed
  • 403Insufficient scope / feature disabled
  • 404Not 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}/freeze
Scope objects:useWrites data

Path parameters

NameType
idrequiredstring

Responses

  • 200OK
  • 201Created
  • 401Authentication failed
  • 403Insufficient scope / feature disabled
  • 404Not 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}/refresh
Scope objects:useWrites data

Path parameters

NameType
idrequiredstring

Responses

  • 200OK
  • 201Created
  • 401Authentication failed
  • 403Insufficient scope / feature disabled
  • 404Not found
curl
curl -X POST "https://api.klerc.co/api/v1/lists/{id}/refresh" \  -H "Authorization: Bearer $KLERC_TOKEN"