Developers

Piporex API reference

Public REST API of Piporex (Starter and Pro). Authenticate with `Authorization: Bearer pk_live_<prefix>.<secret>`. A key acts as the member who created it, limited to its scopes and to that member’s current role. Rate limit per key: 300 requests a minute on Starter, 600 on Pro.

This page is generated from openapi.json (version 1.0.0) and lists only the documented public API. Getting started explains how to create a key.

Basics

  • Base URL: https://api.piporex.com
  • Authentication: send Authorization: Bearer pk_live_<prefix>.<secret> on every request. Create keys in the Piporex dashboard; the secret is shown once.
  • Format: JSON in and out. Lists are cursor-paginated: pass the cursor you got back and a limit.
  • Scopes: each operation names the scope the key needs; a key can never do more than the member who created it.

Errors

Every error has the same shape: {"error":{"code":"…","message":"…","request_id":"…"}}.

StatusCodeMeaning
400validation_errorThe request is invalid; the message says which field.
401unauthorizedThe key is missing, invalid, revoked or expired.
402plan_requiredThe Workspace is on the Free plan, which has no API access. Starter and Pro include it.
403forbidden / api_key_not_allowedThe key lacks the scope, or the route is not part of the public API.
429rate_limitedThe per-key rate limit is reached. Wait the number of seconds in the Retry-After header, then retry.

Operations

Contacts

GET /v1/contacts

List contacts (search, filter, segment, sort, cursor)

Scope: contacts.read

Parameters

NameInTypeRequiredNotes
qquerystringnomin length 1, max length 200
filterquerystringnomax length 4000
segment_idquerystring (uuid)no
company_idquerystring (uuid)no
sortquery"created_at" | "updated_at" | "email" | "first_name" | "last_name" | "status" | "source" | "score" | "email" | "phone" | "first_name" | "last_name" | "status" | "source" | stringnodefault "created_at"
dirquery"asc" | "desc"nodefault "desc"
cursorquerystringnomin length 1, max length 512
limitqueryintegernodefault 50, min 1, max 100

Response 200

ContactPage

FieldTypeRequiredNotes
itemsContact[]yes
next_cursorstring | nullyes
totalinteger | nullyes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

POST /v1/contacts

Create a contact

Scope: contacts.edit

Request body (JSON)

ContactCreate

FieldTypeRequiredNotes
emailstring (email) | nullno
phonestring | nullno
first_namestring | nullno
last_namestring | nullno
status"subscribed" | "unsubscribed" | "bounced" | "complained"nodefault "subscribed"
sourcestringnodefault "manual", min length 1, max length 64
custommap of string | number | boolean | nullnodefault {}
owner_member_idstring (uuid) | nullno
tag_idsstring (uuid)[]nodefault []
company_idstring (uuid) | nullno

Response 201

Contact

FieldTypeRequiredNotes
idstring (uuid)yes
emailstring | nullyes
phonestring | nullyes
first_namestring | nullyes
last_namestring | nullyes
status"subscribed" | "unsubscribed" | "bounced" | "complained"yes
sourcestring | nullyes
custommap of string | number | boolean | nullyes
owner_member_idstring (uuid) | nullyes
tag_idsstring (uuid)[]yes
company_idstring (uuid) | nullno
over_limitbooleanno
lead_scoreobject | nullno
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/contacts/{id}

Get a contact

Scope: contacts.read

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 200

Contact

FieldTypeRequiredNotes
idstring (uuid)yes
emailstring | nullyes
phonestring | nullyes
first_namestring | nullyes
last_namestring | nullyes
status"subscribed" | "unsubscribed" | "bounced" | "complained"yes
sourcestring | nullyes
custommap of string | number | boolean | nullyes
owner_member_idstring (uuid) | nullyes
tag_idsstring (uuid)[]yes
company_idstring (uuid) | nullno
over_limitbooleanno
lead_scoreobject | nullno
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

PATCH /v1/contacts/{id}

Update a contact

Scope: contacts.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Request body (JSON)

ContactPatch

FieldTypeRequiredNotes
emailstring (email) | nullno
phonestring | nullno
first_namestring | nullno
last_namestring | nullno
status"subscribed" | "unsubscribed" | "bounced" | "complained"no
sourcestringnomin length 1, max length 64
custommap of string | number | boolean | nullno
company_idstring (uuid) | nullno
expected_updated_atstring (date-time)no

