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>

v1 returns this flat list keyed by field label. v2 is the shape recommended for new integrations. Omit format and the list is keyed by machine name.

Available options:
v1,
v2
archived
enum<string>

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

Available options:
just,
with

A phone-shaped value matches the contact's E.164 key. An email-shaped value matches the lowercased email key. Anything else is a quoted text search. This is not a combined scan of name, email, and phone. Passing fields=name with a search string is a separate name picker and returns only con_id and name.

filters
object

Filter contacts by field value. Use Add property: the property name is the contact field key from GET /api/fields, the value is what to match. Serialized as filters[field_name]=value — e.g. filters[email]=jane@example.com. What an unknown key does is not specified. Send keys you have read for this organization.

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 visible fields. id, con_id and photo are always returned. A name that is not a field is omitted, with no error. Fields the caller cannot see are omitted on every list.

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}.