KaserkDevelopers
EnglishCriar integração

Referência da API

Consulte operações, permissões, parâmetros, dados enviados e respostas.

Baixar OpenAPI

GET/contacts

Permissões contacts.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Contact[]

id · name · company_id · phones · emails · tag_ids · custom_fields

POST/contacts

Permissões contacts.write

Parâmetros

Idempotency-Keyheaderobrigatório

Corpo JSON

namestringobrigatório
phonesobject[]opcional
emailsobject[]opcional
company_idstring | nullopcional
tag_idsstring[]opcional
custom_fieldsobjectopcional
external_referencestringopcional

Resposta · HTTP 201

data · Result

id

POST/contacts/search

Permissões contacts.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Corpo JSON

qstringopcional
external_referencestringopcional
phonestringopcional
emailstringopcional

Resposta · HTTP 200

data · Contact[]

id · name · company_id · phones · emails · tag_ids · custom_fields

GET/contacts/{id}

Permissões contacts.read

Parâmetros

idpathobrigatório

Resposta · HTTP 200

data · Contact

id · name · company_id · phones · emails · tag_ids · custom_fields

PATCH/contacts/{id}

Permissões contacts.write

Parâmetros

idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

namestringopcional
phonesobject[]opcional
emailsobject[]opcional
company_idstring | nullopcional
tag_idsstring[]opcional
custom_fieldsobjectopcional
external_referencestringopcional

Resposta · HTTP 200

data · Result

id

GET/companies

Permissões companies.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Company[]

id · name · custom_fields

POST/companies

Permissões companies.write

Parâmetros

Idempotency-Keyheaderobrigatório

Corpo JSON

namestringobrigatório
custom_fieldsobjectopcional
external_referencestringopcional

Resposta · HTTP 201

data · Result

id

POST/companies/search

Permissões companies.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Corpo JSON

qstringopcional
external_referencestringopcional

Resposta · HTTP 200

data · Company[]

id · name · custom_fields

GET/companies/{id}

Permissões companies.read

Parâmetros

idpathobrigatório

Resposta · HTTP 200

data · Company

id · name · custom_fields

PATCH/companies/{id}

Permissões companies.write

Parâmetros

idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

namestringopcional
custom_fieldsobjectopcional
external_referencestringopcional

Resposta · HTTP 200

data · Result

id

GET/deals

Permissões deals.read

Parâmetros

limitqueryopcional
cursorqueryopcional

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-Keyheaderobrigatório

Corpo JSON

titlestring | nullopcional
company_idstring | nullopcional
contact_idsstring[]opcional
amountnumber | nullopcional
expected_close_datestring (date) | nullopcional
custom_fieldsobjectopcional
external_referencestringopcional
pipeline_idstringobrigatório
stage_idstringobrigatório

Resposta · HTTP 201

data · Result

id

POST/deals/search

Permissões deals.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Corpo JSON

qstringopcional
external_referencestringopcional

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

idpathobrigatório

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

PATCH/deals/{id}

Permissões deals.write

Parâmetros

idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

titlestring | nullopcional
company_idstring | nullopcional
contact_idsstring[]opcional
amountnumber | nullopcional
expected_close_datestring (date) | nullopcional
custom_fieldsobjectopcional
external_referencestringopcional

Resposta · HTTP 200

data · Result

id

POST/deals/{id}/move

Permissões deals.write

Parâmetros

idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

pipeline_idstringobrigatório
stage_idstringobrigatório

Resposta · HTTP 200

data · Result

id

POST/deals/{id}/win

Permissões deals.write

Parâmetros

idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

{}

Resposta · HTTP 200

data · Result

id

POST/deals/{id}/lose

Permissões deals.write

Parâmetros

idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

loss_reason_idstringopcional
reasonstringopcional

Resposta · HTTP 200

data · Result

id

POST/deals/{id}/reopen

Permissões deals.write

Parâmetros

idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

{}

Resposta · HTTP 200

data · Result

id

GET/deals/{parent}/activities

Permissões activities.read

Parâmetros

parentpathobrigatório
limitqueryopcional
cursorqueryopcional

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

parentpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

descriptionstringobrigatório
activity_type_idstringopcional

Resposta · HTTP 201

data · Result

id

POST/deals/{parent}/tasks

Permissões activities.write

Parâmetros

parentpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

titlestringopcional
descriptionstringobrigatório
due_datestring (date)obrigatório
assignee_idstring | nullopcional
activity_type_idstringopcional

Resposta · HTTP 201

