List all contacts

You can fetch a list of all contacts.

 

Request Path Parameters
Parameter Type Required Description
org_id number Yes The unique identifier of your organization
page number No
limit number No The number of items returned in a single response
Default is 10

 

Response

This will return a paginated list of Contact objects.

 

Example Request & Response


$ curl https://api.custerem.com/<org_id>/contacts/ \
-X GET \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \

 


$ curl https://api.custerem.com/<org_id>/contacts/?page=1&limit=2 \
-X GET \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \

 

200 OK

{
    "count": 2,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 5,
            "first_name": "Hello",
            "last_name": "hello",
            "phone_number": "",
            "email": "mail@example.com",
            "job_title": "",
            "company": {
                "id": 27,
                "name": "example.com"
            }
        },
        {
            "id": 1,
            "first_name": "Hayri",
            "last_name": "Cicek",
            "phone_number": "",
            "email": "mail2@example.com",
            "job_title": "",
            "company": null
        }
    ]
}