KaserkDevelopers

API reference

Explore operations, permissions, parameters, request bodies and responses.

Download OpenAPI

GET/contacts

Permissions contacts.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Contact[]

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

POST/contacts

Permissions contacts.write

Parameters

Idempotency-Keyheaderrequired

JSON body

namestringrequired
phonesobject[]optional
emailsobject[]optional
company_idstring | nulloptional
tag_idsstring[]optional
custom_fieldsobjectoptional
external_referencestringoptional

Response · HTTP 201

data · Result

id

POST/contacts/search

Permissions contacts.read

Parameters

limitqueryoptional
cursorqueryoptional

JSON body

qstringoptional
external_referencestringoptional
phonestringoptional
emailstringoptional

Response · HTTP 200

data · Contact[]

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

GET/contacts/{id}

Permissions contacts.read

Parameters

idpathrequired

Response · HTTP 200

data · Contact

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

PATCH/contacts/{id}

Permissions contacts.write

Parameters

idpathrequired
Idempotency-Keyheaderrequired

JSON body

namestringoptional
phonesobject[]optional
emailsobject[]optional
company_idstring | nulloptional
tag_idsstring[]optional
custom_fieldsobjectoptional
external_referencestringoptional

Response · HTTP 200

data · Result

id

GET/companies

Permissions companies.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Company[]

id · name · custom_fields

POST/companies

Permissions companies.write

Parameters

Idempotency-Keyheaderrequired

JSON body

namestringrequired
custom_fieldsobjectoptional
external_referencestringoptional

Response · HTTP 201

data · Result

id

POST/companies/search

Permissions companies.read

Parameters

limitqueryoptional
cursorqueryoptional

JSON body

qstringoptional
external_referencestringoptional

Response · HTTP 200

data · Company[]

id · name · custom_fields

GET/companies/{id}

Permissions companies.read

Parameters

idpathrequired

Response · HTTP 200

data · Company

id · name · custom_fields

PATCH/companies/{id}

Permissions companies.write

Parameters

idpathrequired
Idempotency-Keyheaderrequired

JSON body

namestringoptional
custom_fieldsobjectoptional
external_referencestringoptional

Response · HTTP 200

data · Result

id

GET/deals

Permissions deals.read

Parameters

limitqueryoptional
cursorqueryoptional

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-Keyheaderrequired

JSON body

titlestring | nulloptional
company_idstring | nulloptional
contact_idsstring[]optional
amountnumber | nulloptional
expected_close_datestring (date) | nulloptional
custom_fieldsobjectoptional
external_referencestringoptional
pipeline_idstringrequired
stage_idstringrequired

Response · HTTP 201

data · Result

id

POST/deals/search

Permissions deals.read

Parameters

limitqueryoptional
cursorqueryoptional

JSON body

qstringoptional
external_referencestringoptional

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

idpathrequired

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

PATCH/deals/{id}

Permissions deals.write

Parameters

idpathrequired
Idempotency-Keyheaderrequired

JSON body

titlestring | nulloptional
company_idstring | nulloptional
contact_idsstring[]optional
amountnumber | nulloptional
expected_close_datestring (date) | nulloptional
custom_fieldsobjectoptional
external_referencestringoptional

Response · HTTP 200

data · Result

id

POST/deals/{id}/move

Permissions deals.write

Parameters

idpathrequired
Idempotency-Keyheaderrequired

JSON body

pipeline_idstringrequired
stage_idstringrequired

Response · HTTP 200

data · Result

id

POST/deals/{id}/win

Permissions deals.write

Parameters

idpathrequired
Idempotency-Keyheaderrequired

JSON body

{}

Response · HTTP 200

data · Result

id

POST/deals/{id}/lose

Permissions deals.write

Parameters

idpathrequired
Idempotency-Keyheaderrequired

JSON body

loss_reason_idstringoptional
reasonstringoptional

Response · HTTP 200

data · Result

id

POST/deals/{id}/reopen

Permissions deals.write

Parameters

idpathrequired
Idempotency-Keyheaderrequired

JSON body

{}

Response · HTTP 200

data · Result

id

GET/deals/{parent}/activities

Permissions activities.read

Parameters

parentpathrequired
limitqueryoptional
cursorqueryoptional

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

parentpathrequired
Idempotency-Keyheaderrequired

JSON body

descriptionstringrequired
activity_type_idstringoptional

Response · HTTP 201

data · Result

id

POST/deals/{parent}/tasks

Permissions activities.write

Parameters

