CRMIntegrationCreate
A company-level connection to an external CRM (amoCRM, Kommo, Bitrix24, FastTrack, Usedesk, or Google Sheets). OAuth-based CRMs are connected via their connect flow; Google Sheets is created through the dedicated endpoint. The safe form omits secrets.
ID of the owning company (the top-level tenant account).
name object
Optional human-readable integration name.
- string
- null
The CRM system — amocrm, kommo, bitrix24, fasttrack, usedesk, or google_sheets.
Possible values: [amocrm, bitrix24, fasttrack, kommo, usedesk, google_sheets]
Whether the integration is active.
truewebhook_uuid object
- string
- null
config objectrequired
Non-secret CRM configuration (e.g. pipeline mapping, rate limits).
Possible values: [lead, deal]
dealgoogle_sheets object
- GoogleSheetsConfig
- null
sheet_url object
- string
- null
sheet_name object
- string
- null
google_sheets_pipelinemapping object
crm_id_column object
- string
- null
name_column object
- string
- null
contact_column object
- string
- null
contact_type_column object
- ContactType
- null
Possible values: [phone, username, chat_id, email]
contact_platform_column object
- string
- null
Possible values: [phone, username, chat_id, email]
phonecontact_platform_default object
- string
- null
Possible values: [telegram, whatsapp, waba, max, viber, instagram, fasttrack, usedesk, salebot, avito, vk, yandex_messenger, email, sms, pinbox, linkedin, amocrm_salesbot, bitrix24_openlines, sip, webrtc, bothelp]
stagedialogue_history_column object
- string
- null
crm_fields_dump_column object
- string
- null
summary_column object
- string
- null
71falsefalsefalse72secrets objectrequired
redirect_uri object
- string
- null
service_account_json object
- object
- null
tokens object
- CRMIntegrationTokens
- null
application_token object
- string
- null
Possible values: [v1, v2]
v1amojo_id object
- string
- null
chat_scope_id object
- string
- null
chat_channel_id object
- string
- null
chat_bot_id object
- string
- null
chat_client_secret object
- string
- null
agent_id object
ID of the agent (a configured AI assistant / bot persona) this record belongs to.
- string
- null
amocrm_salesbot_bot_id object
- integer
- null
bitrix24_openlines_bot_id object
ID of the Open Lines bot provisioned by the explicit Open Line configuration endpoint. Clients should not set or change it.
- integer
- null
{
"company_id": 0,
"name": "string",
"crm_type": "amocrm",
"is_active": true,
"webhook_uuid": "string",
"config": {
"lead_mode": "deal",
"google_sheets": {
"sheet_url": "string",
"sheet_name": "string",
"pipeline_id": "google_sheets_pipeline",
"mapping": {
"crm_id_column": "string",
"name_column": "string",
"contact_column": "string",
"contact_type_column": "phone",
"contact_platform_column": "string",
"contact_type_default": "phone",
"contact_platform_default": "telegram",
"stage_column": "stage",
"crm_fields_columns": [
"string"
],
"document_columns": [
"string"
],
"dialogue_history_column": "string",
"crm_fields_dump_column": "string",
"summary_column": "string"
}
},
"rate_limit_requests": 7,
"rate_limit_period": 1,
"responsible_whitelist_enabled": false,
"responsible_whitelist": [
"string"
],
"crm_id_whitelist": [
"string"
],
"crm_id_whitelist_enabled": false,
"skip_if_multiple_recent_tickets": false,
"skip_if_multiple_recent_tickets_threshold_hours": 72,
"secrets": {
"client_id": "string",
"client_secret": "string",
"redirect_uri": "string",
"service_account_json": {}
},
"tokens": {
"access_token": "string",
"refresh_token": "string",
"account_id": "",
"token_type": "",
"expires_at": "2024-07-29T15:51:28.071Z",
"referer": "",
"application_token": "string"
},
"version": "v1",
"amojo_id": "string",
"chat_scope_id": "string",
"chat_channel_id": "string",
"chat_bot_id": "string",
"chat_client_secret": "string",
"agent_id": "string",
"amocrm_salesbot_bot_id": 0,
"bitrix24_openlines_bot_id": 0
}
}