Response 200

Contact

FieldTypeRequiredNotes
idstring (uuid)yes
emailstring | nullyes
phonestring | nullyes
first_namestring | nullyes
last_namestring | nullyes
status"subscribed" | "unsubscribed" | "bounced" | "complained"yes
sourcestring | nullyes
custommap of string | number | boolean | nullyes
owner_member_idstring (uuid) | nullyes
tag_idsstring (uuid)[]yes
company_idstring (uuid) | nullno
over_limitbooleanno
lead_scoreobject | nullno
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

DELETE /v1/contacts/{id}

Delete a contact

Scope: contacts.bulk_delete

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 204

No content

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

Companies

GET /v1/companies

List companies

Scope: companies.read

Parameters

NameInTypeRequiredNotes
qquerystringnomin length 1, max length 200
sortquery"name" | "created_at" | "updated_at"nodefault "name"
dirquery"asc" | "desc"nodefault "asc"
cursorquerystringnomin length 1, max length 512
limitqueryintegernodefault 50, min 1, max 100

Response 200

CompanyPage

FieldTypeRequiredNotes
itemsCompany[]yes
next_cursorstring | nullyes
totalinteger | nullyes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

POST /v1/companies

Create a company

Scope: companies.edit

Request body (JSON)

CompanyCreate

FieldTypeRequiredNotes
namestringyesmin length 1, max length 200
domainstring | nullno
owner_member_idstring (uuid) | nullno
custommap of string | number | boolean | nullnodefault {}

Response 201

Company

FieldTypeRequiredNotes
idstring (uuid)yes
namestringyesmin length 1, max length 200
domainstring | nullyes
owner_member_idstring (uuid) | nullyes
custommap of string | number | boolean | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/companies/{id}

Get a company

Scope: companies.read

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 200

Company

FieldTypeRequiredNotes
idstring (uuid)yes
namestringyesmin length 1, max length 200
domainstring | nullyes
owner_member_idstring (uuid) | nullyes
custommap of string | number | boolean | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

PATCH /v1/companies/{id}

Update a company

Scope: companies.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Request body (JSON)

CompanyPatch

FieldTypeRequiredNotes
namestringnomin length 1, max length 200
domainstring | nullno
owner_member_idstring (uuid) | nullno
custommap of string | number | boolean | nullno
expected_updated_atstring (date-time)no

Response 200

Company

FieldTypeRequiredNotes
idstring (uuid)yes
namestringyesmin length 1, max length 200
domainstring | nullyes
owner_member_idstring (uuid) | nullyes
custommap of string | number | boolean | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

DELETE /v1/companies/{id}

Delete a company

Scope: companies.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 204

No content

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

Deals

GET /v1/deals

List deals of a pipeline, a contact or a company

Scope: deals.read

Parameters

NameInTypeRequiredNotes
pipeline_idquerystring (uuid)no
stage_idquerystring (uuid)no
contact_idquerystring (uuid)no
company_idquerystring (uuid)no
ownerquerystring (uuid) | "me" | "unassigned"no
statusquery"open" | "won" | "lost"no
cursorquerystringnomin length 1, max length 512
limitqueryintegernodefault 500, min 1, max 1000

Response 200

DealPage

FieldTypeRequiredNotes
itemsDeal[]yes
next_cursorstring | nullyes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

POST /v1/deals

Create a deal

Scope: deals.edit

Request body (JSON)

DealCreate

FieldTypeRequiredNotes
pipeline_idstring (uuid)yes
stage_idstring (uuid)no
contact_idstring (uuid) | nullno
company_idstring (uuid) | nullno
titlestringyesmin length 1, max length 200
valuestringnodefault "0"
currencystringno
owner_member_idstring (uuid) | nullno
positionnumberno
expected_close_atstring (date) | nullno
event_idstring (uuid) | nullno
custommap of string | number | boolean | nullnodefault {}
lost_reason_code"competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other"no
lost_reasonstring | nullno

Response 201

Deal

FieldTypeRequiredNotes
idstring (uuid)yes
pipeline_idstring (uuid)yes
stage_idstring (uuid)yes
contact_idstring (uuid) | nullyes
contact_namestring | nullno
company_idstring (uuid) | nullno
titlestringyesmin length 1, max length 200
valuestringyes
currencystringyes
owner_member_idstring (uuid) | nullyes
positionnumberyes
status"open" | "won" | "lost"yes
closed_atstring (date-time) | nullyes
stage_entered_atstring (date-time)yes
expected_close_atstring (date) | nullyes
lost_reason_code"competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | "automation" | nullyes
lost_reasonstring | nullyes
event_idstring (uuid) | nullno
custommap of string | number | boolean | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/deals/{id}