parentpathrequired
Idempotency-Keyheaderrequired

JSON body

titlestringoptional
descriptionstringrequired
due_datestring (date)required
assignee_idstring | nulloptional
activity_type_idstringoptional

Response · HTTP 201

data · Result

id

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

Permissions activities.write

Parameters

parentpathrequired
idpathrequired
Idempotency-Keyheaderrequired

JSON body

assignee_idstring | nulloptional
due_datestring (date)optional

Response · HTTP 200

data · Result

id

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

Permissions activities.write

Parameters

parentpathrequired
idpathrequired
Idempotency-Keyheaderrequired

JSON body

{}

Response · HTTP 200

data · Result

id

GET/pipelines

Permissions catalogs.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Pipeline[]

id · name · position

GET/loss-reasons

Permissions catalogs.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Catalog[]

id · name

GET/activity-types

Permissions catalogs.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Catalog[]

id · name

GET/assignees

Permissions catalogs.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Catalog[]

id · name

GET/tags

Permissions catalogs.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Tag[]

id · name · color

GET/pipelines/{parent}/stages

Permissions catalogs.read

Parameters

parentpathrequired
limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Stage[]

id · name · pipeline_id · position

GET/fields/contact

Permissions catalogs.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Field[]

id · name · type

GET/fields/contact/{parent}/options

Permissions catalogs.read

Parameters

parentpathrequired
limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Option[]

id · name · field_id

GET/fields/company

Permissions catalogs.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Field[]

id · name · type

GET/fields/company/{parent}/options

Permissions catalogs.read

Parameters

parentpathrequired
limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Option[]

id · name · field_id

GET/fields/deal

Permissions catalogs.read

Parameters

limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Field[]

id · name · type

GET/fields/deal/{parent}/options

Permissions catalogs.read

Parameters

parentpathrequired
limitqueryoptional
cursorqueryoptional

Response · HTTP 200

data · Option[]

id · name · field_id

GET/whatsapp/lines

Permissions whatsapp.read

Parameters

cursorqueryoptional
limitqueryoptional

Response · HTTP 200

data · Line[]

id · name · number · status

GET/whatsapp/conversations

Permissions whatsapp.read

Parameters

line_idqueryoptional
cursorqueryoptional
limitqueryoptional

Response · HTTP 200

data · Conversation[]

id · line_id · contact_id · version · last_message_at

GET/whatsapp/conversations/{id}

Permissions whatsapp.read

Parameters

idpathrequired

Response · HTTP 200

data · Conversation

id · line_id · contact_id · version · last_message_at

GET/whatsapp/conversations/{id}/messages

Permissions whatsapp.read

Parameters

idpathrequired
cursorqueryoptional
limitqueryoptional

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

idpathrequired
Idempotency-Keyheaderrequired

JSON body

line_idstringrequired
textstringrequired
expected_versionstringoptional

Response · HTTP 202

data · Send

id · line_id · conversation_id · status

GET/whatsapp/messages/{id}

Permissions whatsapp.read

Parameters

idpathrequired

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

GET/whatsapp/sends/{id}

Permissions whatsapp.send

Parameters

idpathrequired

Response · HTTP 200

data · Send

id · line_id · conversation_id · status

POST/whatsapp/messages

Permissions whatsapp.send

Parameters

Idempotency-Keyheaderrequired

JSON body

line_idstringrequired
contact_idstringrequired
phonestringrequired
textstringrequired
expected_versionstringoptional

Response · HTTP 202

data · Send

id · line_id · conversation_id · status

GET/channels

Permissions channels.read

Parameters

cursorqueryoptional
limitqueryoptional

Response · HTTP 200

data · Channel[]

id · name · visibility

GET/channels/{id}/messages

Permissions channels.read

Parameters

idpathrequired
cursorqueryoptional
limitqueryoptional

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

idpathrequired
Idempotency-Keyheaderrequired

JSON body

textstringrequired

Response · HTTP 201

data · ChannelPost

id · channel_id · root_id · created_at

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

Permissions channels.read

Parameters

idpathrequired
messageIdpathrequired
cursorqueryoptional
limitqueryoptional

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

idpathrequired
messageIdpathrequired
Idempotency-Keyheaderrequired

JSON body

textstringrequired

Response · HTTP 201

data · ChannelPost

id · channel_id · root_id · created_at

GET/events

Permissions events.read

Parameters

cursorqueryoptional
limitqueryoptional

Response · HTTP 200

data · Event[]

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