API reference
Explore operations, permissions, parameters, request bodies and responses.
GET/contacts
Permissions contacts.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Contact[]id · name · company_id · phones · emails · tag_ids · custom_fields
POST/contacts
Permissions contacts.write
Parameters
Idempotency-Key | header | required |
|---|
JSON body
name | string | required |
|---|---|---|
phones | object[] | optional |
emails | object[] | optional |
company_id | string | null | optional |
tag_ids | string[] | optional |
custom_fields | object | optional |
external_reference | string | optional |
Response · HTTP 201
data · Resultid
POST/contacts/search
Permissions contacts.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
JSON body
q | string | optional |
|---|---|---|
external_reference | string | optional |
phone | string | optional |
email | string | optional |
Response · HTTP 200
data · Contact[]id · name · company_id · phones · emails · tag_ids · custom_fields
GET/contacts/{id}
Permissions contacts.read
Parameters
id | path | required |
|---|
Response · HTTP 200
data · Contactid · name · company_id · phones · emails · tag_ids · custom_fields
PATCH/contacts/{id}
Permissions contacts.write
Parameters
id | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
name | string | optional |
|---|---|---|
phones | object[] | optional |
emails | object[] | optional |
company_id | string | null | optional |
tag_ids | string[] | optional |
custom_fields | object | optional |
external_reference | string | optional |
Response · HTTP 200
data · Resultid
GET/companies
Permissions companies.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Company[]id · name · custom_fields
POST/companies
Permissions companies.write
Parameters
Idempotency-Key | header | required |
|---|
JSON body
name | string | required |
|---|---|---|
custom_fields | object | optional |
external_reference | string | optional |
Response · HTTP 201
data · Resultid
POST/companies/search
Permissions companies.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
JSON body
q | string | optional |
|---|---|---|
external_reference | string | optional |
Response · HTTP 200
data · Company[]id · name · custom_fields
GET/companies/{id}
Permissions companies.read
Parameters
id | path | required |
|---|
Response · HTTP 200
data · Companyid · name · custom_fields
PATCH/companies/{id}
Permissions companies.write
Parameters
id | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
name | string | optional |
|---|---|---|
custom_fields | object | optional |
external_reference | string | optional |
Response · HTTP 200
data · Resultid
GET/deals
Permissions deals.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Deal[]id · title · company_id · contact_ids · pipeline_id · stage_id · status · amount · expected_close_date · reason · loss_reason_id · custom_fields
POST/deals
Permissions deals.write
Parameters
Idempotency-Key | header | required |
|---|
JSON body
title | string | null | optional |
|---|---|---|
company_id | string | null | optional |
contact_ids | string[] | optional |
amount | number | null | optional |
expected_close_date | string (date) | null | optional |
custom_fields | object | optional |
external_reference | string | optional |
pipeline_id | string | required |
stage_id | string | required |
Response · HTTP 201
data · Resultid
POST/deals/search
Permissions deals.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
JSON body
q | string | optional |
|---|---|---|
external_reference | string | optional |
Response · HTTP 200
data · Deal[]id · title · company_id · contact_ids · pipeline_id · stage_id · status · amount · expected_close_date · reason · loss_reason_id · custom_fields
GET/deals/{id}
Permissions deals.read
Parameters
id | path | required |
|---|
Response · HTTP 200
data · Dealid · title · company_id · contact_ids · pipeline_id · stage_id · status · amount · expected_close_date · reason · loss_reason_id · custom_fields
PATCH/deals/{id}
Permissions deals.write
Parameters
id | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
title | string | null | optional |
|---|---|---|
company_id | string | null | optional |
contact_ids | string[] | optional |
amount | number | null | optional |
expected_close_date | string (date) | null | optional |
custom_fields | object | optional |
external_reference | string | optional |
Response · HTTP 200
data · Resultid
POST/deals/{id}/move
Permissions deals.write
Parameters
id | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
pipeline_id | string | required |
|---|---|---|
stage_id | string | required |
Response · HTTP 200
data · Resultid
POST/deals/{id}/win
Permissions deals.write
Parameters
id | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
{}Response · HTTP 200
data · Resultid
POST/deals/{id}/lose
Permissions deals.write
Parameters
id | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
loss_reason_id | string | optional |
|---|---|---|
reason | string | optional |
Response · HTTP 200
data · Resultid
POST/deals/{id}/reopen
Permissions deals.write
Parameters
id | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
{}Response · HTTP 200
data · Resultid
GET/deals/{parent}/activities
Permissions activities.read
Parameters
parent | path | required |
|---|---|---|
limit | query | optional |
cursor | query | optional |
Response · HTTP 200
data · Activity[]id · deal_id · kind · title · description · author · occurred_at · completed · due_date · assignee_id · type_name
POST/deals/{parent}/notes
Permissions activities.write
Parameters
parent | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
description | string | required |
|---|---|---|
activity_type_id | string | optional |
Response · HTTP 201
data · Resultid
POST/deals/{parent}/tasks
Permissions activities.write
Parameters
parent | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
title | string | optional |
|---|---|---|
description | string | required |
due_date | string (date) | required |
assignee_id | string | null | optional |
activity_type_id | string | optional |
Response · HTTP 201
data · Resultid
PATCH/deals/{parent}/tasks/{id}
Permissions activities.write
Parameters
parent | path | required |
|---|---|---|
id | path | required |
Idempotency-Key | header | required |
JSON body
assignee_id | string | null | optional |
|---|---|---|
due_date | string (date) | optional |
Response · HTTP 200
data · Resultid
POST/deals/{parent}/tasks/{id}/complete
Permissions activities.write
Parameters
parent | path | required |
|---|---|---|
id | path | required |
Idempotency-Key | header | required |
JSON body
{}Response · HTTP 200
data · Resultid
GET/pipelines
Permissions catalogs.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Pipeline[]id · name · position
GET/loss-reasons
Permissions catalogs.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Catalog[]id · name
GET/activity-types
Permissions catalogs.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Catalog[]id · name
GET/assignees
Permissions catalogs.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Catalog[]id · name
GET/tags
Permissions catalogs.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Tag[]id · name · color
GET/pipelines/{parent}/stages
Permissions catalogs.read
Parameters
parent | path | required |
|---|---|---|
limit | query | optional |
cursor | query | optional |
Response · HTTP 200
data · Stage[]id · name · pipeline_id · position
GET/fields/contact
Permissions catalogs.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Field[]id · name · type
GET/fields/contact/{parent}/options
Permissions catalogs.read
Parameters
parent | path | required |
|---|---|---|
limit | query | optional |
cursor | query | optional |
Response · HTTP 200
data · Option[]id · name · field_id
GET/fields/company
Permissions catalogs.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Field[]id · name · type
GET/fields/company/{parent}/options
Permissions catalogs.read
Parameters
parent | path | required |
|---|---|---|
limit | query | optional |
cursor | query | optional |
Response · HTTP 200
data · Option[]id · name · field_id
GET/fields/deal
Permissions catalogs.read
Parameters
limit | query | optional |
|---|---|---|
cursor | query | optional |
Response · HTTP 200
data · Field[]id · name · type
GET/fields/deal/{parent}/options
Permissions catalogs.read
Parameters
parent | path | required |
|---|---|---|
limit | query | optional |
cursor | query | optional |
Response · HTTP 200
data · Option[]id · name · field_id
GET/whatsapp/lines
Permissions whatsapp.read
Parameters
cursor | query | optional |
|---|---|---|
limit | query | optional |
Response · HTTP 200
data · Line[]id · name · number · status
GET/whatsapp/conversations
Permissions whatsapp.read
Parameters
line_id | query | optional |
|---|---|---|
cursor | query | optional |
limit | query | optional |
Response · HTTP 200
data · Conversation[]id · line_id · contact_id · version · last_message_at
GET/whatsapp/conversations/{id}
Permissions whatsapp.read
Parameters
id | path | required |
|---|
Response · HTTP 200
data · Conversationid · line_id · contact_id · version · last_message_at
GET/whatsapp/conversations/{id}/messages
Permissions whatsapp.read
Parameters
id | path | required |
|---|---|---|
cursor | query | optional |
limit | query | optional |
Response · HTTP 200
data · Message[]id · line_id · conversation_id · status · direction · created_at · origin · author · type · text · privacy · expires_at · edited_at · deleted_on_provider_at
POST/whatsapp/conversations/{id}/messages
Permissions whatsapp.send
Parameters
id | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
line_id | string | required |
|---|---|---|
text | string | required |
expected_version | string | optional |
Response · HTTP 202
data · Sendid · line_id · conversation_id · status
GET/whatsapp/messages/{id}
Permissions whatsapp.read
Parameters
id | path | required |
|---|
Response · HTTP 200
data · Messageid · line_id · conversation_id · status · direction · created_at · origin · author · type · text · privacy · expires_at · edited_at · deleted_on_provider_at
GET/whatsapp/sends/{id}
Permissions whatsapp.send
Parameters
id | path | required |
|---|
Response · HTTP 200
data · Sendid · line_id · conversation_id · status
POST/whatsapp/messages
Permissions whatsapp.send
Parameters
Idempotency-Key | header | required |
|---|
JSON body
line_id | string | required |
|---|---|---|
contact_id | string | required |
phone | string | required |
text | string | required |
expected_version | string | optional |
Response · HTTP 202
data · Sendid · line_id · conversation_id · status
GET/channels
Permissions channels.read
Parameters
cursor | query | optional |
|---|---|---|
limit | query | optional |
Response · HTTP 200
data · Channel[]id · name · visibility
GET/channels/{id}/messages
Permissions channels.read
Parameters
id | path | required |
|---|---|---|
cursor | query | optional |
limit | query | optional |
Response · HTTP 200
data · ChannelMessage[]id · channel_id · root_id · created_at · edited_at · deleted · text · author
POST/channels/{id}/messages
Permissions channels.write
Parameters
id | path | required |
|---|---|---|
Idempotency-Key | header | required |
JSON body
text | string | required |
|---|
Response · HTTP 201
data · ChannelPostid · channel_id · root_id · created_at
GET/channels/{id}/messages/{messageId}/replies
Permissions channels.read
Parameters
id | path | required |
|---|---|---|
messageId | path | required |
cursor | query | optional |
limit | query | optional |
Response · HTTP 200
data · ChannelMessage[]id · channel_id · root_id · created_at · edited_at · deleted · text · author
POST/channels/{id}/messages/{messageId}/replies
Permissions channels.write
Parameters
id | path | required |
|---|---|---|
messageId | path | required |
Idempotency-Key | header | required |
JSON body
text | string | required |
|---|
Response · HTTP 201
data · ChannelPostid · channel_id · root_id · created_at
GET/events
Permissions events.read
Parameters
cursor | query | optional |
|---|---|---|
limit | query | optional |
Response · HTTP 200
data · Event[]event_id · type · version · created_at · resource_id · context · causation_id
No operations found.