Skip to main content
POST
Create a contact in a workspace. Send at least one of email, phone or internal_ref. Use internal_ref for the contact’s id in your CRM: you can then find it again with List Contacts. Creating a contact sends it nothing. Penbox writes to a contact only when your team sends it a form or an email.

Retries

Posting a contact identical to one that already exists (same value on every field you send) returns that contact with a 200 instead of creating a duplicate. A 201 means the contact was created. Emails are trimmed and lowercased first. A contact that differs on one field, for example the same email with another internal_ref, is a new contact. Look it up first, then update it.
workspace.id is always explicit, never inferred from the token. A token that does not cover the workspace returns a 404.

Authorizations

Authorization
string
header
required

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

Body

application/json
workspace
object
required

Workspace to create the contact in. Always explicit, never inferred from the token.

email
string<email>

Email address. Trimmed and lowercased.

given_name
string

First name

Maximum string length: 100
family_name
string

Last name

Maximum string length: 100
company_name
string

Company the contact belongs to

Maximum string length: 255
internal_ref
string

Your own reference for the contact, such as its id in your CRM

Maximum string length: 255
phone
string

Phone number, international format preferred

Maximum string length: 50
Example:

"+32470123456"

locale
string

Language Penbox addresses the contact in

Maximum string length: 10
Example:

"fr"

Response

An identical contact already exists, and is returned unchanged

id
string<uuid>

Contact UUID

created_at
string<date-time>

Creation timestamp

updated_at
string<date-time>

Last update timestamp

email
string<email> | null

Email address. Trimmed and lowercased.

given_name
string | null

First name

family_name
string | null

Last name

company_name
string | null

Company the contact belongs to

internal_ref
string | null

Your own reference for the contact, such as its id in your CRM

phone
string | null

Phone number, international format preferred

locale
string | null

Language Penbox addresses the contact in

workspace
object

Workspace the contact belongs to