Referência da API
Consulte operações, permissões, parâmetros, dados enviados e respostas.
GET/contacts
Permissões contacts.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Contact[]id · name · company_id · phones · emails · tag_ids · custom_fields
POST/contacts
Permissões contacts.write
Parâmetros
Idempotency-Key | header | obrigatório |
|---|
Corpo JSON
name | string | obrigatório |
|---|---|---|
phones | object[] | opcional |
emails | object[] | opcional |
company_id | string | null | opcional |
tag_ids | string[] | opcional |
custom_fields | object | opcional |
external_reference | string | opcional |
Resposta · HTTP 201
data · Resultid
POST/contacts/search
Permissões contacts.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Corpo JSON
q | string | opcional |
|---|---|---|
external_reference | string | opcional |
phone | string | opcional |
email | string | opcional |
Resposta · HTTP 200
data · Contact[]id · name · company_id · phones · emails · tag_ids · custom_fields
GET/contacts/{id}
Permissões contacts.read
Parâmetros
id | path | obrigatório |
|---|
Resposta · HTTP 200
data · Contactid · name · company_id · phones · emails · tag_ids · custom_fields
PATCH/contacts/{id}
Permissões contacts.write
Parâmetros
id | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
name | string | opcional |
|---|---|---|
phones | object[] | opcional |
emails | object[] | opcional |
company_id | string | null | opcional |
tag_ids | string[] | opcional |
custom_fields | object | opcional |
external_reference | string | opcional |
Resposta · HTTP 200
data · Resultid
GET/companies
Permissões companies.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Company[]id · name · custom_fields
POST/companies
Permissões companies.write
Parâmetros
Idempotency-Key | header | obrigatório |
|---|
Corpo JSON
name | string | obrigatório |
|---|---|---|
custom_fields | object | opcional |
external_reference | string | opcional |
Resposta · HTTP 201
data · Resultid
POST/companies/search
Permissões companies.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Corpo JSON
q | string | opcional |
|---|---|---|
external_reference | string | opcional |
Resposta · HTTP 200
data · Company[]id · name · custom_fields
GET/companies/{id}
Permissões companies.read
Parâmetros
id | path | obrigatório |
|---|
Resposta · HTTP 200
data · Companyid · name · custom_fields
PATCH/companies/{id}
Permissões companies.write
Parâmetros
id | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
name | string | opcional |
|---|---|---|
custom_fields | object | opcional |
external_reference | string | opcional |
Resposta · HTTP 200
data · Resultid
GET/deals
Permissões deals.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · 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
Permissões deals.write
Parâmetros
Idempotency-Key | header | obrigatório |
|---|
Corpo JSON
title | string | null | opcional |
|---|---|---|
company_id | string | null | opcional |
contact_ids | string[] | opcional |
amount | number | null | opcional |
expected_close_date | string (date) | null | opcional |
custom_fields | object | opcional |
external_reference | string | opcional |
pipeline_id | string | obrigatório |
stage_id | string | obrigatório |
Resposta · HTTP 201
data · Resultid
POST/deals/search
Permissões deals.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Corpo JSON
q | string | opcional |
|---|---|---|
external_reference | string | opcional |
Resposta · 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}
Permissões deals.read
Parâmetros
id | path | obrigatório |
|---|
Resposta · 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}
Permissões deals.write
Parâmetros
id | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
title | string | null | opcional |
|---|---|---|
company_id | string | null | opcional |
contact_ids | string[] | opcional |
amount | number | null | opcional |
expected_close_date | string (date) | null | opcional |
custom_fields | object | opcional |
external_reference | string | opcional |
Resposta · HTTP 200
data · Resultid
POST/deals/{id}/move
Permissões deals.write
Parâmetros
id | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
pipeline_id | string | obrigatório |
|---|---|---|
stage_id | string | obrigatório |
Resposta · HTTP 200
data · Resultid
POST/deals/{id}/win
Permissões deals.write
Parâmetros
id | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
{}Resposta · HTTP 200
data · Resultid
POST/deals/{id}/lose
Permissões deals.write
Parâmetros
id | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
loss_reason_id | string | opcional |
|---|---|---|
reason | string | opcional |
Resposta · HTTP 200
data · Resultid
POST/deals/{id}/reopen
Permissões deals.write
Parâmetros
id | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
{}Resposta · HTTP 200
data · Resultid
GET/deals/{parent}/activities
Permissões activities.read
Parâmetros
parent | path | obrigatório |
|---|---|---|
limit | query | opcional |
cursor | query | opcional |
Resposta · HTTP 200
data · Activity[]id · deal_id · kind · title · description · author · occurred_at · completed · due_date · assignee_id · type_name
POST/deals/{parent}/notes
Permissões activities.write
Parâmetros
parent | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
description | string | obrigatório |
|---|---|---|
activity_type_id | string | opcional |
Resposta · HTTP 201
data · Resultid
POST/deals/{parent}/tasks
Permissões activities.write
Parâmetros
parent | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
title | string | opcional |
|---|---|---|
description | string | obrigatório |
due_date | string (date) | obrigatório |
assignee_id | string | null | opcional |
activity_type_id | string | opcional |
Resposta · HTTP 201
data · Resultid
PATCH/deals/{parent}/tasks/{id}
Permissões activities.write
Parâmetros
parent | path | obrigatório |
|---|---|---|
id | path | obrigatório |
Idempotency-Key | header | obrigatório |
Corpo JSON
assignee_id | string | null | opcional |
|---|---|---|
due_date | string (date) | opcional |
Resposta · HTTP 200
data · Resultid
POST/deals/{parent}/tasks/{id}/complete
Permissões activities.write
Parâmetros
parent | path | obrigatório |
|---|---|---|
id | path | obrigatório |
Idempotency-Key | header | obrigatório |
Corpo JSON
{}Resposta · HTTP 200
data · Resultid
GET/pipelines
Permissões catalogs.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Pipeline[]id · name · position
GET/loss-reasons
Permissões catalogs.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Catalog[]id · name
GET/activity-types
Permissões catalogs.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Catalog[]id · name
GET/assignees
Permissões catalogs.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Catalog[]id · name
GET/tags
Permissões catalogs.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Tag[]id · name · color
GET/pipelines/{parent}/stages
Permissões catalogs.read
Parâmetros
parent | path | obrigatório |
|---|---|---|
limit | query | opcional |
cursor | query | opcional |
Resposta · HTTP 200
data · Stage[]id · name · pipeline_id · position
GET/fields/contact
Permissões catalogs.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Field[]id · name · type
GET/fields/contact/{parent}/options
Permissões catalogs.read
Parâmetros
parent | path | obrigatório |
|---|---|---|
limit | query | opcional |
cursor | query | opcional |
Resposta · HTTP 200
data · Option[]id · name · field_id
GET/fields/company
Permissões catalogs.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Field[]id · name · type
GET/fields/company/{parent}/options
Permissões catalogs.read
Parâmetros
parent | path | obrigatório |
|---|---|---|
limit | query | opcional |
cursor | query | opcional |
Resposta · HTTP 200
data · Option[]id · name · field_id
GET/fields/deal
Permissões catalogs.read
Parâmetros
limit | query | opcional |
|---|---|---|
cursor | query | opcional |
Resposta · HTTP 200
data · Field[]id · name · type
GET/fields/deal/{parent}/options
Permissões catalogs.read
Parâmetros
parent | path | obrigatório |
|---|---|---|
limit | query | opcional |
cursor | query | opcional |
Resposta · HTTP 200
data · Option[]id · name · field_id
GET/whatsapp/lines
Permissões whatsapp.read
Parâmetros
cursor | query | opcional |
|---|---|---|
limit | query | opcional |
Resposta · HTTP 200
data · Line[]id · name · number · status
GET/whatsapp/conversations
Permissões whatsapp.read
Parâmetros
line_id | query | opcional |
|---|---|---|
cursor | query | opcional |
limit | query | opcional |
Resposta · HTTP 200
data · Conversation[]id · line_id · contact_id · version · last_message_at
GET/whatsapp/conversations/{id}
Permissões whatsapp.read
Parâmetros
id | path | obrigatório |
|---|
Resposta · HTTP 200
data · Conversationid · line_id · contact_id · version · last_message_at
GET/whatsapp/conversations/{id}/messages
Permissões whatsapp.read
Parâmetros
id | path | obrigatório |
|---|---|---|
cursor | query | opcional |
limit | query | opcional |
Resposta · 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
Permissões whatsapp.send
Parâmetros
id | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
line_id | string | obrigatório |
|---|---|---|
text | string | obrigatório |
expected_version | string | opcional |
Resposta · HTTP 202
data · Sendid · line_id · conversation_id · status
GET/whatsapp/messages/{id}
Permissões whatsapp.read
Parâmetros
id | path | obrigatório |
|---|
Resposta · 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}
Permissões whatsapp.send
Parâmetros
id | path | obrigatório |
|---|
Resposta · HTTP 200
data · Sendid · line_id · conversation_id · status
POST/whatsapp/messages
Permissões whatsapp.send
Parâmetros
Idempotency-Key | header | obrigatório |
|---|
Corpo JSON
line_id | string | obrigatório |
|---|---|---|
contact_id | string | obrigatório |
phone | string | obrigatório |
text | string | obrigatório |
expected_version | string | opcional |
Resposta · HTTP 202
data · Sendid · line_id · conversation_id · status
GET/channels
Permissões channels.read
Parâmetros
cursor | query | opcional |
|---|---|---|
limit | query | opcional |
Resposta · HTTP 200
data · Channel[]id · name · visibility
GET/channels/{id}/messages
Permissões channels.read
Parâmetros
id | path | obrigatório |
|---|---|---|
cursor | query | opcional |
limit | query | opcional |
Resposta · HTTP 200
data · ChannelMessage[]id · channel_id · root_id · created_at · edited_at · deleted · text · author
POST/channels/{id}/messages
Permissões channels.write
Parâmetros
id | path | obrigatório |
|---|---|---|
Idempotency-Key | header | obrigatório |
Corpo JSON
text | string | obrigatório |
|---|
Resposta · HTTP 201
data · ChannelPostid · channel_id · root_id · created_at
GET/channels/{id}/messages/{messageId}/replies
Permissões channels.read
Parâmetros
id | path | obrigatório |
|---|---|---|
messageId | path | obrigatório |
cursor | query | opcional |
limit | query | opcional |
Resposta · HTTP 200
data · ChannelMessage[]id · channel_id · root_id · created_at · edited_at · deleted · text · author
POST/channels/{id}/messages/{messageId}/replies
Permissões channels.write
Parâmetros
id | path | obrigatório |
|---|---|---|
messageId | path | obrigatório |
Idempotency-Key | header | obrigatório |
Corpo JSON
text | string | obrigatório |
|---|
Resposta · HTTP 201
data · ChannelPostid · channel_id · root_id · created_at
GET/events
Permissões events.read
Parâmetros
cursor | query | opcional |
|---|---|---|
limit | query | opcional |
Resposta · HTTP 200
data · Event[]event_id · type · version · created_at · resource_id · context · causation_id
Nenhuma operação encontrada.