Get a deal

Scope: deals.read

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 200

Deal

FieldTypeRequiredNotes
idstring (uuid)yes
pipeline_idstring (uuid)yes
stage_idstring (uuid)yes
contact_idstring (uuid) | nullyes
contact_namestring | nullno
company_idstring (uuid) | nullno
titlestringyesmin length 1, max length 200
valuestringyes
currencystringyes
owner_member_idstring (uuid) | nullyes
positionnumberyes
status"open" | "won" | "lost"yes
closed_atstring (date-time) | nullyes
stage_entered_atstring (date-time)yes
expected_close_atstring (date) | nullyes
lost_reason_code"competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | "automation" | nullyes
lost_reasonstring | nullyes
event_idstring (uuid) | nullno
custommap of string | number | boolean | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

PATCH /v1/deals/{id}

Update a deal

Scope: deals.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Request body (JSON)

DealPatch

FieldTypeRequiredNotes
titlestringnomin length 1, max length 200
contact_idstring (uuid) | nullno
company_idstring (uuid) | nullno
valuestringno
currencystringno
expected_close_atstring (date) | nullno
event_idstring (uuid) | nullno
custommap of string | number | boolean | nullno
lost_reason_code"competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other"no
lost_reasonstring | nullno
expected_updated_atstring (date-time)no

Response 200

Deal

FieldTypeRequiredNotes
idstring (uuid)yes
pipeline_idstring (uuid)yes
stage_idstring (uuid)yes
contact_idstring (uuid) | nullyes
contact_namestring | nullno
company_idstring (uuid) | nullno
titlestringyesmin length 1, max length 200
valuestringyes
currencystringyes
owner_member_idstring (uuid) | nullyes
positionnumberyes
status"open" | "won" | "lost"yes
closed_atstring (date-time) | nullyes
stage_entered_atstring (date-time)yes
expected_close_atstring (date) | nullyes
lost_reason_code"competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | "automation" | nullyes
lost_reasonstring | nullyes
event_idstring (uuid) | nullno
custommap of string | number | boolean | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

DELETE /v1/deals/{id}

Delete a deal

Scope: deals.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 204

No content

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

POST /v1/deals/{id}/move

Move a deal to another stage

Scope: deals.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Request body (JSON)

MoveDealRequest

FieldTypeRequiredNotes
stage_idstring (uuid)yes
positionnumberyes
expected_updated_atstring (date-time)no
lost_reason_code"competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other"no
lost_reasonstring | nullno

Response 200

Deal

FieldTypeRequiredNotes
idstring (uuid)yes
pipeline_idstring (uuid)yes
stage_idstring (uuid)yes
contact_idstring (uuid) | nullyes
contact_namestring | nullno
company_idstring (uuid) | nullno
titlestringyesmin length 1, max length 200
valuestringyes
currencystringyes
owner_member_idstring (uuid) | nullyes
positionnumberyes
status"open" | "won" | "lost"yes
closed_atstring (date-time) | nullyes
stage_entered_atstring (date-time)yes
expected_close_atstring (date) | nullyes
lost_reason_code"competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | "automation" | nullyes
lost_reasonstring | nullyes
event_idstring (uuid) | nullno
custommap of string | number | boolean | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

Pipelines

GET /v1/pipelines

List pipelines with their stages

Scope: deals.read

Response 200

PipelineList

FieldTypeRequiredNotes
itemsPipeline[]yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/pipelines/{id}

Get a pipeline with its stages

Scope: deals.read

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 200

Pipeline

FieldTypeRequiredNotes
idstring (uuid)yes
namestringyes
is_defaultbooleanyes
template_key"blank" | "sponsorship" | "group_tickets" | "event_attendees" | nullyes
stagesobject[]yes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

Events

GET /v1/events

List events

Scope: events.read

Parameters

NameInTypeRequiredNotes
whenquery"upcoming" | "past" | "today"nodefault "upcoming"
source_pluginquery"mec" | "tec" | "amelia" | "woo" | "cf7" | "wpforms" | "fluentforms" | "elementor" | "bookly" | "eventon" | "espresso" | "fooevents" | "eventin" | "gravityforms"no
cursorquerystringnomin length 1, max length 512
limitqueryintegernodefault 25, min 1, max 100

