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
cursoryou got back and alimit. - 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":"…"}}.
| Status | Code | Meaning |
|---|---|---|
| 400 | validation_error | The request is invalid; the message says which field. |
| 401 | unauthorized | The key is missing, invalid, revoked or expired. |
| 402 | plan_required | The Workspace is on the Free plan, which has no API access. Starter and Pro include it. |
| 403 | forbidden / api_key_not_allowed | The key lacks the scope, or the route is not part of the public API. |
| 429 | rate_limited | The per-key rate limit is reached. Wait the number of seconds in the Retry-After header, then retry. |
Operations
- Contacts 5 operations
- Companies 5 operations
- Deals 6 operations
- Pipelines 2 operations
- Events 3 operations
- Notes 4 operations
- Tasks 4 operations
- Segments 2 operations
- Reports 5 operations
Contacts
GET /v1/contacts
List contacts (search, filter, segment, sort, cursor)
Scope: contacts.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
q | query | string | no | min length 1, max length 200 |
filter | query | string | no | max length 4000 |
segment_id | query | string (uuid) | no | |
company_id | query | string (uuid) | no | |
sort | query | "created_at" | "updated_at" | "email" | "first_name" | "last_name" | "status" | "source" | "score" | "email" | "phone" | "first_name" | "last_name" | "status" | "source" | string | no | default "created_at" |
dir | query | "asc" | "desc" | no | default "desc" |
cursor | query | string | no | min length 1, max length 512 |
limit | query | integer | no | default 50, min 1, max 100 |
Response 200
ContactPage
| Field | Type | Required | Notes |
|---|---|---|---|
items | Contact[] | yes | |
next_cursor | string | null | yes | |
total | integer | null | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
POST /v1/contacts
Create a contact
Scope: contacts.edit
Request body (JSON)
ContactCreate
| Field | Type | Required | Notes |
|---|---|---|---|
email | string (email) | null | no | |
phone | string | null | no | |
first_name | string | null | no | |
last_name | string | null | no | |
status | "subscribed" | "unsubscribed" | "bounced" | "complained" | no | default "subscribed" |
source | string | no | default "manual", min length 1, max length 64 |
custom | map of string | number | boolean | null | no | default {} |
owner_member_id | string (uuid) | null | no | |
tag_ids | string (uuid)[] | no | default [] |
company_id | string (uuid) | null | no |
Response 201
Contact
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
email | string | null | yes | |
phone | string | null | yes | |
first_name | string | null | yes | |
last_name | string | null | yes | |
status | "subscribed" | "unsubscribed" | "bounced" | "complained" | yes | |
source | string | null | yes | |
custom | map of string | number | boolean | null | yes | |
owner_member_id | string (uuid) | null | yes | |
tag_ids | string (uuid)[] | yes | |
company_id | string (uuid) | null | no | |
over_limit | boolean | no | |
lead_score | object | null | no | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/contacts/{id}
Get a contact
Scope: contacts.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 200
Contact
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
email | string | null | yes | |
phone | string | null | yes | |
first_name | string | null | yes | |
last_name | string | null | yes | |
status | "subscribed" | "unsubscribed" | "bounced" | "complained" | yes | |
source | string | null | yes | |
custom | map of string | number | boolean | null | yes | |
owner_member_id | string (uuid) | null | yes | |
tag_ids | string (uuid)[] | yes | |
company_id | string (uuid) | null | no | |
over_limit | boolean | no | |
lead_score | object | null | no | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
PATCH /v1/contacts/{id}
Update a contact
Scope: contacts.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Request body (JSON)
ContactPatch
| Field | Type | Required | Notes |
|---|---|---|---|
email | string (email) | null | no | |
phone | string | null | no | |
first_name | string | null | no | |
last_name | string | null | no | |
status | "subscribed" | "unsubscribed" | "bounced" | "complained" | no | |
source | string | no | min length 1, max length 64 |
custom | map of string | number | boolean | null | no | |
company_id | string (uuid) | null | no | |
expected_updated_at | string (date-time) | no |
Response 200
Contact
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
email | string | null | yes | |
phone | string | null | yes | |
first_name | string | null | yes | |
last_name | string | null | yes | |
status | "subscribed" | "unsubscribed" | "bounced" | "complained" | yes | |
source | string | null | yes | |
custom | map of string | number | boolean | null | yes | |
owner_member_id | string (uuid) | null | yes | |
tag_ids | string (uuid)[] | yes | |
company_id | string (uuid) | null | no | |
over_limit | boolean | no | |
lead_score | object | null | no | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
DELETE /v1/contacts/{id}
Delete a contact
Scope: contacts.bulk_delete
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 204
No content
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
Companies
GET /v1/companies
List companies
Scope: companies.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
q | query | string | no | min length 1, max length 200 |
sort | query | "name" | "created_at" | "updated_at" | no | default "name" |
dir | query | "asc" | "desc" | no | default "asc" |
cursor | query | string | no | min length 1, max length 512 |
limit | query | integer | no | default 50, min 1, max 100 |
Response 200
CompanyPage
| Field | Type | Required | Notes |
|---|---|---|---|
items | Company[] | yes | |
next_cursor | string | null | yes | |
total | integer | null | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
POST /v1/companies
Create a company
Scope: companies.edit
Request body (JSON)
CompanyCreate
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | yes | min length 1, max length 200 |
domain | string | null | no | |
owner_member_id | string (uuid) | null | no | |
custom | map of string | number | boolean | null | no | default {} |
Response 201
Company
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
name | string | yes | min length 1, max length 200 |
domain | string | null | yes | |
owner_member_id | string (uuid) | null | yes | |
custom | map of string | number | boolean | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/companies/{id}
Get a company
Scope: companies.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 200
Company
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
name | string | yes | min length 1, max length 200 |
domain | string | null | yes | |
owner_member_id | string (uuid) | null | yes | |
custom | map of string | number | boolean | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
PATCH /v1/companies/{id}
Update a company
Scope: companies.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Request body (JSON)
CompanyPatch
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | no | min length 1, max length 200 |
domain | string | null | no | |
owner_member_id | string (uuid) | null | no | |
custom | map of string | number | boolean | null | no | |
expected_updated_at | string (date-time) | no |
Response 200
Company
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
name | string | yes | min length 1, max length 200 |
domain | string | null | yes | |
owner_member_id | string (uuid) | null | yes | |
custom | map of string | number | boolean | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
DELETE /v1/companies/{id}
Delete a company
Scope: companies.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 204
No content
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate 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
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
pipeline_id | query | string (uuid) | no | |
stage_id | query | string (uuid) | no | |
contact_id | query | string (uuid) | no | |
company_id | query | string (uuid) | no | |
owner | query | string (uuid) | "me" | "unassigned" | no | |
status | query | "open" | "won" | "lost" | no | |
cursor | query | string | no | min length 1, max length 512 |
limit | query | integer | no | default 500, min 1, max 1000 |
Response 200
DealPage
| Field | Type | Required | Notes |
|---|---|---|---|
items | Deal[] | yes | |
next_cursor | string | null | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
POST /v1/deals
Create a deal
Scope: deals.edit
Request body (JSON)
DealCreate
| Field | Type | Required | Notes |
|---|---|---|---|
pipeline_id | string (uuid) | yes | |
stage_id | string (uuid) | no | |
contact_id | string (uuid) | null | no | |
company_id | string (uuid) | null | no | |
title | string | yes | min length 1, max length 200 |
value | string | no | default "0" |
currency | string | no | |
owner_member_id | string (uuid) | null | no | |
position | number | no | |
expected_close_at | string (date) | null | no | |
event_id | string (uuid) | null | no | |
custom | map of string | number | boolean | null | no | default {} |
lost_reason_code | "competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | no | |
lost_reason | string | null | no |
Response 201
Deal
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
pipeline_id | string (uuid) | yes | |
stage_id | string (uuid) | yes | |
contact_id | string (uuid) | null | yes | |
contact_name | string | null | no | |
company_id | string (uuid) | null | no | |
title | string | yes | min length 1, max length 200 |
value | string | yes | |
currency | string | yes | |
owner_member_id | string (uuid) | null | yes | |
position | number | yes | |
status | "open" | "won" | "lost" | yes | |
closed_at | string (date-time) | null | yes | |
stage_entered_at | string (date-time) | yes | |
expected_close_at | string (date) | null | yes | |
lost_reason_code | "competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | "automation" | null | yes | |
lost_reason | string | null | yes | |
event_id | string (uuid) | null | no | |
custom | map of string | number | boolean | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/deals/{id}
Get a deal
Scope: deals.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 200
Deal
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
pipeline_id | string (uuid) | yes | |
stage_id | string (uuid) | yes | |
contact_id | string (uuid) | null | yes | |
contact_name | string | null | no | |
company_id | string (uuid) | null | no | |
title | string | yes | min length 1, max length 200 |
value | string | yes | |
currency | string | yes | |
owner_member_id | string (uuid) | null | yes | |
position | number | yes | |
status | "open" | "won" | "lost" | yes | |
closed_at | string (date-time) | null | yes | |
stage_entered_at | string (date-time) | yes | |
expected_close_at | string (date) | null | yes | |
lost_reason_code | "competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | "automation" | null | yes | |
lost_reason | string | null | yes | |
event_id | string (uuid) | null | no | |
custom | map of string | number | boolean | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
PATCH /v1/deals/{id}
Update a deal
Scope: deals.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Request body (JSON)
DealPatch
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | no | min length 1, max length 200 |
contact_id | string (uuid) | null | no | |
company_id | string (uuid) | null | no | |
value | string | no | |
currency | string | no | |
expected_close_at | string (date) | null | no | |
event_id | string (uuid) | null | no | |
custom | map of string | number | boolean | null | no | |
lost_reason_code | "competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | no | |
lost_reason | string | null | no | |
expected_updated_at | string (date-time) | no |
Response 200
Deal
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
pipeline_id | string (uuid) | yes | |
stage_id | string (uuid) | yes | |
contact_id | string (uuid) | null | yes | |
contact_name | string | null | no | |
company_id | string (uuid) | null | no | |
title | string | yes | min length 1, max length 200 |
value | string | yes | |
currency | string | yes | |
owner_member_id | string (uuid) | null | yes | |
position | number | yes | |
status | "open" | "won" | "lost" | yes | |
closed_at | string (date-time) | null | yes | |
stage_entered_at | string (date-time) | yes | |
expected_close_at | string (date) | null | yes | |
lost_reason_code | "competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | "automation" | null | yes | |
lost_reason | string | null | yes | |
event_id | string (uuid) | null | no | |
custom | map of string | number | boolean | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
DELETE /v1/deals/{id}
Delete a deal
Scope: deals.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 204
No content
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
POST /v1/deals/{id}/move
Move a deal to another stage
Scope: deals.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Request body (JSON)
MoveDealRequest
| Field | Type | Required | Notes |
|---|---|---|---|
stage_id | string (uuid) | yes | |
position | number | yes | |
expected_updated_at | string (date-time) | no | |
lost_reason_code | "competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | no | |
lost_reason | string | null | no |
Response 200
Deal
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
pipeline_id | string (uuid) | yes | |
stage_id | string (uuid) | yes | |
contact_id | string (uuid) | null | yes | |
contact_name | string | null | no | |
company_id | string (uuid) | null | no | |
title | string | yes | min length 1, max length 200 |
value | string | yes | |
currency | string | yes | |
owner_member_id | string (uuid) | null | yes | |
position | number | yes | |
status | "open" | "won" | "lost" | yes | |
closed_at | string (date-time) | null | yes | |
stage_entered_at | string (date-time) | yes | |
expected_close_at | string (date) | null | yes | |
lost_reason_code | "competitor" | "budget" | "timing" | "no_response" | "event_changed" | "other" | "automation" | null | yes | |
lost_reason | string | null | yes | |
event_id | string (uuid) | null | no | |
custom | map of string | number | boolean | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
Pipelines
GET /v1/pipelines
List pipelines with their stages
Scope: deals.read
Response 200
PipelineList
| Field | Type | Required | Notes |
|---|---|---|---|
items | Pipeline[] | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/pipelines/{id}
Get a pipeline with its stages
Scope: deals.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 200
Pipeline
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
name | string | yes | |
is_default | boolean | yes | |
template_key | "blank" | "sponsorship" | "group_tickets" | "event_attendees" | null | yes | |
stages | object[] | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
Events
GET /v1/events
List events
Scope: events.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
when | query | "upcoming" | "past" | "today" | no | default "upcoming" |
source_plugin | query | "mec" | "tec" | "amelia" | "woo" | "cf7" | "wpforms" | "fluentforms" | "elementor" | "bookly" | "eventon" | "espresso" | "fooevents" | "eventin" | "gravityforms" | no | |
cursor | query | string | no | min length 1, max length 512 |
limit | query | integer | no | default 25, min 1, max 100 |
Response 200
EventPage
| Field | Type | Required | Notes |
|---|---|---|---|
items | Event[] | yes | |
next_cursor | string | null | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/events/{id}
Get an event
Scope: events.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 200
Event
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
site_id | string (uuid) | yes | |
source_plugin | "mec" | "tec" | "amelia" | "woo" | "cf7" | "wpforms" | "fluentforms" | "elementor" | "bookly" | "eventon" | "espresso" | "fooevents" | "eventin" | "gravityforms" | yes | |
external_id | string | yes | |
title | string | yes | |
url | string | null | yes | |
starts_at | string (date-time) | yes | |
ends_at | string (date-time) | null | yes | |
timezone | string | yes | |
venue | string | null | yes | |
status | "scheduled" | "cancelled" | yes | |
reports_attendance | boolean | yes | |
capacity | integer | null | no | |
free_seats | integer | null | no | |
waitlist | object | null | no | |
rescheduled_at | string (date-time) | null | yes | |
stats | object | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/events/{id}/attendees
List an event's bookings
Scope: events.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes | |
status | query | "booked" | "cancelled" | "attended" | "no_show" | "refunded" | no | |
cursor | query | string | no | min length 1, max length 512 |
limit | query | integer | no | default 50, min 1, max 100 |
Response 200
AttendeePage
| Field | Type | Required | Notes |
|---|---|---|---|
items | Attendee[] | yes | |
next_cursor | string | null | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate 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
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
contact_id | query | string (uuid) | no | |
deal_id | query | string (uuid) | no | |
cursor | query | string | no | min length 1, max length 512 |
limit | query | integer | no | default 25, min 1, max 100 |
Response 200
NotePage
| Field | Type | Required | Notes |
|---|---|---|---|
items | Note[] | yes | |
next_cursor | string | null | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
POST /v1/notes
Add a note
Scope: contacts.edit
Request body (JSON)
NoteCreate
| Field | Type | Required | Notes |
|---|---|---|---|
contact_id | string (uuid) | no | |
deal_id | string (uuid) | no | |
body | string | yes | min length 1, max length 20000 |
client_op_id | string (uuid) | no |
Response 201
Note
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
contact_id | string (uuid) | null | yes | |
deal_id | string (uuid) | null | yes | |
body | string | yes | |
author_id | string (uuid) | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
PATCH /v1/notes/{id}
Edit a note
Scope: contacts.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Request body (JSON)
NotePatch
| Field | Type | Required | Notes |
|---|---|---|---|
body | string | yes | min length 1, max length 20000 |
Response 200
Note
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
contact_id | string (uuid) | null | yes | |
deal_id | string (uuid) | null | yes | |
body | string | yes | |
author_id | string (uuid) | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
DELETE /v1/notes/{id}
Delete a note
Scope: contacts.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 204
No content
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
Tasks
GET /v1/tasks
List tasks
Scope: contacts.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
assignee | query | "me" | string (uuid) | no | |
contact_id | query | string (uuid) | no | |
deal_id | query | string (uuid) | no | |
status | query | "open" | "done" | "all" | no | default "open" |
cursor | query | string | no | min length 1, max length 512 |
limit | query | integer | no | default 50, min 1, max 100 |
Response 200
TaskPage
| Field | Type | Required | Notes |
|---|---|---|---|
items | Task[] | yes | |
next_cursor | string | null | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
POST /v1/tasks
Create a task
Scope: contacts.edit
Request body (JSON)
TaskCreate
| Field | Type | Required | Notes |
|---|---|---|---|
contact_id | string (uuid) | null | no | |
deal_id | string (uuid) | null | no | |
title | string | yes | min length 1, max length 200 |
due_at | string (date-time) | null | no | |
remind_at | string (date-time) | null | no | |
assignee_id | string (uuid) | no | |
client_op_id | string (uuid) | no |
Response 201
Task
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
contact_id | string (uuid) | null | yes | |
deal_id | string (uuid) | null | yes | |
title | string | yes | |
due_at | string (date-time) | null | yes | |
remind_at | string (date-time) | null | yes | |
reminded_at | string (date-time) | null | yes | |
assignee_id | string (uuid) | null | yes | |
created_by | string (uuid) | null | yes | |
done_at | string (date-time) | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
PATCH /v1/tasks/{id}
Update or complete a task
Scope: contacts.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Request body (JSON)
TaskPatch
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | no | min length 1, max length 200 |
due_at | string (date-time) | null | no | |
remind_at | string (date-time) | null | no | |
assignee_id | string (uuid) | no | |
done | boolean | no |
Response 200
Task
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
contact_id | string (uuid) | null | yes | |
deal_id | string (uuid) | null | yes | |
title | string | yes | |
due_at | string (date-time) | null | yes | |
remind_at | string (date-time) | null | yes | |
reminded_at | string (date-time) | null | yes | |
assignee_id | string (uuid) | null | yes | |
created_by | string (uuid) | null | yes | |
done_at | string (date-time) | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
DELETE /v1/tasks/{id}
Delete a task
Scope: contacts.edit
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 204
No content
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
Segments
GET /v1/segments
List segments
Scope: contacts.read
Response 200
SegmentList
| Field | Type | Required | Notes |
|---|---|---|---|
items | Segment[] | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/segments/{id}
Get a segment
Scope: contacts.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | string (uuid) | yes |
Response 200
Segment
| Field | Type | Required | Notes |
|---|---|---|---|
id | string (uuid) | yes | |
name | string | yes | |
rules | object | yes | |
created_by | string (uuid) | null | yes | |
created_at | string (date-time) | yes | |
updated_at | string (date-time) | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 404 | Not found |
| 429 | Rate limit of the key reached; see Retry-After |
Reports
GET /v1/reports/funnel
Pipeline funnel report
Scope: reports.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
from | query | string | no | |
to | query | string | no | |
compare | query | "previous" | "none" | no | default "previous" |
pipeline_id | query | string (uuid) | no |
Response 200
FunnelReport
| Field | Type | Required | Notes |
|---|---|---|---|
range | object | yes | |
pipeline_id | string (uuid) | yes | |
stages | object[] | yes | |
won | object | yes | |
lost | object | yes | |
win_rate | number | null | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/reports/sources
Contact sources report
Scope: reports.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
from | query | string | no | |
to | query | string | no | |
compare | query | "previous" | "none" | no | default "previous" |
group_by | query | "source" | "utm_source" | "utm_medium" | "utm_campaign" | no | default "source" |
Response 200
SourcesReport
| Field | Type | Required | Notes |
|---|---|---|---|
range | object | yes | |
group_by | "source" | "utm_source" | "utm_medium" | "utm_campaign" | yes | |
rows | object[] | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/reports/conversion
Conversion report
Scope: reports.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
from | query | string | no | |
to | query | string | no | |
compare | query | "previous" | "none" | no | default "previous" |
Response 200
ConversionReport
| Field | Type | Required | Notes |
|---|---|---|---|
range | object | yes | |
leads | object[] | yes | |
attendance | object[] | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |
GET /v1/reports/events
Events report
Scope: reports.read
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
from | query | string | no | |
to | query | string | no | |
compare | query | "previous" | "none" | no | default "previous" |
interval | query | "day" | "week" | "month" | no | default "day" |
Response 200
EventsReport
| Field | Type | Required | Notes |
|---|---|---|---|
range | object | yes | |
interval | "day" | "week" | "month" | yes | |
series | object[] | yes | |
totals | object | yes | |
previous_totals | object | null | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate 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
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
from | query | string | no | |
to | query | string | no | |
compare | query | "previous" | "none" | no | default "previous" |
interval | query | "day" | "week" | "month" | no | default "day" |
source_plugin | query | "mec" | "tec" | "amelia" | "woo" | "cf7" | "wpforms" | "fluentforms" | "elementor" | "bookly" | "eventon" | "espresso" | "fooevents" | "eventin" | "gravityforms" | no |
Response 200
RevenueReport
| Field | Type | Required | Notes |
|---|---|---|---|
range | object | yes | |
interval | "day" | "week" | "month" | yes | |
currency | string | yes | min length 3, max length 3 |
source_plugin | string | null | yes | |
series | object[] | yes | |
totals | object | yes | |
previous_totals | object | null | yes | |
sources | object[] | yes |
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request (validation_error) |
| 401 | Missing, invalid, revoked or expired API key |
| 402 | The Workspace plan has no API access (plan_required) or a plan limit is reached |
| 403 | The key lacks the scope, or the route is not in the public API |
| 429 | Rate limit of the key reached; see Retry-After |