API Reference
Search…
Pagination
Learn how to paginate our API responses.
All top-level API resources support bulk fetches via “list” API methods. For instance, among other resources, you can list clients and documents.
These requests will be paginated to 100 items by default. You can specify further pages using the page query parameter.
You can use the query parameters below for all our list API methods:

Pagination attributes

Query Parameter
Description
createdAfter
A "greater than" filter on the list based on the resource createdAt field.
createdBefore
A "less than" filter on the list based on the resource createdAt field.
updatedAfter
A "greater than" filter on the list based on the resource updatedAt field.
updatedBefore
A "less than" filter on the list based on the resource updatedAt field.
pageSize
Indicates how many records each page should contain. The value must be between 1 and 1000. The default is 100.
page
Specifies the page number to retrieve. The value must be greater than 1.

Example request

cURL
Node.js
Python
PHP
.NET
1
curl -X GET https://api.complycube.com/v1/clients?page=1&pageSize=20 \
2
-H 'Authorization: <YOUR_API_KEY>'
Copied!
1
const { ComplyCube } = require("@complycube/api");
2
3
const complycube = new ComplyCube({ apiKey: "<YOUR_API_KEY>" });
4
5
// For clients
6
const clients = await complycube.client.list({
7
page: 1,
8
pageSize: 20
9
});
10
11
// For documents. Similarly done for addresses, checks, live photos, etc.
12
const documents = await complycube.document.list("CLIENT_ID", {
13
page: 1,
14
pageSize: 20
15
});
Copied!
1
from complycube import ComplyCubeClient
2
3
cc_api = ComplyCubeClient(api_key='<YOUR_API_KEY>')
4
5
# For clients
6
clients = cc_api.clients.list(page=1,pageSize=20)
7
8
# For documents. Similarly done for addresses, checks, live photos, etc.
9
documents = await complycube.document.list("CLIENT_ID", page=1,pageSize=20);
Copied!
1
use ComplyCube\ComplyCubeClient;
2
3
$ccapi = new ComplyCubeClient('<YOUR_API_KEY>');
4
5
// For clients
6
$clients = $ccapi->clients()->list(['page' => 1, 'pageSize' => 20]);
7
8
// For documents. Similarly done for addresses, checks, live photos, etc.
9
$documents = $ccapi->documents()->list('CLIENT_ID',
10
['page' => 1, 'pageSize' => 20]);
Copied!
1
using ComplyCube.Net;
2
using ComplyCube.Net.Resources.Clients;
3
4
var clientApi = new ClientApi(new ComplyCubeClient("<YOUR_API_KEY>"));
5
6
var req = new PageRequest { page = 1, pageSize = 20 };
7
8
var clients = await clientApi.ListAsync(pageRequest : req);
Copied!
Last modified 6mo ago
Copy link