Response 200

EventPage

FieldTypeRequiredNotes
itemsEvent[]yes
next_cursorstring | nullyes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/events/{id}

Get an event

Scope: events.read

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 200

Event

FieldTypeRequiredNotes
idstring (uuid)yes
site_idstring (uuid)yes
source_plugin"mec" | "tec" | "amelia" | "woo" | "cf7" | "wpforms" | "fluentforms" | "elementor" | "bookly" | "eventon" | "espresso" | "fooevents" | "eventin" | "gravityforms"yes
external_idstringyes
titlestringyes
urlstring | nullyes
starts_atstring (date-time)yes
ends_atstring (date-time) | nullyes
timezonestringyes
venuestring | nullyes
status"scheduled" | "cancelled"yes
reports_attendancebooleanyes
capacityinteger | nullno
free_seatsinteger | nullno
waitlistobject | nullno
rescheduled_atstring (date-time) | nullyes
statsobjectyes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

GET /v1/events/{id}/attendees

List an event's bookings

Scope: events.read

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes
statusquery"booked" | "cancelled" | "attended" | "no_show" | "refunded"no
cursorquerystringnomin length 1, max length 512
limitqueryintegernodefault 50, min 1, max 100

Response 200

AttendeePage

FieldTypeRequiredNotes
itemsAttendee[]yes
next_cursorstring | nullyes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

Notes

GET /v1/notes

List a contact's or a deal's notes

Scope: contacts.read

Parameters

NameInTypeRequiredNotes
contact_idquerystring (uuid)no
deal_idquerystring (uuid)no
cursorquerystringnomin length 1, max length 512
limitqueryintegernodefault 25, min 1, max 100

Response 200

NotePage

FieldTypeRequiredNotes
itemsNote[]yes
next_cursorstring | nullyes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

POST /v1/notes

Add a note

Scope: contacts.edit

Request body (JSON)

NoteCreate

FieldTypeRequiredNotes
contact_idstring (uuid)no
deal_idstring (uuid)no
bodystringyesmin length 1, max length 20000
client_op_idstring (uuid)no

Response 201

Note

FieldTypeRequiredNotes
idstring (uuid)yes
contact_idstring (uuid) | nullyes
deal_idstring (uuid) | nullyes
bodystringyes
author_idstring (uuid) | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

PATCH /v1/notes/{id}

Edit a note

Scope: contacts.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Request body (JSON)

NotePatch

FieldTypeRequiredNotes
bodystringyesmin length 1, max length 20000

Response 200

Note

FieldTypeRequiredNotes
idstring (uuid)yes
contact_idstring (uuid) | nullyes
deal_idstring (uuid) | nullyes
bodystringyes
author_idstring (uuid) | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

DELETE /v1/notes/{id}

Delete a note

Scope: contacts.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 204

No content

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

Tasks

GET /v1/tasks

List tasks

Scope: contacts.read

Parameters

NameInTypeRequiredNotes
assigneequery"me" | string (uuid)no
contact_idquerystring (uuid)no
deal_idquerystring (uuid)no
statusquery"open" | "done" | "all"nodefault "open"
cursorquerystringnomin length 1, max length 512
limitqueryintegernodefault 50, min 1, max 100

Response 200

TaskPage

FieldTypeRequiredNotes
itemsTask[]yes
next_cursorstring | nullyes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

POST /v1/tasks

Create a task

Scope: contacts.edit

Request body (JSON)

TaskCreate

FieldTypeRequiredNotes
contact_idstring (uuid) | nullno
deal_idstring (uuid) | nullno
titlestringyesmin length 1, max length 200
due_atstring (date-time) | nullno
remind_atstring (date-time) | nullno
assignee_idstring (uuid)no
client_op_idstring (uuid)no

Response 201

Task

FieldTypeRequiredNotes
idstring (uuid)yes
contact_idstring (uuid) | nullyes
deal_idstring (uuid) | nullyes
titlestringyes
due_atstring (date-time) | nullyes
remind_atstring (date-time) | nullyes
reminded_atstring (date-time) | nullyes
assignee_idstring (uuid) | nullyes
created_bystring (uuid) | nullyes
done_atstring (date-time) | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