data · Result

id

PATCH/deals/{parent}/tasks/{id}

Permissões activities.write

Parâmetros

parentpathobrigatório
idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

assignee_idstring | nullopcional
due_datestring (date)opcional

Resposta · HTTP 200

data · Result

id

POST/deals/{parent}/tasks/{id}/complete

Permissões activities.write

Parâmetros

parentpathobrigatório
idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

{}

Resposta · HTTP 200

data · Result

id

GET/pipelines

Permissões catalogs.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Pipeline[]

id · name · position

GET/loss-reasons

Permissões catalogs.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Catalog[]

id · name

GET/activity-types

Permissões catalogs.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Catalog[]

id · name

GET/assignees

Permissões catalogs.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Catalog[]

id · name

GET/tags

Permissões catalogs.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Tag[]

id · name · color

GET/pipelines/{parent}/stages

Permissões catalogs.read

Parâmetros

parentpathobrigatório
limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Stage[]

id · name · pipeline_id · position

GET/fields/contact

Permissões catalogs.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Field[]

id · name · type

GET/fields/contact/{parent}/options

Permissões catalogs.read

Parâmetros

parentpathobrigatório
limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Option[]

id · name · field_id

GET/fields/company

Permissões catalogs.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Field[]

id · name · type

GET/fields/company/{parent}/options

Permissões catalogs.read

Parâmetros

parentpathobrigatório
limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Option[]

id · name · field_id

GET/fields/deal

Permissões catalogs.read

Parâmetros

limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Field[]

id · name · type

GET/fields/deal/{parent}/options

Permissões catalogs.read

Parâmetros

parentpathobrigatório
limitqueryopcional
cursorqueryopcional

Resposta · HTTP 200

data · Option[]

id · name · field_id

GET/whatsapp/lines

Permissões whatsapp.read

Parâmetros

cursorqueryopcional
limitqueryopcional

Resposta · HTTP 200

data · Line[]

id · name · number · status

GET/whatsapp/conversations

Permissões whatsapp.read

Parâmetros

line_idqueryopcional
cursorqueryopcional
limitqueryopcional

Resposta · HTTP 200

data · Conversation[]

id · line_id · contact_id · version · last_message_at

GET/whatsapp/conversations/{id}

Permissões whatsapp.read

Parâmetros

idpathobrigatório

Resposta · HTTP 200

data · Conversation

id · line_id · contact_id · version · last_message_at

GET/whatsapp/conversations/{id}/messages

Permissões whatsapp.read

Parâmetros

idpathobrigatório
cursorqueryopcional
limitqueryopcional

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

idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

line_idstringobrigatório
textstringobrigatório
expected_versionstringopcional

Resposta · HTTP 202

data · Send

id · line_id · conversation_id · status

GET/whatsapp/messages/{id}

Permissões whatsapp.read

Parâmetros

idpathobrigatório

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

GET/whatsapp/sends/{id}

Permissões whatsapp.send

Parâmetros

idpathobrigatório

Resposta · HTTP 200

data · Send

id · line_id · conversation_id · status

POST/whatsapp/messages

Permissões whatsapp.send

Parâmetros

Idempotency-Keyheaderobrigatório

Corpo JSON

line_idstringobrigatório
contact_idstringobrigatório
phonestringobrigatório
textstringobrigatório
expected_versionstringopcional

Resposta · HTTP 202

data · Send

id · line_id · conversation_id · status

GET/channels

Permissões channels.read

Parâmetros

cursorqueryopcional
limitqueryopcional

Resposta · HTTP 200

data · Channel[]

id · name · visibility

GET/channels/{id}/messages

Permissões channels.read

Parâmetros

idpathobrigatório
cursorqueryopcional
limitqueryopcional

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

idpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

textstringobrigatório

Resposta · HTTP 201

data · ChannelPost

id · channel_id · root_id · created_at

GET/channels/{id}/messages/{messageId}/replies

Permissões channels.read

Parâmetros

idpathobrigatório
messageIdpathobrigatório
cursorqueryopcional
limitqueryopcional

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

idpathobrigatório
messageIdpathobrigatório
Idempotency-Keyheaderobrigatório

Corpo JSON

textstringobrigatório

Resposta · HTTP 201

data · ChannelPost

id · channel_id · root_id · created_at

GET/events

Permissões events.read

Parâmetros

cursorqueryopcional
limitqueryopcional

Resposta · HTTP 200

data · Event[]

event_id · type · version · created_at · resource_id · context · causation_id