Skip to main content
GET
List the contacts of the workspaces your key covers. To keep Penbox in sync with your CRM, look a contact up by the reference you gave it (internal_ref) or by its email, then create or update it.
internal_ref is not unique in a workspace: two contacts can carry the same reference. The answer is always a list. Read data, and handle more than one match.
internal_ref and email are exact matches. To find a contact from a fragment of its name, email, phone, company or reference, use search.

Authorizations

Authorization
string
header
required

API token (starts with pnbx_). Create at https://app.penbox.io/workspace/settings/api. Include as: Authorization: Bearer {token}

Query Parameters

workspace[id]
string<uuid>

Only the contacts of this workspace. Without it, the contacts of every workspace your key covers.

internal_ref
string

Exact internal reference, as stored (case-sensitive). The reference is not unique in a workspace, so several contacts can match: read data, not a single object.

email
string<email>

Exact email address. Case-insensitive.

Free-text search over first name, last name, email, phone number, internal reference and company name. Every word must match, in any order, case- and accent-insensitive. An empty value applies no filter.

Limits: at most 128 characters and at most 6 words. Exceeding either returns 422 Unprocessable Entity.

Maximum string length: 128
page[number]
integer
default:1

Page number (starts at 1)

Required range: x >= 1
page[size]
integer
default:10

Number of items per page (max: 100)

Required range: 1 <= x <= 100
sort
string

Sort field with + (ascending) or - (descending): created_at or updated_at. Default -created_at.

Example:

"-updated_at"

Response

Successful response

meta
object
data
object[]