PATCH /v1/tasks/{id}

Update or complete a task

Scope: contacts.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Request body (JSON)

TaskPatch

FieldTypeRequiredNotes
titlestringnomin length 1, max length 200
due_atstring (date-time) | nullno
remind_atstring (date-time) | nullno
assignee_idstring (uuid)no
donebooleanno

Response 200

Task

FieldTypeRequiredNotes
idstring (uuid)yes
contact_idstring (uuid) | nullyes
deal_idstring (uuid) | nullyes
titlestringyes
due_atstring (date-time) | nullyes
remind_atstring (date-time) | nullyes
reminded_atstring (date-time) | nullyes
assignee_idstring (uuid) | nullyes
created_bystring (uuid) | nullyes
done_atstring (date-time) | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

DELETE /v1/tasks/{id}

Delete a task

Scope: contacts.edit

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 204

No content

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

Segments

GET /v1/segments

List segments

Scope: contacts.read

Response 200

SegmentList

FieldTypeRequiredNotes
itemsSegment[]yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/segments/{id}

Get a segment

Scope: contacts.read

Parameters

NameInTypeRequiredNotes
idpathstring (uuid)yes

Response 200

Segment

FieldTypeRequiredNotes
idstring (uuid)yes
namestringyes
rulesobjectyes
created_bystring (uuid) | nullyes
created_atstring (date-time)yes
updated_atstring (date-time)yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
404Not found
429Rate limit of the key reached; see Retry-After

Reports

GET /v1/reports/funnel

Pipeline funnel report

Scope: reports.read

Parameters

NameInTypeRequiredNotes
fromquerystringno
toquerystringno
comparequery"previous" | "none"nodefault "previous"
pipeline_idquerystring (uuid)no

Response 200

FunnelReport

FieldTypeRequiredNotes
rangeobjectyes
pipeline_idstring (uuid)yes
stagesobject[]yes
wonobjectyes
lostobjectyes
win_ratenumber | nullyes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/reports/sources

Contact sources report

Scope: reports.read

Parameters

NameInTypeRequiredNotes
fromquerystringno
toquerystringno
comparequery"previous" | "none"nodefault "previous"
group_byquery"source" | "utm_source" | "utm_medium" | "utm_campaign"nodefault "source"

Response 200

SourcesReport

FieldTypeRequiredNotes
rangeobjectyes
group_by"source" | "utm_source" | "utm_medium" | "utm_campaign"yes
rowsobject[]yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/reports/conversion

Conversion report

Scope: reports.read

Parameters

NameInTypeRequiredNotes
fromquerystringno
toquerystringno
comparequery"previous" | "none"nodefault "previous"

Response 200

ConversionReport

FieldTypeRequiredNotes
rangeobjectyes
leadsobject[]yes
attendanceobject[]yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/reports/events

Events report

Scope: reports.read

Parameters

NameInTypeRequiredNotes
fromquerystringno
toquerystringno
comparequery"previous" | "none"nodefault "previous"
intervalquery"day" | "week" | "month"nodefault "day"

Response 200

EventsReport

FieldTypeRequiredNotes
rangeobjectyes
interval"day" | "week" | "month"yes
seriesobject[]yes
totalsobjectyes
previous_totalsobject | nullyes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

GET /v1/reports/revenue

Revenue report (also needs the event_financials.read scope)

Scope: reports.read

Parameters

NameInTypeRequiredNotes
fromquerystringno
toquerystringno
comparequery"previous" | "none"nodefault "previous"
intervalquery"day" | "week" | "month"nodefault "day"
source_pluginquery"mec" | "tec" | "amelia" | "woo" | "cf7" | "wpforms" | "fluentforms" | "elementor" | "bookly" | "eventon" | "espresso" | "fooevents" | "eventin" | "gravityforms"no

Response 200

RevenueReport

FieldTypeRequiredNotes
rangeobjectyes
interval"day" | "week" | "month"yes
currencystringyesmin length 3, max length 3
source_pluginstring | nullyes
seriesobject[]yes
totalsobjectyes
previous_totalsobject | nullyes
sourcesobject[]yes

Errors

StatusMeaning
400Invalid request (validation_error)
401Missing, invalid, revoked or expired API key
402The Workspace plan has no API access (plan_required) or a plan limit is reached
403The key lacks the scope, or the route is not in the public API
429Rate limit of the key reached; see Retry-After

← All guides