Skip to main content
GET
List contacts

Authorizations

x-conveyour-token
string
header
required

Your API key token. Contacts endpoints require a Server-only — Full API key — see Authentication.

Query Parameters

format
enum<string>

Use v2 for the current response shape. Recommended for all new integrations.

Available options:
v2
archived
enum<string>

Filter by archive state. Omit for active only (default), just for archived only, with for all.

Available options:
just,
with

Search contacts by name, email, or phone number.

filters
object

Filter contacts by field value. Use Add property: the property name is the contact field key, the value is what to match. Serialized as filters[field_name]=value — e.g. filters[email]=jane@example.com. Any contact field key works, including org-defined custom fields.

sort
object

Sort by field. Use Add property: the property name is the field key, the value is 1 (ascending) or -1 (descending). Serialized as sort[field_name]=1 — e.g. sort[created_at]=-1.

count
enum<integer>

Pass count=1 to return only a contact count instead of records. Response: { "message": "contacts count", "data": { "count": 142 } }.

Available options:
1
page
integer

Page number (1-based). Only has an effect when the response is paginated — i.e. when limit is omitted or is 50.

Required range: x >= 1
limit
integer
default:50

Maximum contacts per page. Capped at 50, which is also the default. Passing a value below 50 turns pagination off — data then contains only results.

Required range: x <= 50
fields
string

Comma-separated list of field keys to include in each contact (projection). Omit for all fields. id, con_id and photo are always returned.

teams[]
string[]

Team scope for the request, as one or more team ObjectIds. The brackets are required: PHP keeps only the last value for a repeated plain key, so teams=A&teams=B silently resolves to B alone. On requests with a JSON body you may send teams (no brackets) in the body instead.

Values that are not valid ObjectIds are silently ignored — a mistyped team ID behaves as if no team was sent. See the teams section of the API conventions guide.

expected_value
string

CSV export only. What the encrypted column should contain. Defaults to encrypted.

public_key
string

CSV export only. RSA public key used to encrypt sensitive columns. Required when the org enables require_public_encryption_key.

Response

A list of contacts. Shape depends on limit — see the description.

The common response envelope shared by all ConveYour endpoints.

status
enum<string>

ok on success, failed on error.

Available options:
ok,
failed
message
string

Human-readable description of the result.

data
object

Contacts plus pagination. page, pages and count are present ONLY when the request paginates — getPaginated() disables pagination whenever limit is below limits.contacts, and then returns results alone. Passing count=true instead returns just {count}.