{"info":{"_postman_id":"2b2e04d5-799d-4160-ab5c-62bf0d0505ad","name":"Jetapi","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"31634267","collectionId":"2b2e04d5-799d-4160-ab5c-62bf0d0505ad","publishedId":"2sA2r834S1","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"0568FD"},"publishDate":"2024-02-26T12:26:58.000Z"},"item":[{"name":"For individual Developers","item":[{"name":"Account","item":[{"name":"View account information","id":"29efbd51-1493-4843-9210-cae3e3a9a39f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/account","urlObject":{"protocol":"https","path":["api","v1","account"],"host":["api","jetapi","io"],"query":[],"variable":[]}},"response":[{"id":"5cd518c7-3b00-4a46-b7ea-11f9169d95b5","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":"https://api.jetapi.io/api/v1/account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:48:50 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"173"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5tx6S9-yyctcKoAPAlm"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"account\": {\n        \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJjdXN0b21lcl9pZCI6ODEzLCJkYXRldGltZSI6MTYwMDcyMDU5MH0.iSZxL5MA5LL6ViIKOfdCTvMJ9Lc_KQzuXm0\",\n        \"total_amount\": \"780.70\",\n        \"customer_id\": 8143,\n        \"dispatch_routing\": [\n            \"sms\"\n        ],\n        \"subscription_paid_until\": \"2025-07-01\",\n        \"sender_names\": [\n            \"jeth813\",\n            \"testname\",\n        ],\n        \"tdlib_session\": 3,\n        \"whatsapp_session\": 1,\n        \"subscription_status\": \"active\",\n        \"subscription_cost\": \"100.00\"\n    }\n}"}],"_postman_id":"29efbd51-1493-4843-9210-cae3e3a9a39f"}],"id":"e46e52c0-cbbc-4db1-b572-723608c06573","_postman_id":"e46e52c0-cbbc-4db1-b572-723608c06573","description":""},{"name":"Available endpoints","item":[{"name":"Delivery","id":"ea49fe72-5621-405c-ba99-8450050a35ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/api/v1/delivery?phone=995598464533&text=test","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>Sending messages with the specified parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>required</td>\n</tr>\n<tr>\n<td>HTTP – method</td>\n<td>POST</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.jetapi.io/api/v1/delivery\">https://api.jetapi.io/api/v1/delivery</a></td>\n</tr>\n<tr>\n<td>Response option</td>\n<td>Successful with http code 200, unsuccessful with code 422</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v1","delivery"],"host":["api","jetapi","io"],"query":[{"description":{"content":"<p>string | required | The phone number of the message recipient. The international format is 995598464533</p>\n","type":"text/plain"},"key":"phone","value":"995598464533"},{"description":{"content":"<p>string | required | Message text. The standard length for a single message is 3500 characters for messengers and 160 characters for Latin letters SMS.</p>\n","type":"text/plain"},"key":"text","value":"test"},{"disabled":true,"description":{"content":"<p>string | optional | Registered name of the SMS sender</p>\n","type":"text/plain"},"key":"sender_name","value":"SENDERNAME"},{"disabled":true,"description":{"content":"<p>string | optional | A label for marking shipments.</p>\n","type":"text/plain"},"key":"utm_mark","value":"example_mark"},{"disabled":true,"description":{"content":"<p>string | optional | URL to which information will be automatically sent when the sending status is updated.</p>\n","type":"text/plain"},"key":"callback_url","value":"http://example-url.com"},{"disabled":true,"description":{"content":"<p>string | optional | The ID of the message. It is generated on the client side and is required in a unique way to use idempotence.</p>\n","type":"text/plain"},"key":"external_id","value":"1"},{"disabled":true,"description":{"content":"<p>array | optional | Channels and the sequence of sending the message.\nwhatsapp - Whatsapp.\ntdlib - numeric Telegram.\nTelegram - Telegram Bot.\nnotify - VK and OK.\nmax-MAX.</p>\n","type":"text/plain"},"key":"dispatch_routing[]","value":"sms"},{"disabled":true,"description":{"content":"<p>datetime | optional | The delayed dispatch date must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS.</p>\n","type":"text/plain"},"key":"scheduled_at","value":"2023-11-21 20:30:00"},{"disabled":true,"description":{"content":"<p>string | optional | Priority of sending the message. Available values are \"high\", \"medium\" and \"low\". If there is no parameter, the optimal value is determined automatically.</p>\n","type":"text/plain"},"key":"priority","value":"high"},{"disabled":true,"description":{"content":"<p>string | optional | Client name in telegram. Used only when sending via tdlib channel. Accepted in the format - username, @username</p>\n","type":"text/plain"},"key":"username","value":"username"},{"disabled":true,"description":{"content":"<p>string | optional |  Message ID of the message (from webhook) we are replying to</p>\n","type":"text/plain"},"key":"reply_to_message_id","value":""},{"disabled":true,"description":{"content":"<p>string | optional |  Client tdlib ID, used instead of phone number or name, when sending in a channel personal Telegram tdlib. This parameter can be used both for sending to private chats and for sending to group chats (if tdlib_user_id &gt; 0 is a private chat, if &lt;0 is a group chat (the group ID is always negative)</p>\n","type":"text/plain"},"key":"tdlib_user_id","value":""},{"disabled":true,"description":{"content":"<p>boolean | optional | The default value of the parameter is true. If true, a simulation of typing a message in whatsapp will occur, if false, the message will leave instantly</p>\n","type":"text/plain"},"key":"simulate_typing","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Customer's lid ID on the WhatsApp side. Used only when sending to WhatsApp. Accepted for sending as an integer or integer with @lid suffix (Example: 43445322325 or 43445322325@lid)</p>\n","type":"text/plain"},"key":"whatsapp_lid","value":null}],"variable":[]}},"response":[{"id":"0b0acf2c-cab5-4c95-b519-0f0e7d2db0f8","name":"Successful result","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/delivery?text=test&phone=995598464533","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","delivery"],"query":[{"key":"text","value":"test","description":"string | required | Message text. The standard length for a single message is 160 characters for Latin letters."},{"key":"phone","value":"995598464533","description":"string | required | The phone number of the message recipient. The international format is 995598464533"},{"key":"sender_name","value":"CHATEGY.IO","description":"string | optional | The sender's name. You can specify the names of senders available to the client. If the parameter is missing or invalid, it is replaced by “CHATEGY.IO ”","disabled":true},{"key":"utm_mark","value":"example_mark","description":"string | optional | A label for marking shipments.","disabled":true},{"key":"callback_url","value":"http://example-url.com","description":"string | optional | URL to which information will be automatically sent when the sending status is updated.","disabled":true},{"key":"external_id","value":"1","description":"string | optional | The ID of the message. It is generated on the client side and is required in a unique way to use idempotence.","disabled":true},{"key":"dispatch_routing[]","value":"sms","description":"array | optional | Channels and the sequence of sending the message.","disabled":true},{"key":"scheduled_at","value":"2023-11-21 20:30:00","description":"datetime | optional | The delayed dispatch date must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS.","disabled":true},{"key":"priority","value":"high","description":"string | optional | Priority of sending the message. Available values are \"high\", \"medium\" and \"low\". If there is no parameter, the optimal value is determined automatically.","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 22 Nov 2023 09:34:31 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5noOkF08-W8VoIBHH_h"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"delivery\": {\n        \"callback_url\": null,\n        \"dispatch_routing\": [\n            \"sms\"\n        ],\n        \"external_id\": null,\n        \"id\": 94396942,\n        \"phone\": \"+995598464533\",\n        \"priority\": \"low\",\n        \"scheduled_at\": null,\n        \"sender_name\": \"SENDERNAME\",\n        \"status_description\": \"Accepted\",\n        \"status_id\": 6,\n        \"sum\": \"0.0\",\n        \"total_sms\": 1,\n        \"traffic_category\": 0,\n        \"utm_mark\": null\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"b5194c79-3d76-4666-b418-b627c1604eb2","name":"Error, 422","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text"}],"url":{"raw":"https://api.jetapi.io/api/v1/delivery?phone=995598464533&sender_name=CHATEGY.IO&utm_mark=example_mark&callback_url=http://example-url.com&external_id=1&dispatch_routing[]=whatsapp&scheduled_at=2023-11-21 20:30:00&priority=high","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","delivery"],"query":[{"key":"text","value":"Тест","description":"string | required","disabled":true},{"key":"phone","value":"995598464533","description":"string | required"},{"key":"sender_name","value":"CHATEGY.IO","description":"string | optional"},{"key":"utm_mark","value":"example_mark","description":"string | optional"},{"key":"callback_url","value":"http://example-url.com","description":"string | optional"},{"key":"external_id","value":"1","description":"string | optional"},{"key":"dispatch_routing[]","value":"whatsapp","description":"string | optional"},{"key":"scheduled_at","value":"2023-11-21 20:30:00","description":"string | optional"},{"key":"priority","value":"high","description":"string | optional"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 21 Nov 2023 16:10:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"158"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5mvO51eK7dyDMEAejqj"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"text\": [\n                \"the text cannot be empty\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n    }\n}"},{"id":"a86e7a6a-9996-4bd1-bb77-83a8e466e4f6","name":"Error, 401","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/delivery?text=Тест&phone=995598464533","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","delivery"],"query":[{"key":"text","value":"Тест","description":"string | required | Message text. The standard length for a single message is 160 characters for Latin letters or 70 for non-Latin letters."},{"key":"phone","value":"995598464533","description":"string | required | Phone number of the message recipient. The international format is 79991112233, 89991112233 is available for Russian numbers"},{"key":"sender_name","value":"SENDERNAME","description":"string | optional | Sender's name. You can specify the names of senders available to the client. If the parameter is missing or invalid, it is replaced by “PUSHSMS.RU ”","disabled":true},{"key":"utm_mark","value":"example_mark","description":"string | optional | Label for marking shipments.","disabled":true},{"key":"callback_url","value":"http://example-url.com","description":"string | optional | URL to which information will be automatically sent when the sending status is updated.","disabled":true},{"key":"external_id","value":"1","description":"string | optional | Message ID. It is generated on the client side and is required in a unique way to use idempotence.","disabled":true},{"key":"dispatch_routing[]","value":"sms","description":"array | optional | Channels and message sending sequence.","disabled":true},{"key":"scheduled_at","value":"2023-11-21 20:30:00","description":"datetime | optional | The date of delayed dispatch must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS.","disabled":true},{"key":"priority","value":"high","description":"string | optional | Priority of sending the message. Available values are \"high\", \"medium\" and \"low\". If there is no parameter, the optimal value is determined automatically.","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 22 Nov 2023 09:32:15 GMT"},{"key":"Content-Length","value":"65"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5noGpbub8BIkKwA-oTC"}],"cookie":[],"responseTime":null,"body":"{\"meta\":{\"code\":401,\"message\":\"Not authorized!\",\"status\":\"fail\"}}"}],"_postman_id":"ea49fe72-5621-405c-ba99-8450050a35ff"},{"name":"Bulk Delivery","id":"1f668b73-8439-43d2-bb7f-95942c5da96d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/v1/bulk_delivery?text=test&phones_numbers[]=995598464533","urlObject":{"protocol":"https","path":["v1","bulk_delivery"],"host":["api","jetapi.io"],"query":[{"description":{"content":"<p>string | required | Message text. The standard length for a single message is 160 characters for Latin letters or 70 for non-Latin letters.</p>\n","type":"text/plain"},"key":"text","value":"test"},{"description":{"content":"<p>array | required | Phone numbers of the message recipient. The international format is 995598464533. Example: +995598464533, 995598464533, +995598464533</p>\n","type":"text/plain"},"key":"phones_numbers[]","value":"995598464533"},{"disabled":true,"description":{"content":"<p>string | optional | Sender's name for SMS. If the parameter is missing or invalid, it is replaced by “InfoSMS”</p>\n","type":"text/plain"},"key":"sender_name","value":"SENDERNAME"},{"disabled":true,"description":{"content":"<p>datetime | optional | The date of delayed dispatch must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS. Example: 2021-11-11 20:30:00</p>\n","type":"text/plain"},"key":"scheduled_at","value":"2023-12-11 20:30:00"},{"disabled":true,"description":{"content":"<p>string | optional | Label for marking shipments</p>\n","type":"text/plain"},"key":"utm_mark","value":"example_mark"},{"disabled":true,"description":{"content":"<p>array | optional | Channels and message sending sequence.\nwhatsapp - Whatsapp.\ntdlib - numeric Telegram.\nTelegram - Telegram Bot.\nnotify - VK and OK.\nmax-MAX.</p>\n","type":"text/plain"},"key":"dispatch_routing[]","value":"whatsapp"},{"disabled":true,"description":{"content":"<p>array | optional | Client name in telegram. Used only when sending via tdlib channel. Accepted in the format - username, @username</p>\n","type":"text/plain"},"key":"usernames[]","value":"username"},{"disabled":true,"description":{"content":"<p>string | optional | tdlib client ID, used instead of phone number or name, when sending to via tdlib routing. This parameter can be used both for sending to private chats and for sending to group chats (if tdlib_user_id &gt; 0 is a private chat, if &lt;0 is a group chat (the group ID is always negative)</p>\n","type":"text/plain"},"key":"tdlib_user_id","value":""}],"variable":[]}},"response":[{"id":"913fc800-81a9-4d79-8790-863fbbeaa4f4","name":"Successful result","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/bulk_delivery?text=test&phones_numbers[]=995598464533&sender_name=SENDERNAME&scheduled_at=2023-12-11 20:30:00&utm_mark=example_mark&dispatch_routing[]=whatsapp","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","bulk_delivery"],"query":[{"key":"text","value":"test","description":"string | required | Message text. The standard length for a single message is 160 characters for Latin letters or 70 for non-Latin letters."},{"key":"phones_numbers[]","value":"995598464533","description":"array | required | Phone numbers of the message recipient. The international format is 79991112233. Example: +79991234567, 84956785422, +79851323233"},{"key":"sender_name","value":"SENDERNAME","description":"string | optional | Sender's name. If the parameter is missing or invalid, it is replaced by “CHATEGY.IO”"},{"key":"scheduled_at","value":"2023-12-11 20:30:00","description":"datetime | optional | The date of delayed dispatch must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS. Example: 2021-11-11 20:30:00"},{"key":"utm_mark","value":"example_mark","description":"string | optional | Label for marking shipments"},{"key":"dispatch_routing[]","value":"whatsapp","description":"array | optional | Channels and message sending sequence."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:39:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5txapkanYesqgsBtzKB"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"bulk_delivery\": {\n        \"dispatch_routing\": [\n            \"whatsapp\"\n        ],\n        \"phones_numbers\": [\n            \"995598464533\"\n        ],\n        \"scheduled_at\": \"2023-12-11T20:30:00Z\",\n        \"sender_name\": SENDERNAME\",\n        \"state\": 2,\n        \"text\": \"test\",\n        \"url_shorting\": false,\n        \"utm_mark\": \"example_mark\"\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"f34b2813-d162-4d8a-8e17-a19e7d5b1e48","name":"Error, 422","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/bulk_delivery?phones_numbers[]=995598464533&sender_name=SENDERNAME&scheduled_at=2023-12-11 20:30:00&utm_mark=example_mark&dispatch_routing[]=whatsapp","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","bulk_delivery"],"query":[{"key":"text","value":"test","description":"string | required | Message text. The standard length for a single message is 160 characters for Latin letters or 70 for non-Latin letters.","disabled":true},{"key":"phones_numbers[]","value":"995598464533","description":"array | required | Phone numbers of the message recipient. The international format is 995598464533. Example: +995598464533, 995598464533, +995598464533"},{"key":"sender_name","value":"SENDERNAME","description":"string | optional | Sender's name. If the parameter is missing or invalid, it is replaced by “CHATEGY.IO”"},{"key":"scheduled_at","value":"2023-12-11 20:30:00","description":"datetime | optional | The date of delayed dispatch must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS. Example: 2021-11-11 20:30:00"},{"key":"utm_mark","value":"example_mark","description":"string | optional | Label for marking shipments"},{"key":"dispatch_routing[]","value":"whatsapp","description":"array | optional | Channels and message sending sequence."}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:40:59 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"158"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5txe4ckiRHR4rEBdJMC"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"text\": [\n                \"the text cannot be empty\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n    }\n}"}],"_postman_id":"1f668b73-8439-43d2-bb7f-95942c5da96d"},{"name":"Information about the delivery (delivery status)","id":"7b1aa4db-cbfe-4335-b0f1-17e9f3d4c490","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/delivery/:id","urlObject":{"protocol":"https","path":["api","v1","delivery",":id"],"host":["api","jetapi.io"],"query":[],"variable":[{"id":"450fec2f-1d8c-49f2-aa65-ddc9d3a5c063","type":"any","value":"","key":"id"}]}},"response":[{"id":"7f49e37d-d68b-42e4-8baf-8db168790582","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:id","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","delivery",":id"],"variable":[{"key":"id","value":"94396942","description":"integer | обязателеный | integer"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:49:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5tx8ef5lO_d4bgBdnAC"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"delivery\": {\n        \"callback_url\": null,\n        \"external_id\": null,\n        \"id\": 94396942,\n        \"operator\": {\n            \"brand_name\": \"Georgia\",\n            \"country\": \"Georgia\",\n            \"id\": 81,\n            \"name\": \"Georgia\",\n            \"slug\": \"georgia\"\n        },\n        \"phone\": \"+995598464533\",\n        \"scheduled_at\": null,\n        \"sender_name\": \"CHATEGY.IO\",\n        \"status\": {\n            \"description\": \"Forbidden\",\n            \"status_id\": 49\n        },\n        \"sum\": \"0.00\",\n        \"total_sms\": 1,\n        \"traffic_category\": 0,\n        \"utm_mark\": null\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"}],"_postman_id":"7b1aa4db-cbfe-4335-b0f1-17e9f3d4c490"},{"name":"Information about the phone number","id":"c22bc81c-94fe-4a10-b48e-6b6d5ef3089b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/operators/search?phone=995598464533","urlObject":{"protocol":"https","path":["api","v1","operators","search"],"host":["api","jetapi.io"],"query":[{"description":{"content":"<p>string | required | Phone number in international format. Special characters are allowed.</p>\n","type":"text/plain"},"key":"phone","value":"995598464533"}],"variable":[]}},"response":[{"id":"4ec7d980-94cb-4860-926a-993a054c0d75","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/operators/search?phone=995598464533","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","operators","search"],"query":[{"key":"phone","value":"995598464533","description":"string | required | Phone number in international format. Special characters are allowed."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:46:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"190"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5txxFm-ixgyfr4BuLaB"}],"cookie":[],"responseTime":null,"body":"{\n    \"formatted_phone\": \"+995598464533\",\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"operator\": {\n        \"brand_name\": \"Georgia\",\n        \"country\": \"Georgia\",\n        \"id\": 81,\n        \"name\": \"Georgia\",\n        \"slug\": \"georgia\"\n    }\n}"}],"_postman_id":"c22bc81c-94fe-4a10-b48e-6b6d5ef3089b"},{"name":"View account information (balance)","id":"e78e908d-f90f-490b-8972-30239a8d387e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/account","urlObject":{"protocol":"https","path":["api","v1","account"],"host":["api","jetapi.io"],"query":[],"variable":[]}},"response":[{"id":"ca4f5ac7-108e-413f-adc0-98242f27dcd7","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":"https://api.jetapi.io/api/v1/account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:48:50 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"173"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5tx6S9-yyctcKoAPAlm"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": {\n        \"customer_id\": 813,\n        \"dispatch_routing\": [\n            \"sms\"\n        ],\n        \"sender_names\": [\n            \"push813\",\n            \"testname\",\n            \"JETAPI.IO\"\n        ],\n        \"total_amount\": \"5000.15\"\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"}],"_postman_id":"e78e908d-f90f-490b-8972-30239a8d387e"},{"name":"UTM tags","id":"ae5be06e-2f47-446b-9865-0c90a07c09bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/utm_mark","urlObject":{"protocol":"https","path":["api","v1","utm_mark"],"host":["api","jetapi.io"],"query":[],"variable":[]}},"response":[{"id":"9c0e52dc-a5e0-4dff-a5ba-0de7848f719e","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":"https://api.jetapi.io/api/v1/utm_mark"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 10:12:39 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5tzNfQPiGvG3HEBv1uB"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"utm_marks\": []\n}"}],"_postman_id":"ae5be06e-2f47-446b-9865-0c90a07c09bc"},{"name":"Sending files","id":"2527e2f5-c9be-4925-8657-a76116267816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>file | обязательный | Отправляемый файл. Поддерживаемые форматы описаны здесь. </p>\n","type":"file","value":null}]},"url":"https://api.jetapi.io/api/v1/send_file","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Brief description</th>\n<th>Send files with specified parameters. File is sent with a link to download, link is active for 7 days (text = file_name + link_to_file). Exception is whatsapp and tdlib, a photo up to 10 mb is sent.</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>HTTP-method</td>\n<td>POST</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.jetapi.io/api/v1/send_file\">https://api.jetapi.io/api/v1/send_file</a></td>\n</tr>\n<tr>\n<td>Response options</td>\n<td>Successful with http code 200, unsuccessful with code 422</td>\n</tr>\n</tbody>\n</table>\n</div><p>Formats supported</p>\n<p><strong>documents:</strong></p>\n<ul>\n<li><p>application/pdf</p>\n</li>\n<li><p>application/msword</p>\n</li>\n<li><p>application/vnd.openxmlformats-officedocument.wordprocessingml.document</p>\n</li>\n<li><p>application/vnd.ms-powerpoint</p>\n</li>\n<li><p>application/vnd.openxmlformats-officedocument.presentationml.presentatio</p>\n</li>\n<li><p>application/vnd.ms-excel</p>\n</li>\n<li><p>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</p>\n</li>\n<li><p>application/zip</p>\n</li>\n<li><p>application/x-7z-compressed</p>\n</li>\n</ul>\n<p><strong>audio:</strong></p>\n<ul>\n<li><p>audio/ogg</p>\n</li>\n<li><p>audio/opus</p>\n</li>\n<li><p>audio/mpeg</p>\n</li>\n<li><p>audio/mpeg3</p>\n</li>\n<li><p>audio/x-mpeg-3</p>\n</li>\n<li><p>audio/AMR</p>\n</li>\n<li><p>audio/aac</p>\n</li>\n<li><p>audio/x-hx-aac-adts</p>\n</li>\n<li><p>audio/AMR-WB</p>\n</li>\n<li><p>audio/AMR-WB+</p>\n</li>\n<li><p>audio/3gpp</p>\n</li>\n<li><p>audio/3gpp2</p>\n</li>\n</ul>\n<p><strong>images:</strong></p>\n<ul>\n<li><p>image/jpeg</p>\n</li>\n<li><p>image/png</p>\n</li>\n<li><p>image/webp</p>\n</li>\n</ul>\n<p><strong>video:</strong></p>\n<ul>\n<li>video/mp4</li>\n</ul>\n<p><strong>contacts:</strong></p>\n<ul>\n<li>text/x-vcard</li>\n</ul>\n<p>Size supported</p>\n<ul>\n<li><p>The maximum size of the received file for sending is 100 mb</p>\n</li>\n<li><p>If the image is less than 10 mb - send as a photo (natively), if more - as a file. Applicable for whatsapp and tdlib sending channels.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","send_file"],"host":["api","jetapi","io"],"query":[{"disabled":true,"description":{"content":"<p>string | required | \n File name. Must contain the file extension.\nExample: file_name.docx</p>\n","type":"text/plain"},"key":"file_name","value":""},{"disabled":true,"description":{"content":"<p>string | required | \n Phone number of the message recipient. International format 19991112233\nOptional parameter if username is used in tdlib channel</p>\n","type":"text/plain"},"key":"phone","value":""},{"disabled":true,"description":{"content":"<p>caption | optional | Description below the file. Used to send to whatsapp.</p>\n","type":"text/plain"},"key":"caption","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Internal client ID.</p>\n","type":"text/plain"},"key":"customer_id","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Native sending of images. If document is set to document, a file is sent, if image is set to image, a picture is sent. Used for sending to whatsapp. </p>\n","type":"text/plain"},"key":"type","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Sender name (SMS only) . You can specify the sender names available to the client. If the parameter is missing or invalid, it is replaced with the default.</p>\n","type":"text/plain"},"key":"sender_name","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Метка для маркировки отправок.</p>\n","type":"text/plain"},"key":"utm_mark","value":""},{"disabled":true,"description":{"content":"<p>string | optional | URL to which the information will be automatically sent when the sending status is updated. Structure in the corresponding section.</p>\n","type":"text/plain"},"key":"callback_url","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Message identifier. Generated on the client side and is required in a unique form to use idempotency.</p>\n","type":"text/plain"},"key":"external_id","value":""},{"disabled":true,"description":{"content":"<p>array | optional | Channels and sequence of message sending. Controls the cascade sending functionality.</p>\n","type":"text/plain"},"key":"dispatch_routing[]","value":""},{"disabled":true,"description":{"content":"<p>datetime | optional | The date of deferred sending should be not less than 1 minute and not more than 1 month from the current moment. The time zone in which the delayed send date is accepted is UTC+0. Specified in the format YYYYY-MM-DD HH:MM:SS. Example: 2021-11-11 20:30:00</p>\n","type":"text/plain"},"key":"scheduled_at","value":""},{"disabled":true,"description":{"content":"<p>string | optional | The priority for sending the message. The available values are \"high\", \"medium\" and \"low\". If no parameter is available, the optimal value is automatically determined.</p>\n","type":"text/plain"},"key":"priority","value":""},{"disabled":true,"description":{"content":"<p>string | optional | The name of the client in Telegram. It is used only when sending via tdlib channel. Accepted in the format - username, @username</p>\n","type":"text/plain"},"key":"username","value":""},{"disabled":true,"description":{"content":"<p>string | optional |  Message ID of the message (from webhook) we are replying to</p>\n","type":"text/plain"},"key":"reply_to_message_id","value":""},{"disabled":true,"description":{"content":"<p>string | optional |  Client tdlib ID, used instead of phone number or name, when sending in a channel personal Telegram tdlib </p>\n","type":"text/plain"},"key":"tdlib_user_id","value":""},{"disabled":true,"description":{"content":"<p>boolean | optional | Default value - true. With the value - true, the tipping is triggered. False -  the text description under the file is sent without tipping.</p>\n","type":"text/plain"},"key":"simulate_typing","value":null}],"variable":[]}},"response":[{"id":"7b2fd9a9-4b3f-46c1-aed5-c07af9b43154","name":"Successful result","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"file | обязательный | Отправляемый файл. Поддерживаемые форматы описаны здесь. ","type":"file","value":null}],"options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.jetapi.io/api/v1/send_file?file_name=file_name.doc&phone=9951234567890&caption=Important doc&customer_id=813&type=document&sender_name=SENDERNAME&utm_mark=Doc&callback_url=example_url.com&external_id=12345&dispatch_routing[]=whatsapp&scheduled_at=2024-02-08 00:30:00&priority=high","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","send_file"],"query":[{"key":"file_name","value":"file_name.doc","description":"string | required | \n File name. Must contain the file extension.\nExample: file_name.docx"},{"key":"phone","value":"9951234567890","description":"string | required | \n Phone number of the message recipient. International format 19991112233\nOptional parameter if username is used in tdlib channel"},{"key":"caption","value":"Important doc","description":"caption | optional | Description below the file. Used to send to whatsapp."},{"key":"customer_id","value":"813","description":"string | optional | Internal client ID."},{"key":"type","value":"document","description":"string | optional | Native sending of images. If document is set to document, a file is sent, if image is set to image, a picture is sent. Used for sending to whatsapp. "},{"key":"sender_name","value":"SENDERNAME","description":"string | optional | Sender name (SMS only) . You can specify the sender names available to the client. If the parameter is missing or invalid, it is replaced with the default."},{"key":"utm_mark","value":"Doc","description":"string | optional | Label for marking message dispatches."},{"key":"callback_url","value":"example_url.com","description":"string | optional | URL to which the information will be automatically sent when the sending status is updated. Structure in the corresponding section."},{"key":"external_id","value":"12345","description":"string | optional | Message identifier. Generated on the client side and is required in a unique form to use idempotency."},{"key":"dispatch_routing[]","value":"whatsapp","description":"array | optional | Channels and sequence of message sending. Controls the cascade sending functionality."},{"key":"scheduled_at","value":"2024-02-08 00:30:00","description":"datetime | optional | The date of deferred sending should be not less than 1 minute and not more than 1 month from the current moment. The time zone in which the delayed send date is accepted is UTC+0. Specified in the format YYYYY-MM-DD HH:MM:SS. Example: 2021-11-11 20:30:00","type":"text"},{"key":"priority","value":"high","description":"string | optional | The priority for sending the message. The available values are \"high\", \"medium\" and \"low\". If no parameter is available, the optimal value is automatically determined."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 07 Feb 2024 16:04:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F7GgNhBrTqIJPCEACfeh"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"delivery\": {\n        \"callback_url\": \"example_url.com\",\n        \"dispatch_routing\": [\n            \"whatsapp\"\n        ],\n        \"external_id\": \"12345\",\n        \"id\": 108286044,\n        \"phone\": \"+9951234567890\",\n        \"priority\": \"high\",\n        \"scheduled_at\": null,\n        \"sender_name\": \"SENDERNAME\",\n        \"reply_to_message_id\": null,\n        \"simulate_typing\": false,\n        \"status_description\": \"Received\",\n        \"status_id\": 6,\n        \"sum\": \"0.0\",\n        \"total_sms\": 3,\n        \"traffic_category\": 0,\n        \"utm_mark\": \"Doc\"\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}\n"},{"id":"1703b7d3-2e3f-4918-8f1f-c0a9f9ab6f7c","name":"Error, 422","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"file | обязательный | Отправляемый файл. Поддерживаемые форматы описаны здесь. ","type":"file","src":"BEE4S3-Ny/0007.amr"}],"options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.chatpush.ru/api/v1/send_file?file_name=file_name.doc&phone=71234567890&caption=Важный документ&customer_id=813&type=document&sender_name=PUSHSMS.RU&utm_mark=Документ&callback_url=example_url.ru&external_id=12345&dispatch_routing[]=whatsapp&priority=high","protocol":"https","host":["api","chatpush","ru"],"path":["api","v1","send_file"],"query":[{"key":"file_name","value":"file_name.doc","description":"string | обязательный | \n Название файла. Должно содержать расширение файла.\nПример: file_name.docx"},{"key":"phone","value":"71234567890","description":"string | обязательный | \n Телефон получателя сообщения. Международный формат 79991112233, для российских номеров доступен 89991112233"},{"key":"caption","value":"Важный документ","description":"caption | необязательный | Описание под файлом. Используется для отправки в whatsapp. "},{"key":"customer_id","value":"813","description":"string | необязательный | Внутренний ID клиента."},{"key":"type","value":"document","description":"string | необязательный | Нативная отправка кратинок. При значении document - отправляется файл, при значении image - отправляется картинка. Используется для отправки в whatsapp. "},{"key":"sender_name","value":"PUSHSMS.RU","description":"string | необязательный | Имя отправителя. Можно указывать доступные для клиента имена отправителей. При отсутствии параметра или невалидности заменяется на “PUSHSMS.RU”"},{"key":"utm_mark","value":"Документ","description":"string | необязательный | Метка для маркировки отправок."},{"key":"callback_url","value":"example_url.ru","description":"string | необязательный | URL-адрес, на который будет автоматически высылаться информация при обновлении статуса отправки. Структура в соответствующем разделе."},{"key":"external_id","value":"12345","description":"string | необязательный | Идентификатор сообщения. Генерируется на стороне клиента и необходим в уникальном виде для использования идемпотентности."},{"key":"dispatch_routing[]","value":"whatsapp","description":"array | необязательный | Каналы и последовательность отправки сообщения. Управление функционалом каскадной отправки."},{"key":"scheduled_at","value":"2024-02-08 00:30:00","description":"datetime | необязательный | Дата отложенной отправки должна быть не меньше 1 минуты и не больше 1 месяца с текущего момента. Часовой пояс, в котором принимается дата отложенной отправки UTC+0. Указывается в формате ГГГГ-ММ-ДД ЧЧ:ММ:СС. Пример: 2021-11-11 20:30:00","type":"text","disabled":true},{"key":"priority","value":"high","description":"string | необязательный | Приоритет отправки сообщения. Доступные значения: \"high\", \"medium\" и \"low\". При отсутствии параметра оптимальное значение определяется автоматически."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 07 Feb 2024 16:11:30 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"127"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F7Ggk8NGC8NuzKYACfUC"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"base\": [\n                \"invalid mime type\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n    }\n}"}],"_postman_id":"2527e2f5-c9be-4925-8657-a76116267816"},{"name":"Delete delivery","id":"3f54143f-8d87-4130-a453-0cd0237bc1b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.jetapi.io/api/v1/delivery/:delivery_id","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>Deletes sent messages in the Whatsapp and Telegram messenger via TDLib</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>HTTP – method</td>\n<td>DELETE</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.jetapi.io/api/v1/delivery/:delivery_id\">https://api.jetapi.io/api/v1/delivery/:delivery_id</a></td>\n</tr>\n<tr>\n<td>Response option</td>\n<td>Successful with http code 200, unsuccessful with code 422</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><p>Deletion only works for messages sent through the TDLib channel (i.e., Telegram via TDLib) and Whatsapp.</p>\n</li>\n<li><p>If the message is not found or has already been deleted, a 422 error is returned with a corresponding description.</p>\n</li>\n<li><p>Only messages sent through the Jetapi service can be deleted.</p>\n</li>\n<li><p>Deletion is only performed if the message has a successful final status of “Delivered” in the system.</p>\n</li>\n<li><p>Deletion occurs on all devices.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","delivery",":delivery_id"],"host":["api","jetapi","io"],"query":[],"variable":[{"description":{"content":"<p>integer | required | ID of the message to be deleted, obtained from the delivery.id field in the JSON response of the delivery method.(<a href=\"https://docs.jetapi.io/#ea49fe72-5621-405c-ba99-8450050a35ff\">https://docs.jetapi.io/#ea49fe72-5621-405c-ba99-8450050a35ff</a>) </p>\n","type":"text/plain"},"type":"any","value":"","key":"delivery_id"}]}},"response":[{"id":"e2471dd0-45c7-4dbb-9ac7-424c19ecff70","name":"Successful result","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"123"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"bff3a385-2211-44bf-9f36-97273fcc68bc","name":"Error, 422 (for tdlib)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"33"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"tdlib_delivery\": [\n                \"tdlib_delivery not found\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"fad41779-2da6-46cc-8211-5241ec305682","name":"Error, 422 (for whatsapp)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"322"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"delivery\": [\n                \"delivery not found\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"c4beb38e-0c9e-4d43-a5ce-fcb00de34fd8","name":"Error, 422 (dispatch_type invalid)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"3223"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"dispatch_type\": [\n                \"dispatch_type invalid\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"1d1b72ad-78d8-483c-a8b1-e54e31426fa0","name":"Error, 422 (not complete)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"3223"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"delivery\": [\n                \"delivery not_complete\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"3f54143f-8d87-4130-a453-0cd0237bc1b9"}],"id":"603434c3-de67-4989-a9de-d8948a7f80e8","description":"<h2 id=\"authorization\"><strong>Authorization</strong></h2>\n<p>The project uses token-based authorization. You can get the necessary access_token in the corresponding section of your personal account</p>\n<p><strong>All relevant requests in headers must contain the following:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Bearer {access_token}</td>\n</tr>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Пример:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">curl -X GET https://api.jetapi.io/api/v1/account -H 'Authorization: Bearer {your token}'\n\n</code></pre>\n<p>If these parameters are missing or disabled in all relevant resources, the response will have: HTTP code 401 (Not authorized) and will contain JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\n    \"status\": \"fail\",\n    \"message\": \"Not authorized!\",\n    \"code\": 401\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"06bb01da-0669-482e-a6e4-9745a8ebad1c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"89129838-3b5c-483f-8bf2-a1ddfd80232d","type":"text/javascript","exec":[""]}}],"_postman_id":"603434c3-de67-4989-a9de-d8948a7f80e8"},{"name":"Webhooks","item":[{"name":"Creating a webhook","id":"1acdd39e-f338-4664-8aa9-07bd1b875556","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/api/v1/webhooks","urlObject":{"protocol":"https","path":["api","v1","webhooks"],"host":["api","jetapi.io"],"query":[{"disabled":true,"description":{"content":"<p>string | required | The address to which the notification is sent</p>\n","type":"text/plain"},"key":"url","value":""},{"disabled":true,"description":{"content":"<p>array | required | List of events</p>\n","type":"text/plain"},"key":"types[]","value":""}],"variable":[]}},"response":[{"id":"29fdf0b8-c55b-435b-b782-4fa1c021c0b4","name":"Successful result","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text"}],"url":{"raw":"https://api.jetapi.io/api/v1/webhooks?url=https://example.com&types[]=whatsapp_log_out","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","webhooks"],"query":[{"key":"url","value":"https://example.com","description":"string | required | The address to which the notification is sent"},{"key":"types[]","value":"whatsapp_log_out","description":"array | required | List of events"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:13:16 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"116"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t5yvTM1WXUUOsAAVxF"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"webhook\": {\n        \"id\": 57,\n        \"types\": [\n            \"whatsapp_log_out\"\n        ],\n        \"url\": \"https://example.com\"\n    }\n}"},{"id":"17bb90d1-37aa-4c83-aec9-2b10fac52348","name":"Error, 422","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text"}],"url":{"raw":"https://api.jetapi.io/api/v1/webhooks?url=https://example.com&types[]=whatsapp_log_ou","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","webhooks"],"query":[{"key":"url","value":"https://example.com","description":"string | required | The address to which the notification is sent"},{"key":"types[]","value":"whatsapp_log_ou","description":"array | required | List of events"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:13:57 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"135"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t51F346PSznl4ACuwi"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"types\": [\n                \"types invalid\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n    }\n}"}],"_postman_id":"1acdd39e-f338-4664-8aa9-07bd1b875556"},{"name":"Getting an entry","id":"97ff61cd-dbae-4da5-8e5b-b2c46e4aaf70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/webhooks/:id","urlObject":{"protocol":"https","path":["api","v1","webhooks",":id"],"host":["api","jetapi.io"],"query":[],"variable":[{"description":{"content":"<p>integer | required | unique identifier of a specific record</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[{"id":"01e1cd2b-fbda-4bde-9b0e-0d820dd4f513","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{Bearer token}","type":"text"}],"url":{"raw":"https://api.jetapi.io/api/v1/webhooks/:id","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","webhooks",":id"],"variable":[{"key":"id","value":"57"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:17:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"116"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t6B8S795p2BOMAA5Mk"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"webhook\": {\n        \"id\": 57,\n        \"types\": [\n            \"whatsapp_log_out\"\n        ],\n        \"url\": \"https://example.com\"\n    }\n}"}],"_postman_id":"97ff61cd-dbae-4da5-8e5b-b2c46e4aaf70"},{"name":"Getting all the records","id":"0c39852e-584d-4300-8621-a1a9b486ffa2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/webhooks/","urlObject":{"protocol":"https","path":["api","v1","webhooks",""],"host":["api","jetapi.io"],"query":[],"variable":[]}},"response":[{"id":"7d0d6160-18e9-40e5-bcb8-6d569f8d8467","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text"}],"url":"https://api.jetapi.io/api/v1/webhooks/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:28:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"119"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t6mOZ408rQZhcABC1E"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"webhooks\": [\n        {\n            \"id\": 57,\n            \"types\": [\n                \"whatsapp_log_out\"\n            ],\n            \"url\": \"https://example.com\"\n        }\n    ]\n}"}],"_postman_id":"0c39852e-584d-4300-8621-a1a9b486ffa2"},{"name":"Deleting an entry","id":"4b696871-b1f5-4118-898e-d6802502fec9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.jetapi.io/api/v1/webhooks/:id","urlObject":{"protocol":"https","path":["api","v1","webhooks",":id"],"host":["api","jetapi.io"],"query":[],"variable":[{"description":{"content":"<p>integer | required | unique identifier of a specific record</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[{"id":"81690195-b73b-49fc-aa3e-401ed55f094b","name":"Successful result","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {token}","type":"text"}],"url":{"raw":"https://api.jetapi.io/api/v1/webhooks/:id","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","webhooks",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:26:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t6h2Dwo7ntd10ACYPj"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"}],"_postman_id":"4b696871-b1f5-4118-898e-d6802502fec9"},{"name":"Changing an entry","id":"96d9833d-7367-4b14-9d8c-a152360e608a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"PATCH","header":[],"url":"https://api.jetapi.io/api/v1/webhooks/:id?types[]=&url=","urlObject":{"protocol":"https","path":["api","v1","webhooks",":id"],"host":["api","jetapi.io"],"query":[{"description":{"content":"<p>array | required | Collected list</p>\n","type":"text/plain"},"key":"types[]","value":""},{"description":{"content":"<p>string | required | The address to which the notification is sent</p>\n","type":"text/plain"},"key":"url","value":""}],"variable":[{"description":{"content":"<p>integer | required | unique identifier of a specific record</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[{"id":"a197dd37-5aeb-4807-90c4-33bcc0d77694","name":"Successful result","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {token}","type":"text"}],"url":{"raw":"https://api.jetapi.io/api/v1/webhooks/:id?types[]=whatsapp_log_out&url=https://example2.com","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","webhooks",":id"],"query":[{"key":"types[]","value":"whatsapp_log_out","description":"array | required | Collected list"},{"key":"url","value":"https://example2.com","description":"string | required | The address to which the notification is sent"}],"variable":[{"key":"id","value":"57","description":"integer | required | unique identifier of a specific record"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:32:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"117"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t60ItNgaqeHlcACkTj"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"webhook\": {\n        \"id\": 57,\n        \"types\": [\n            \"whatsapp_log_out\"\n        ],\n        \"url\": \"https://example2.com\"\n    }\n}"}],"_postman_id":"96d9833d-7367-4b14-9d8c-a152360e608a"}],"id":"c3039227-2427-42fc-a50b-9a209cb5cf78","description":"<p>List of webhook events</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Types</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>whatsapp_log_out</td>\n<td>Information about deauthorization of the client in whatsapp</td>\n</tr>\n<tr>\n<td>whatsapp_log_in</td>\n<td>Information about the client's authorization in whatsapp</td>\n</tr>\n<tr>\n<td>whatsapp_incoming_msg</td>\n<td>Information about incoming and outgoing messages to an authorized whatsapp account. Messages are collected from the moment of authorization.</td>\n</tr>\n<tr>\n<td>tdlib_incoming_msg</td>\n<td>Information about incoming and outgoing messages to an authorized Telegram account.</td>\n</tr>\n<tr>\n<td>whatsapp_status_msg</td>\n<td>Information about the statuses of outgoing messages from an authorized WhatsApp account.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"notification-example---whatsapp_log_out\">Notification example - whatsapp_log_out</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_log_out\"\n  \"payload\": {\n      \"customer_id\": 591,\n      \"email\": \"example@gmail.ru\",\n      \"phone\": \"+9959123456789\"\n      \"status\": {\n        \"status_id\": 1,\n        \"description\": \"disconnected\"\n      }\n    }\n  }\n}\n\n</code></pre>\n<h4 id=\"notification-example---whatsapp_log_in\">Notification example - whatsapp_log_in</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_log_in\",\n  \"payload\": {\n    \"status\": {\n      \"description\": \"connected\",\n      \"status_id\": 0\n    },\n    \"phone\": null,\n    \"email\": \"example@gmail.ru\",\n    \"customer_id\": 1150\n  }\n}\n\n</code></pre>\n<p>Parameters</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>customer_id</td>\n<td>integer</td>\n<td>Internal Client ID</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Client's email</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>Client's phone</td>\n</tr>\n<tr>\n<td>status</td>\n<td>object</td>\n<td>Status object</td>\n</tr>\n<tr>\n<td>status_id</td>\n<td>integer</td>\n<td>Status ID</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Short description of the status</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"notification-example---whatsapp_incoming_msg\">Notification example - whatsapp_incoming_msg</h4>\n<blockquote>\n<p>Notifications have a different structure, depending on the content of the message. Below are examples of text notifications and file notifications. The system takes the image/file and converts it into a download link. </p>\n</blockquote>\n<p>Outgoing:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_incoming_msg\",\n  \"payload\": {\n    \"new_message\": {\n      \"message\": {\n        \"id\": \"true_995555558974@c.us_2AE7B4CB25754496BE1D\",\n        \"timestamp\": 1764080940,\n        \"type\": \"text\",\n        \"text\": \"test\",\n        \"reply_to_message_id\": null\n      },\n      \"direction\": \"outgoing\",\n      \"sender_id\": \"996453558974@c.us\",\n      \"chat_id\": \"995555558974@c.us\",\n      \"sender_name\": \"Test\",\n      \"chat_lid\": \"48464347809351@lid\",\n      \"pushname\": \"TEST\",\n      \"chat_phone\": \"995555558974\",\n      \"sender_phone_number\": \"996453558974\",\n      \"recipient_id\": \"995555558974@c.us\",\n      \"recipient_phone_number\": \"995555558974\"\n    },\n    \"delivery_id\": null,\n    \"customer_id\": 4140\n  }\n}\n\n</code></pre>\n<p>Outgoing with the file:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_incoming_msg\",\n  \"payload\": {\n    \"new_message\": {\n      \"message\": {\n        \"id\": \"true_995555558974@c.us_2A7B9368F38D549F6339\",\n        \"timestamp\": 1764081041,\n        \"type\": \"image\",\n        \"reply_to_message_id\": null,\n        \"file_data\": {\n          \"mime_type\": \"image/jpeg\",\n          \"caption\": null,\n          \"download_url\": \"https://production-docs.storage.yandexcloud.net/delivery_files_new/a99c05ed/aaac1071/87037d32/0bb618ca/1764081046_media.jpg?X-Amz-Algorithm=AWS4-HMAC-SH2F20251125/ru-central1/s3/aws4_request&amp;X-Amz-Date=20251125T143046Z&amp;X-Amz-Expires=172800&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=feb45c97ca3d533d45e0838bd2bcba01d7ee714c9771902e64a30f026986837a\"\n        }\n      },\n      \"direction\": \"outgoing\",\n      \"sender_id\": \"996453558974@c.us\",\n      \"chat_id\": \"995555558974@c.us\",\n      \"sender_name\": \"Test\",\n      \"chat_lid\": \"4846447809341@lid\",\n      \"pushname\": \"Push\",\n      \"chat_phone\": \"995555558974\",\n      \"sender_phone_number\": \"996453558974\",\n      \"recipient_id\": \"995555558974@c.us\",\n      \"recipient_phone_number\": \"995555558974\"\n    },\n    \"delivery_id\": null,\n    \"customer_id\": 4140\n  }\n}\n\n</code></pre>\n<p>Incoming:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_incoming_msg\",\n  \"payload\": {\n    \"new_message\": {\n      \"message\": {\n        \"id\": \"false_995555558974@c.us_3BD7FA29B8D35F6302\",\n        \"timestamp\": 176407367,\n        \"type\": \"text\",\n        \"text\": \"test\",\n        \"reply_to_message_id\": null\n      },\n      \"direction\": \"incoming\",\n      \"sender_id\": \"995555558974@c.us\",\n      \"chat_id\": \"995555558974@c.us\",\n      \"sender_name\": \"\\u202a+995555558974\\u202c\",\n      \"chat_lid\": \"4846447093451@lid\",\n      \"pushname\": \"Push\",\n      \"chat_phone\": \"995555558974\",\n      \"sender_phone_number\": \"995555558974\"\n    },\n    \"delivery_id\": null,\n    \"customer_id\": 4140\n  }\n}\n\n</code></pre>\n<p>Incoming with the file:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\"> {\n  \"type\": \"whatsapp_incoming_msg\",\n  \"payload\": {\n    \"new_message\": {\n      \"message\": {\n        \"id\": \"false_995555558974@c.us_3BE04EB53FF073D9363A\",\n        \"timestamp\": 1764081184,\n        \"type\": \"document\",\n        \"reply_to_message_id\": null,\n        \"file_data\": {\n          \"mime_type\": \"image/jpeg\",\n          \"caption\": \"text\",\n          \"download_url\": \"https://production-docs.storage.yandexcloud.net/delivery_files_new/3241b311/fc0a3c1d/d5c94658/5107e1d3/1764081185_media.jpg?X-Amz-Algorithm=AWS4-HX-Amz-Credential=bipj3XwGMXa8-wO4T3mc/20251125/ru-central1/s3/aws4_request&amp;X-Amz-Date=20251125T143305Z&amp;X-Amz-Expires=172800&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=bd28a966b67240f18413523dbd0ffb1562a30d0c6c545a7a576f692aadeaadf0\"\n        }\n      },\n      \"direction\": \"incoming\",\n      \"sender_id\": \"995555558974@c.us\",\n      \"chat_id\": \"995555558974@c.us\",\n      \"sender_name\": \"\\u202a+995555558974\\u202c\",\n      \"chat_lid\": \"4846478093451@lid\",\n      \"pushname\": \"Test\",\n      \"chat_phone\": \"995555558974\",\n      \"sender_phone_number\": \"995555558974\"\n    },\n    \"customer_id\": 4140,\n    \"delivery_id\": null\n  }\n}\n\n</code></pre>\n<p><strong>Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Webhook type</td>\n</tr>\n<tr>\n<td><code>payload.instance.id</code></td>\n<td>integer</td>\n<td>Internal instance ID</td>\n</tr>\n<tr>\n<td><code>payload.instance.customer_id</code></td>\n<td>integer</td>\n<td>Internal customer ID</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.id</code></td>\n<td>string</td>\n<td>Internal WhatsApp message ID</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.timestamp</code></td>\n<td>integer</td>\n<td>Timestamp when the message was sent</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.type</code></td>\n<td>string</td>\n<td>Type of transmitted object</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.text</code></td>\n<td>string</td>\n<td>Message text (for text messages)</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.reply_to_message_id</code></td>\n<td>string</td>\n<td>ID of the message being replied to</td>\n</tr>\n<tr>\n<td><code>payload.new_message.direction</code></td>\n<td>string</td>\n<td>Message type. incoming - incoming, outgoing - outgoing</td>\n</tr>\n<tr>\n<td><code>payload.new_message.sender_id</code></td>\n<td>string</td>\n<td>Message sender ID</td>\n</tr>\n<tr>\n<td><code>payload.new_message.chat_id</code></td>\n<td>string</td>\n<td>ID of the chat where the conversation takes place</td>\n</tr>\n<tr>\n<td><code>payload.new_message.sender_name</code></td>\n<td>string</td>\n<td>User name in WhatsApp</td>\n</tr>\n<tr>\n<td><code>payload.new_message.chat_lid</code></td>\n<td>string</td>\n<td>Chat lid ID. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n<tr>\n<td><code>payload.new_message.pushname</code></td>\n<td>string</td>\n<td>User name as the contact saved themselves in WhatsApp</td>\n</tr>\n<tr>\n<td><code>payload.new_message.chat_phone</code></td>\n<td>integer</td>\n<td>Recipient number. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n<tr>\n<td><code>payload.new_message.sender_phone_number</code></td>\n<td>string</td>\n<td>Sender phone number</td>\n</tr>\n<tr>\n<td><code>payload.new_message.recipient_id</code></td>\n<td>string</td>\n<td>ID of the chat where the conversation takes place</td>\n</tr>\n<tr>\n<td><code>payload.new_message.recipient_phone_number</code></td>\n<td>integer</td>\n<td>Recipient number</td>\n</tr>\n<tr>\n<td><code>payload.delivery_id</code></td>\n<td>integer</td>\n<td>Internal delivery ID. When sending not from the system, the parameter will be empty</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Additional fields for messages with files</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>payload.new_message.message.file_data</code></td>\n<td>object</td>\n<td>Delivery object</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.file_data.mime_type</code></td>\n<td>string</td>\n<td>File format</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.file_data.caption</code></td>\n<td>string</td>\n<td>Description under the file</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.file_data.download_url</code></td>\n<td>string</td>\n<td>File download link</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"_-notification-example---tdlib_incoming_msg_\">_ Notification example - tdlib_incoming_msg_</h4>\n<p>Outgoing:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"payload\": {\n\"chat_id\": 646322322,\n\"chat_type\": \"person\",\n\"customer_id\": 77,\n\"delivery_id\": 170405,\n\"direction\": \"outgoing\",\n\"message\": {\n\"id\": 978172510208,\n\"text\": \"this is a test message\",\n\"timestamp\": 1691585795,\n\"type\": \"FormattedText\"\n},\n\"sender_id\": 37916307,\n\"sender_name\": \"test\",\n\"sender_phone_number\": \"995550846453\",\n\"recipient_id\": 646322322,\n\"recipient_phone_number\": \"971568961134\",\n\"recipient_username\": \"test2\"\n},\n\"type\": \"tdlib_incoming_msg\"\n}\n\n</code></pre>\n<p>Outgoing with the file:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"payload\": {\n    \"chat_id\": 37916377,\n    \"chat_type\": \"person\",\n    \"customer_id\": 6509,\n    \"delivery_id\": 17202971,\n    \"direction\": \"outgoing\",\n    \"message\": {\n      \"file_data\": {\n        \"caption\": \"test\",\n        \"download_url\": \"https://production-docs.storage.yandexcloud.net/delivery_files/3c81fd7/c6929764/77782217/Screenshot 2024-11-08 at 17.36.51.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=bipj3XwGMXa8-wO4T3mc/20241111/ru-central1/s3/aws4_request&amp;X-Amz-Date=20241111T095811Z&amp;X-Amz-Expires=604800&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=edb4c55465aca7a827292e9ba70127a0fb771babe6df7696809f3f1549df74b9\",\n        \"mime_type\": \"image/png\"\n      },\n      \"id\": 1174405120,\n      \"reply_to_message_id\": null,\n      \"timestamp\": 1731319090,\n      \"type\": \"messagePhoto\"\n    },\n    \"sender_id\": 6862031886,\n    \"sender_name\": \"test\",\n    \"sender_phone_number\": \"995550846453\",\n    \"recipient_id\": 37916377,\n    \"recipient_phone_number\": \"971568961134\",\n    \"recipient_username\": \"test2\"\n  },\n  \"type\": \"tdlib_incoming_msg\"\n}\n\n</code></pre>\n<p>Incoming</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"payload\": {\n    \"chat_id\": 379163707,\n    \"chat_type\": \"person\",\n    \"customer_id\": 6509,\n    \"delivery_id\": null,\n    \"direction\": \"incoming\",\n    \"message\": {\n      \"id\": 1173356544,\n      \"reply_to_message_id\": null,\n      \"text\": \"test\",\n      \"timestamp\": 1731318817,\n      \"type\": \"formattedText\"\n    },\n    \"sender_id\": 379163707,\n    \"sender_name\": \"test\",\n    \"sender_phone_number\": \"995550846453\"\n  },\n  \"type\": \"tdlib_incoming_msg\"\n}\n\n</code></pre>\n<p>Incoming with the file:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"payload\": {\n    \"chat_id\": 379163707,\n    \"chat_type\": \"person\",\n    \"customer_id\": 6509,\n    \"delivery_id\": null,\n    \"direction\": \"incoming\",\n    \"message\": {\n      \"file_data\": {\n        \"caption\": \"test\",\n        \"download_url\": \"https://production-docs.storage.yandexcloud.net/delivery_files/3c81fd7c/5d7b706e/c692977/5\n      },\n      \"id\": 1177550848,\n      \"reply_to_message_id\": null,\n      \"timestamp\": 1731319424,\n      \"type\": \"messagePhoto\"\n    },\n    \"sender_id\": 379163707,\n    \"sender_name\": \"test\",\n    \"sender_phone_number\": \"995550846453\"\n  },\n  \"type\": \"tdlib_incoming_msg\"\n}\n\n</code></pre>\n<p><strong>Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Webhook type</td>\n</tr>\n<tr>\n<td><code>payload.customer_id</code></td>\n<td>integer</td>\n<td>Internal customer ID</td>\n</tr>\n<tr>\n<td><code>payload.chat_id</code></td>\n<td>integer</td>\n<td>ID of the chat where the conversation takes place</td>\n</tr>\n<tr>\n<td><code>payload.chat_type</code></td>\n<td>string</td>\n<td>Chat type</td>\n</tr>\n<tr>\n<td><code>payload.delivery_id</code></td>\n<td>integer</td>\n<td>Internal delivery ID. When sending not from the system (via chat), the parameter will be empty</td>\n</tr>\n<tr>\n<td><code>payload.direction</code></td>\n<td>string</td>\n<td>Message type. Incoming - incoming, outgoing - outgoing</td>\n</tr>\n<tr>\n<td><code>payload.message.id</code></td>\n<td>integer</td>\n<td>Internal message ID</td>\n</tr>\n<tr>\n<td><code>payload.message.timestamp</code></td>\n<td>integer</td>\n<td>Timestamp when the message was sent</td>\n</tr>\n<tr>\n<td><code>payload.message.type</code></td>\n<td>string</td>\n<td>Type of transmitted object</td>\n</tr>\n<tr>\n<td><code>payload.message.reply_to_message_id</code></td>\n<td>string</td>\n<td>ID of the message being replied to</td>\n</tr>\n<tr>\n<td><code>payload.sender_id</code></td>\n<td>integer</td>\n<td>Message sender ID</td>\n</tr>\n<tr>\n<td><code>payload.sender_name</code></td>\n<td>string</td>\n<td>Sender name</td>\n</tr>\n<tr>\n<td><code>payload.sender_phone_number</code></td>\n<td>string</td>\n<td>Sender phone number</td>\n</tr>\n<tr>\n<td><code>payload.recipient_id</code></td>\n<td>integer</td>\n<td>Recipient ID</td>\n</tr>\n<tr>\n<td><code>payload.recipient_phone_number</code></td>\n<td>string</td>\n<td>Recipient phone number</td>\n</tr>\n<tr>\n<td><code>payload.recipient_username</code></td>\n<td>string</td>\n<td>Recipient username</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Additional fields for messages with files</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>payload.message.file_data</code></td>\n<td>object</td>\n<td>Delivery object</td>\n</tr>\n<tr>\n<td><code>payload.message.file_data.mime_type</code></td>\n<td>string</td>\n<td>File format</td>\n</tr>\n<tr>\n<td><code>payload.message.file_data.caption</code></td>\n<td>string</td>\n<td>Description under the file</td>\n</tr>\n<tr>\n<td><code>payload.message.file_data.download_url</code></td>\n<td>string</td>\n<td>File download link</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>Telegram call:</em></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"payload\": {\n    \"call\": {\n      \"id\": 8,\n      \"is_video\": true,\n      \"reason\": \"callDiscardReasonEmpty\",\n      \"state\": \"callStateDiscarded\"\n    },\n    \"chat_id\": 34824762,\n    \"chat_type\": \"person\",\n    \"customer_id\": 369,\n    \"direction\": \"incoming\",\n    \"sender_id\": 3482442,\n    \"sender_name\": \"TestNsme\",\n    \"sender_phone_number\": \"995598464533\"\n  },\n  \"type\": \"tdlib_call\"\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>payload</td>\n<td><code>object</code></td>\n<td>Main object containing call data and participant information.</td>\n</tr>\n<tr>\n<td>payload.call</td>\n<td><code>object</code></td>\n<td>Object with call details.</td>\n</tr>\n<tr>\n<td>payload.call.id</td>\n<td><code>integer</code></td>\n<td>Unique call identifier.</td>\n</tr>\n<tr>\n<td>payload.call.is_video</td>\n<td><code>boolean</code></td>\n<td>Indicates whether the call is a video call (<code>true</code> — video call, <code>false</code> — voice call).</td>\n</tr>\n<tr>\n<td>payload.call.reason</td>\n<td><code>string</code></td>\n<td>Reason for call termination. Possible values:  <br />• <code>callDiscardReasonAllowGroupCall</code> — ended to join a group call  <br />• <code>callDiscardReasonDeclined</code> — declined  <br />• <code>callDiscardReasonDisconnected</code> — connection lost  <br />• <code>callDiscardReasonEmpty</code> — ended without an explicit reason  <br />• <code>callDiscardReasonHungUp</code> — ended by the user  <br />• <code>callDiscardReasonMissed</code> — missed</td>\n</tr>\n<tr>\n<td>payload.call.state</td>\n<td><code>string</code></td>\n<td>Current call state (e.g., <code>\"callStateDiscarded\"</code>).</td>\n</tr>\n<tr>\n<td>payload.chat_id</td>\n<td><code>integer</code></td>\n<td>ID of the chat associated with the call.</td>\n</tr>\n<tr>\n<td>payload.chat_type</td>\n<td><code>string</code></td>\n<td>Type of chat (e.g., <code>\"person\"</code> — private chat).</td>\n</tr>\n<tr>\n<td>payload.customer_id</td>\n<td><code>integer</code></td>\n<td>Customer ID in the system.</td>\n</tr>\n<tr>\n<td>payload.direction</td>\n<td><code>string</code></td>\n<td>Call direction (<code>\"incoming\"</code> — incoming, <code>\"outgoing\"</code> — outgoing).</td>\n</tr>\n<tr>\n<td>payload.sender_id</td>\n<td><code>integer</code></td>\n<td>Call sender's ID.</td>\n</tr>\n<tr>\n<td>payload.sender_name</td>\n<td><code>string</code></td>\n<td>Call sender's name.</td>\n</tr>\n<tr>\n<td>payload.sender_phone_number</td>\n<td><code>string</code></td>\n<td>Call sender's phone number.</td>\n</tr>\n<tr>\n<td>type</td>\n<td><code>string</code></td>\n<td>Event type (<code>\"tdlib_call\"</code> — indicates a TDLib call event).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"notification-example---whatsapp_status_msg\">Notification example - whatsapp_status_msg</h4>\n<ul>\n<li>The status is only sent for outgoing messages from an authorized client</li>\n</ul>\n<p>Example of a message status webhook:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"message_status\",\n  \"payload\": {\n    \"customer_id\": 1024,\n    \"delivery_id\": null,\n    \"message_status\": {\n      \"id\": \"true_995555123456@c.us_3A2E74ED29DF9BAB114E\",\n      \"status\": \"received\",\n      \"timestamp\": 1751290217609,\n      \"chat_id\": \"995555123456@c.us\"\n      \"chat_lid\": \"4846447809351@lid\",\n      \"chat_phone\": \"995555123456\"\n    }\n  }\n}\n\n</code></pre>\n<p>Description of message status webhook parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Event type</td>\n</tr>\n<tr>\n<td><code>payload</code></td>\n<td>object</td>\n<td>Main event data.</td>\n</tr>\n<tr>\n<td><code>payload.customer_id</code></td>\n<td>number</td>\n<td>Internal client ID.</td>\n</tr>\n<tr>\n<td><code>payload.delivery_id</code></td>\n<td>number</td>\n<td>Internal deliveries ID.</td>\n</tr>\n<tr>\n<td><code>payload.message_status</code></td>\n<td>object</td>\n<td>Message status data. See below for status list.</td>\n</tr>\n<tr>\n<td><code>payload.message_status.id</code></td>\n<td>string</td>\n<td>Unique message status ID (format for chatpush service: <code>\"true_995555123456@c.us_84110THISISBOT\"</code>, format for other sending methods: <code>\"true_995555123456@c.us_3A2E74ED29DF9BAB114E\"</code>).</td>\n</tr>\n<tr>\n<td><code>payload.message_status.status</code></td>\n<td>string</td>\n<td>Message status.</td>\n</tr>\n<tr>\n<td><code>payload.message_status.chat_id</code></td>\n<td>string</td>\n<td>Chat ID in <code>\"@c.us\"</code> format (phone number + <code>@c.us</code>).</td>\n</tr>\n<tr>\n<td><code>payload.message_status.chat_lid</code></td>\n<td>string</td>\n<td>Chat lid ID. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n<tr>\n<td><code>payload.message_status.chat_phone</code></td>\n<td>integer</td>\n<td>Recipient number. For outgoing - where we send to, for incoming - where we receive fro</td>\n</tr>\n</tbody>\n</table>\n</div><p>List of transmitted statuses:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Meaning</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sent</td>\n<td>Message sent to WhatsApp server.</td>\n</tr>\n<tr>\n<td>received</td>\n<td>Delivered to recipient's device.</td>\n</tr>\n<tr>\n<td>read</td>\n<td>Read by recipient.</td>\n</tr>\n<tr>\n<td>played</td>\n<td>Played (audio messages only).</td>\n</tr>\n<tr>\n<td>failed</td>\n<td>Failed to send message.</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Message expired (e.g., no network for too long).</td>\n</tr>\n<tr>\n<td>content_gone</td>\n<td>Content no longer available (e.g., deleted or expired).</td>\n</tr>\n<tr>\n<td>content_too_big</td>\n<td>Content too large to send.</td>\n</tr>\n<tr>\n<td>content_unuploadable</td>\n<td>Content cannot be uploaded (possibly corrupted).</td>\n</tr>\n<tr>\n<td>inactive</td>\n<td>User inactive (e.g., account deleted or banned).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"incoming-call-webhook\">Incoming Call Webhook</h4>\n<ul>\n<li><p>Sent as part of the \"whatsapp_incoming_msg\" event;</p>\n</li>\n<li><p>Only sent for incoming calls to authorized clients;</p>\n</li>\n<li><p>Contains information about the call;</p>\n</li>\n<li><p>Sent when the call is received on the account.</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_call\",\n  \"payload\": {\n    \"customer_id\": 124,\n    \"incoming_call\": {\n      \"call\": {\n        \"id\": \"B3C91C64CDFEC0445265659651\",\n        \"timestamp\": 1751291864,\n        \"type\": \"audio\",\n        \"is_group\": true\n      },\n      \"direction\": \"incoming\",\n      \"sender_id\": \"995555123456@c.us\",\n      \"chat_id\": \"995555123456@c.us\",\n      \"chat_lid\": \"48464478093451@lid\",\n      \"chat_phone\": \"995555123456\",\n      \"sender_phone_number\": \"995555123456\"\n    }\n  }\n}\n\n</code></pre>\n<p>Description of incoming call webhook parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Event type.</td>\n</tr>\n<tr>\n<td><code>payload</code></td>\n<td>object</td>\n<td>Main event data.</td>\n</tr>\n<tr>\n<td><code>payload.customer_id</code></td>\n<td>number</td>\n<td>Internal client ID.</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call</code></td>\n<td>object</td>\n<td>Incoming call data</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call</code></td>\n<td>object</td>\n<td>Call details</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call.id</code></td>\n<td>string</td>\n<td>Unique call ID (hash, e.g., <code>\"142320FEAE2343C17D6676A3D4\"</code>)</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call.timestamp</code></td>\n<td>number</td>\n<td>Unix timestamp of call (e.g., <code>1751292044</code>)</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call.type</code></td>\n<td>string</td>\n<td>Call type: <code>\"audio\"</code> or <code>\"video\"</code></td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call.is_group</code></td>\n<td>boolean</td>\n<td>Group call: <code>true</code>/<code>false</code></td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.direction</code></td>\n<td>string</td>\n<td>Direction: <code>\"incoming\"</code> (incoming).</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.sender_id</code></td>\n<td>string</td>\n<td>Sender ID in <code>\"@c.us\"</code> format.</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.chat_id</code></td>\n<td>string</td>\n<td>Chat ID in <code>\"@c.us\"</code> format.</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.sender_phone_number</code></td>\n<td>string</td>\n<td>Sender's phone number.</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.chat_lid</code></td>\n<td>string</td>\n<td>Chat lid ID. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.chat_phone</code></td>\n<td>integer</td>\n<td>Recipient number. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"c3039227-2427-42fc-a50b-9a209cb5cf78"},{"name":"iFrame Web Messenger","item":[{"name":"Creating a chat link","id":"df8a4c17-418b-41f8-b3ad-fbb018210e1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/api/v1/chatter/","urlObject":{"protocol":"https","path":["api","v1","chatter",""],"host":["api","jetapi","io"],"query":[{"disabled":true,"description":{"content":"<p>string| optional |  Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character. Required conditional on auth_type=0.</p>\n","type":"text/plain"},"key":"password","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Parameter auth_type=0 - enables mandatory password entry when joining the chat. If auth_type is not passed, it is assumed to be 0. auth_type=1 - disables password entry when joining the chat.</p>\n","type":"text/plain"},"key":"auth_type","value":null}],"variable":[]}},"response":[{"id":"f0130462-e294-4dea-858b-bb61797508de","name":"Successful result","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/chatter/generate_link?password=Example123","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","chatter","generate_link"],"query":[{"key":"password","value":"Example123"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 10 Apr 2024 10:42:27 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"161"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F8TlLuSAeE01_04AJ1jH"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"link\": {\n        \"link\": \"https://api.jetapi.io/chatter?customer_id=17693&hash=343c7bd8d5efbfa33528b711598989cf6631\"\n    }\n}"},{"id":"f0004e22-14f6-4756-9f77-8f07afd2f3eb","name":"Error, 422","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/chatter/generate_link?password=","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","chatter","generate_link"],"query":[{"key":"password","value":"","description":"string| required |  Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"password\": [\n                \"password at least one punctuation character\",\n                \"password should be at least 7 character(s)\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"df8a4c17-418b-41f8-b3ad-fbb018210e1a"},{"name":"Password change","id":"70d94610-498e-4cf2-a44a-4cb720230d9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.chatpush.ru/api/v1/chatter/change_password","urlObject":{"protocol":"https","path":["api","v1","chatter","change_password"],"host":["api","chatpush","ru"],"query":[{"disabled":true,"description":{"content":"<p>string| required |  Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character</p>\n","type":"text/plain"},"key":"password","value":""}],"variable":[]}},"response":[{"id":"0cb5e0e6-08f3-4d24-9b2a-bfda0a95f644","name":"Successful result","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/chatter/change_password?password=Qwerrty1234","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","chatter","change_password"],"query":[{"key":"password","value":"Qwerrty1234","description":"string | required | Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 10 Apr 2024 10:59:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F8TmH_bR4dMJfF0AAoXh"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"e4b12774-7cb6-4d63-a27b-80ab8d933f93","name":"Error, 422","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/chatter/change_password?password=Qwerr","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","chatter","change_password"],"query":[{"key":"password","value":"Qwerr","description":"string | required | Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 10 Apr 2024 11:00:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"241"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F8TmJmxVzr_H2wAAAPXF"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"password\": [\n                \"password at least one digit or punctuation character\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"70d94610-498e-4cf2-a44a-4cb720230d9d"},{"name":"Open a dialog by phone number","id":"eef20d97-d724-43b3-b08a-7f0f04884762","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/chatter/","description":"<h4 id=\"the-logic-of-opening-a-chat-by-phone-number\">The logic of opening a chat by phone number</h4>\n<ul>\n<li><p>If the customer with the requested phone number has a chat in two messengers (whatsapp and telegram), then the chat will open with more recent messages.</p>\n</li>\n<li><p>If the customer with the requested phone number has a chat in one of the messengers (whatsapp or telegram), a dialogue will be opened in this messenger.</p>\n</li>\n<li><p>if the client with the requested phone number does not have chat, then the chat opens by default in the messenger whatsapp.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","chatter",""],"host":["api","jetapi","io"],"query":[{"disabled":true,"description":{"content":"<p>integer | required | unique client ID</p>\n","type":"text/plain"},"key":"customer_id","value":"23"},{"disabled":true,"description":{"content":"<p>string | required | unique value, placed in the link that comes in response to the iframe creation</p>\n","type":"text/plain"},"key":"hash","value":"23m2jl"},{"disabled":true,"description":{"content":"<p>string | required | recipient’s phone number</p>\n","type":"text/plain"},"key":"phone","value":"9959000000000"},{"disabled":true,"description":{"content":"<p>string | optional | sending channel. The available values are whatsapp and tdlib. Based on this parameter, a WhatsApp or Telegram chat will be opened </p>\n","type":"text/plain"},"key":"dispatch_routing","value":""},{"disabled":true,"description":{"content":"<p>integer | optional | sender_id of the message recipient. The parameter is available when sending via the tdlib channel </p>\n","type":"text/plain"},"key":"sender_id","value":""},{"disabled":true,"description":{"content":"<p>string | optional | username of the recipient of the message. The parameter is available when sending via the tdlib channel</p>\n","type":"text/plain"},"key":"username","value":""},{"disabled":true,"description":{"content":"<p>boolean | optional | Isolation of the dialog. False (default) - user can return to the chat list. True - isolated dialog with no possibility to get to the chat list</p>\n","type":"text/plain"},"key":"chat_only","value":null}],"variable":[]}},"response":[],"_postman_id":"eef20d97-d724-43b3-b08a-7f0f04884762"},{"name":"Add сustom сhat notes","id":"fde64a3c-12e8-4953-b4ef-363078153aaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\n    \"phone\": \"995591234567\",\n\n    \"notes\": [\n\n        {\n\n            \"title\": \"Text\",\n\n            \"body\": \"[Hello](https://google.com) Test_\\n  Test _test_.\"\n\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.jetapi.io/api/developer_chat/conversations/notes","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Overview</th>\n<th>Adding Custom Chat Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authentication</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>HTTP Method</td>\n<td>PUT</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.jetapi.io/api/developer_chat/conversations/notes\">https://api.jetapi.io/api/developer_chat/conversations/notes</a></td>\n</tr>\n<tr>\n<td>Possible Responses</td>\n<td>Success with HTTP 200, Error with HTTP 422</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"request-parameters-description\">Request Parameters Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Required</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>phone</td>\n<td>Conditional*</td>\n<td>string</td>\n<td>Phone number (e.g., +995591234567). Required if neither <code>tdlib_username</code> nor <code>tdlib_user_id</code> is provided.</td>\n</tr>\n<tr>\n<td>tdlib_username</td>\n<td>Conditional*</td>\n<td>string</td>\n<td>Telegram username. Required if <code>phone</code> is empty and <code>tdlib_user_id</code> is provided.</td>\n</tr>\n<tr>\n<td>tdlib_user_id</td>\n<td>Conditional*</td>\n<td>integer</td>\n<td>Telegram user ID. Required if <code>phone</code> is empty and <code>tdlib_username</code> is provided.</td>\n</tr>\n<tr>\n<td>notes</td>\n<td>Yes</td>\n<td>array</td>\n<td>Array of note objects.</td>\n</tr>\n<tr>\n<td>notes.title*</td>\n<td>Conditional</td>\n<td>string</td>\n<td>Note title (required if body is provided). See details below.</td>\n</tr>\n<tr>\n<td>notes.body**</td>\n<td>Conditional</td>\n<td>string</td>\n<td>Note content (required if title is provided). See details below.</td>\n</tr>\n</tbody>\n</table>\n</div><p>* At least one identifier must be provided (phone, tdlib_username, or tdlib_user_id)<br />** Either title or body must be provided (both can't be empty)</p>\n<h2 id=\"field-specifications\">Field Specifications</h2>\n<h3 id=\"title-field\">title Field</h3>\n<ul>\n<li><p><strong>Max length:</strong> 255 characters</p>\n</li>\n<li><p><strong>Supported markup:</strong> Markdown (<code>[Link](URL)</code>, <code>_italic_</code>, <code>\\n</code>), plain text (Latin/Cyrillic)</p>\n</li>\n</ul>\n<h3 id=\"body-field\">body Field</h3>\n<ul>\n<li><p><strong>Max length:</strong> 1000 characters</p>\n</li>\n<li><p><strong>Supported markup:</strong> Same as title</p>\n</li>\n</ul>\n<h4 id=\"additional-notes\">Additional Notes:</h4>\n<ul>\n<li><p>Send empty array <code>[]</code> to delete all notes</p>\n</li>\n<li><p>If a phone number has both Tdlib and WhatsApp conversations, both will be updated</p>\n</li>\n</ul>\n<img src=\"https://content.pstmn.io/f99cb905-6eda-4961-b0d3-8fde2b82c2d7/U2NyZWVuc2hvdCAyMDI1LTA1LTI2IGF0IDE3LjAyLjU0LnBuZw==\" alt />\n\n<img src=\"https://content.pstmn.io/036ad3f3-ad44-4a80-b8b3-2d1cb360dda6/U2NyZWVuc2hvdCAyMDI1LTA1LTI2IGF0IDE3LjAzLjE3LnBuZw==\" alt />\n\n<h2 id=\"response-parameters-http-200\">Response Parameters (HTTP 200)</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>meta</td>\n<td>object</td>\n<td>Object containing response metadata</td>\n</tr>\n<tr>\n<td>meta.code</td>\n<td>integer</td>\n<td>Server response code</td>\n</tr>\n<tr>\n<td>meta.status</td>\n<td>string</td>\n<td>Server response status (\"success\" if successful)</td>\n</tr>\n<tr>\n<td>conversations</td>\n<td>array</td>\n<td>Array of conversation objects</td>\n</tr>\n<tr>\n<td>conversations.id</td>\n<td>integer</td>\n<td>Unique conversation ID</td>\n</tr>\n<tr>\n<td>conversations.updated_at</td>\n<td>string (ISO 8601)</td>\n<td>Last update timestamp</td>\n</tr>\n<tr>\n<td>conversations.customer_id</td>\n<td>integer</td>\n<td>Client ID</td>\n</tr>\n<tr>\n<td>conversations.client_phone</td>\n<td>string</td>\n<td>Client phone number (e.g. +995591234567)</td>\n</tr>\n<tr>\n<td>conversations.conversation_type</td>\n<td>string</td>\n<td>Conversation type (e.g. \"whatsapp\")</td>\n</tr>\n<tr>\n<td>conversations.created_at</td>\n<td>string (ISO 8601)</td>\n<td>Creation timestamp</td>\n</tr>\n<tr>\n<td>conversations.notes</td>\n<td>array</td>\n<td>Array of note objects</td>\n</tr>\n<tr>\n<td>conversations.notes.title</td>\n<td>string</td>\n<td>Note title</td>\n</tr>\n<tr>\n<td>conversations.notes.body</td>\n<td>string</td>\n<td>Note content (Markdown supported)</td>\n</tr>\n<tr>\n<td>conversations.tdlib_user_id</td>\n<td>integer</td>\n<td>TDLib user ID</td>\n</tr>\n<tr>\n<td>conversations.tdlib_username</td>\n<td>string</td>\n<td>Telegram username</td>\n</tr>\n<tr>\n<td>conversations.messenger_client_name</td>\n<td>string</td>\n<td>Client name in messenger</td>\n</tr>\n<tr>\n<td>conversations.crm_client_name</td>\n<td>string</td>\n<td>Client name in CRM system</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"error-response-http-422\">Error Response (HTTP 422)</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>meta</td>\n<td>object</td>\n<td>Error metadata</td>\n</tr>\n<tr>\n<td>meta.code</td>\n<td>integer</td>\n<td>Error code (422)</td>\n</tr>\n<tr>\n<td>meta.message</td>\n<td>string</td>\n<td>Error message</td>\n</tr>\n<tr>\n<td>meta.status</td>\n<td>string</td>\n<td>Server response status</td>\n</tr>\n<tr>\n<td>meta.errors</td>\n<td>object</td>\n<td>Validation errors</td>\n</tr>\n<tr>\n<td>meta.errors.notes</td>\n<td>array</td>\n<td>Note validation errors (e.g. [\"Notes must contain maximum 2 parts\"])</td>\n</tr>\n<tr>\n<td>meta.errors.phone</td>\n<td>array</td>\n<td>Phone validation errors (e.g. [\"One of these fields must be present: phone, tdlib_username or tdlib_user_id\"])</td>\n</tr>\n<tr>\n<td>meta.status_id</td>\n<td>null</td>\n<td>Always null</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Notes:</strong></p>\n<ul>\n<li><p><code>meta.errors</code> may contain additional fields for other validation errors</p>\n</li>\n<li><p>All error messages are strings in their respective arrays</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","developer_chat","conversations","notes"],"host":["api","jetapi","io"],"query":[],"variable":[]}},"response":[{"id":"4c8456e3-0cba-449b-97f3-401160710fd7","name":"Successful result","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\n    \"phone\": \"995591234567\",\n\n    \"notes\": [\n\n        {\n\n            \"title\": \"Text\",\n\n            \"body\": \"[Hello](https://google.com) Test_\\n  Test _test_.\"\n\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.jetapi.io/api/developer_chat/conversations/notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"conversations\": [\n        {\n            \"id\": 4071161,\n            \"updated_at\": \"2025-05-23T13:54:33\",\n            \"customer_id\": 2003,\n            \"client_phone\": \"995591234567\",\n            \"conversation_type\": \"whatsapp\",\n            \"created_at\": \"2025-05-23T13:38:18\",\n            \"notes\": [\n                {\n                    \"title\": \"Text\",\n                    \"body\": \"[Hello](https://google.com) Test_\\n  Test _test_.\"\n                }\n            ],\n            \"tdlib_user_id\": null,\n            \"tdlib_username\": null,\n            \"messenger_client_name\": null,\n            \"crm_client_name\": null\n        }\n    ]\n}"},{"id":"54df0f2b-97c3-4f1f-8186-6b94763c46e9","name":"Error, 422","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\n    \"phone\": \"995591234567\",\n\n    \"notes\": [\n\n        {\n\n            \"title\": \"Text\"\n\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.jetapi.io/api/developer_chat/conversations/notes"},"code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"notes\": [\n                \"Notes must contain a maximum of 2 parts\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"a86f365b-ca8a-4d65-ab48-19ae39390111","name":"Error, 422","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\n    \"notes\": [\n\n        {\n\n            \"title\": \"Text\",\n\n            \"body\": \"[Hello](https://google.com) Test_\\n  Test _test_.\"\n\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.jetapi.io/api/developer_chat/conversations/notes"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"phone\": [\n                \"Phone number One of these fields must be present: [:phone, :tdlib_username, :tdlib_user_id]\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"fde64a3c-12e8-4953-b4ef-363078153aaa"},{"name":"Deleting chats from an iframe","id":"b3104089-5b1f-48b5-9fa4-203e63a44140","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.jetapi.io/api/v1/chatter/","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>Deleting chats in an iframe</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Bearer Token customer</td>\n</tr>\n<tr>\n<td>HTTP method</td>\n<td>DELETE</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.chatpush.ru/api/developer_chat/\">https://api.chatpush.ru/api/developer_chat/</a></td>\n</tr>\n<tr>\n<td>Response options</td>\n<td>Successful with http code 200, unsuccessful with code 401</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Additionally:</strong><br />If the client has no records in our system, the response code is 200, the deleted_messages_count and deleted_conversations_count fields will return values = 0.</p>\n<h2 id=\"description-of-the-response-parameters-with-the-http-200-code\">Description of the response parameters with the HTTP 200 code</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>meta</strong></td>\n<td>object</td>\n<td>An object containing the response metadata.</td>\n</tr>\n<tr>\n<td>meta.code</td>\n<td>integer</td>\n<td>The server response code.</td>\n</tr>\n<tr>\n<td>meta.status</td>\n<td>string</td>\n<td>Server response status (\"success\" in case of success).</td>\n</tr>\n<tr>\n<td>customer_id</td>\n<td>integer</td>\n<td>Client's ID</td>\n</tr>\n<tr>\n<td>deleted_messages_count</td>\n<td>integer</td>\n<td>Number of deleted messages</td>\n</tr>\n<tr>\n<td>deleted_conversations_count</td>\n<td>integer</td>\n<td>Number of deleted dialogs</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-of-the-response-parameters-with-the-http-401-code\">Description of the response parameters with the HTTP 401 code</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>meta</strong></td>\n<td>object</td>\n<td>An object containing the metadata of the error response.</td>\n</tr>\n<tr>\n<td>meta.code</td>\n<td>integer</td>\n<td>The error code (for example, 422 is an Unprocessable Entity).</td>\n</tr>\n<tr>\n<td>meta.message</td>\n<td>string</td>\n<td>The error message.</td>\n</tr>\n<tr>\n<td>meta.status</td>\n<td>string</td>\n<td>Response status (\"fail\" in case of an error).</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v1","chatter",""],"host":["api","jetapi","io"],"query":[],"variable":[]}},"response":[{"id":"c3f628b4-b722-4e3e-a5a9-8024f563c9ae","name":"Successful result","originalRequest":{"method":"DELETE","header":[],"url":"https://api.jetapi.io/api/v1/chatter/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"customer_id\": 657,\n    \"deleted_messages_count\": 1,\n    \"deleted_conversations_count\": 1\n}"},{"id":"badc02fe-8435-46d8-a512-dde532d68370","name":"Error, 401","originalRequest":{"method":"DELETE","header":[],"url":"https://api.jetapi.io/api/v1/chatter/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 401,\n        \"message\": \"Not authorized!\",\n        \"status\": \"fail\"\n    }\n}"}],"_postman_id":"b3104089-5b1f-48b5-9fa4-203e63a44140"}],"id":"06f583aa-2f52-4eda-aee2-6fcda2ecc324","description":"<p>The link to developer chat iframe is available and is only generated for instance.</p>\n<h2 id=\"authorization\"><strong>Authorization</strong></h2>\n<p>The project uses token-based authorization. You can get the necessary access_token in the corresponding section of your personal account</p>\n<p><strong>All relevant requests in headers must contain the following:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Bearer {access_token}</td>\n</tr>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">curl -X GET https://api.jetapi.io/api/v1/account -H 'Authorization: Bearer {your token}'\n\n</code></pre>\n<p>If these parameters are missing or disabled in all relevant resources, the response will have: HTTP code 401 (Not authorized) and will contain JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\n    \"status\": \"fail\",\n    \"message\": \"Not authorized!\",\n    \"code\": 401\n  }\n}\n\n</code></pre>\n<h2 id=\"desktop-version-of-the-chat\">Desktop version of the chat</h2>\n<p>To open the desktop chat, you need to add the parameter to the link - &amp;desktop=1 (or true/yes). When the parameter is set to 0/false/no the regular iframe chat opens.EndFragment</p>\n","_postman_id":"06f583aa-2f52-4eda-aee2-6fcda2ecc324"},{"name":"Additional information","item":[],"id":"4f956a76-38a2-49bc-8305-1063b684e964","description":"<h1 id=\"callback-of-the-sending-status\">Callback of the sending status</h1>\n<h3 id=\"general-information\">General information</h3>\n<blockquote>\n<p>The mechanics in which the server makes a POST request automatically at the specified callback_url in the delivery request. The server request is made after updating the status of the shipment to the final one (delivered, delivery refused, etc.). The request is repeated every 2 minutes 10 times until it receives the HTTP code 200 in response. </p>\n</blockquote>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>Data type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>delivery</td>\n<td>object</td>\n<td>The sending object</td>\n</tr>\n<tr>\n<td>delivery.sender_name</td>\n<td>string</td>\n<td>The name of the sender</td>\n</tr>\n<tr>\n<td>delivery.id</td>\n<td>integer</td>\n<td>Internal sending ID</td>\n</tr>\n<tr>\n<td>status</td>\n<td>object</td>\n<td>Status Object</td>\n</tr>\n<tr>\n<td>status.status_id</td>\n<td>integer</td>\n<td>Status ID from the “Status List”</td>\n</tr>\n<tr>\n<td>status.description</td>\n<td>string</td>\n<td>Brief description of the status</td>\n</tr>\n<tr>\n<td>status.dispatch_routing</td>\n<td>string</td>\n<td>The channel through which the final status was received. Acceptable values: “sms\", “whatsapp\", “tdlib”, “telegram\", “notify”</td>\n</tr>\n</tbody>\n</table>\n</div><p>JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"delivery\": {\n    \"sender_name\": \"JETAPI.IO\",\n    \"id\": 26,\n    \"status\": {\n      \"status_id\": 26, \n      \"description\": \"some text\", \n      \"dispatch_routing\": \"whatsapp\"\n    }\n  }\n}\n\n</code></pre>\n<h2 id=\"idempotence-of-requests\">Idempotence of requests</h2>\n<p>For some integrations, reliable protection against duplicate requests is required in order to avoid unnecessary shipments and debits of funds.<br />JETAPI provides such protection through the idempotent query mechanism.<br />To implement the mechanism in the available API methods, the IDEMPOTENCY KEY is used, which can be obtained in the personal account.<br /><strong>All relevant requests in headers must contain the following:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>checksum</td>\n<td>{checksum_value}</td>\n</tr>\n</tbody>\n</table>\n</div><p>Generating checksum_value:</p>\n<p>checksum_value is generated by converting parameters using HMAC SHA-256. The parameters should be presented as a string, which consists of parameter values pre-sorted alphabetically by key. The IDEMPOTENCY KEY is used as the secret key when applying <strong>HMAC SHA-256</strong> conversion.</p>\n<p><strong>Example generation checksum_value on Ruby:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">params = {\n   text: \"text\",\n   phone: \"9951233456789\",\n   external_id: \"100\"\n}\nidempotency_key = \"Z5F2idBj\"\nparams_string = params.keys.sort.map{|e| params[e]}.join\n\"10071233456789text\"\ndigest = OpenSSL::Digest.new('sha256')\nchecksum_value = OpenSSL::HMAC.hexdigest(digest, idempotency_key, params_string)\n\"ebb290126ea4302ebca339f5efe419b4a67edfe57e1ea844e7cec85ccef53f23\"\n\n</code></pre>\n<p><strong>Example request by curl:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">curl --location --request POST 'https://api.jetapi.io/api/v1/delivery?text=textsms&amp;phone=9951233456789&amp;external_id=100' \\\n--header 'Authorization: Bearer {your token}'\n--header 'checksum: {checksum_value}'\n\n</code></pre>\n<p>If the checksum value is incorrectly generated, the response will have: HTTP code 400 (Bad Request) and will <em><strong>contain</strong></em> JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\n    \"status\": \"fail\",\n    \"message\": \"Invalid checksum\",\n    \"code\": 400\n  }\n}\n\n</code></pre>\n<p>If the key does not match, the response will have: HTTP code 409 (Conflict) and will contain JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\n    \"status\": \"fail\",\n    \"message\": \"Request with current params has already been received\",\n    \"code\": 409\n  }\n}\n\n</code></pre>\n<h1 id=\"cascading-sending-whatsapp-telegram\">Cascading sending (WhatsApp, Telegram)</h1>\n<p><strong>General information</strong></p>\n<p>Before you start sending using WhatsApp, Telegram you need to link them to your account.</p>\n<p>Next, you can specify a list of channels through which an attempt will be made to deliver a message. The transition to the next channel (an attempt to send through this channel) occurs when the status of the inability to deliver via the current channel is received. Within the framework of the service and API, the parameter that controls this property is called <strong>dispatch routing</strong> or <strong>dispatch routing</strong>.</p>\n<p><strong>Usage</strong></p>\n<ul>\n<li><p>Our service currently provides 5 sending channels - [whatsapp], [tdlib] (personal Telegram), [telegram] (telegram bot), [sms]</p>\n</li>\n<li><p>You can use cascading sending when sending via partner services or via the API. Routing of shipments from partner services is controlled by setting the default value in the personal account, the same value is applied if the <code>dispatch_routing</code> parameter is not specified in the API, invalid or empty.</p>\n</li>\n<li><p>The value that comes in the API parameter <code>dispatch_routing</code> must consist of an array of strings, is filtered for uniqueness and leaves only the available options from the first paragraph.</p>\n</li>\n<li><p>The position of the channel in the list corresponds to the order of attempts to send to this channel. Example: a request to send with the value <code>dispatch_routing: [\"whatsapp\", \"sms\"]</code> is received; first, a request to send via WhatsApp will be made, with a successful response, the delivery cycle will stop, if the message via WhatsApp is not delivered, the service will switch to SMS delivery.</p>\n</li>\n</ul>\n<h1 id=\"list-of-service-statuses\">List of service statuses</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>ID</th>\n<th>Explanation</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>telecommunication_company_error</td>\n<td>0</td>\n<td>Operator error</td>\n<td>final</td>\n<td>Message not delivered. The operator reported an error when sending.</td>\n</tr>\n<tr>\n<td>enroute</td>\n<td>1</td>\n<td>Passed to the operator</td>\n<td>intermediate</td>\n<td>The operator accepted the request to send the message, the delivery status will appear later.</td>\n</tr>\n<tr>\n<td>delivered</td>\n<td>2</td>\n<td>Delivered</td>\n<td>final</td>\n<td>The message has been delivered to the recipient.</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>3</td>\n<td>Expired</td>\n<td>Final</td>\n<td>Message not delivered. Possible reasons: the subscriber was out of the access zone for a long time or his phone ran out of memory for new messages.</td>\n</tr>\n<tr>\n<td>deleted</td>\n<td>4</td>\n<td>Deleted</td>\n<td>final</td>\n<td>Message deleted.</td>\n</tr>\n<tr>\n<td>undeliverable</td>\n<td>5</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>Message could not be delivered. The recipient is offline or has banned receiving messages.</td>\n</tr>\n<tr>\n<td>accepted</td>\n<td>6</td>\n<td>Accepted</td>\n<td>intermediate</td>\n<td>The message is accepted by us for sending and in the process of transmission to the operator.</td>\n</tr>\n<tr>\n<td>unknown</td>\n<td>7</td>\n<td>Failed to deliver</td>\n<td>final</td>\n<td>Message not delivered. The operator reported an unknown error.</td>\n</tr>\n<tr>\n<td>rejected</td>\n<td>8</td>\n<td>Rejected</td>\n<td>final</td>\n<td>The operator rejected the delivery. A possible reason is the client's refusal to receive an SMS.</td>\n</tr>\n<tr>\n<td>internal_server_error</td>\n<td>9</td>\n<td>Server error</td>\n<td>final</td>\n<td>The server could not process the request and shut down. We are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>unhandled_error</td>\n<td>10</td>\n<td>Unhandled error</td>\n<td>final</td>\n<td>Unknown operator error. Our specialists are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>incorrect_number</td>\n<td>11</td>\n<td>Invalid number</td>\n<td>final</td>\n<td>The wrong phone number is specified in the delivery request.</td>\n</tr>\n<tr>\n<td>forbidden</td>\n<td>12</td>\n<td>Forbidden</td>\n<td>final</td>\n<td>One of the restrictions has worked: on sending duplicates, on sending messages too often to one recipient, on numbers from the blacklist, on texts prohibited by the spam filter or names of senders.</td>\n</tr>\n<tr>\n<td>not_enough_money</td>\n<td>13</td>\n<td>Insufficient funds</td>\n<td>final</td>\n<td>Top up your account for sending SMS or mailing in messengers.</td>\n</tr>\n<tr>\n<td>waiting_for_sending</td>\n<td>14</td>\n<td>Waiting to be sent</td>\n<td>intermediate</td>\n<td>The message is in the queue to be sent, it will be sent to the operator soon.</td>\n</tr>\n<tr>\n<td>in_progress</td>\n<td>15</td>\n<td>In processing</td>\n<td>intermediate</td>\n<td>The message is being processed by the system. Its status will be updated in the near future.</td>\n</tr>\n<tr>\n<td>read</td>\n<td>16</td>\n<td>Read</td>\n<td>final</td>\n<td>Message read by recipient.</td>\n</tr>\n<tr>\n<td>too_many_requests</td>\n<td>17</td>\n<td>Request limit exceeded</td>\n<td>final</td>\n<td>Telegram informed us that you sent too many requests, check the status of your phone at the link: <a href=\"https://t.me/SpamBot\">https://t.me/SpamBot </a> .</td>\n</tr>\n<tr>\n<td>cancelled</td>\n<td>18</td>\n<td>Cancelled</td>\n<td>final</td>\n<td>Message delivery has been cancelled.</td>\n</tr>\n<tr>\n<td>smpp_queue_expired</td>\n<td>20</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>moderating</td>\n<td>21</td>\n<td>On moderation</td>\n<td>intermediate</td>\n<td>Message on moderation. According to the results of processing, an email will be sent with an explanation of the decision.</td>\n</tr>\n<tr>\n<td>moderation_declined</td>\n<td>22</td>\n<td>Moderation rejected</td>\n<td>final</td>\n<td>The message did not pass moderation. The reason: look in the mail.</td>\n</tr>\n<tr>\n<td>external_restriction</td>\n<td>25</td>\n<td>Restrictions on sending</td>\n<td>final</td>\n<td>One of the restrictions worked: on sending duplicates, on flooding (sending messages to one recipient too often), on numbers from the blacklist, on texts prohibited by the spam filter or names of senders.</td>\n</tr>\n<tr>\n<td>length_restriction</td>\n<td>26</td>\n<td>Message length limits</td>\n<td>final</td>\n<td>The message was not sent because in settings there is a limit on the length of messages sent.</td>\n</tr>\n<tr>\n<td>kazakhstan_restriction</td>\n<td>27</td>\n<td>Restrictions on sending to Kazakhstan</td>\n<td>final</td>\n<td>Sending promotional messages after 22:00 is prohibited in Kazakhstan.</td>\n</tr>\n<tr>\n<td>operator_restriction</td>\n<td>28</td>\n<td>Operator restriction</td>\n<td>final</td>\n<td>The message is blocked due to operator restriction for you.</td>\n</tr>\n<tr>\n<td>payment_transaction_error</td>\n<td>31</td>\n<td>Payment error</td>\n<td>final</td>\n<td>The server could not make the payment. We are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>subscription_expired</td>\n<td>32</td>\n<td>The subscription to messengers has not been paid</td>\n<td>final</td>\n<td>The message has not been delivered, since you have not paid for access to the message sending service. Top up your account in your personal account to continue sending messages.</td>\n</tr>\n<tr>\n<td>incorrect_delivery_params</td>\n<td>33</td>\n<td>Invalid sending parameters</td>\n<td>final</td>\n<td>The parameters in the delivery request were passed incorrectly. For more information, see [API documentation.]</td>\n</tr>\n<tr>\n<td>foreign_delivery_restricted</td>\n<td>34</td>\n<td>Restrictions on sending</td>\n<td>final</td>\n<td>One of the restrictions worked: on sending duplicates, on flooding (sending messages to one recipient too often), on numbers from the blacklist, on texts prohibited by the spam filter or names of senders.</td>\n</tr>\n<tr>\n<td>rate_limit_error</td>\n<td>35</td>\n<td>The limit of delivery requests has been exceeded</td>\n<td>final</td>\n<td>When more than 1 message per minute is sent to the messenger, they queue up, an error is displayed if the number of messages in the queue is exceeded.</td>\n</tr>\n<tr>\n<td>blocked_by_subscription_expired</td>\n<td>36</td>\n<td>Subscription suspended</td>\n<td>final</td>\n<td>Subscription suspended.</td>\n</tr>\n<tr>\n<td>daily_limit_error</td>\n<td>37</td>\n<td>The daily limit of delivery requests has been exceeded</td>\n<td>final</td>\n<td>The daily limit for sending messages has been exceeded.</td>\n</tr>\n<tr>\n<td>whatsapp_unregistered_number</td>\n<td>44</td>\n<td>WhatsApp unregistered number</td>\n<td>final</td>\n<td>This number is not registered in the messenger.</td>\n</tr>\n<tr>\n<td>whatsapp_session_doesnt_exist</td>\n<td>45</td>\n<td>WhatsApp session not started</td>\n<td>final</td>\n<td>Message not delivered because your WhatsApp is not authorized in the message sending service. To log in, scan the QR code.</td>\n</tr>\n<tr>\n<td>smsc_dos_error</td>\n<td>46</td>\n<td>Waiting to be sent</td>\n<td>intermediate</td>\n<td>Message in the queue to be sent, will be sent to the operator soon.</td>\n</tr>\n<tr>\n<td>smsc_not_enough_money</td>\n<td>47</td>\n<td>Unprocessed error</td>\n<td>final</td>\n<td>Unknown operator error. Our specialists are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>smsc_unavailable_number</td>\n<td>48</td>\n<td>Unavailable number</td>\n<td>final</td>\n<td>The operator could not deliver a message to this phone number.</td>\n</tr>\n<tr>\n<td>aggregate_forbidden</td>\n<td>49</td>\n<td>Prohibited</td>\n<td>final</td>\n<td>Operator's ban on sending from common names.</td>\n</tr>\n<tr>\n<td>tdlib_not_authorized</td>\n<td>50</td>\n<td>Telegram is not authorized</td>\n<td>final</td>\n<td>Sending to Telegram has stopped, you need to log in.</td>\n</tr>\n<tr>\n<td>customer_settings_delivery_time_restriction_cancel</td>\n<td>51</td>\n<td>Restriction on sending time settings</td>\n<td>final</td>\n<td>The message is blocked due to a restriction on sending time settings.</td>\n</tr>\n<tr>\n<td>smpp_connection_error</td>\n<td>69</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_sending_limit_error</td>\n<td>88</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_transmitter_not_allowed_region</td>\n<td>257</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>Failed to deliver the message if it is an SMS: the operator cannot deliver the message. This may be due to the fact that the subscriber is offline or has forbidden receiving messages. If this is a delivery to messengers: the message could not be delivered due to the fact that the sender's phone is offline.</td>\n</tr>\n<tr>\n<td>blacklisted_number_error</td>\n<td>555</td>\n<td>Blacklisted</td>\n<td>final</td>\n<td>Subscriber is blacklisted by the client or the message sending service.</td>\n</tr>\n<tr>\n<td>source_addr_forbidden</td>\n<td>1281</td>\n<td>Name blocked by operator</td>\n<td>final</td>\n<td>Name blocked by operator.</td>\n</tr>\n<tr>\n<td>smpp_num_blacklisted</td>\n<td>1282</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>There is a problem with the recipient's number. It is possible that there was an attempt to send to a direction prohibited for the client (for example, sending to non-Russian numbers may be prohibited) or the recipient himself forbade receiving a certain class of messages.</td>\n</tr>\n<tr>\n<td>template_violation</td>\n<td>1283</td>\n<td>Invalid text or template</td>\n<td>final</td>\n<td>The operator rejected the delivery due to violations of the text parameters.</td>\n</tr>\n<tr>\n<td>smpp_msg_blacklisted</td>\n<td>1284</td>\n<td>Rejected</td>\n<td>final</td>\n<td>The text of the message contains forbidden words.</td>\n</tr>\n<tr>\n<td>smpp_not_enough_money</td>\n<td>1285</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_foreign_delivery_restricted</td>\n<td>1286</td>\n<td>Restrictions on sending</td>\n<td>final</td>\n<td>One of the restrictions worked: on sending duplicates, on flooding (sending messages to one recipient too often), on numbers from the blacklist, on texts prohibited by the spam filter or names of senders.</td>\n</tr>\n<tr>\n<td>smpp_down_msisdn</td>\n<td>1287</td>\n<td>Operator error</td>\n<td>Final</td>\n<td>Operator error. Our specialists are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>smpp_megafon_wrong_provider</td>\n<td>1288</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_beeline_wrong_provider</td>\n<td>1293</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_beeline_partner_blocked</td>\n<td>1299</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>Failed to deliver the message if it is an SMS: the operator cannot deliver the message. This may be due to the fact that the subscriber is offline or has forbidden receiving messages. If this is a delivery to messengers: the message could not be delivered due to the fact that the sender's phone is offline.</td>\n</tr>\n<tr>\n<td>smpp_anti_spam_block</td>\n<td>2291</td>\n<td>The subscriber has enabled the spam filter</td>\n<td>final</td>\n<td>The subscriber has forbidden receiving SMS.</td>\n</tr>\n<tr>\n<td>waba_not_authorized</td>\n<td>52</td>\n<td>WABA not authorized</td>\n<td>final</td>\n<td>Sending to WABA has stopped, you need to log in.</td>\n</tr>\n<tr>\n<td>mobile_operator_not_identified</td>\n<td>53</td>\n<td>Mobile operator not identified</td>\n<td>final</td>\n<td>Mobile operator not identified.</td>\n</tr>\n<tr>\n<td>sender_name_error</td>\n<td>38</td>\n<td>Sender name error</td>\n<td>final</td>\n<td>Sender name error.</td>\n</tr>\n<tr>\n<td>safe_sending_limit_exceeded</td>\n<td>56</td>\n<td>Safe sending limit exceeded</td>\n<td>final</td>\n<td>We have stopped sending to avoid the risk of number blocking. As soon as the limit is updated, the system will start sending messages again. With time, you will be able to send more and more.</td>\n</tr>\n<tr>\n<td>too_many_messages_to_new_contacts</td>\n<td>57</td>\n<td>Too many messages to new contacts</td>\n<td>final</td>\n<td>Telegram is currently limiting the number of outgoing messages due to increased demand. But this is temporary, as you have more conversations in Telegram, the limits will expand, and everything will be sent faster.</td>\n</tr>\n<tr>\n<td>user_not_found_in_telegram</td>\n<td>58</td>\n<td>User not found in Telegram</td>\n<td>final</td>\n<td>Telegram does not report the reason: the account may be hidden, not exist in the system, or temporarily restricted.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"list-of-traffic-categories\">List of traffic categories</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>ID</th>\n<th>Explanation</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>advert</td>\n<td>0</td>\n<td>Advertising</td>\n</tr>\n<tr>\n<td>transaction</td>\n<td>1</td>\n<td>Transactional</td>\n</tr>\n<tr>\n<td>service</td>\n<td>2</td>\n<td>Service</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"4f956a76-38a2-49bc-8305-1063b684e964"}],"id":"ec3ca7b7-2667-4366-adb7-06ca10a35e0f","description":"<h2 id=\"authorization\"><strong>Authorization</strong></h2>\n<p>Jetapi uses Bearer Token authorization for all client requests.</p>\n<p>To access the API, include the following HTTP header in your request:</p>\n<p><code>Authorization: Bearer {your_token}</code></p>\n<p>If these parameters are missing or invalid, the response will have:</p>\n<p><code>HTTP code 401 (Not authorized)</code></p>\n","_postman_id":"ec3ca7b7-2667-4366-adb7-06ca10a35e0f"},{"name":"For corporate Developers","item":[{"name":"Instance Management","item":[{"name":"Creating an instance","id":"6b9893e4-6c86-4c1f-80ac-fffcfae14983","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"instance\" :  {\n    \"phone\" : \"995555846453\",\n    \"email\" : \"example_mail@gmail.com\",\n    \"password\" : \"example123\",\n    \"external_id\" : \"77777\",\n    \"dispatch_routing\" : [\"whatsapp\"]\n}\n}","options":{"raw":{"language":"json"}}},"url":"https://jetapi.io/api/tmp/instances","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Data type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td>yes</td>\n<td>string</td>\n<td>Email of the registered client</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>yes</td>\n<td>string</td>\n<td>Phone number of the registered client</td>\n</tr>\n<tr>\n<td>password</td>\n<td>none</td>\n<td>string</td>\n<td>Password of the registered client.  <br />Validation:  <br />1. greater than or equal to 7 characters  <br />2. letters and numbers are required</td>\n</tr>\n<tr>\n<td>dispatch_routing</td>\n<td>no</td>\n<td>array</td>\n<td>Default channel for sending registered client</td>\n</tr>\n<tr>\n<td>external_id</td>\n<td>none</td>\n<td>string</td>\n<td>External ID</td>\n</tr>\n<tr>\n<td>renew_subscription</td>\n<td>none</td>\n<td>boolean</td>\n<td>False - auto-renewal is disabled, true - auto-renewal is enabled. If there is no default parameter, the value is = true</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","tmp","instances"],"host":["jetapi.io"],"query":[],"variable":[]}},"response":[{"id":"8f3c802a-dcd1-451e-bc96-b94ddc13cae8","name":"Successful result","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{api key}","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"instance\" :  {\n    \"phone\" : \"79260846453\",\n    \"email\" : \"example_mail@mail.ru\",\n    \"password\" : \"example123\",\n    \"external_id\" : \"77777\",\n    \"dispatch_routing\" : [\"whatsapp\"]\n}\n}","options":{"raw":{"language":"json"}}},"url":"https://jetapi.io/api/tmp/instances"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 10:58:19 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept"},{"key":"ETag","value":"W/\"56565e2961084d39fee8946f6c43d5c1\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"24aad114-8386-4ad7-b714-5d9267b09df2"},{"key":"X-Runtime","value":"0.767932"}],"cookie":[],"responseTime":null,"body":"{\n    \"instance\": {\n        \"id\": 3748,\n        \"customer_id\": 20322,\n        \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJjdXN0b21lcl9pZCI6MjAzMjIsImRhdGV0aW1lIjoxNzAxMDgyNjk4fQ.R4rmzpSNC2rSGk5QQfTooK3I3niDMYclz-6uFmD7-Vg\",\n        \"idempotency_key\": \"78avGOJp\",\n        \"renew_subscription\": true,\n        \"external_id\": \"77777\"\n    },\n    \"meta\": {\n        \"status\": \"success\",\n        \"code\": 200\n    }\n}"},{"id":"bd5ea02a-0ea6-4f45-9c5f-76ede6576829","name":"Error, 422","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{api key}","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"instance\" :  {\n    \"phone\" : \"79260846453\",\n    \"email\" : \"example_mail@mail.ru\",\n    \"password\" : \"example123\",\n    \"external_id\" : \"77777\",\n    \"dispatch_routing\" : [\"whatsapp\"]\n}\n}","options":{"raw":{"language":"json"}}},"url":"https://jetapi.io/api/tmp/instances"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 10:59:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Vary","value":"Accept"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"11659583-3c40-4197-b0fd-8122132d7f3f"},{"key":"X-Runtime","value":"0.017535"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"status\": \"fail\",\n        \"code\": 422,\n        \"message\": \"Unprocessable entity\",\n        \"errors\": {\n            \"email\": [\n                \"already exists\"\n            ],\n            \"phone\": [\n                \"already exists\"\n            ]\n        }\n    }\n}"}],"_postman_id":"6b9893e4-6c86-4c1f-80ac-fffcfae14983"},{"name":"Getting information about an instance (customer_id)","id":"c753851b-8d95-41f7-8397-94f884a8b847","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/developer/v1/instances/:customer_id","description":"<h5 id=\"response-parameters\">Response Parameters</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Unique instance identifier</td>\n</tr>\n<tr>\n<td>token</td>\n<td>string</td>\n<td>Bearer authentication token</td>\n</tr>\n<tr>\n<td>customer_id</td>\n<td>integer</td>\n<td>Unique client identifier</td>\n</tr>\n<tr>\n<td>renew_subscription</td>\n<td>boolean</td>\n<td>Instance subscription auto-renewal status  <br /><code>false</code> - auto-renewal disabled  <br /><code>true</code> - auto-renewal enabled</td>\n</tr>\n<tr>\n<td>tdlib_session</td>\n<td>integer</td>\n<td>Telegram authorization status <code>wait_phone: 0, wait_code: 1, wait_password: 2, authorized: 3, wait_qr_code: 4</code></td>\n</tr>\n<tr>\n<td>whatsapp_session</td>\n<td>integer</td>\n<td>WhatsApp authorization status  <br /><code>0</code> - Not authorized  <br /><code>1</code> - Authorized</td>\n</tr>\n<tr>\n<td>whatsapp_phone</td>\n<td>string</td>\n<td>Phone number of authorized WhatsApp user</td>\n</tr>\n<tr>\n<td>whatsapp_queue_size</td>\n<td>integer</td>\n<td>Current number of messages in WhatsApp queue for this instance  <br />Indicates real-time load on messaging system</td>\n</tr>\n<tr>\n<td>whatsapp_queue_limit</td>\n<td>integer</td>\n<td>Maximum WhatsApp message queue size for this instance  <br />Defines limit of messages that can be queued for sending</td>\n</tr>\n<tr>\n<td>external_id</td>\n<td>integer</td>\n<td>External identifier</td>\n</tr>\n<tr>\n<td>subscription_cost</td>\n<td>number</td>\n<td>Instance subscription cost</td>\n</tr>\n<tr>\n<td>subscription_paid_until</td>\n<td>datetime</td>\n<td>Subscription expiration date</td>\n</tr>\n<tr>\n<td>subscription_status</td>\n<td>string</td>\n<td>Instance status  <br /><code>Active</code> - active  <br /><code>Inactive</code> - inactive</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["developer","v1","instances",":customer_id"],"host":["api","jetapi.io"],"query":[],"variable":[{"type":"any","value":"","key":"customer_id"}]}},"response":[{"id":"2f298847-38c5-43d6-a44c-f952ef36397b","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/instances/:curstomer_id","protocol":"https","host":["api","jetapi.io"],"path":["developer","v1","instances",":curstomer_id"],"variable":[{"key":"curstomer_id","value":"203","description":"integer | required | unique client ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 11:20:16 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t25nAma30LDxQAAD9k"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"instance\": {\n        \"id\": 373,\n        \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJjdXN0b21lcl9pZCI6MTA4MywiZGF0ZXRpbWUiOjE3NDkzMTg3MDl9.--9FYWaoc6P09r7gUlp7BoZZ\",\n        \"external_id\": \"0001\",\n        \"customer_id\": 203,\n        \"subscription_paid_until\": \"2025-10-31\",\n        \"renew_subscription\": false,\n        \"tdlib_session\": 3,\n        \"whatsapp_session\": 0,\n        \"whatsapp_queue_size\": 0,\n        \"whatsapp_queue_limit\": 1000,\n        \"whatsapp_phone\": null,\n        \"subscription_status\": \"active\",\n        \"subscription_cost\": \"600.00\"\n    }\n}"},{"id":"042c22a1-fdfe-4446-a0b3-bf8ec9a31416","name":"Error, 404","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/instances/:curstomer_id","protocol":"https","host":["api","jetapi.io"],"path":["developer","v1","instances",":curstomer_id"],"variable":[{"key":"curstomer_id","value":"2032","description":"integer | required | unique client ID"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 11:22:56 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t3C5hLP7pJWTgAAM7j"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 404,\n        \"message\": \"Not found\",\n        \"status\": \"fail\"\n    }\n}"}],"_postman_id":"c753851b-8d95-41f7-8397-94f884a8b847"},{"name":"Getting information about an instance (external_id)","id":"5c10d613-3dbd-4cab-94d9-277e7c675fa2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/developer/v1/instances","description":"<h5 id=\"response-parameters\">Response Parameters</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>integer</td>\n<td>Unique instance identifier</td>\n</tr>\n<tr>\n<td><code>token</code></td>\n<td>string</td>\n<td>Bearer token</td>\n</tr>\n<tr>\n<td><code>customer_id</code></td>\n<td>integer</td>\n<td>Unique customer identifier</td>\n</tr>\n<tr>\n<td><code>renew_subscription</code></td>\n<td>boolean</td>\n<td>Instance subscription auto-renewal status. <code>false</code> - auto-renewal disabled, <code>true</code> - auto-renewal enabled.</td>\n</tr>\n<tr>\n<td><code>tdlib_session</code></td>\n<td>integer</td>\n<td>Telegram authorization status. <code>wait_phone: 0, wait_code: 1, wait_password: 2, authorized: 3, wait_qr_code: 4</code></td>\n</tr>\n<tr>\n<td><code>whatsapp_session</code></td>\n<td>integer</td>\n<td>WhatsApp authorization status. Status codes: (0 or 1)  <br />0 - Not authorized, 1 - Authorized</td>\n</tr>\n<tr>\n<td><code>whatsapp_phone</code></td>\n<td>string</td>\n<td>Authorized user's phone number</td>\n</tr>\n<tr>\n<td><code>whatsapp_queue_size</code></td>\n<td>integer</td>\n<td>Current number of messages in the WhatsApp queue for this instance. Indicates real-time load on the messaging system.</td>\n</tr>\n<tr>\n<td><code>whatsapp_queue_limit</code></td>\n<td>integer</td>\n<td>Maximum size of WhatsApp message queue for this instance. Defines the limit of messages that can be queued for sending.</td>\n</tr>\n<tr>\n<td><code>external_id</code></td>\n<td>integer</td>\n<td>External ID</td>\n</tr>\n<tr>\n<td><code>subscription_cost</code></td>\n<td>number</td>\n<td>Instance subscription cost</td>\n</tr>\n<tr>\n<td><code>subscription_paid_until</code></td>\n<td>datetime</td>\n<td>Subscription expiration date</td>\n</tr>\n<tr>\n<td><code>subscription_status</code></td>\n<td>string</td>\n<td>Instance status. <code>Active</code> - active  <br /><code>Inactive</code> - inactive</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["developer","v1","instances"],"host":["api","jetapi.io"],"query":[{"disabled":true,"description":{"content":"<p>string | required | External client ID on the developer's side.</p>\n","type":"text/plain"},"key":"external_id","value":""},{"disabled":true,"description":{"content":"<p>integer | optional | Number of records, default 100, can be in the range [1, 100] </p>\n","type":"text/plain"},"key":"per_page","value":""},{"disabled":true,"description":{"content":"<p>integer | optional | Number of filtered instances, excluding pagination.</p>\n","type":"text/plain"},"key":"total_count","value":""},{"disabled":true,"description":{"content":"<p>integer | optional | Specific page, default = 1. </p>\n","type":"text/plain"},"key":"page","value":""}],"variable":[]}},"response":[{"id":"a73bacf1-2b7f-44ae-b3e9-a1a971bb900f","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/instances?external_id=77777","protocol":"https","host":["api","jetapi.io"],"path":["developer","v1","instances"],"query":[{"key":"external_id","value":"77777"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 11:20:16 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t25nAma30LDxQAAD9k"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\",\n        \"page\": 1,\n        \"total_count\": 1,\n        \"per_page\": 100\n    },\n    \"instances\": [\n        {\n            \"id\": 6329,\n            \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJjdXN0b21lcl9pZCI6Mjc4MDcsImRhdGV0aW1lIjoxNzI0MjUxNzcwfQ.3y2y5MxrX1SwWCXdVA2atmr71d1XGrwY\",\n            \"external_id\": \"77777\",\n            \"customer_id\": 27807,\n            \"subscription_paid_until\": \"2025-10-09\",\n            \"renew_subscription\": false,\n            \"tdlib_session\": 3,\n            \"whatsapp_session\": 0,\n            \"whatsapp_queue_size\": 0,\n            \"whatsapp_queue_limit\": 50,\n            \"whatsapp_phone\": null,\n            \"subscription_status\": \"inactive\",\n            \"subscription_cost\": \"600.00\"\n        }\n    ]\n}"},{"id":"5e207243-38be-4ddd-b529-a60e789fc0c3","name":"Error, 404","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/instances?external_id=543","protocol":"https","host":["api","jetapi.io"],"path":["developer","v1","instances"],"query":[{"key":"external_id","value":"543"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 11:22:56 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t3C5hLP7pJWTgAAM7j"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 404,\n        \"message\": \"Not found\",\n        \"status\": \"fail\"\n    }\n}"}],"_postman_id":"5c10d613-3dbd-4cab-94d9-277e7c675fa2"},{"name":"Getting information about all instances","id":"956072f0-2b2d-414b-9c72-42e6116991a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/developer/v1/instances","description":"<h5 id=\"response-parameters\">Response Parameters</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>integer</td>\n<td>Unique instance identifier</td>\n</tr>\n<tr>\n<td><code>token</code></td>\n<td>string</td>\n<td>Bearer token</td>\n</tr>\n<tr>\n<td><code>customer_id</code></td>\n<td>integer</td>\n<td>Unique customer identifier</td>\n</tr>\n<tr>\n<td><code>renew_subscription</code></td>\n<td>boolean</td>\n<td>Instance subscription auto-renewal status. <code>false</code> - auto-renewal disabled, <code>true</code> - auto-renewal enabled.</td>\n</tr>\n<tr>\n<td><code>tdlib_session</code></td>\n<td>integer</td>\n<td>Telegram authorization status. <code>wait_phone: 0, wait_code: 1, wait_password: 2, authorized: 3, wait_qr_code: 4</code></td>\n</tr>\n<tr>\n<td><code>whatsapp_session</code></td>\n<td>integer</td>\n<td>WhatsApp authorization status. Status codes: (0 or 1)  <br />0 - Not authorized, 1 - Authorized</td>\n</tr>\n<tr>\n<td><code>whatsapp_phone</code></td>\n<td>string</td>\n<td>Authorized user's phone number</td>\n</tr>\n<tr>\n<td><code>whatsapp_queue_size</code></td>\n<td>integer</td>\n<td>Current number of messages in the WhatsApp queue for this instance. Indicates real-time load on the messaging system.</td>\n</tr>\n<tr>\n<td><code>whatsapp_queue_limit</code></td>\n<td>integer</td>\n<td>Maximum size of WhatsApp message queue for this instance. Defines the limit of messages that can be queued for sending.</td>\n</tr>\n<tr>\n<td><code>external_id</code></td>\n<td>integer</td>\n<td>External ID</td>\n</tr>\n<tr>\n<td><code>subscription_cost</code></td>\n<td>number</td>\n<td>Instance subscription cost</td>\n</tr>\n<tr>\n<td><code>subscription_paid_until</code></td>\n<td>datetime</td>\n<td>Subscription expiration date</td>\n</tr>\n<tr>\n<td><code>subscription_status</code></td>\n<td>string</td>\n<td>Instance status. <code>Active</code> - active  <br /><code>Inactive</code> - inactive</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["developer","v1","instances"],"host":["api","jetapi.io"],"query":[{"disabled":true,"description":{"content":"<p>integer | optional | Number of records, default 100, can be in the range [1, 100] </p>\n","type":"text/plain"},"key":"per_page","value":""},{"disabled":true,"description":{"content":"<p>integer | optional | Number of filtered instances, excluding pagination.</p>\n","type":"text/plain"},"key":"total_count","value":""},{"disabled":true,"description":{"content":"<p>integer | optional | Specific page, default = 1. </p>\n","type":"text/plain"},"key":"page","value":""}],"variable":[]}},"response":[{"id":"0988bf35-451d-47fa-ab08-9be53a472d32","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/instances?per_page=2","protocol":"https","host":["api","jetapi.io"],"path":["developer","v1","instances"],"query":[{"key":"per_page","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 11:20:16 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t25nAma30LDxQAAD9k"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\",\n        \"page\": 1,\n        \"total_count\": 5,\n        \"per_page\": 100\n    },\n    \"instances\": [\n        {\n            \"id\": 336,\n            \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJjdXN0CI6NzEyLCJkYXRldGltZSI6MTcxOTgzNjc4Mn0.7UUCZCWDwvSBGUlZ44twU2Jdbt0CY\",\n            \"external_id\": \"234\",\n            \"customer_id\": 712,\n            \"subscription_paid_until\": \"2025-04-01\",\n            \"renew_subscription\": false,\n            \"tdlib_session\": 0,\n            \"whatsapp_session\": 0,\n            \"whatsapp_queue_size\": 0,\n            \"whatsapp_queue_limit\": 50,\n            \"whatsapp_phone\": null,\n            \"subscription_status\": \"inactive\",\n            \"subscription_cost\": \"1999.00\"\n        },\n        {\n            \"id\": 361,\n            \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJjdXN0b21lcl9pZCI6NzYwLCJkYXRldGltZSI6MTcyNDkyNzcxMH0.lOIkZrATvJYwPiC3gdpdkRlZTw4\",\n            \"external_id\": \"113\",\n            \"customer_id\": 760,\n            \"subscription_paid_until\": \"2024-12-27\",\n            \"renew_subscription\": false,\n            \"tdlib_session\": 0,\n            \"whatsapp_session\": 0,\n            \"whatsapp_queue_size\": 0,\n            \"whatsapp_queue_limit\": 50,\n            \"whatsapp_phone\": null,\n            \"subscription_status\": \"inactive\",\n            \"subscription_cost\": \"12.00\"\n        }\n    ]\n}"}],"_postman_id":"956072f0-2b2d-414b-9c72-42e6116991a0"},{"name":"Instance data changes","id":"696be997-9295-4cdf-abce-766e71791c17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"PUT","header":[],"url":"https://api.jetapi.io/developer/v1/instances/:instance_id?renew_subscription=true&external_id&dispatch_routing[]&email&phone&password","urlObject":{"protocol":"https","path":["developer","v1","instances",":instance_id"],"host":["api","jetapi.io"],"query":[{"description":{"content":"<p>boolean | optional | List of events. false - do not renew the subscription, true - renew the subscription</p>\n","type":"text/plain"},"key":"renew_subscription","value":"true"},{"description":{"content":"<p>string | optional | External ID of the instance in the developers system</p>\n","type":"text/plain"},"key":"external_id","value":null},{"description":{"content":"<p>array | optional | Default instance sending channel</p>\n","type":"text/plain"},"key":"dispatch_routing[]","value":null},{"description":{"content":"<p>string | optional | Instance email</p>\n","type":"text/plain"},"key":"email","value":null},{"description":{"content":"<p>string | optional | Instance phone</p>\n","type":"text/plain"},"key":"phone","value":null},{"description":{"content":"<p>string | optional | Instance password</p>\n","type":"text/plain"},"key":"password","value":null}],"variable":[{"id":"0ade35b3-e889-478e-b65f-3106e3106138","description":{"content":"<p>integer | required | unique identifier of the instance</p>\n","type":"text/plain"},"type":"any","value":"3748","key":"instance_id"}]}},"response":[{"id":"c2e2c090-dad4-4043-b226-6fbfc2555b62","name":"Successful result","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.chatpush.ru/developer/v1/instances/:instance_id?renew_subscription=true","protocol":"https","host":["api","chatpush","ru"],"path":["developer","v1","instances",":instance_id"],"query":[{"key":"renew_subscription","value":"true","description":"boolean | required | List of events. false - do not renew the subscription, true - renew the subscription"}],"variable":[{"key":"instance_id","value":"3748","description":"integer | required | unique identifier of the instance"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 11:35:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"109"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t3tVKNuXAAkcgAA9Fi"}],"cookie":[],"responseTime":null,"body":"{\n    \"instance\": {\n        \"customer_id\": 20322,\n        \"id\": 3748,\n        \"renew_subscription\": true\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"}],"_postman_id":"696be997-9295-4cdf-abce-766e71791c17"},{"name":"Activating an instance subscription","id":"28a69bb0-29e7-4888-8c09-eebfec44c139","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/developer/v1/instances/:id/renew_subscription","urlObject":{"protocol":"https","path":["developer","v1","instances",":id","renew_subscription"],"host":["api","jetapi.io"],"query":[],"variable":[{"description":{"content":"<p>integer | required | unique identifier of the instance</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[{"id":"ed4a14a2-e28f-426c-91c7-b2feaf61662a","name":"Successful result","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.chatpush.ru/developer/v1/instances/:id/renew_subscription","protocol":"https","host":["api","chatpush","ru"],"path":["developer","v1","instances",":id","renew_subscription"],"variable":[{"key":"id","value":"3748","description":"integer | required | unique identifier of the instance"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 11:38:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"102"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t34DmyNjdJHXQABTOh"}],"cookie":[],"responseTime":null,"body":"{\n    \"instance\": {\n        \"id\": 3748,\n        \"subscription_paid_until\": \"2023-12-27\"\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"7f3142cf-5225-49dd-9cdb-2569c59ef780","name":"Error, 422","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.chatpush.ru/developer/v1/instances/:id/renew_subscription","protocol":"https","host":["api","chatpush","ru"],"path":["developer","v1","instances",":id","renew_subscription"],"variable":[{"key":"id","value":"3748","description":"integer | required | unique identifier of the instance"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 11:40:49 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"123"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t4BYEDTqnVGhIABMui"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"base\": [\n                \"not enough money\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": 1\n    }\n}"}],"_postman_id":"28a69bb0-29e7-4888-8c09-eebfec44c139"},{"name":"Interrupt WhatsApp authorization","id":"5349a541-fb53-4499-a9d1-f480a149eca7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.jetapi.io/developer/v1/instances/:instance_id/delete_container_session","urlObject":{"protocol":"https","path":["developer","v1","instances",":instance_id","delete_container_session"],"host":["api","jetapi.io"],"query":[],"variable":[{"id":"e9fd07e1-8a18-4d1e-8ce1-b809ac94fa27","type":"any","value":"3748","key":"instance_id"}]}},"response":[{"id":"657929de-8288-4958-a027-bc74dd342b07","name":"Successful result","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.chatpush.ru/developer/v1/instances/:instance_id/delete_container_session","protocol":"https","host":["api","chatpush","ru"],"path":["developer","v1","instances",":instance_id","delete_container_session"],"variable":[{"key":"instance_id","value":"3748"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 11:47:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t4YAUjnPjl8sUABxOB"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"}],"_postman_id":"5349a541-fb53-4499-a9d1-f480a149eca7"},{"name":"View account information","id":"8c6f5bef-f9ad-475c-b89b-649a9e9e5fb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/account","urlObject":{"protocol":"https","path":["api","v1","account"],"host":["api","jetapi","io"],"query":[],"variable":[]}},"response":[{"id":"e06df915-e905-4030-a7f4-71ca550b8350","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":"https://api.jetapi.io/api/v1/account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:48:50 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"173"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5tx6S9-yyctcKoAPAlm"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"account\": {\n        \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJjdXN0b21lcl9pZCI6ODEzLCJkYXRldGltZSI6MTYwMDcyMDU5MH0.iSZxL5MA5LL6ViIKOfdCTvMJ9Lc_KQzuXm0\",\n        \"total_amount\": \"780.70\",\n        \"customer_id\": 8143,\n        \"dispatch_routing\": [\n            \"sms\"\n        ],\n        \"subscription_paid_until\": \"2025-07-01\",\n        \"sender_names\": [\n            \"push813\",\n            \"testname\",\n            \"JETAPI.IO\"\n        ],\n        \"tdlib_session\": 3,\n        \"whatsapp_session\": 1,\n        \"subscription_status\": \"active\",\n        \"subscription_cost\": \"20.00\"\n    }\n}"}],"_postman_id":"8c6f5bef-f9ad-475c-b89b-649a9e9e5fb3"}],"id":"47d713ee-675c-477c-bd81-dc1b6a7fcc9c","_postman_id":"47d713ee-675c-477c-bd81-dc1b6a7fcc9c","description":""},{"name":"Authorization of messengers","item":[{"name":"WhatsApp authorization","item":[],"id":"c3c3667b-bfe7-4e7b-845a-89a4b9acdec6","description":"<h2 id=\"receiving-qr-code-for-authorization\">Receiving QR code for authorization</h2>\n<h2 id=\"it-is-necessary-to-connect-to-the-wss\">It is necessary to connect to the WSS</h2>\n<p>To access the WSS connection, first pass the domain name or IP from which requests will be received. The domain name must be passed in origin.<br /><strong>wss://msg-farmer.jetapi.io/socket/websocket?token=your_client_token&amp;vsn=2.0.0</strong></p>\n<p>If the connection is successful, the service returns the following message:<br /><em>Connected to wss://msg-farmer.jetapi.io/socket/websocket?token=your_client_token&amp;vsn=2.0.0</em></p>\n<h2 id=\"request-to-connect-to-wss\">Request to connect to WSS</h2>\n<p>To connect, you must be authorized, i.e. there must be an initial connection with a valid token.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:whats_app:auth:room_id\",\"phx_join\",{}]\n\n</code></pre>\n<ul>\n<li><p>\"1\", \"1\" The first two parameters can be anything, needed to provide idempotency if needed by the client</p>\n</li>\n<li><p>connection key room:v1:whats_app:auth</p>\n</li>\n<li><p>The room_id must match the client ID (customer_id). The client id can be obtained from the JWT token. You can see an example of how getting data from JWT token works here <a href=\"https://jwt.io/\">https://jwt.io/</a>.</p>\n</li>\n<li><p>phx_join command to connect</p>\n</li>\n<li><p>{} additional parameters, you can leave empty<br />  After connecting to the \"room\" the current state of the QRcode will be passed to the client:</p>\n</li>\n</ul>\n<h2 id=\"container-creation-successful-response\">Container creation, successful response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n1,\n1,\n\"room:v1:whats_app:auth:77\",\n\"phx_reply\",\n{\n\"response\": {},\n\"status\": \"ok\"\n}\n]\n\n</code></pre><h2 id=\"example-of-a-creation-error\">Example of a creation error:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n1,\nnull,\n\"room:v1:whats_app:auth:77\",\n\"auth_state\",\n{\n\"auth\": false,\n\"qr_code\": null\n}\n]\n\n</code></pre><h2 id=\"successful-result-of-receiving-qr-code\">Successful result of receiving QR code:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n1,\nnull,\n\"room:v1:whats_app:auth:77\",\n\"auth_state\",\n{\n\"auth\": false,\n\"qr_code\":\n\"2@NqUcv7om4BWqrgF5D6jn51M1hptMR/lK+QmZAxm9aLCKEq9NMgH08slb1Ydmu1ywEWu8CFc\nUil8uGw==,XRJHShEHeWrVRFIyJys2I8WWjlml7m6hKL53oXH0bDA=,3wkQDqsvB0hT19CWs1O\njuBD5sp/IFhT+qQmpTlHFYhE=,iDrOCe/r5/NzI+N3bZkjBX6GbIKW4EhTuplW9jb+/mY=\"\n}\n]\n\n</code></pre><p><strong>qr_code</strong> - contains QR-code in convolution form, which should be converted to QR-code. An example can be seen here <a href=\"https://www.qr-code-generator.com/\">https://www.qr-code-generator.com/</a><br />auth - authorization status (scanned qr code - true, not scanned - false)</p>\n<h2 id=\"user-authorized-example-of-a-successful-result\">User authorized, example of a successful result:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n1,\nnull,\n\"room:v1:whats_app:auth:5390\",\n\"auth_state\",\n{\n\"auth\": true\n}\n]\n\n</code></pre><p>To keep the WSS connection from dropping out, it is important to send heartbeat to the client.<br /><strong>[null,\"24\",\"phoenix\",\"heartbeat\",{}]</strong><br />QR code lifetime is 30-40 seconds. We transmit QR with a frequency of 300ms, make sure the WSS connection is not broken and the user receives the updated code with the necessary frequency to avoid scanning an irrelevant QR and unsuccessful authorization.</p>\n","_postman_id":"c3c3667b-bfe7-4e7b-845a-89a4b9acdec6"},{"name":"Telegram personal authorization (tdlib)","item":[],"id":"a7c01d8d-5459-43a8-86c8-bb4121ba03af","description":"<h3 id=\"1-make-a-connection-to-the-web-socket\"><strong>1.</strong> Make a connection to the web socket</h3>\n<p>Request</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">wss://api.jetapi.io/socket/websocket?token=your_token&amp;vsn=2.0.0\n\n</code></pre>\n<p>Successful response</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Connected to wss://api.jetapi.io/socket/websocket?token=your_token&amp;vsn=2.0.0\n\n</code></pre><h3 id=\"2-channel-connection\"><strong>2.</strong> Channel connection</h3>\n<p>To connect to the correct channel, you must be authorized, i.e. initial contact with the correct token (step 1).<br />The client ID can be obtained from the JWT token. An example of how to get data from JWT token can be seen here <a href=\"https://jwt.io/\">https://jwt.io/</a></p>\n<p>Request</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:telegram:auth\",\"phx_join\",{}]\n\n</code></pre>\n<ul>\n<li><p>\"1\", \"1\" The first two parameters can be anything, are necessary to ensure idempotency if the client needs it</p>\n</li>\n<li><p>room:v1:telegram:auth - connection key</p>\n</li>\n<li><p>phx_join - connection command</p>\n</li>\n<li><p>{} - additional parameters, can be left blank</p>\n</li>\n</ul>\n<p>After connecting to the channel, the current authorization state will be sent to the client every n seconds in the form:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",null,\"room:v1:telegram:auth\",\"auth_state\",{\"status\":\"status_authorization\"}]\n\n</code></pre>\n<p>Authorization Statuses:</p>\n<ul>\n<li><p>wait_phone - is waiting for the phone number to be sent</p>\n</li>\n<li><p>wait_code - waiting for the confirmation code to be sent</p>\n</li>\n<li><p>wait_password - is waiting for the password to be sent</p>\n</li>\n<li><p>authorized - authorized</p>\n</li>\n</ul>\n<h3 id=\"3-sending-a-phone-number\"><strong>3.</strong> Sending a phone number</h3>\n<p>Request</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:telegram:auth\",\"send_phone\",{\"phone\": \"phone number\"}]\n\n</code></pre>\n<p>Successful response</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:telegram:auth\",\"phx_reply\",{\"response\":{},\"status\":\"ok\"}]\n\n</code></pre>\n<p>Answering when the phone number is invalid</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  \"1\",\n  \"1\",\n  \"room:v1:telegram:auth\",\n  \"phx_reply\",\n  {\n    \"response\": {\n      \"meta\": {\n        \"code\": 422,\n        \"errors\": { \"base\": [\"invalid phone\"] },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n      }\n    },\n    \"status\": \"error\"\n  }\n]\n\n</code></pre>\n<h3 id=\"4-sending-a-confirmation-code\">4. Sending a confirmation code</h3>\n<p>Request</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:telegram:auth\",\"send_code\",{\"code\": \"Login code\"}]\n\n</code></pre>\n<p>Successful response</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:telegram:auth\",\"phx_reply\",{\"response\":{},\"status\":\"ok\"}]\n\n</code></pre>\n<h3 id=\"5-sending-a-password\">5. Sending a password</h3>\n<p>Request</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:telegram:auth\",\"send_password\",{\"password\": \"your_password\"}]\n\n</code></pre>\n<p>Successful response</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:telegram:auth\",\"phx_reply\",{\"response\":{},\"status\":\"ok\"}]\n\n</code></pre>\n<h3 id=\"6-removing-authorization\">6. Removing authorization</h3>\n<p>Request</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:telegram:auth\",\"reset\",{}]\n\n</code></pre>\n<p>Successful response</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\"room:v1:telegram:auth\",\"phx_reply\",{\"response\":{},\"status\":\"ok\"}]\n\n</code></pre>\n","_postman_id":"a7c01d8d-5459-43a8-86c8-bb4121ba03af"},{"name":"Telegram Bot authorization","item":[{"name":"Telegram Bot Authorization","id":"5bf8b692-1bc9-4f98-9e78-8e547ebbd2b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/developer/v1/telegram_bots?instance_id=&api_token=&menu_title=&menu_link=","urlObject":{"protocol":"https","path":["developer","v1","telegram_bots"],"host":["api","jetapi","io"],"query":[{"description":{"content":"<p>integer | required | Instace ID</p>\n","type":"text/plain"},"key":"instance_id","value":""},{"description":{"content":"<p>integer | required | Telegram Bot Token</p>\n","type":"text/plain"},"key":"api_token","value":""},{"description":{"content":"<p>string | optional | Menu title. Mandatory if the menu_link field is not empty</p>\n","type":"text/plain"},"key":"menu_title","value":""},{"description":{"content":"<p>string | optional | Link to the site. Required if the menu_title field is not empty</p>\n","type":"text/plain"},"key":"menu_link","value":""}],"variable":[]}},"response":[{"id":"6c62e57b-fb12-4f3b-88ff-b21998d1c56e","name":"Successful result","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/developer/v1/telegram_bots?instance_id=374&api_token=6209296007:AAHmy6glVmmtztPjnZDnzSFVKldmOA5kAe&menu_title=Main&menu_link=","protocol":"https","host":["api","jetapi","io"],"path":["developer","v1","telegram_bots"],"query":[{"key":"instance_id","value":"374","description":"integer | required| Instace ID"},{"key":"api_token","value":"6209296007:AAHmy6glVmmtztPjnZDnzSFVKldmOA5kAe","description":"integer | required | Telegram Bot Token"},{"key":"menu_title","value":"Main","description":"string | optional | Menu title. Mandatory if the menu_link field is not empty"},{"key":"menu_link","value":"","description":"string | optional | Link to the site. Required if the menu_title field is not empty"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 15 Feb 2024 15:51:06 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"200"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F7QUG0XJ26UD6PoANM6C"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"telegram_bot\": {\n        \"bot_link\": \"https://t.me/oeporpj_bot\",\n        \"instance_id\": 348,\n        \"menu_link\": \"https://www.notion.so/\",\n        \"menu_title\": \"Main\",\n        \"status\": \"running\"\n    }\n}"},{"id":"ead5d82f-4e51-43b5-b46e-fb885a47915b","name":"Error. 422","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/developer/v1/telegram_bots?instance_id=374&api_token=6209296007:AAHmy6lVmmtztPjnZDnzSFVKldmOA5kAeI&menu_title=Main&menu_link=","protocol":"https","host":["api","jetapi","io"],"path":["developer","v1","telegram_bots"],"query":[{"key":"instance_id","value":"374","description":"integer | required| Instace ID"},{"key":"api_token","value":"6209296007:AAHmy6lVmmtztPjnZDnzSFVKldmOA5kAeI","description":"integer | required | Telegram Bot Token"},{"key":"menu_title","value":"Main","description":"string | optional | Menu title. Mandatory if the menu_link field is not empty"},{"key":"menu_link","value":"","description":"string | optional | Link to the site. Required if the menu_title field is not empty"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 15 Feb 2024 15:55:06 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"179"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F7QUUzv6PEGMmKkAPeYB"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"menu_link\": [\n                \"Ссылка на сайт не может быть пустым\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n    }\n}"}],"_postman_id":"5bf8b692-1bc9-4f98-9e78-8e547ebbd2b1"}],"id":"27e1f0b7-c096-488d-a499-63bbff91722f","_postman_id":"27e1f0b7-c096-488d-a499-63bbff91722f","description":""},{"name":"MAX Authorization","item":[{"name":"Phone number verification","item":[{"name":"Phone number verification","id":"d4dda852-d19c-4a81-9284-114cf96d489f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.chatpush.ru/api/v1/max/send_phone?phone=79811597745","urlObject":{"protocol":"https","path":["api","v1","max","send_phone"],"host":["api","chatpush","ru"],"query":[{"description":{"content":"<p>string | required | Customer's phone number. International format (79991112233). Russian numbers may also use 8-prefix format (89991112233).</p>\n","type":"text/plain"},"key":"phone","value":"79811597745"}],"variable":[]}},"response":[{"id":"83cc05c2-ea30-4ad2-a152-cc6fbc1ccbda","name":"Successful Result","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.chatpush.ru/api/v1/max/send_phone?phone=79811597745","protocol":"https","host":["api","chatpush","ru"],"path":["api","v1","max","send_phone"],"query":[{"key":"phone","value":"79811597745"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 22 Sep 2025 11:29:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"GGeXT6hOmjJCCHgAB-nC"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"4b6b239b-5ea9-4fde-89b4-6a48c2b3755b","name":"422 error (Phone number has invalid format)","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.chatpush.ru/api/v1/max/send_phone?phone=7981159774","protocol":"https","host":["api","chatpush","ru"],"path":["api","v1","max","send_phone"],"query":[{"key":"phone","value":"7981159774"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 22 Sep 2025 11:30:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"142"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"GGeXXgZ86__nzkcACBci"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"phone\": [\n                \"Phone number has invalid format\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"f6073075-ed42-43ae-bc89-c98dacf68475","name":"422 error (Phone number can't be blank)","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.chatpush.ru/api/v1/max/send_phone?phone=","protocol":"https","host":["api","chatpush","ru"],"path":["api","v1","max","send_phone"],"query":[{"key":"phone","value":""}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 22 Sep 2025 11:31:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"138"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"GGeXa2KFyeCa0q4ACFDi"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"phone\": [\n                \"Phone number can't be blank\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"d4dda852-d19c-4a81-9284-114cf96d489f"}],"id":"6895c92d-369b-461d-aad5-e1263300167e","description":"<p>Phone number verification.<br />Authentication: Bearer TokenEndFragment</p>\n","_postman_id":"6895c92d-369b-461d-aad5-e1263300167e"},{"name":"Code confirmation","item":[{"name":"Code confirmation","id":"c9c1736d-c088-4a27-92da-93a542faf77d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.chatpush.ru/api/v1/max/send_code?code=848158","urlObject":{"protocol":"https","path":["api","v1","max","send_code"],"host":["api","chatpush","ru"],"query":[{"description":{"content":"<p>string | required | SMS verification code.</p>\n","type":"text/plain"},"key":"code","value":"848158"}],"variable":[]}},"response":[{"id":"1e667a6f-328c-487d-85f7-0371a451814f","name":"422 error (confirmation code invalid)","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.chatpush.ru/api/v1/max/send_code?code=346484","protocol":"https","host":["api","chatpush","ru"],"path":["api","v1","max","send_code"],"query":[{"key":"code","value":"346484"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 22 Sep 2025 11:36:50 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"148"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"GGeXusflGoXjd28ACgAB"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"confirmation_code\": [\n                \"confirmation code invalid\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"368cfd5c-3170-4fd6-a770-29aab5da8d08","name":"422 error (code can't be blank)","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.chatpush.ru/api/v1/max/send_code?code=","protocol":"https","host":["api","chatpush","ru"],"path":["api","v1","max","send_code"],"query":[{"key":"code","value":""}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 22 Sep 2025 11:37:50 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"129"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"GGeXyTr-8H4e6KoACikB"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"code\": [\n                \"code can't be blank\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"6988bd30-30eb-4eac-a0dc-a7d239649328","name":"Successful Result","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.chatpush.ru/api/v1/max/send_code?code=848158","protocol":"https","host":["api","chatpush","ru"],"path":["api","v1","max","send_code"],"query":[{"key":"code","value":"848158"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 22 Sep 2025 11:39:26 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"GGeX36C6288HaqIACWgD"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"}],"_postman_id":"c9c1736d-c088-4a27-92da-93a542faf77d"}],"id":"0bf65b76-cbb5-4a0f-94e9-5b64b012df2e","description":"<p>Code confirmation.<br />Authentication: Bearer TokenEndFragment</p>\n","_postman_id":"0bf65b76-cbb5-4a0f-94e9-5b64b012df2e"},{"name":"Session reset","item":[{"name":"Session reset","id":"2615e110-c0d3-4876-a8c5-a29c37afdf46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.chatpush.ru/api/v1/max/close_session","urlObject":{"protocol":"https","path":["api","v1","max","close_session"],"host":["api","chatpush","ru"],"query":[],"variable":[]}},"response":[{"id":"1d113006-abfd-4fdc-b8bc-33fd4522bff6","name":"Successful Result","originalRequest":{"method":"POST","header":[],"url":"https://api.chatpush.ru/api/v1/max/close_session"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 22 Sep 2025 11:43:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"GGeYEW16kpqerJAACi3C"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"b5a794dd-9ef9-4fa7-b5f3-9fc55286649a","name":"422 error (max_session_closer session_not_found)","originalRequest":{"method":"POST","header":[],"url":"https://api.chatpush.ru/api/v1/max/close_session"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 22 Sep 2025 11:46:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"160"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"GGeYPcir9cTZR9AACkhD"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"max_session_closer\": [\n                \"max_session_closer session_not_found\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"2615e110-c0d3-4876-a8c5-a29c37afdf46"}],"id":"8131a4dc-1911-434c-851f-44c1944774bc","description":"<p>Session reset.<br />Authentication: Bearer Token</p>\n","_postman_id":"8131a4dc-1911-434c-851f-44c1944774bc"}],"id":"a8e1a42b-411c-4bc4-8882-f7ac6521357b","description":"<p>Phone number verification, code confirmation, session reset.<br />Authentication: Bearer Token</p>\n","_postman_id":"a8e1a42b-411c-4bc4-8882-f7ac6521357b"}],"id":"675bdf59-8628-4bd2-8c59-249d72fb9a1e","description":"<h2 id=\"wss-telegram-tdlib-authorization\">WSS Telegram Tdlib authorization</h2>\n<h3 id=\"1-connect-to-a-web-socket\"><strong>1. Connect to a web socket</strong></h3>\n<p><strong>Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">wss://api.jetapi.io/socket/websocket?token=client_ token&amp;vsn=2.0.0\n\n</code></pre>\n<p><strong>Successful response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Connected to wss://api.jetapi.io/socket/websocket?token=client_token&amp;vsn=2.0.0\n\n</code></pre><h3 id=\"2-connecting-to-the-channel\"><strong>2. Connecting to the channel</strong></h3>\n<p>To connect to the desired channel, you must be authorized, that is, the initial connection with the correct token (step 1).<br />And the wedge can be obtained from the JWT token. An example of the work on obtaining the data from the JWT token can be viewed here [<a href=\"https://jwt.io\">https://jwt.io</a> /](<a href=\"https://jwt.io\">https://jwt.io</a> /)<br /><strong>Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\" number:v1:telegram:auth\",\"phx_join\",{}]\n\n</code></pre>\n<ul>\n<li><p>\"1\", \"1\" The first two parameters can be any, they are necessary to ensure idempotence, if necessary for the client</p>\n</li>\n<li><p>connection number:v1:telegram:auth</p>\n</li>\n<li><p>phx_join group on connection</p>\n</li>\n<li><p>{} additional parameters, you can leave them empty<br />  After connecting to the waiting channel for n seconds, the current state of automation in the video will be transmitted to the kant:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">          \\[\"1\",null,\"room:v1:telegram:auth\",\"auth_state\",{\"status\":\"status_authorization\"}\\]\n\n</code></pre>\n</li>\n</ul>\n<p>Authorization codes:</p>\n<ul>\n<li><p>wait_phone - waiting for the cancellation of the phone number</p>\n</li>\n<li><p>wait_code - waits for the confirmation code to be canceled</p>\n</li>\n<li><p>wait_password - waiting for password cancellation</p>\n</li>\n<li><p>authorized - authorized</p>\n<h3 id=\"3-sending-a-phone-number\"><strong>3. Sending a phone number</strong></h3>\n</li>\n</ul>\n<p><strong>Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\" number:version 1:telegram:auth\",\"send_phone\",{\"telemon\": \"client's phone number\"}]\n\n</code></pre>\n<p><strong>Successful response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\\[\"1\",\"1\",\" number:version 1:telegram:auth\",\"phx_reply\",{\"reply\":{},\"status\":\"ok\"}\\]\n\n</code></pre>\n<p><strong>Response with invalid phone number</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n\"1\",\n\"1\",\n\"room:v1:telegram:auth\",\n\"phx_reply\",\n{\n\"response\": {\n\"meta\": {\n\"code\": 422,\n\"errors\": {\"base\": [\"invalid phone\"] },\n\"connection\": \"Raw object\",\n\"status\": \"failed\",\n\"status_id\": null\n}\n},\n\"status\": \"error\"\n}\n]\n\n</code></pre>\n<h3 id=\"4-sending-a-confirmation-code\">4. <strong>Sending a confirmation code</strong></h3>\n<p><strong>Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\\[\"1\",\"1\",\" number:v1:telegram:auth\",\"send_code\",{\"code\": \"your_confirmation code\"}\\]\n\n</code></pre>\n<p><strong>Successful response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\" number:version 1:telegram:auth\",\"phx_reply\",{\"reply\":{},\"status\":\"ok\"}]\n\n</code></pre>\n<h3 id=\"5-sending-a-password\">5. <strong>Sending a password</strong></h3>\n<p><strong>Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\\[\"1\",\"1\",\" number:version 1:telegram:auth\",\"send_password\",{\"password\": \"password\"}\\]\n\n</code></pre>\n<p><strong>Successful response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\" number:version 1:telegram:auth\",\"phx_reply\",{\"reply\":{},\"status\":\"ok\"}]\n\n</code></pre>\n<h3 id=\"6-reset-authorization\">6. <strong>Reset authorization</strong></h3>\n<p><strong>Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\\[\"1\",\"1\",\" number:v1:telegram:auth\",\"reset\",{}\\]\n\n</code></pre>\n<p><strong>Successful response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\"1\",\"1\",\" number:version 1:telegram:auth\",\"phx_reply\",{\"reply\":{},\"status\":\"ok\"}]\n\n</code></pre>\n<h2 id=\"wss-whatsapp-authorization\">WSS Whatsapp authorization</h2>\n<h2 id=\"getting-a-qr-code-for-authorization\">Getting a QR code for authorization</h2>\n<h2 id=\"it-is-impossible-to-access-the-wss\">It is impossible to access the WSS</h2>\n<p>To access the content throughout, it is advisable to transfer data or IP, where to start requesting.</p>\n<p>wss://msg-farmer.pushsms.ru/socket/websocket?token=<strong>your clent token</strong>&amp;vsn=2.0.0</p>\n<p>If the connection is successful, the service returns a message:</p>\n<p>Connected to wss://msg-farmer.pushsms.ru/socket/websocket?token=<strong>your token wedge</strong>&amp;vsn=2.0.0</p>\n<h2 id=\"request-to-connect-to-the-wss\">Request to connect to the WSS</h2>\n<p>To connect, you need to:</p>\n<p>* <strong>be authorized</strong>, that is, the initial connection with the correct token</p>\n<p>* <strong>room_id</strong> it is necessary to register with the client ID</p>\n<p>And the wedge can be obtained from the JWT token. An example of the work on obtaining the data from the JWT token can be viewed here [<a href=\"https://jwt.io\">https://jwt.io</a> /](<a href=\"https://jwt.io\">https://jwt.io</a> /)</p>\n<p>For more information, it is impossible to refuse to listen to the comanche on the VSS proto - cola:</p>\n<p>[“1”,”1”,“ info:version 1:whats_app:auth:room_id”,“phx_join\",{}]</p>\n<p>– “1\", ”1” The first two parameters can be any, they are necessary to ensure idempotence, if necessary for the client</p>\n<p>– the key to connect:v1:whats_app:auth</p>\n<p>– room_id, which can be used with the user ID</p>\n<p>– phx_join command on connection</p>\n<p>– {} additional parameters, you can leave them empty</p>\n<p>After connecting to the “room”, the user decided to try to switch to a text connection with a QR code:</p>\n<h2 id=\"creating-a-container\">Creating a container</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n1,\n1,\n\"number:v1:whats_app:auth:77\",\n\"phx_reply\",\n{\n\"reply\": {},\n\"status\": \"ok\"\n}\n]\n\n</code></pre><h2 id=\"example-of-a-creation-error\">Example of a creation error:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\\[  \n1,  \nnull,  \n\"number:v1:whats_app:auth:77\",  \n\"auth_state\",  \n{  \n\"auth\": false,  \n\"qr_code\": null  \n}  \n\\]\n\n</code></pre><p>Successful result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n1,\nnull,\n\"number:v1:whats_app:auth:77\",\n\"auth_state\",\n{\n\"auth\": false,\n\"qr_code\":\n\"2@NqUcv7om4BWqrgF5D6jn51M1hptMR/lK+QmZAxm9aLCKEq9NMgH08slb1Ydmu1ywEWu8CFc\nUil8uGw==,XRJHShEHeWrVRFIyJys2I8WWjlml7m6hKL53oXH0bDA=,3wkQDqsvB0hT19CWs1O\njuBD5sp/IFhT+qQmpTlHFYhE=,iDrOCe/r5/NzI+N3bZkjBX6GbIKW4EhTuplW9jb+/mY=\"\n}\n]\n\n</code></pre><p>Copy</p>\n<p><strong>qr_code</strong> – a QR code is registered in the form of a card that cannot be converted into a QR code. It might be worth looking at now [<a href=\"https://www.qr-code-generator.com\">https://www.qr-code-generator.com</a> /](<a href=\"https://www.qr-code-generator.com\">https://www.qr-code-generator.com</a> /)</p>\n<p><strong>Author</strong> – says that he scanned the QR code or not</p>\n<p>The user has logged in, an example of a successful result:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\\[  \n1,  \nnull,  \n\"number:v1:whats_app:auth:5390\",  \n\"auth_state\",  \n{  \n\"auth\": true  \n}  \n\\]\n\n</code></pre><p>What to do if the BCC was not saved by an important factor preventing heartbeat<br /><strong>[null,“24”,“phnix\",“heartbeat\",{}]</strong><br /><strong>During the lifetime of the 30-40\" QR code, We transmit QR with a frequency of 300 ms, make sure that the WSS connection is not disclosed and the user gets access to the updated code with an optional frequency, which avoids downloading outdated QR and paid authorization.</strong></p>\n","_postman_id":"675bdf59-8628-4bd2-8c59-249d72fb9a1e"},{"name":"Available endpoints","item":[{"name":"Delivery","id":"cce584af-05f7-4672-afb1-587e470ac4a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/api/v1/delivery?phone=995598464533&text=test","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>Sending messages with the specified parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>required</td>\n</tr>\n<tr>\n<td>HTTP – method</td>\n<td>POST</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.jetapi.io/api/v1/delivery\">https://api.jetapi.io/api/v1/delivery</a></td>\n</tr>\n<tr>\n<td>Response option</td>\n<td>Successful with http code 200, unsuccessful with code 422</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v1","delivery"],"host":["api","jetapi.io"],"query":[{"description":{"content":"<p>string | required | The phone number of the message recipient. The international format is 995598464533</p>\n","type":"text/plain"},"key":"phone","value":"995598464533"},{"description":{"content":"<p>string | required | Message text. The standard length for a single message is 3500 characters for messengers and 160 characters for Latin letters SMS.</p>\n","type":"text/plain"},"key":"text","value":"test"},{"disabled":true,"description":{"content":"<p>string | optional | Registered name of the SMS sender</p>\n","type":"text/plain"},"key":"sender_name","value":"SENDERNAME"},{"disabled":true,"description":{"content":"<p>string | optional | A label for marking shipments.</p>\n","type":"text/plain"},"key":"utm_mark","value":"example_mark"},{"disabled":true,"description":{"content":"<p>string | optional | URL to which information will be automatically sent when the sending status is updated.</p>\n","type":"text/plain"},"key":"callback_url","value":"http://example-url.com"},{"disabled":true,"description":{"content":"<p>string | optional | The ID of the message. It is generated on the client side and is required in a unique way to use idempotence.</p>\n","type":"text/plain"},"key":"external_id","value":"1"},{"disabled":true,"description":{"content":"<p>array | optional | Channels and the sequence of sending the message.\nwhatsapp - Whatsapp.\ntdlib - numeric Telegram.\nTelegram - Telegram Bot.\nnotify - VK and OK.\nmax-MAX.</p>\n","type":"text/plain"},"key":"dispatch_routing[]","value":"sms"},{"disabled":true,"description":{"content":"<p>datetime | optional | The delayed dispatch date must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS.</p>\n","type":"text/plain"},"key":"scheduled_at","value":"2023-11-21 20:30:00"},{"disabled":true,"description":{"content":"<p>string | optional | Priority of sending the message. Available values are \"high\", \"medium\" and \"low\". If there is no parameter, the optimal value is determined automatically.</p>\n","type":"text/plain"},"key":"priority","value":"high"},{"disabled":true,"description":{"content":"<p>string | optional | Client name in telegram. Used only when sending via tdlib channel. Accepted in the format - username, @username</p>\n","type":"text/plain"},"key":"username","value":"username"},{"disabled":true,"description":{"content":"<p>string | optional |  Message ID of the message (from webhook) we are replying to </p>\n","type":"text/plain"},"key":"reply_to_message_id","value":""},{"disabled":true,"description":{"content":"<p>string | optional |  Client tdlib ID, used instead of phone number or name, when sending in a channel personal Telegram tdlib. This parameter can be used both for sending to private chats and for sending to group chats (if tdlib_user_id &gt; 0 is a private chat, if &lt;0 is a group chat (the group ID is always negative)</p>\n","type":"text/plain"},"key":"tdlib_user_id","value":""},{"disabled":true,"description":{"content":"<p>boolean | optional | The default value of the parameter is true. If true, a simulation of typing a message in whatsapp will occur, if false, the message will leave instantly</p>\n","type":"text/plain"},"key":"simulate_typing","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Customer's lid ID on the WhatsApp side. Used only when sending to WhatsApp. Accepted for sending as an integer or integer with @lid suffix (Example: 43445322325 or 43445322325@lid)</p>\n","type":"text/plain"},"key":"whatsapp_lid","value":null}],"variable":[]}},"response":[{"id":"6bea224a-035b-4ca8-a5e2-3035aa8f9b5b","name":"Successful result","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/delivery?text=test&phone=995598464533","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","delivery"],"query":[{"key":"text","value":"test","description":"string | required | Message text. The standard length for a single message is 160 characters for Latin letters."},{"key":"phone","value":"995598464533","description":"string | required | The phone number of the message recipient. The international format is 995598464533"},{"key":"sender_name","value":"SENDERNAME","description":"string | optional | The sender's name. You can specify the names of senders available to the client. If the parameter is missing or invalid, it is replaced by “CHATEGY.IO ”","disabled":true},{"key":"utm_mark","value":"example_mark","description":"string | optional | A label for marking shipments.","disabled":true},{"key":"callback_url","value":"http://example-url.com","description":"string | optional | URL to which information will be automatically sent when the sending status is updated.","disabled":true},{"key":"external_id","value":"1","description":"string | optional | The ID of the message. It is generated on the client side and is required in a unique way to use idempotence.","disabled":true},{"key":"dispatch_routing[]","value":"sms","description":"array | optional | Channels and the sequence of sending the message.","disabled":true},{"key":"scheduled_at","value":"2023-11-21 20:30:00","description":"datetime | optional | The delayed dispatch date must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS.","disabled":true},{"key":"priority","value":"high","description":"string | optional | Priority of sending the message. Available values are \"high\", \"medium\" and \"low\". If there is no parameter, the optimal value is determined automatically.","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 22 Nov 2023 09:34:31 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5noOkF08-W8VoIBHH_h"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"delivery\": {\n        \"callback_url\": null,\n        \"dispatch_routing\": [\n            \"sms\"\n        ],\n        \"external_id\": null,\n        \"id\": 94396942,\n        \"phone\": \"+995598464533\",\n        \"priority\": \"low\",\n        \"scheduled_at\": null,\n        \"sender_name\": \"SENDERNAME\",\n        \"status_description\": \"Accepted\",\n        \"status_id\": 6,\n        \"sum\": \"0.0\",\n        \"total_sms\": 1,\n        \"traffic_category\": 0,\n        \"utm_mark\": null\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"054f29cc-987c-4e86-adfe-5aff6d3005c0","name":"Error, 422","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text"}],"url":{"raw":"https://api.jetapi.io/api/v1/delivery?phone=995598464533&sender_name=SENDERNAME&utm_mark=example_mark&callback_url=http://example-url.com&external_id=1&dispatch_routing[]=whatsapp&scheduled_at=2023-11-21 20:30:00&priority=high","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","delivery"],"query":[{"key":"text","value":"Тест","description":"string | required","disabled":true},{"key":"phone","value":"995598464533","description":"string | required"},{"key":"sender_name","value":"SENDERNAME","description":"string | optional"},{"key":"utm_mark","value":"example_mark","description":"string | optional"},{"key":"callback_url","value":"http://example-url.com","description":"string | optional"},{"key":"external_id","value":"1","description":"string | optional"},{"key":"dispatch_routing[]","value":"whatsapp","description":"string | optional"},{"key":"scheduled_at","value":"2023-11-21 20:30:00","description":"string | optional"},{"key":"priority","value":"high","description":"string | optional"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 21 Nov 2023 16:10:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"158"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5mvO51eK7dyDMEAejqj"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"text\": [\n                \"the text cannot be empty\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n    }\n}"},{"id":"1cb7b312-4f99-4aa8-a002-12506555c050","name":"Error, 401","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/delivery?text=Тест&phone=995598464533","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","delivery"],"query":[{"key":"text","value":"Тест","description":"string | required | Message text. The standard length for a single message is 160 characters for Latin letters or 70 for non-Latin letters."},{"key":"phone","value":"995598464533","description":"string | required | Phone number of the message recipient. The international format is 79991112233, 89991112233 is available for Russian numbers"},{"key":"sender_name","value":"SENDERNAME","description":"string | optional | Sender's name. You can specify the names of senders available to the client. If the parameter is missing or invalid, it is replaced by “PUSHSMS.RU ”","disabled":true},{"key":"utm_mark","value":"example_mark","description":"string | optional | Label for marking shipments.","disabled":true},{"key":"callback_url","value":"http://example-url.com","description":"string | optional | URL to which information will be automatically sent when the sending status is updated.","disabled":true},{"key":"external_id","value":"1","description":"string | optional | Message ID. It is generated on the client side and is required in a unique way to use idempotence.","disabled":true},{"key":"dispatch_routing[]","value":"sms","description":"array | optional | Channels and message sending sequence.","disabled":true},{"key":"scheduled_at","value":"2023-11-21 20:30:00","description":"datetime | optional | The date of delayed dispatch must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS.","disabled":true},{"key":"priority","value":"high","description":"string | optional | Priority of sending the message. Available values are \"high\", \"medium\" and \"low\". If there is no parameter, the optimal value is determined automatically.","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 22 Nov 2023 09:32:15 GMT"},{"key":"Content-Length","value":"65"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5noGpbub8BIkKwA-oTC"}],"cookie":[],"responseTime":null,"body":"{\"meta\":{\"code\":401,\"message\":\"Not authorized!\",\"status\":\"fail\"}}"}],"_postman_id":"cce584af-05f7-4672-afb1-587e470ac4a4"},{"name":"Bulk Delivery","id":"d291f90b-175e-4564-a234-326ee8ef617d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/v1/bulk_delivery?text=test&phones_numbers[]=995598464533","urlObject":{"protocol":"https","path":["v1","bulk_delivery"],"host":["api","jetapi.io"],"query":[{"description":{"content":"<p>string | required | Message text. The standard length for a single message is 3500 characters for messengers and 160 characters for Latin letters SMS.</p>\n","type":"text/plain"},"key":"text","value":"test"},{"description":{"content":"<p>array | required | Phone numbers of the message recipient. The international format is 995598464533. Example: +995598464533, 995598464533, +995598464533</p>\n","type":"text/plain"},"key":"phones_numbers[]","value":"995598464533"},{"disabled":true,"description":{"content":"<p>string | optional | Registered name of the SMS sender</p>\n","type":"text/plain"},"key":"sender_name","value":"infoSMS"},{"disabled":true,"description":{"content":"<p>datetime | optional | The date of delayed dispatch must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS. Example: 2021-11-11 20:30:00</p>\n","type":"text/plain"},"key":"scheduled_at","value":"2023-12-11 20:30:00"},{"disabled":true,"description":{"content":"<p>string | optional | Label for marking shipments</p>\n","type":"text/plain"},"key":"utm_mark","value":"example_mark"},{"disabled":true,"description":{"content":"<p>array | optional | Channels and message sending sequence.\nwhatsapp - Whatsapp.\ntdlib - numeric Telegram.\nTelegram - Telegram Bot.\nnotify - VK and OK.\nmax-MAX.</p>\n","type":"text/plain"},"key":"dispatch_routing[]","value":"whatsapp"},{"disabled":true,"description":{"content":"<p>array | optional | Client name in telegram. Used only when sending via tdlib channel. Accepted in the format - username, @username</p>\n","type":"text/plain"},"key":"usernames[]","value":"username"},{"disabled":true,"description":{"content":"<p>string | optional | tdlib client ID, used instead of phone number or name, when sending to via tdlib routing. This parameter can be used both for sending to private chats and for sending to group chats (if tdlib_user_id &gt; 0 is a private chat, if &lt;0 is a group chat (the group ID is always negative)</p>\n","type":"text/plain"},"key":"tdlib_user_id","value":""}],"variable":[]}},"response":[{"id":"f21c5f50-d3e7-41ab-bb77-99a0fb7542cb","name":"Successful result","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/bulk_delivery?text=test&phones_numbers[]=995598464533&sender_name=CHATEGY.IO&scheduled_at=2023-12-11 20:30:00&utm_mark=example_mark&dispatch_routing[]=whatsapp","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","bulk_delivery"],"query":[{"key":"text","value":"test","description":"string | required | Message text. The standard length for a single message is 160 characters for Latin letters or 70 for non-Latin letters."},{"key":"phones_numbers[]","value":"995598464533","description":"array | required | Phone numbers of the message recipient. The international format is 79991112233. Example: +79991234567, 84956785422, +79851323233"},{"key":"sender_name","value":"CHATEGY.IO","description":"string | optional | Sender's name. If the parameter is missing or invalid, it is replaced by “CHATEGY.IO”"},{"key":"scheduled_at","value":"2023-12-11 20:30:00","description":"datetime | optional | The date of delayed dispatch must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS. Example: 2021-11-11 20:30:00"},{"key":"utm_mark","value":"example_mark","description":"string | optional | Label for marking shipments"},{"key":"dispatch_routing[]","value":"whatsapp","description":"array | optional | Channels and message sending sequence."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:39:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5txapkanYesqgsBtzKB"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"bulk_delivery\": {\n        \"dispatch_routing\": [\n            \"whatsapp\"\n        ],\n        \"phones_numbers\": [\n            \"995598464533\"\n        ],\n        \"scheduled_at\": \"2023-12-11T20:30:00Z\",\n        \"sender_name\": \"CHATEGY.IO\",\n        \"state\": 2,\n        \"text\": \"test\",\n        \"url_shorting\": false,\n        \"utm_mark\": \"example_mark\"\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"a6d53d01-aca4-4113-9dec-4be9e14465e3","name":"Error, 422","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/bulk_delivery?phones_numbers[]=995598464533&sender_name=CHATEGY.IO&scheduled_at=2023-12-11 20:30:00&utm_mark=example_mark&dispatch_routing[]=whatsapp","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","bulk_delivery"],"query":[{"key":"text","value":"test","description":"string | required | Message text. The standard length for a single message is 160 characters for Latin letters or 70 for non-Latin letters.","disabled":true},{"key":"phones_numbers[]","value":"995598464533","description":"array | required | Phone numbers of the message recipient. The international format is 995598464533. Example: +995598464533, 995598464533, +995598464533"},{"key":"sender_name","value":"CHATEGY.IO","description":"string | optional | Sender's name. If the parameter is missing or invalid, it is replaced by “CHATEGY.IO”"},{"key":"scheduled_at","value":"2023-12-11 20:30:00","description":"datetime | optional | The date of delayed dispatch must be at least 1 minute and no more than 1 month from the current moment. The time zone in which the delayed dispatch date UTC+0 is accepted. Specified in the format YYYY-MM-DD HH:MM: SS. Example: 2021-11-11 20:30:00"},{"key":"utm_mark","value":"example_mark","description":"string | optional | Label for marking shipments"},{"key":"dispatch_routing[]","value":"whatsapp","description":"array | optional | Channels and message sending sequence."}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:40:59 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"158"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5txe4ckiRHR4rEBdJMC"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"text\": [\n                \"the text cannot be empty\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n    }\n}"}],"_postman_id":"d291f90b-175e-4564-a234-326ee8ef617d"},{"name":"Information about the delivery (delivery status)","id":"e34f924d-ba12-421b-a173-aeeb33ef95f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/delivery/:id","urlObject":{"protocol":"https","path":["api","v1","delivery",":id"],"host":["api","jetapi.io"],"query":[],"variable":[{"id":"450fec2f-1d8c-49f2-aa65-ddc9d3a5c063","type":"any","value":"","key":"id"}]}},"response":[{"id":"18284912-b0e5-4128-bf78-5b8fc0f13178","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:id","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","delivery",":id"],"variable":[{"key":"id","value":"94396942","description":"integer | обязателеный | integer"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:49:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5tx8ef5lO_d4bgBdnAC"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"delivery\": {\n        \"callback_url\": null,\n        \"external_id\": null,\n        \"id\": 94396942,\n        \"operator\": {\n            \"brand_name\": \"Georgia\",\n            \"country\": \"Georgia\",\n            \"id\": 81,\n            \"name\": \"Georgia\",\n            \"slug\": \"georgia\"\n        },\n        \"phone\": \"+995598464533\",\n        \"scheduled_at\": null,\n        \"sender_name\": \"CHATEGY.IO\",\n        \"status\": {\n            \"description\": \"Forbidden\",\n            \"status_id\": 49\n        },\n        \"sum\": \"0.00\",\n        \"total_sms\": 1,\n        \"traffic_category\": 0,\n        \"utm_mark\": null\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"}],"_postman_id":"e34f924d-ba12-421b-a173-aeeb33ef95f3"},{"name":"Information about the phone number","id":"47fe2b4a-23e8-4050-b3b9-2b542e771100","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/operators/search?phone=995598464533","urlObject":{"protocol":"https","path":["api","v1","operators","search"],"host":["api","jetapi.io"],"query":[{"description":{"content":"<p>string | required | Phone number in international format. Special characters are allowed.</p>\n","type":"text/plain"},"key":"phone","value":"995598464533"}],"variable":[]}},"response":[{"id":"4a3dcbd3-77c2-47ad-8cba-40c740217c3b","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":{"raw":"https://api.jetapi.io/api/v1/operators/search?phone=995598464533","protocol":"https","host":["api","jetapi.io"],"path":["api","v1","operators","search"],"query":[{"key":"phone","value":"995598464533","description":"string | required | Phone number in international format. Special characters are allowed."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 09:46:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"190"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5txxFm-ixgyfr4BuLaB"}],"cookie":[],"responseTime":null,"body":"{\n    \"formatted_phone\": \"+995598464533\",\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"operator\": {\n        \"brand_name\": \"Georgia\",\n        \"country\": \"Georgia\",\n        \"id\": 81,\n        \"name\": \"Georgia\",\n        \"slug\": \"georgia\"\n    }\n}"}],"_postman_id":"47fe2b4a-23e8-4050-b3b9-2b542e771100"},{"name":"UTM tags","id":"c9a53c07-7c5b-45c4-a5d5-20b3951d639e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/api/v1/utm_mark","urlObject":{"protocol":"https","path":["api","v1","utm_mark"],"host":["api","jetapi.io"],"query":[],"variable":[]}},"response":[{"id":"098d5c8c-aa29-476c-811b-8e2ffb297e96","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","type":"text","disabled":true}],"url":"https://api.jetapi.io/api/v1/utm_mark"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 10:12:39 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5tzNfQPiGvG3HEBv1uB"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"utm_marks\": []\n}"}],"_postman_id":"c9a53c07-7c5b-45c4-a5d5-20b3951d639e"},{"name":"Sending files","id":"7f7c24cb-1b84-4f45-9ba6-3f8cdc297dd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>file | required | allowed file </p>\n","type":"file","value":null,"disabled":true}]},"url":"https://api.jetapi.io/api/v1/send_file","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Brief description</th>\n<th>Send files with specified parameters. File is sent with a link to download, link is active for 7 days (text = file_name + link_to_file). Exception is whatsapp and tdlib, a photo up to 10 mb is sent.</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>HTTP-method</td>\n<td>POST</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.jetapi.io/api/v1/send_file\">https://api.jetapi.io/api/v1/send_file</a></td>\n</tr>\n<tr>\n<td>Response options</td>\n<td>Successful with http code 200, unsuccessful with code 422</td>\n</tr>\n</tbody>\n</table>\n</div><p>Formats supported</p>\n<p><strong>documents:</strong></p>\n<ul>\n<li><p>application/pdf</p>\n</li>\n<li><p>application/msword</p>\n</li>\n<li><p>application/vnd.openxmlformats-officedocument.wordprocessingml.document</p>\n</li>\n<li><p>application/vnd.ms-powerpoint</p>\n</li>\n<li><p>application/vnd.openxmlformats-officedocument.presentationml.presentatio</p>\n</li>\n<li><p>application/vnd.ms-excel</p>\n</li>\n<li><p>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</p>\n</li>\n<li><p>application/zip</p>\n</li>\n<li><p>application/x-7z-compressed</p>\n</li>\n</ul>\n<p><strong>audio:</strong></p>\n<ul>\n<li><p>audio/ogg</p>\n</li>\n<li><p>audio/opus</p>\n</li>\n<li><p>audio/mpeg</p>\n</li>\n<li><p>audio/mpeg3</p>\n</li>\n<li><p>audio/x-mpeg-3</p>\n</li>\n<li><p>audio/AMR</p>\n</li>\n<li><p>audio/aac</p>\n</li>\n<li><p>audio/x-hx-aac-adts</p>\n</li>\n<li><p>audio/AMR-WB</p>\n</li>\n<li><p>audio/AMR-WB+</p>\n</li>\n<li><p>audio/3gpp</p>\n</li>\n<li><p>audio/3gpp2</p>\n</li>\n</ul>\n<p><strong>images:</strong></p>\n<ul>\n<li><p>image/jpeg</p>\n</li>\n<li><p>image/png</p>\n</li>\n<li><p>image/webp</p>\n</li>\n</ul>\n<p><strong>video:</strong></p>\n<ul>\n<li>video/mp4</li>\n</ul>\n<p><strong>contacts:</strong></p>\n<ul>\n<li>text/x-vcard</li>\n</ul>\n<p>Size supported</p>\n<ul>\n<li><p>The maximum size of the received file for sending is 100 mb</p>\n</li>\n<li><p>If the image is less than 10 mb - send as a photo (natively), if more - as a file. Applicable for whatsapp and tdlib sending channels.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","send_file"],"host":["api","jetapi","io"],"query":[{"disabled":true,"description":{"content":"<p>string | required | \n File name. Must contain the file extension.\nExample: file_name.docx</p>\n","type":"text/plain"},"key":"file_name","value":""},{"disabled":true,"description":{"content":"<p>string | required | \n Phone number of the message recipient. International format 19991112233\nOptional parameter if username is used in tdlib channel</p>\n","type":"text/plain"},"key":"phone","value":""},{"disabled":true,"description":{"content":"<p>caption | optional | Description below the file. Used to send to whatsapp.</p>\n","type":"text/plain"},"key":"caption","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Internal client ID.</p>\n","type":"text/plain"},"key":"customer_id","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Native sending of images. If document is set to document, a file is sent, if image is set to image, a picture is sent. Used for sending to whatsapp. </p>\n","type":"text/plain"},"key":"type","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Sender name (SMS only) . You can specify the sender names available to the client. If the parameter is missing or invalid, it is replaced with the default.</p>\n","type":"text/plain"},"key":"sender_name","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Метка для маркировки отправок.</p>\n","type":"text/plain"},"key":"utm_mark","value":""},{"disabled":true,"description":{"content":"<p>string | optional | URL to which the information will be automatically sent when the sending status is updated. Structure in the corresponding section.</p>\n","type":"text/plain"},"key":"callback_url","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Message identifier. Generated on the client side and is required in a unique form to use idempotency.</p>\n","type":"text/plain"},"key":"external_id","value":""},{"disabled":true,"description":{"content":"<p>array | optional | Channels and sequence of message sending. Controls the cascade sending functionality.</p>\n","type":"text/plain"},"key":"dispatch_routing[]","value":""},{"disabled":true,"description":{"content":"<p>datetime | optional | The date of deferred sending should be not less than 1 minute and not more than 1 month from the current moment. The time zone in which the delayed send date is accepted is UTC+0. Specified in the format YYYYY-MM-DD HH:MM:SS. Example: 2021-11-11 20:30:00</p>\n","type":"text/plain"},"key":"scheduled_at","value":""},{"disabled":true,"description":{"content":"<p>string | optional | The priority for sending the message. The available values are \"high\", \"medium\" and \"low\". If no parameter is available, the optimal value is automatically determined.</p>\n","type":"text/plain"},"key":"priority","value":""},{"disabled":true,"description":{"content":"<p>string | optional | The name of the client in Telegram. It is used only when sending via tdlib channel. Accepted in the format - username, @username</p>\n","type":"text/plain"},"key":"username","value":""},{"disabled":true,"description":{"content":"<p>string | optional |  Message ID of the message (from webhook) we are replying to</p>\n","type":"text/plain"},"key":"reply_to_message_id","value":""},{"disabled":true,"description":{"content":"<p>string | optional |  Client tdlib ID, used instead of phone number or name, when sending in a channel personal Telegram tdlib </p>\n","type":"text/plain"},"key":"tdlib_user_id","value":""},{"disabled":true,"description":{"content":"<p>boolean | optional | Default value - true. With the value - true, the tipping is triggered. False -  the text description under the file is sent without tipping.</p>\n","type":"text/plain"},"key":"simulate_typing","value":null}],"variable":[]}},"response":[{"id":"3954da4b-8c9e-4be1-a4f8-79bdb982e11b","name":"Successful result","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"file | required | allowed file ","type":"file","value":null}],"options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.jetapi.io/api/v1/send_file?file_name=file_name.doc&phone=9951234567890&caption=Important doc&customer_id=813&type=document&utm_mark=Doc&callback_url=example_url.com&external_id=12345&dispatch_routing[]=whatsapp&priority=high","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","send_file"],"query":[{"key":"file_name","value":"file_name.doc","description":"string | required | \n File name. Must contain the file extension.\nExample: file_name.docx"},{"key":"phone","value":"9951234567890","description":"string | required | \n Phone number of the message recipient. International format 19991112233\nOptional parameter if username is used in tdlib channel"},{"key":"caption","value":"Important doc","description":"caption | optional | Description below the file. Used to send to whatsapp."},{"key":"customer_id","value":"813","description":"string | optional | Internal client ID."},{"key":"type","value":"document","description":"string | optional | Native sending of images. If document is set to document, a file is sent, if image is set to image, a picture is sent. Used for sending to whatsapp. "},{"key":"sender_name","value":"SENDERNAME","description":"string | optional | Sender name (SMS only) . You can specify the sender names available to the client. If the parameter is missing or invalid, it is replaced with the default.","disabled":true},{"key":"utm_mark","value":"Doc","description":"string | optional | Label for marking message dispatches."},{"key":"callback_url","value":"example_url.com","description":"string | optional | URL to which the information will be automatically sent when the sending status is updated. Structure in the corresponding section."},{"key":"external_id","value":"12345","description":"string | optional | Message identifier. Generated on the client side and is required in a unique form to use idempotency."},{"key":"dispatch_routing[]","value":"whatsapp","description":"array | optional | Channels and sequence of message sending. Controls the cascade sending functionality."},{"key":"scheduled_at","value":"2024-02-08 00:30:00","description":"datetime | optional | The date of deferred sending should be not less than 1 minute and not more than 1 month from the current moment. The time zone in which the delayed send date is accepted is UTC+0. Specified in the format YYYYY-MM-DD HH:MM:SS. Example: 2021-11-11 20:30:00","type":"text","disabled":true},{"key":"priority","value":"high","description":"string | optional | The priority for sending the message. The available values are \"high\", \"medium\" and \"low\". If no parameter is available, the optimal value is automatically determined."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 07 Feb 2024 16:04:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F7GgNhBrTqIJPCEACfeh"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"delivery\": {\n        \"callback_url\": \"example_url.com\",\n        \"dispatch_routing\": [\n            \"whatsapp\"\n        ],\n        \"external_id\": \"12345\",\n        \"id\": 108286044,\n        \"phone\": \"+9951234567890\",\n        \"priority\": \"high\",\n        \"scheduled_at\": null,\n        \"sender_name\": \"SENDERNAME\",\n        \"reply_to_message_id\": null,\n        \"simulate_typing\": false,\n        \"status_description\": \"Received\",\n        \"status_id\": 6,\n        \"sum\": \"0.0\",\n        \"total_sms\": 3,\n        \"traffic_category\": 0,\n        \"utm_mark\": \"Doc\"\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}\n"},{"id":"8e307651-8d0c-4efc-8109-de366d677ba2","name":"Error, 422","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"file | required | allowed file ","type":"file","value":null}],"options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.chatpush.ru/api/v1/send_file?file_name=file_name.doc&phone=71234567890&caption=Важный документ&customer_id=813&type=document&sender_name=PUSHSMS.RU&utm_mark=Документ&callback_url=example_url.ru&external_id=12345&dispatch_routing[]=whatsapp&priority=high","protocol":"https","host":["api","chatpush","ru"],"path":["api","v1","send_file"],"query":[{"key":"file_name","value":"file_name.doc","description":"string | обязательный | \n Название файла. Должно содержать расширение файла.\nПример: file_name.docx"},{"key":"phone","value":"71234567890","description":"string | обязательный | \n Телефон получателя сообщения. Международный формат 79991112233, для российских номеров доступен 89991112233"},{"key":"caption","value":"Важный документ","description":"caption | необязательный | Описание под файлом. Используется для отправки в whatsapp. "},{"key":"customer_id","value":"813","description":"string | необязательный | Внутренний ID клиента."},{"key":"type","value":"document","description":"string | необязательный | Нативная отправка кратинок. При значении document - отправляется файл, при значении image - отправляется картинка. Используется для отправки в whatsapp. "},{"key":"sender_name","value":"PUSHSMS.RU","description":"string | необязательный | Имя отправителя. Можно указывать доступные для клиента имена отправителей. При отсутствии параметра или невалидности заменяется на “PUSHSMS.RU”"},{"key":"utm_mark","value":"Документ","description":"string | необязательный | Метка для маркировки отправок."},{"key":"callback_url","value":"example_url.ru","description":"string | необязательный | URL-адрес, на который будет автоматически высылаться информация при обновлении статуса отправки. Структура в соответствующем разделе."},{"key":"external_id","value":"12345","description":"string | необязательный | Идентификатор сообщения. Генерируется на стороне клиента и необходим в уникальном виде для использования идемпотентности."},{"key":"dispatch_routing[]","value":"whatsapp","description":"array | необязательный | Каналы и последовательность отправки сообщения. Управление функционалом каскадной отправки."},{"key":"scheduled_at","value":"2024-02-08 00:30:00","description":"datetime | необязательный | Дата отложенной отправки должна быть не меньше 1 минуты и не больше 1 месяца с текущего момента. Часовой пояс, в котором принимается дата отложенной отправки UTC+0. Указывается в формате ГГГГ-ММ-ДД ЧЧ:ММ:СС. Пример: 2021-11-11 20:30:00","type":"text","disabled":true},{"key":"priority","value":"high","description":"string | необязательный | Приоритет отправки сообщения. Доступные значения: \"high\", \"medium\" и \"low\". При отсутствии параметра оптимальное значение определяется автоматически."}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 07 Feb 2024 16:11:30 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"127"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F7Ggk8NGC8NuzKYACfUC"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"base\": [\n                \"invalid mime type\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n    }\n}"}],"_postman_id":"7f7c24cb-1b84-4f45-9ba6-3f8cdc297dd6"},{"name":"Delete delivery","id":"dccca841-b2a2-419b-b8a9-78f553c40819","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.jetapi.io/api/v1/delivery/:delivery_id","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>Deletes sent messages in the Whatsapp and Telegram messenger via TDLib</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>HTTP – method</td>\n<td>DELETE</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.jetapi.io/api/v1/delivery/:delivery_id\">https://api.jetapi.io/api/v1/delivery/:delivery_id</a></td>\n</tr>\n<tr>\n<td>Response option</td>\n<td>Successful with http code 200, unsuccessful with code 422</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><p>Deletion only works for messages sent through the TDLib channel (i.e., Telegram via TDLib) and Whatsapp.</p>\n</li>\n<li><p>If the message is not found or has already been deleted, a 422 error is returned with a corresponding description.</p>\n</li>\n<li><p>Only messages sent through the Jetapi service can be deleted.</p>\n</li>\n<li><p>Deletion is only performed if the message has a successful final status of “Delivered” in the system.</p>\n</li>\n<li><p>Deletion occurs on all devices.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","delivery",":delivery_id"],"host":["api","jetapi","io"],"query":[],"variable":[{"description":{"content":"<p>integer | required | ID of the message to be deleted, obtained from the delivery.id field in the JSON response of the delivery method.(<a href=\"https://docs.jetapi.io/#ecb361f1-9851-481d-9517-21aba2531f2f\">https://docs.jetapi.io/#ecb361f1-9851-481d-9517-21aba2531f2f</a>)</p>\n","type":"text/plain"},"type":"any","value":"","key":"delivery_id"}]}},"response":[{"id":"e3c6eccd-4be1-45c2-a838-cb68ffbbd86f","name":"Successful result","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"213"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"1538fd66-693a-44ab-9b33-bcf0b56db059","name":"Error, 422 (for tdlib)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"22"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"tdlib_delivery\": [\n                \"tdlib_delivery not found\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"c9107f0a-3cb8-4973-a610-e10c659a7db1","name":"Error, 422 (for whatsapp)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"322"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"delivery\": [\n                \"delivery not found\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"511f86ee-ed73-447b-81d6-f6ab7dddf12d","name":"Error, 422 (dispatch_type invalid)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"3223"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"dispatch_type\": [\n                \"dispatch_type invalid\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"26b58cd1-425e-497e-b574-eac25978c064","name":"Error, 422 (not complete)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://api.jetapi.io/api/v1/delivery/:delivery_id","protocol":"https","host":["api","jetapi","io"],"path":["api","v1","delivery",":delivery_id"],"variable":[{"key":"delivery_id","value":"323"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"delivery\": [\n                \"delivery not_complete\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"dccca841-b2a2-419b-b8a9-78f553c40819"}],"id":"ecb361f1-9851-481d-9517-21aba2531f2f","description":"<h2 id=\"authorization\"><strong>Authorization</strong></h2>\n<p>The project uses token-based authorization. You can get the necessary access_token in the corresponding section of your personal account</p>\n<p><strong>All relevant requests in headers must contain the following:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Bearer {access_token}</td>\n</tr>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Пример:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">curl -X GET https://api.jetapi.io/api/v1/account -H 'Authorization: Bearer {your token}'\n\n</code></pre>\n<p>If these parameters are missing or disabled in all relevant resources, the response will have: HTTP code 401 (Not authorized) and will contain JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\n    \"status\": \"fail\",\n    \"message\": \"Not authorized!\",\n    \"code\": 401\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"06bb01da-0669-482e-a6e4-9745a8ebad1c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"89129838-3b5c-483f-8bf2-a1ddfd80232d","type":"text/javascript","exec":[""]}}],"_postman_id":"ecb361f1-9851-481d-9517-21aba2531f2f"},{"name":"Webhooks","item":[{"name":"Creating a webhook","id":"cf7dea99-f9e9-4baf-93ff-3311ae9aa93e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/developer/v1/webhooks?url=https://example.com&types[]=whatsapp_log_out","urlObject":{"protocol":"https","path":["developer","v1","webhooks"],"host":["api","jetapi.io"],"query":[{"description":{"content":"<p>string | required | The address to which the notification is sent</p>\n","type":"text/plain"},"key":"url","value":"https://example.com"},{"description":{"content":"<p>array | required | List of events</p>\n","type":"text/plain"},"key":"types[]","value":"whatsapp_log_out"}],"variable":[]}},"response":[{"id":"d33fdcd8-cf48-4451-800c-4730c993c2dc","name":"Successful result","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/webhooks?url=https://example.com&types[]=whatsapp_log_out","protocol":"https","host":["api","jetapi.io"],"path":["developer","v1","webhooks"],"query":[{"key":"url","value":"https://example.com","description":"string | required | The address to which the notification is sent"},{"key":"types[]","value":"whatsapp_log_out","description":"array | required | List of events"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:13:16 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"116"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t5yvTM1WXUUOsAAVxF"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"webhook\": {\n        \"id\": 57,\n        \"types\": [\n            \"whatsapp_log_out\"\n        ],\n        \"url\": \"https://example.com\"\n    }\n}"},{"id":"31e21485-8d46-4227-80ee-f611d6c07f47","name":"Error, 422","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/webhooks?url=https://example.com&types[]=whatsapp_log_ou","protocol":"https","host":["api","jetapi.io"],"path":["developer","v1","webhooks"],"query":[{"key":"url","value":"https://example.com","description":"string | required | The address to which the notification is sent"},{"key":"types[]","value":"whatsapp_log_ou","description":"array | required | List of events"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:13:57 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"135"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t51F346PSznl4ACuwi"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"errors\": {\n            \"types\": [\n                \"types invalid\"\n            ]\n        },\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"status_id\": null\n    }\n}"}],"_postman_id":"cf7dea99-f9e9-4baf-93ff-3311ae9aa93e"},{"name":"Getting an entry","id":"3953d13e-0096-4d0c-8ef5-ebc50b54c5ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/developer/v1/webhooks/:id","urlObject":{"protocol":"https","path":["developer","v1","webhooks",":id"],"host":["api","jetapi.io"],"query":[],"variable":[{"id":"d11f6f61-4a02-428e-a870-908879bc7883","description":{"content":"<p>integer | required | unique identifier of a specific record</p>\n","type":"text/plain"},"type":"any","value":"57","key":"id"}]}},"response":[{"id":"49049a84-8d02-4b36-9ac5-8234ffaa7beb","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/webhooks/:id","protocol":"https","host":["api","jetapi","io"],"path":["developer","v1","webhooks",":id"],"variable":[{"key":"id","value":"57","description":"integer | required | unique identifier of a specific record"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:17:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"116"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t6B8S795p2BOMAA5Mk"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"webhook\": {\n        \"id\": 57,\n        \"types\": [\n            \"whatsapp_log_out\"\n        ],\n        \"url\": \"https://example.com\"\n    }\n}"}],"_postman_id":"3953d13e-0096-4d0c-8ef5-ebc50b54c5ee"},{"name":"Getting all the records","id":"0aa48eb0-150a-4990-b28e-255a1086e4e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/developer/v1/webhooks","urlObject":{"protocol":"https","path":["developer","v1","webhooks"],"host":["api","jetapi.io"],"query":[],"variable":[]}},"response":[{"id":"22abf9bb-38c6-4fea-8a90-9aa20d08143b","name":"Successful result","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":"https://api.jetapi.io/developer/v1/webhooks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:28:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"119"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t6mOZ408rQZhcABC1E"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"webhooks\": [\n        {\n            \"id\": 57,\n            \"types\": [\n                \"whatsapp_log_out\"\n            ],\n            \"url\": \"https://example.com\"\n        }\n    ]\n}"}],"_postman_id":"0aa48eb0-150a-4990-b28e-255a1086e4e4"},{"name":"Deleting an entry","id":"c85e6311-5048-4da3-9269-a12c2f75f5c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.jetapi.io/developer/v1/webhooks/:id","urlObject":{"protocol":"https","path":["developer","v1","webhooks",":id"],"host":["api","jetapi.io"],"query":[],"variable":[{"id":"43a01810-4e1c-46f5-ab76-dc9d94e1cd97","description":{"content":"<p>integer | required | unique identifier of a specific record</p>\n","type":"text/plain"},"type":"any","value":"22","key":"id"}]}},"response":[{"id":"ad1490f4-1abd-4353-8fe4-2a5b24fd0f07","name":"Successful result","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/webhooks/:id","protocol":"https","host":["api","jetapi.io"],"path":["developer","v1","webhooks",":id"],"variable":[{"key":"id","value":"55","description":"integer | required | unique identifier of a specific record"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:26:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t6h2Dwo7ntd10ACYPj"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"}],"_postman_id":"c85e6311-5048-4da3-9269-a12c2f75f5c1"},{"name":"Changing an entry","id":"11e434fe-2b05-49d3-a552-33fb94e20c65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"PUT","header":[],"url":"https://api.jetapi.io/developer/v1/webhooks/:id?types[]=whatsapp_log_out&url=https://example2.com","urlObject":{"protocol":"https","path":["developer","v1","webhooks",":id"],"host":["api","jetapi.io"],"query":[{"description":{"content":"<p>array | required | Collected list</p>\n","type":"text/plain"},"key":"types[]","value":"whatsapp_log_out"},{"description":{"content":"<p>string | required | The address to which the notification is sent</p>\n","type":"text/plain"},"key":"url","value":"https://example2.com"}],"variable":[{"id":"5f67224c-383a-43f5-85b9-2f0facf8d3af","description":{"content":"<p>integer | required | unique identifier of a specific record</p>\n","type":"text/plain"},"type":"any","value":"57","key":"id"}]}},"response":[{"id":"cdc9abfd-1b97-48ac-9ea2-8a9a3ce97f5f","name":"Successful result","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{api key}","type":"text"}],"url":{"raw":"https://api.jetapi.io/developer/v1/webhooks/:id?types[]=whatsapp_log_out&url=https://example2.com","protocol":"https","host":["api","jetapi.io"],"path":["developer","v1","webhooks",":id"],"query":[{"key":"types[]","value":"whatsapp_log_out","description":"array | required | Collected list"},{"key":"url","value":"https://example2.com","description":"string | required | The address to which the notification is sent"}],"variable":[{"key":"id","value":"57","description":"integer | required | unique identifier of a specific record"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Nov 2023 12:32:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"117"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F5t60ItNgaqeHlcACkTj"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"webhook\": {\n        \"id\": 57,\n        \"types\": [\n            \"whatsapp_log_out\"\n        ],\n        \"url\": \"https://example2.com\"\n    }\n}"}],"_postman_id":"11e434fe-2b05-49d3-a552-33fb94e20c65"}],"id":"96ec8f61-5a9c-4222-8ecb-5f86e1ee9a5f","description":"<p>List of webhook events</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Types</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>whatsapp_log_out</td>\n<td>Information about deauthorization of the client in whatsapp</td>\n</tr>\n<tr>\n<td>whatsapp_log_in</td>\n<td>Information about the client's authorization in whatsapp</td>\n</tr>\n<tr>\n<td>whatsapp_incoming_msg</td>\n<td>Information about incoming and outgoing messages to an authorized whatsapp account. Messages are collected from the moment of authorization.</td>\n</tr>\n<tr>\n<td>tdlib_incoming_msg</td>\n<td>Information about incoming and outgoing messages to an authorized Telegram account.</td>\n</tr>\n<tr>\n<td>whatsapp_status_msg</td>\n<td>Information about the statuses of outgoing messages from an authorized WhatsApp account.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"notification-example---whatsapp_log_out\">Notification example - whatsapp_log_out</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_log_out\"\n  \"payload\": {\n      \"customer_id\": 591,\n      \"email\": \"example@gmail.ru\",\n      \"phone\": \"+9959123456789\"\n      \"status\": {\n        \"status_id\": 1,\n        \"description\": \"disconnected\"\n      }\n    }\n  }\n}\n\n</code></pre>\n<h4 id=\"notification-example---whatsapp_log_in\">Notification example - whatsapp_log_in</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_log_in\",\n  \"payload\": {\n    \"instance\": {\n      \"id\": 368,\n      \"status\": {\n        \"description\": \"connected\",\n        \"status_id\": 0\n      },\n      \"phone\": \"+420774948868\",\n      \"email\": \"rerweq@fsdfs\",\n      \"customer_id\": 1050\n    }\n  }\n}\n\n</code></pre>\n<p>Parameters</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>instance</td>\n<td>object</td>\n<td>Instance object</td>\n</tr>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>Instance ID</td>\n</tr>\n<tr>\n<td>customer_id</td>\n<td>integer</td>\n<td>Internal Client ID</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Client's email</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>Client's phone</td>\n</tr>\n<tr>\n<td>status</td>\n<td>object</td>\n<td>Status object</td>\n</tr>\n<tr>\n<td>status_id</td>\n<td>integer</td>\n<td>Status ID</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>Short description of the status</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"notification-example---whatsapp_incoming_msg\">Notification example - whatsapp_incoming_msg</h4>\n<blockquote>\n<p>Notifications have a different structure, depending on the content of the message. Below are examples of text notifications and file notifications. The system takes the image/file and converts it into a download link. </p>\n</blockquote>\n<p>Outgoing:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_incoming_msg\",\n  \"payload\": {\n    \"instance\": {\n      \"id\": 6329,\n      \"customer_id\": 2707\n    },\n    \"new_message\": {\n      \"message\": {\n        \"id\": \"true_95555558974@c.us_d292906746THISISBOT\",\n        \"timestamp\": 1764069292,\n        \"type\": \"document\",\n        \"reply_to_message_id\": null,\n        \"file_data\": {\n          \"mime_type\": \"application/msword\",\n          \"caption\": \"file new\",\n          \"download_url\": \"https://production-docs.storage.yandexcloud.net/delivery_files_new/83a38f/e901c444/288d0008/fd5702ea/test.doc?X-Amz-AlgorithHMAC-SHA256&amp;X-Amz-Credential=bipj3XwGMXa8-wO4T3mc/20251125/ru-central1/s3/aws4_request&amp;X-A-Date=20251125T111456Z&amp;X-Amz-Expires=172800&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=cd3955e831bb20c736f5dee570667a8e12017e51471e2872d61df0ee8760e\"\n        }\n      },\n      \"direction\": \"outgoing\",\n      \"sender_id\": \"996453558974@c.us\",\n      \"chat_id\": \"95555558974@c.us\",\n      \"sender_name\": \"Test\",\n      \"chat_lid\": \"4846447809451@lid\",\n      \"pushname\": \"Test1\",\n      \"chat_phone\": \"95555558974\",\n      \"sender_phone_number\": \"996453558974\",\n      \"recipient_id\": \"995555558974@c.us\",\n      \"recipient_phone_number\": \"995555558974\"\n    },\n    \"delivery_id\": 29290746\n  }\n}\n\n</code></pre>\n<p>Outgoing with the file:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_incoming_msg\",\n  \"payload\": {\n    \"new_message\": {\n      \"message\": {\n        \"id\": \"true_995555558974@c.us_2A7B9368F38D549F6339\",\n        \"timestamp\": 1764081041,\n        \"type\": \"image\",\n        \"reply_to_message_id\": null,\n        \"file_data\": {\n          \"mime_type\": \"image/jpeg\",\n          \"caption\": null,\n          \"download_url\": \"https://production-docs.storage.yandexcloud.net/delivery_files_new/a99c05ed/aaac1071/87037d32/0bb618ca/1764081046_media.jpg?X-Amz-Algorithm=AWS4-HMAC-SH2F20251125/ru-central1/s3/aws4_request&amp;X-Amz-Date=20251125T143046Z&amp;X-Amz-Expires=172800&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=feb45c97ca3d533d45e0838bd2bcba01d7ee714c9771902e64a30f026986837a\"\n        }\n      },\n      \"direction\": \"outgoing\",\n      \"sender_id\": \"996453558974@c.us\",\n      \"chat_id\": \"995555558974@c.us\",\n      \"sender_name\": \"Тестовый\",\n      \"chat_lid\": \"4846447809341@lid\",\n      \"pushname\": \"Chatpush\",\n      \"chat_phone\": \"995555558974\",\n      \"sender_phone_number\": \"996453558974\",\n      \"recipient_id\": \"995555558974@c.us\",\n      \"recipient_phone_number\": \"995555558974\"\n    },\n    \"delivery_id\": null,\n    \"customer_id\": 4140\n  }\n}\n\n</code></pre>\n<p>Incoming:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_incoming_msg\",\n  \"payload\": {\n    \"instance\": {\n      \"id\": 6329,\n      \"customer_id\": 2707\n    },\n    \"new_message\": {\n      \"message\": {\n        \"id\": \"false_995555558974@c.us_3B55D8ECE08DAC8198EB\",\n        \"timestamp\": 1764069562,\n        \"type\": \"text\",\n        \"text\": \"text\",\n        \"reply_to_message_id\": null\n      },\n      \"direction\": \"incoming\",\n      \"sender_id\": \"995555558974@c.us\",\n      \"chat_id\": \"995555558974@c.us\",\n      \"sender_name\": \"\\u202a+995555558974\\u202c\",\n      \"chat_lid\": \"48464478093451@lid\",\n      \"pushname\": \"Test\",\n      \"chat_phone\": \"995555558974\",\n      \"sender_phone_number\": \"995555558974\"\n    },\n    \"delivery_id\": null\n  }\n}\n\n</code></pre>\n<p>Incoming with the file:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_incoming_msg\",\n  \"payload\": {\n    \"instance\": {\n      \"id\": 6329,\n      \"customer_id\": 27807\n    },\n    \"new_message\": {\n      \"message\": {\n        \"id\": \"false_995555558974@c.us_3B56F737211AAED838CC\",\n        \"timestamp\": 1764069613,\n        \"type\": \"document\",\n        \"reply_to_message_id\": null,\n        \"file_data\": {\n          \"mime_type\": \"image/jpeg\",\n          \"caption\": \"text\",\n          \"download_url\": \"https://production-docs.storage.yandexcloud.net/delivery_files_new/36f0d65a/d834a720/e8493c3c/2c9e8af9/1764069615_media.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=bipj3XwGMXa8-wO4T3mc/20251125//s3/aws4_request&amp;X-Amz-Date=20251125T112&amp;X-Aires=172800&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=c02ce108e06634c7f24958be34606aa2b9892a1f787458a8b0c8afeb1e0bb5c8\"\n        }\n      },\n      \"direction\": \"incoming\",\n      \"sender_id\": \"995555558974@c.us\",\n      \"chat_id\": \"995555558974@c.us\",\n      \"sender_name\": \"\\u202a+995555558974\\u202c\",\n      \"chat_lid\": \"48464478022451@lid\",\n      \"pushname\": \"Test\",\n      \"chat_phone\": \"995555558974\",\n      \"sender_phone_number\": \"995555558974\"\n    },\n    \"delivery_id\": null\n  }\n}\n\n</code></pre>\n<p><strong>Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Webhook type</td>\n</tr>\n<tr>\n<td><code>payload.instance.id</code></td>\n<td>integer</td>\n<td>Internal instance ID</td>\n</tr>\n<tr>\n<td><code>payload.instance.customer_id</code></td>\n<td>integer</td>\n<td>Internal customer ID</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.id</code></td>\n<td>string</td>\n<td>Internal WhatsApp message ID</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.timestamp</code></td>\n<td>integer</td>\n<td>Timestamp when the message was sent</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.type</code></td>\n<td>string</td>\n<td>Type of transmitted object</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.text</code></td>\n<td>string</td>\n<td>Message text (for text messages)</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.reply_to_message_id</code></td>\n<td>string</td>\n<td>ID of the message being replied to</td>\n</tr>\n<tr>\n<td><code>payload.new_message.direction</code></td>\n<td>string</td>\n<td>Message type. incoming - incoming, outgoing - outgoing</td>\n</tr>\n<tr>\n<td><code>payload.new_message.sender_id</code></td>\n<td>string</td>\n<td>Message sender ID</td>\n</tr>\n<tr>\n<td><code>payload.new_message.chat_id</code></td>\n<td>string</td>\n<td>ID of the chat where the conversation takes place</td>\n</tr>\n<tr>\n<td><code>payload.new_message.sender_name</code></td>\n<td>string</td>\n<td>User name in WhatsApp</td>\n</tr>\n<tr>\n<td><code>payload.new_message.chat_lid</code></td>\n<td>string</td>\n<td>Chat lid ID. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n<tr>\n<td><code>payload.new_message.pushname</code></td>\n<td>string</td>\n<td>User name as the contact saved themselves in WhatsApp</td>\n</tr>\n<tr>\n<td><code>payload.new_message.chat_phone</code></td>\n<td>integer</td>\n<td>Recipient number. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n<tr>\n<td><code>payload.new_message.sender_phone_number</code></td>\n<td>string</td>\n<td>Sender phone number</td>\n</tr>\n<tr>\n<td><code>payload.new_message.recipient_id</code></td>\n<td>string</td>\n<td>ID of the chat where the conversation takes place</td>\n</tr>\n<tr>\n<td><code>payload.new_message.recipient_phone_number</code></td>\n<td>integer</td>\n<td>Recipient number</td>\n</tr>\n<tr>\n<td><code>payload.delivery_id</code></td>\n<td>integer</td>\n<td>Internal delivery ID. When sending not from the system, the parameter will be empty</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Additional fields for messages with files</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>payload.new_message.message.file_data</code></td>\n<td>object</td>\n<td>Delivery object</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.file_data.mime_type</code></td>\n<td>string</td>\n<td>File format</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.file_data.caption</code></td>\n<td>string</td>\n<td>Description under the file</td>\n</tr>\n<tr>\n<td><code>payload.new_message.message.file_data.download_url</code></td>\n<td>string</td>\n<td>File download link</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"_-notification-example---tdlib_incoming_msg_\">_ Notification example - tdlib_incoming_msg_</h4>\n<p>Outgoing:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"payload\": {\n\"chat_id\": 37916707,\n\"chat_type\": \"person\",\n\"delivery_id\": 170405,\n\"direction\": \"outgoing\",\n\"instance\": {\n\"customer_id\": 77,\n\"id\": 2822\n},\n\"message\": {\n\"id\": 978172510208,\n\"text\": \"this is a test message\",\n\"timestamp\": 1691585795,\n\"type\": \"FormattedText\"\n},\n\"sender_id\": 4335465,\n\"sender_name\": \"test\",\n\"sender_phone_number\": \"995550846453\",\n\"recipient_id\": 37916707,\n\"recipient_phone_number\": \"971568961134\",\n\"recipient_username\": \"test2\"\n},\n\"type\": \"tdlib_incoming_msg\"\n}\n\n</code></pre>\n<p>Incoming:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"payload\": {\n\"chat_id\": 379163707,\n\"chat_type\": \"person\",\n\"delivery_id\": null,\n\"direction\": \"incoming\",\n\"instance\": {\n\"customer_id\": 530,\n\"id\": 316\n},\n\"message\": {\n\"id\": 49283072,\n\"text\": \"text\",\n\"timestamp\": 1700828134,\n\"type\": \"formattedText\"\n},\n\"sender_id\": 379163707,\n\"sender_name\": \"mdyageleva\",\n\"sender_phone_number\": \"995550846453\"\n},\n\"type\": \"tdlib_incoming_msg\"\n}\n\n</code></pre>\n<p><strong>Parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Webhook type</td>\n</tr>\n<tr>\n<td><code>payload.instance.id</code></td>\n<td>integer</td>\n<td>Internal instance ID</td>\n</tr>\n<tr>\n<td><code>payload.instance.customer_id</code></td>\n<td>integer</td>\n<td>Internal customer ID</td>\n</tr>\n<tr>\n<td><code>payload.chat_id</code></td>\n<td>integer</td>\n<td>ID of the chat where the conversation takes place</td>\n</tr>\n<tr>\n<td><code>payload.chat_type</code></td>\n<td>string</td>\n<td>Chat type</td>\n</tr>\n<tr>\n<td><code>payload.delivery_id</code></td>\n<td>integer</td>\n<td>Internal delivery ID. When sending not from the system (via chat), the parameter will be empty</td>\n</tr>\n<tr>\n<td><code>payload.direction</code></td>\n<td>string</td>\n<td>Message type. Incoming - incoming, outgoing - outgoing</td>\n</tr>\n<tr>\n<td><code>payload.message.id</code></td>\n<td>integer</td>\n<td>Internal message ID</td>\n</tr>\n<tr>\n<td><code>payload.message.timestamp</code></td>\n<td>integer</td>\n<td>Timestamp when the message was sent</td>\n</tr>\n<tr>\n<td><code>payload.message.type</code></td>\n<td>string</td>\n<td>Type of transmitted object</td>\n</tr>\n<tr>\n<td><code>payload.message.reply_to_message_id</code></td>\n<td>string</td>\n<td>ID of the message being replied to</td>\n</tr>\n<tr>\n<td><code>payload.sender_id</code></td>\n<td>integer</td>\n<td>Message sender ID</td>\n</tr>\n<tr>\n<td><code>payload.sender_name</code></td>\n<td>string</td>\n<td>Sender name</td>\n</tr>\n<tr>\n<td><code>payload.sender_phone_number</code></td>\n<td>string</td>\n<td>Sender phone number</td>\n</tr>\n<tr>\n<td><code>payload.recipient_id</code></td>\n<td>integer</td>\n<td>Recipient ID</td>\n</tr>\n<tr>\n<td><code>payload.recipient_phone_number</code></td>\n<td>string</td>\n<td>Recipient phone number</td>\n</tr>\n<tr>\n<td><code>payload.recipient_username</code></td>\n<td>string</td>\n<td>Recipient username</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Additional fields for messages with files</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>payload.message.file_data</code></td>\n<td>object</td>\n<td>Delivery object</td>\n</tr>\n<tr>\n<td><code>payload.message.file_data.mime_type</code></td>\n<td>string</td>\n<td>File format</td>\n</tr>\n<tr>\n<td><code>payload.message.file_data.caption</code></td>\n<td>string</td>\n<td>Description under the file</td>\n</tr>\n<tr>\n<td><code>payload.message.file_data.download_url</code></td>\n<td>string</td>\n<td>File download link</td>\n</tr>\n</tbody>\n</table>\n</div><p>Telegram call</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">          \"payload\": {\n            \"call\": {\n              \"id\": 9,\n              \"is_video\": false,\n              \"reason\": \"callDiscardReasonDisconnected\",\n              \"state\": \"callStateDiscarded\"\n            },\n            \"chat_id\": 6888055,\n            \"chat_type\": \"person\",\n            \"direction\": \"incoming\",\n            \"instance\": {\n              \"customer_id\": 1011,\n              \"id\": 377\n            },\n            \"sender_id\": 68880855,\n            \"sender_name\": \"TestName\",\n            \"sender_phone_number\": \"995598464533\"\n          },\n          \"type\": \"tdlib_call\"\n        }\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>payload</code></td>\n<td><code>object</code></td>\n<td>Webhook data container</td>\n</tr>\n<tr>\n<td><code>payload.type</code></td>\n<td><code>string</code></td>\n<td>Webhook type. Always <code>tdlib_call</code></td>\n</tr>\n<tr>\n<td><code>payload.chat_id</code></td>\n<td><code>number</code></td>\n<td>ID of chat where call occurred</td>\n</tr>\n<tr>\n<td><code>payload.chat_type</code></td>\n<td><code>string</code></td>\n<td>Chat type (e.g. <code>person</code> - private chat)</td>\n</tr>\n<tr>\n<td><code>payload.direction</code></td>\n<td><code>string</code></td>\n<td>Call direction: <code>incoming</code> or <code>outgoing</code></td>\n</tr>\n<tr>\n<td><code>payload.instance</code></td>\n<td><code>object</code></td>\n<td>Instance information (for developer-originated calls)</td>\n</tr>\n<tr>\n<td><code>payload.instance.customer_id</code></td>\n<td><code>number</code></td>\n<td>Internal customer ID linked to instance</td>\n</tr>\n<tr>\n<td><code>payload.instance.id</code></td>\n<td><code>number</code></td>\n<td>Unique instance ID</td>\n</tr>\n<tr>\n<td><code>payload.sender_id</code></td>\n<td><code>number</code></td>\n<td>ID of user who initiated the call</td>\n</tr>\n<tr>\n<td><code>payload.sender_name</code></td>\n<td><code>string</code></td>\n<td>Name of calling user</td>\n</tr>\n<tr>\n<td><code>payload.sender_phone_number</code></td>\n<td><code>string</code></td>\n<td>User's phone number (E.164 format)</td>\n</tr>\n<tr>\n<td><code>payload.call</code></td>\n<td><code>object</code></td>\n<td>Call details</td>\n</tr>\n<tr>\n<td><code>payload.call.id</code></td>\n<td><code>number</code></td>\n<td>Unique call ID</td>\n</tr>\n<tr>\n<td><code>payload.call.is_video</code></td>\n<td><code>boolean</code></td>\n<td>Whether call was video (<code>true</code>/<code>false</code>)</td>\n</tr>\n<tr>\n<td><code>payload.call.state</code></td>\n<td><code>string</code></td>\n<td>Current call state. Possible value: <code>callStateDiscarded</code> (ended)</td>\n</tr>\n<tr>\n<td><code>payload.call.reason</code></td>\n<td><code>string</code></td>\n<td>Call termination reason:  <br />• <code>callDiscardReasonAllowGroupCall</code> - ended to join group call  <br />• <code>callDiscardReasonDeclined</code> - declined  <br />• <code>callDiscardReasonDisconnected</code> - connection lost  <br />• <code>callDiscardReasonEmpty</code> - ended without reason  <br />• <code>callDiscardReasonHungUp</code> - ended by user  <br />• <code>callDiscardReasonMissed</code> - missed call</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"notification-example---whatsapp_status_msg\">Notification example - whatsapp_status_msg</h4>\n<ul>\n<li>The status is only sent for outgoing messages from an authorized client</li>\n</ul>\n<p>Example of a message status webhook:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"message_status\",\n  \"payload\": {\n    \"instance\": {\n      \"id\": 37,\n      \"customer_id\": 111\n    },\n    \"delivery_id\": null,\n    \"message_status\": {\n      \"id\": \"true_995555123456@c.us_8110THISISBOT\",\n      \"status\": \"read\",\n      \"chat_id\": \"995555123456@c.us\"\n      \"chat_id\": \"995555123456@c.us\"\n      \"chat_lid\": \"4846447809351@lid\",\n    }\n  }\n}\n\n</code></pre>\n<p>Description of message status webhook parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Event type</td>\n</tr>\n<tr>\n<td><code>payload</code></td>\n<td>object</td>\n<td>Main event data</td>\n</tr>\n<tr>\n<td><code>payload.instance</code></td>\n<td>object</td>\n<td>Account information</td>\n</tr>\n<tr>\n<td><code>payload.instance.id</code></td>\n<td>number</td>\n<td>Internal instance ID</td>\n</tr>\n<tr>\n<td><code>payload.instance.customer_id</code></td>\n<td>number</td>\n<td>Internal client ID</td>\n</tr>\n<tr>\n<td><code>payload.delivery_id</code></td>\n<td>number</td>\n<td>Internal deliveries ID</td>\n</tr>\n<tr>\n<td><code>payload.message_status</code></td>\n<td>object</td>\n<td>Message status data</td>\n</tr>\n<tr>\n<td><code>payload.message_status.id</code></td>\n<td>string</td>\n<td>Unique message status ID (format for chatpush service: <code>\"true_995555123456@c.us_84110THISISBOT\"</code>, format for other sending methods: <code>\"true_995555123456@c.us_3A2E74ED29DF9BAB114E\"</code>)</td>\n</tr>\n<tr>\n<td><code>payload.message_status.status</code></td>\n<td>string</td>\n<td>Message status</td>\n</tr>\n<tr>\n<td><code>payload.message_status.chat_id</code></td>\n<td>string</td>\n<td>Chat ID in <code>\"995555123456@c.us\"</code> format (phone number</td>\n</tr>\n<tr>\n<td><code>payload.message_status.chat_lid</code></td>\n<td>string</td>\n<td>Chat lid ID. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n<tr>\n<td><code>payload.message_status.chat_phone</code></td>\n<td>integer</td>\n<td>Recipient number. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n</tbody>\n</table>\n</div><p>List of transmitted statuses:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sent</td>\n<td>Message sent to WhatsApp server</td>\n</tr>\n<tr>\n<td>received</td>\n<td>Delivered to recipient's device</td>\n</tr>\n<tr>\n<td>read</td>\n<td>Read by recipient</td>\n</tr>\n<tr>\n<td>played</td>\n<td>Played (audio messages only)</td>\n</tr>\n<tr>\n<td>failed</td>\n<td>Failed to send message</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Message expired (e.g., no network connection for too long)</td>\n</tr>\n<tr>\n<td>content_gone</td>\n<td>Content no longer available (e.g., deleted or expired)</td>\n</tr>\n<tr>\n<td>content_too_big</td>\n<td>Content too large to send</td>\n</tr>\n<tr>\n<td>content_unuploadable</td>\n<td>Content cannot be uploaded (possibly corrupted)</td>\n</tr>\n<tr>\n<td>inactive</td>\n<td>User inactive (e.g., account deleted or banned)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"incoming-call-webhook\">Incoming Call Webhook</h4>\n<ul>\n<li><p>Sent as part of the \"whatsapp_incoming_msg\" event</p>\n</li>\n<li><p>Only sent for incoming calls to authorized clients</p>\n</li>\n<li><p>Contains call information</p>\n</li>\n<li><p>Sent when the call is received on the account</p>\n</li>\n</ul>\n<p>Example of an incoming call webhook:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"whatsapp_call\",\n  \"payload\": {\n    \"instance\": {\n      \"id\": 39,\n      \"customer_id\": 111\n    },\n    \"incoming_call\": {\n      \"call\": {\n        \"id\": \"280F899CBF131466501CDA1B608\",\n        \"timestamp\": 1751293264,\n        \"type\": \"audio\",\n        \"is_group\": false\n      },\n      \"direction\": \"incoming\",\n      \"sender_id\": \"995555123456@c.us\",\n      \"chat_id\": \"995555123456@c.us\",\n      \"chat_lid\": \"48464478093451@lid\",\n      \"chat_phone\": \"995555123456\",\n      \"sender_phone_number\": \"995555123456\"\n    }\n  }\n}\n\n</code></pre>\n<p>Description of incoming call webhook parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Event type</td>\n</tr>\n<tr>\n<td><code>payload</code></td>\n<td>object</td>\n<td>Main event data</td>\n</tr>\n<tr>\n<td><code>payload.instance</code></td>\n<td>object</td>\n<td>Account information</td>\n</tr>\n<tr>\n<td><code>payload.instance.id</code></td>\n<td>number</td>\n<td>Internal instance ID</td>\n</tr>\n<tr>\n<td><code>payload.instance.customer_id</code></td>\n<td>number</td>\n<td>Internal client ID</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call</code></td>\n<td>object</td>\n<td>Incoming call data</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call</code></td>\n<td>object</td>\n<td>Call information</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call.id</code></td>\n<td>string</td>\n<td>Unique call ID (hash, e.g. <code>\"280F899C331466501CDA1B608\"</code>)</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call.timestamp</code></td>\n<td>number</td>\n<td>Unix timestamp of call (e.g. <code>1751293264</code>)</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call.type</code></td>\n<td>string</td>\n<td>Call type: <code>\"audio\"</code> or <code>\"video\"</code></td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.call.is_group</code></td>\n<td>boolean</td>\n<td>Group call: <code>true</code>/<code>false</code></td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.direction</code></td>\n<td>string</td>\n<td>Call direction: <code>\"incoming\"</code></td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.sender_id</code></td>\n<td>string</td>\n<td>Sender ID in <code>\"@c.us\"</code> format</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.chat_id</code></td>\n<td>string</td>\n<td>Chat ID in <code>\"@c.us\"</code> format</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.sender_phone_number</code></td>\n<td>string</td>\n<td>Sender's</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.chat_lid</code></td>\n<td>string</td>\n<td>Chat lid ID. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n<tr>\n<td><code>payload.incoming_call.chat_phone</code></td>\n<td>integer</td>\n<td>Recipient number. For outgoing - where we send to, for incoming - where we receive from</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"96ec8f61-5a9c-4222-8ecb-5f86e1ee9a5f"},{"name":"iFrame Web Messenger","item":[{"name":"Creating a chat link","id":"2bd6e0d3-1193-4289-b870-d2d063c2ebe2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.jetapi.io/api/developer_chat/generate_link","urlObject":{"protocol":"https","path":["api","developer_chat","generate_link"],"host":["api","jetapi","io"],"query":[{"disabled":true,"description":{"content":"<p>string | optional |  Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character. Required conditional on auth_type=0.</p>\n","type":"text/plain"},"key":"password","value":""},{"disabled":true,"description":{"content":"<p>string | optional | Parameter auth_type=0 - enables mandatory password entry when joining the chat. If auth_type is not passed, it is assumed to be 0. auth_type=1 - disables password entry when joining the chat.</p>\n","type":"text/plain"},"key":"auth_type","value":null}],"variable":[]}},"response":[{"id":"32d26f06-bf6b-4e77-9d88-cb18e9050aa8","name":"Successful result","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/api/developer_chat/generate_link?password=Example123","protocol":"https","host":["api","jetapi","io"],"path":["api","developer_chat","generate_link"],"query":[{"key":"password","value":"Example123","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 10 Apr 2024 10:42:27 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"161"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F8TlLuSAeE01_04AJ1jH"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"link\": {\n        \"link\": \"https://api.jetapi.io/developer_chat?customer_id=17693&hash=343c7bd8d5efbfa33528b711598989cf66317bd1\"\n    }\n}"},{"id":"298e550c-e7ad-4f6c-9378-066a9285a85e","name":"Error, 422","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/api/developer_chat/generate_link?password=","protocol":"https","host":["api","jetapi","io"],"path":["api","developer_chat","generate_link"],"query":[{"key":"password","value":"","description":"string| required |  Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character","type":"text"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"password\": [\n                \"password at least one punctuation character\",\n                \"password should be at least 7 character(s)\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"2bd6e0d3-1193-4289-b870-d2d063c2ebe2"},{"name":"Password change","id":"f11fcd4c-ab3e-4756-92c3-c263f575e173","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.chatpush.ru/api/developer_chat/change_password?password=","urlObject":{"protocol":"https","path":["api","developer_chat","change_password"],"host":["api","chatpush","ru"],"query":[{"description":{"content":"<p>string| required |  Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character</p>\n","type":"text/plain"},"key":"password","value":""}],"variable":[]}},"response":[{"id":"761311c2-5aa5-4fa5-ae40-571547874279","name":"Successful result","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/api/developer_chat/change_password?password=Qwerrty1234","protocol":"https","host":["api","jetapi","io"],"path":["api","developer_chat","change_password"],"query":[{"key":"password","value":"Qwerrty1234","description":"string | required | Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 10 Apr 2024 10:59:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F8TmH_bR4dMJfF0AAoXh"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    }\n}"},{"id":"02998ce3-941a-41f7-9933-8813de9f6592","name":"Error, 422","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://api.jetapi.io/api/developer_chat/change_password?password=Qwerr","protocol":"https","host":["api","jetapi","io"],"path":["api","developer_chat","change_password"],"query":[{"key":"password","value":"Qwerr","description":"string | required | Password for logging into iframe chat. Password length is greater than or equal to 7. Password must contain at least 1 special character"}]}},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 10 Apr 2024 11:00:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"241"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"F8TmJmxVzr_H2wAAAPXF"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"password\": [\n                \"password at least one digit or punctuation character\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"f11fcd4c-ab3e-4756-92c3-c263f575e173"},{"name":"Open a dialog by phone number","id":"ca99f0ce-984e-40ee-ba7a-8678c240bea6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.jetapi.io/developer_chat?customer_id=23&hash=23m2jl&phone=9959000000000","description":"<h4 id=\"the-logic-of-opening-a-chat-by-phone-number\">The logic of opening a chat by phone number</h4>\n<ul>\n<li><p>If the customer with the requested phone number has a chat in two messengers (whatsapp and telegram), then the chat will open with more recent messages.</p>\n</li>\n<li><p>If the customer with the requested phone number has a chat in one of the messengers (whatsapp or telegram), a dialogue will be opened in this messenger.</p>\n</li>\n<li><p>if the client with the requested phone number does not have chat, then the chat opens by default in the messenger whatsapp.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["developer_chat"],"host":["api","jetapi","io"],"query":[{"description":{"content":"<p>integer | required | unique client ID</p>\n","type":"text/plain"},"key":"customer_id","value":"23"},{"description":{"content":"<p>string | required | unique value, placed in the link that comes in response to the iframe creation</p>\n","type":"text/plain"},"key":"hash","value":"23m2jl"},{"description":{"content":"<p>string | required | recipient’s phone number</p>\n","type":"text/plain"},"key":"phone","value":"9959000000000"},{"disabled":true,"description":{"content":"<p>string | optional | sending channel. The available values are whatsapp and tdlib. Based on this parameter, a WhatsApp or Telegram chat will be opened </p>\n","type":"text/plain"},"key":"dispatch_routing","value":""},{"disabled":true,"description":{"content":"<p>integer | optional | sender_id of the message recipient. The parameter is available when sending via the tdlib channel </p>\n","type":"text/plain"},"key":"sender_id","value":""},{"disabled":true,"description":{"content":"<p>string | optional | username of the recipient of the message. The parameter is available when sending via the tdlib channel</p>\n","type":"text/plain"},"key":"username","value":""},{"disabled":true,"description":{"content":"<p>boolean | optional | Isolation of the dialog. False (default) - user can return to the chat list. True - isolated dialog with no possibility to get to the chat list</p>\n","type":"text/plain"},"key":"chat_only","value":null}],"variable":[]}},"response":[],"_postman_id":"ca99f0ce-984e-40ee-ba7a-8678c240bea6"},{"name":"Add сustom сhat notes","id":"daa22725-ac23-42fa-ad6f-3a528445d0a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\n    \"phone\": \"995591234567\",\n\n    \"notes\": [\n\n        {\n\n            \"title\": \"Text\",\n\n            \"body\": \"[Hello](https://google.com) Test_\\n  Test _test_.\"\n\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.jetapi.io/api/developer_chat/conversations/notes","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Overview</th>\n<th>Adding Custom Chat Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authentication</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>HTTP Method</td>\n<td>PUT</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.jetapi.io/api/developer_chat/conversations/notes\">https://api.jetapi.io/api/developer_chat/conversations/notes</a></td>\n</tr>\n<tr>\n<td>Possible Responses</td>\n<td>Success with HTTP 200, Error with HTTP 422</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"request-parameters-description\">Request Parameters Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Required</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>phone</td>\n<td>Conditional*</td>\n<td>string</td>\n<td>Phone number (e.g., +995591234567). Required if neither <code>tdlib_username</code> nor <code>tdlib_user_id</code> is provided.</td>\n</tr>\n<tr>\n<td>tdlib_username</td>\n<td>Conditional*</td>\n<td>string</td>\n<td>Telegram username. Required if <code>phone</code> is empty and <code>tdlib_user_id</code> is provided.</td>\n</tr>\n<tr>\n<td>tdlib_user_id</td>\n<td>Conditional*</td>\n<td>integer</td>\n<td>Telegram user ID. Required if <code>phone</code> is empty and <code>tdlib_username</code> is provided.</td>\n</tr>\n<tr>\n<td>notes</td>\n<td>Yes</td>\n<td>array</td>\n<td>Array of note objects.</td>\n</tr>\n<tr>\n<td>notes.title*</td>\n<td>Conditional</td>\n<td>string</td>\n<td>Note title (required if body is provided). See details below.</td>\n</tr>\n<tr>\n<td>notes.body**</td>\n<td>Conditional</td>\n<td>string</td>\n<td>Note content (required if title is provided). See details below.</td>\n</tr>\n</tbody>\n</table>\n</div><p>* At least one identifier must be provided (phone, tdlib_username, or tdlib_user_id)<br />** Either title or body must be provided (both can't be empty)</p>\n<h2 id=\"field-specifications\">Field Specifications</h2>\n<h3 id=\"title-field\">title Field</h3>\n<ul>\n<li><p><strong>Max length:</strong> 255 characters</p>\n</li>\n<li><p><strong>Supported markup:</strong> Markdown (<code>[Link](URL)</code>, <code>_italic_</code>, <code>\\n</code>), plain text (Latin/Cyrillic)</p>\n</li>\n</ul>\n<h3 id=\"body-field\">body Field</h3>\n<ul>\n<li><p><strong>Max length:</strong> 1000 characters</p>\n</li>\n<li><p><strong>Supported markup:</strong> Same as title</p>\n</li>\n</ul>\n<h4 id=\"additional-notes\">Additional Notes:</h4>\n<ul>\n<li><p>Send empty array <code>[]</code> to delete all notes</p>\n</li>\n<li><p>If a phone number has both Tdlib and WhatsApp conversations, both will be updated</p>\n</li>\n</ul>\n<img src=\"https://content.pstmn.io/51cba5fb-12a1-421a-907b-df4d896aca89/U2NyZWVuc2hvdCAyMDI1LTA1LTI2IGF0IDE3LjAyLjU0LnBuZw==\" alt />\n\n<img src=\"https://content.pstmn.io/e898e856-e262-4711-9fc9-491ef9bb3d2c/U2NyZWVuc2hvdCAyMDI1LTA1LTI2IGF0IDE3LjAzLjE3LnBuZw==\" alt />\n\n<h2 id=\"response-parameters-http-200\">Response Parameters (HTTP 200)</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>meta</td>\n<td>object</td>\n<td>Object containing response metadata</td>\n</tr>\n<tr>\n<td>meta.code</td>\n<td>integer</td>\n<td>Server response code</td>\n</tr>\n<tr>\n<td>meta.status</td>\n<td>string</td>\n<td>Server response status (\"success\" if successful)</td>\n</tr>\n<tr>\n<td>conversations</td>\n<td>array</td>\n<td>Array of conversation objects</td>\n</tr>\n<tr>\n<td>conversations.id</td>\n<td>integer</td>\n<td>Unique conversation ID</td>\n</tr>\n<tr>\n<td>conversations.updated_at</td>\n<td>string (ISO 8601)</td>\n<td>Last update timestamp</td>\n</tr>\n<tr>\n<td>conversations.customer_id</td>\n<td>integer</td>\n<td>Client ID</td>\n</tr>\n<tr>\n<td>conversations.client_phone</td>\n<td>string</td>\n<td>Client phone number (e.g. +995591234567)</td>\n</tr>\n<tr>\n<td>conversations.conversation_type</td>\n<td>string</td>\n<td>Conversation type (e.g. \"whatsapp\")</td>\n</tr>\n<tr>\n<td>conversations.created_at</td>\n<td>string (ISO 8601)</td>\n<td>Creation timestamp</td>\n</tr>\n<tr>\n<td>conversations.notes</td>\n<td>array</td>\n<td>Array of note objects</td>\n</tr>\n<tr>\n<td>conversations.notes.title</td>\n<td>string</td>\n<td>Note title</td>\n</tr>\n<tr>\n<td>conversations.notes.body</td>\n<td>string</td>\n<td>Note content (Markdown supported)</td>\n</tr>\n<tr>\n<td>conversations.tdlib_user_id</td>\n<td>integer</td>\n<td>TDLib user ID</td>\n</tr>\n<tr>\n<td>conversations.tdlib_username</td>\n<td>string</td>\n<td>Telegram username</td>\n</tr>\n<tr>\n<td>conversations.messenger_client_name</td>\n<td>string</td>\n<td>Client name in messenger</td>\n</tr>\n<tr>\n<td>conversations.crm_client_name</td>\n<td>string</td>\n<td>Client name in CRM system</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"error-response-http-422\">Error Response (HTTP 422)</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>meta</td>\n<td>object</td>\n<td>Error metadata</td>\n</tr>\n<tr>\n<td>meta.code</td>\n<td>integer</td>\n<td>Error code (422)</td>\n</tr>\n<tr>\n<td>meta.message</td>\n<td>string</td>\n<td>Error message</td>\n</tr>\n<tr>\n<td>meta.status</td>\n<td>string</td>\n<td>Server response status</td>\n</tr>\n<tr>\n<td>meta.errors</td>\n<td>object</td>\n<td>Validation errors</td>\n</tr>\n<tr>\n<td>meta.errors.notes</td>\n<td>array</td>\n<td>Note validation errors (e.g. [\"Notes must contain maximum 2 parts\"])</td>\n</tr>\n<tr>\n<td>meta.errors.phone</td>\n<td>array</td>\n<td>Phone validation errors (e.g. [\"One of these fields must be present: phone, tdlib_username or tdlib_user_id\"])</td>\n</tr>\n<tr>\n<td>meta.status_id</td>\n<td>null</td>\n<td>Always null</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Notes:</strong></p>\n<ul>\n<li><p><code>meta.errors</code> may contain additional fields for other validation errors</p>\n</li>\n<li><p>All error messages are strings in their respective arrays</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","developer_chat","conversations","notes"],"host":["api","jetapi","io"],"query":[],"variable":[]}},"response":[{"id":"63663368-02c7-4efe-9295-cd3919aab54b","name":"Successful result","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\n    \"phone\": \"995591234567\",\n\n    \"notes\": [\n\n        {\n\n            \"title\": \"Text\",\n\n            \"body\": \"[Hello](https://google.com) Test_\\n  Test _test_.\"\n\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.jetapi.io/api/developer_chat/conversations/notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 200,\n        \"status\": \"success\"\n    },\n    \"conversations\": [\n        {\n            \"id\": 4071161,\n            \"updated_at\": \"2025-05-23T13:54:33\",\n            \"customer_id\": 2003,\n            \"client_phone\": \"995591234567\",\n            \"conversation_type\": \"whatsapp\",\n            \"created_at\": \"2025-05-23T13:38:18\",\n            \"notes\": [\n                {\n                    \"title\": \"Text\",\n                    \"body\": \"[Hello](https://google.com) Test_\\n  Test _test_.\"\n                }\n            ],\n            \"tdlib_user_id\": null,\n            \"tdlib_username\": null,\n            \"messenger_client_name\": null,\n            \"crm_client_name\": null\n        }\n    ]\n}"},{"id":"a9c3160d-b5cd-4ee8-9aac-552707ef3919","name":"Error, 422","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\n    \"phone\": \"995591234567\",\n\n    \"notes\": [\n\n        {\n\n            \"title\": \"Text\"\n\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.jetapi.io/api/developer_chat/conversations/notes"},"code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"notes\": [\n                \"Notes must contain a maximum of 2 parts\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"},{"id":"5695b37a-8eca-438d-9f0c-ea66b25d9988","name":"Error, 422","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\n    \"notes\": [\n\n        {\n\n            \"title\": \"Text\",\n\n            \"body\": \"[Hello](https://google.com) Test_\\n  Test _test_.\"\n\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.jetapi.io/api/developer_chat/conversations/notes"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 422,\n        \"message\": \"Unprocessable Entity\",\n        \"status\": \"fail\",\n        \"errors\": {\n            \"phone\": [\n                \"Phone number One of these fields must be present: [:phone, :tdlib_username, :tdlib_user_id]\"\n            ]\n        },\n        \"status_id\": null\n    }\n}"}],"_postman_id":"daa22725-ac23-42fa-ad6f-3a528445d0a3"},{"name":"Deleting chats from an iframe","id":"d3c6246f-145b-4475-96cb-f4f4d677b82e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"DELETE","header":[],"url":"https://api.jetapi.io/api/developer_chat/","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>Deleting chats in an iframe</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Bearer Token customer</td>\n</tr>\n<tr>\n<td>HTTP method</td>\n<td>DELETE</td>\n</tr>\n<tr>\n<td>URL</td>\n<td><a href=\"https://api.chatpush.ru/api/developer_chat/\">https://api.chatpush.ru/api/developer_chat/</a></td>\n</tr>\n<tr>\n<td>Response options</td>\n<td>Successful with http code 200, unsuccessful with code 401</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Additionally:</strong><br />If the client has no records in our system, the response code is 200, the deleted_messages_count and deleted_conversations_count fields will return values = 0.</p>\n<h2 id=\"description-of-the-response-parameters-with-the-http-200-code\">Description of the response parameters with the HTTP 200 code</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>meta</strong></td>\n<td>object</td>\n<td>An object containing the response metadata.</td>\n</tr>\n<tr>\n<td>meta.code</td>\n<td>integer</td>\n<td>The server response code.</td>\n</tr>\n<tr>\n<td>meta.status</td>\n<td>string</td>\n<td>Server response status (\"success\" in case of success).</td>\n</tr>\n<tr>\n<td>customer_id</td>\n<td>integer</td>\n<td>Client's ID</td>\n</tr>\n<tr>\n<td>deleted_messages_count</td>\n<td>integer</td>\n<td>Number of deleted messages</td>\n</tr>\n<tr>\n<td>deleted_conversations_count</td>\n<td>integer</td>\n<td>Number of deleted dialogs</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-of-the-response-parameters-with-the-http-401-code\">Description of the response parameters with the HTTP 401 code</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Data type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>meta</strong></td>\n<td>object</td>\n<td>An object containing the metadata of the error response.</td>\n</tr>\n<tr>\n<td>meta.code</td>\n<td>integer</td>\n<td>The error code (for example, 422 is an Unprocessable Entity).</td>\n</tr>\n<tr>\n<td>meta.message</td>\n<td>string</td>\n<td>The error message.</td>\n</tr>\n<tr>\n<td>meta.status</td>\n<td>string</td>\n<td>Response status (\"fail\" in case of an error).</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","developer_chat",""],"host":["api","jetapi","io"],"query":[],"variable":[]}},"response":[{"id":"5348a893-a9e1-4942-987d-f475eba73e13","name":"Successful result","originalRequest":{"method":"DELETE","header":[],"url":"https://api.jetapi.io/api/developer_chat/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 401,\n        \"message\": \"Not authorized!\",\n        \"status\": \"fail\"\n    }\n}"},{"id":"a1d855f2-6fca-45a0-b12d-779d750e42cc","name":"Error, 401","originalRequest":{"method":"DELETE","header":[],"url":"https://api.jetapi.io/api/developer_chat/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"meta\": {\n        \"code\": 401,\n        \"message\": \"Not authorized!\",\n        \"status\": \"fail\"\n    }\n}"}],"_postman_id":"d3c6246f-145b-4475-96cb-f4f4d677b82e"}],"id":"ace84f34-9247-4cda-bfd6-176a06134d2c","description":"<p>The link to developer chat iframe is available and is only generated for instance.</p>\n<h2 id=\"authorization\"><strong>Authorization</strong></h2>\n<p>The project uses token-based authorization. You can get the necessary access_token in the corresponding section of your personal account</p>\n<p><strong>All relevant requests in headers must contain the following:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Bearer {access_token}</td>\n</tr>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">curl -X GET https://api.jetapi.io/api/v1/account -H 'Authorization: Bearer {your token}'\n\n</code></pre>\n<p>If these parameters are missing or disabled in all relevant resources, the response will have: HTTP code 401 (Not authorized) and will contain JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\n    \"status\": \"fail\",\n    \"message\": \"Not authorized!\",\n    \"code\": 401\n  }\n}\n\n</code></pre>\n","_postman_id":"ace84f34-9247-4cda-bfd6-176a06134d2c"},{"name":"Developer's office","item":[{"name":"API accesses","item":[],"id":"19990665-030b-4aa7-9e0c-d11d01e71a4a","description":"<p>In the \"Api Accesses\" section you will find the developer's master token (api_key)</p>\n<img src=\"https://content.pstmn.io/80d91c27-0df3-40b3-af07-38b9b2e45058/aW1hZ2UucG5n\" width=\"1996\" height=\"1254\" />","_postman_id":"19990665-030b-4aa7-9e0c-d11d01e71a4a"},{"name":"Instances","item":[],"id":"1e195d5b-4ea7-47f7-a702-ab57e75d8d18","description":"<p>The Instances section displays information about all of the developer's instances.</p>\n<img src=\"https://content.pstmn.io/dbff6630-382e-4730-865c-ee905835150c/aW1hZ2UucG5n\" width=\"2998\" height=\"1544\" />\n\n<p>Field Values:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Auto-renewal</th>\n<th>Controls automatic debiting of the subscription for each instance. The active checkbox indicates that on the debit date (active before) the plan will be debited from the developer's master account balance and the subscription will be extended for a month</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>#</strong></td>\n<td>instance id</td>\n</tr>\n<tr>\n<td><strong>Registration date</strong></td>\n<td>Instance creation date</td>\n</tr>\n<tr>\n<td><strong>Active until</strong></td>\n<td>The expiration date of the active paid subscription of each instance or trial. In case of inactive subscription, the date of the last day of use is grayed out</td>\n</tr>\n<tr>\n<td><strong>Days left</strong></td>\n<td>Days of active subscription or trial remaining</td>\n</tr>\n<tr>\n<td><strong>Phone, email</strong></td>\n<td>Relevant phone number and email of the instance created by the developer</td>\n</tr>\n<tr>\n<td><strong>Routing</strong></td>\n<td>The message dispatch routing set in the instance account, either when created by the API method or manually. Used as a default route for cascading dispatches if dispatch_routing parameter is not specified in the message dispatch method</td>\n</tr>\n<tr>\n<td><strong>Customer_id</strong></td>\n<td>User id in the Jetapi system</td>\n</tr>\n<tr>\n<td><strong>External_id</strong></td>\n<td>Developer Instance id, set when the instance is created for ease of use (optional)</td>\n</tr>\n<tr>\n<td>Status</td>\n<td>The current subscription status of the instance. The inactive “Already activated” button indicates a currently active subscription or test period. The active “Activate” button is present in disabled instances, by pressing it you can activate the subscription. The plan will be debited from the developer's master account balance and the subscription will be extended for one month</td>\n</tr>\n<tr>\n<td><strong>Action</strong></td>\n<td>The \"Log in to the instace\" button allows you to enter the instance without authorization</td>\n</tr>\n</tbody>\n</table>\n</div><p>The search/filtering block allows you to find created developer instances using various parameters.</p>\n<p><strong>Manual Instance Creation.</strong></p>\n<p>Allows you to create developer instances from within the developer cabinet without using API methods</p>\n<img src=\"https://content.pstmn.io/98a399ab-c690-4ad3-ae94-693523555b91/aW1hZ2UucG5n\" width=\"2998\" height=\"1544\" />\n\n<img src=\"https://content.pstmn.io/a3baf2ac-6b4e-45db-9358-4da9324634bf/aW1hZ2UucG5n\" width=\"2076\" height=\"1286\" />\n\n<p>To create it, fill in the fields, select the default instance routing, set or clear the auto-renewal mode and click Save. All fields except External ID are mandatory.<br />The created instance will be assigned to the developer with the trial period and subscription rate set for this developer.</p>\n","_postman_id":"1e195d5b-4ea7-47f7-a702-ab57e75d8d18"},{"name":"Notification","item":[],"id":"c96afc4b-e423-44ab-9294-70eea5c5de65","description":"<p>In this section you can configure various notifications about events related to instances and billing. All notifications are sent to the developer's master account email.</p>\n<img src=\"https://content.pstmn.io/c5d01ff3-905a-4cf5-8f08-b0f39e159133/aW1hZ2UucG5n\" width=\"2076\" height=\"1286\" />\n\n  \n<p><strong>1. Notification of the upcoming instance withdrawal.</strong></p>\n<p>The notification is received on the eve of charging for the subscription of instance(s), if the developer has enough funds on the master account balance to extend the subscription. The notification contains a list of instances with sufficient funds on the developer's balance and auto-renewal is enabled.</p>\n<p><strong>2. Notification of an upcoming shutdown instance without auto renewal.</strong></p>\n<p>The notification is received on the eve of the subscription charge for instance(s) that have auto-renewal disabled and the paid or test period expires.</p>\n<p><strong>3.</strong> <strong>Notification of an upcoming shutdown instance(s) due to lack of funds in the master account.</strong></p>\n<p>A notification is received if the developer has insufficient funds in the master account balance for an upcoming subscription renewal of one or more instances.</p>\n<p><strong>4. Notification of reduction of the master account balance to the set level.</strong></p>\n<p>This setting allows you to set the balance level, when it drops to which we will send a notification.</p>\n","_postman_id":"c96afc4b-e423-44ab-9294-70eea5c5de65"}],"id":"a2b978bd-1b13-4f06-912f-d61d3b13bb25","description":"<p>The developer office provides information about all instances created by the developer, their subscription status, management and manual creation elements.<br />The developer office is accessed from the developer master account</p>\n","_postman_id":"a2b978bd-1b13-4f06-912f-d61d3b13bb25"},{"name":"Additional information","item":[],"id":"c61366ac-5e19-48b0-b08f-d1cdc28d1503","description":"<h1 id=\"callback-of-the-sending-status\">Callback of the sending status</h1>\n<h3 id=\"general-information\">General information</h3>\n<blockquote>\n<p>The mechanics in which the server makes a POST request automatically at the specified callback_url in the delivery request. The server request is made after updating the status of the shipment to the final one (delivered, delivery refused, etc.). The request is repeated every 2 minutes 10 times until it receives the HTTP code 200 in response. </p>\n</blockquote>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>Data type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>delivery</td>\n<td>object</td>\n<td>The sending object</td>\n</tr>\n<tr>\n<td>delivery.sender_name</td>\n<td>string</td>\n<td>The name of the sender</td>\n</tr>\n<tr>\n<td>delivery.id</td>\n<td>integer</td>\n<td>Internal sending ID</td>\n</tr>\n<tr>\n<td>status</td>\n<td>object</td>\n<td>Status Object</td>\n</tr>\n<tr>\n<td>status.status_id</td>\n<td>integer</td>\n<td>Status ID from the “Status List”</td>\n</tr>\n<tr>\n<td>status.description</td>\n<td>string</td>\n<td>Brief description of the status</td>\n</tr>\n<tr>\n<td>status.dispatch_routing</td>\n<td>string</td>\n<td>The channel through which the final status was received. Acceptable values: “sms\", “whatsapp\", “tdlib”, “telegram\", “notify”</td>\n</tr>\n</tbody>\n</table>\n</div><p>JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"delivery\": {\n    \"sender_name\": \"JETAPI.IO\",\n    \"id\": 26,\n    \"status\": {\n      \"status_id\": 26, \n      \"description\": \"some text\", \n      \"dispatch_routing\": \"whatsapp\"\n    }\n  }\n}\n\n</code></pre>\n<h2 id=\"idempotence-of-requests\">Idempotence of requests</h2>\n<p>For some integrations, reliable protection against duplicate requests is required in order to avoid unnecessary shipments and debits of funds.<br />JETAPI provides such protection through the idempotent query mechanism.<br />To implement the mechanism in the available API methods, the IDEMPOTENCY KEY is used, which can be obtained in the personal account.<br /><strong>All relevant requests in headers must contain the following:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>checksum</td>\n<td>{checksum_value}</td>\n</tr>\n</tbody>\n</table>\n</div><p>Generating checksum_value:</p>\n<p>checksum_value is generated by converting parameters using HMAC SHA-256. The parameters should be presented as a string, which consists of parameter values pre-sorted alphabetically by key. The IDEMPOTENCY KEY is used as the secret key when applying <strong>HMAC SHA-256</strong> conversion.</p>\n<p><strong>Example generation checksum_value on Ruby:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">params = {\n   text: \"text\",\n   phone: \"9951233456789\",\n   external_id: \"100\"\n}\nidempotency_key = \"Z5F2idBj\"\nparams_string = params.keys.sort.map{|e| params[e]}.join\n\"10071233456789text\"\ndigest = OpenSSL::Digest.new('sha256')\nchecksum_value = OpenSSL::HMAC.hexdigest(digest, idempotency_key, params_string)\n\"ebb290126ea4302ebca339f5efe419b4a67edfe57e1ea844e7cec85ccef53f23\"\n\n</code></pre>\n<p><strong>Example request by curl:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">curl --location --request POST 'https://api.jetapi.io/api/v1/delivery?text=textsms&amp;phone=9951233456789&amp;external_id=100' \\\n--header 'Authorization: Bearer {your token}'\n--header 'checksum: {checksum_value}'\n\n</code></pre>\n<p>If the checksum value is incorrectly generated, the response will have: HTTP code 400 (Bad Request) and will <em><strong>contain</strong></em> JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\n    \"status\": \"fail\",\n    \"message\": \"Invalid checksum\",\n    \"code\": 400\n  }\n}\n\n</code></pre>\n<p>If the key does not match, the response will have: HTTP code 409 (Conflict) and will contain JSON:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\n    \"status\": \"fail\",\n    \"message\": \"Request with current params has already been received\",\n    \"code\": 409\n  }\n}\n\n</code></pre>\n<h1 id=\"cascading-sending-whatsapp-telegram\">Cascading sending (WhatsApp, Telegram)</h1>\n<p><strong>General information</strong></p>\n<p>Before you start sending using WhatsApp, Telegram you need to link them to your account.</p>\n<p>Next, you can specify a list of channels through which an attempt will be made to deliver a message. The transition to the next channel (an attempt to send through this channel) occurs when the status of the inability to deliver via the current channel is received. Within the framework of the service and API, the parameter that controls this property is called <strong>dispatch routing</strong> or <strong>dispatch routing</strong>.</p>\n<p><strong>Usage</strong></p>\n<ul>\n<li><p>Our service currently provides 5 sending channels - [whatsapp], [tdlib] (personal Telegram), [telegram] (telegram bot), [sms]</p>\n</li>\n<li><p>You can use cascading sending when sending via partner services or via the API. Routing of shipments from partner services is controlled by setting the default value in the personal account, the same value is applied if the <code>dispatch_routing</code> parameter is not specified in the API, invalid or empty.</p>\n</li>\n<li><p>The value that comes in the API parameter <code>dispatch_routing</code> must consist of an array of strings, is filtered for uniqueness and leaves only the available options from the first paragraph.</p>\n</li>\n<li><p>The position of the channel in the list corresponds to the order of attempts to send to this channel. Example: a request to send with the value <code>dispatch_routing: [\"whatsapp\", \"sms\"]</code> is received; first, a request to send via WhatsApp will be made, with a successful response, the delivery cycle will stop, if the message via WhatsApp is not delivered, the service will switch to SMS delivery.</p>\n</li>\n</ul>\n<h1 id=\"list-of-service-statuses\">List of service statuses</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>ID</th>\n<th>Explanation</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>telecommunication_company_error</td>\n<td>0</td>\n<td>Operator error</td>\n<td>final</td>\n<td>Message not delivered. The operator reported an error when sending.</td>\n</tr>\n<tr>\n<td>enroute</td>\n<td>1</td>\n<td>Passed to the operator</td>\n<td>intermediate</td>\n<td>The operator accepted the request to send the message, the delivery status will appear later.</td>\n</tr>\n<tr>\n<td>delivered</td>\n<td>2</td>\n<td>Delivered</td>\n<td>final</td>\n<td>The message has been delivered to the recipient.</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>3</td>\n<td>Expired</td>\n<td>Final</td>\n<td>Message not delivered. Possible reasons: the subscriber was out of the access zone for a long time or his phone ran out of memory for new messages.</td>\n</tr>\n<tr>\n<td>deleted</td>\n<td>4</td>\n<td>Deleted</td>\n<td>final</td>\n<td>Message deleted.</td>\n</tr>\n<tr>\n<td>undeliverable</td>\n<td>5</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>Message could not be delivered. The recipient is offline or has banned receiving messages.</td>\n</tr>\n<tr>\n<td>accepted</td>\n<td>6</td>\n<td>Accepted</td>\n<td>intermediate</td>\n<td>The message is accepted by us for sending and in the process of transmission to the operator.</td>\n</tr>\n<tr>\n<td>unknown</td>\n<td>7</td>\n<td>Failed to deliver</td>\n<td>final</td>\n<td>Message not delivered. The operator reported an unknown error.</td>\n</tr>\n<tr>\n<td>rejected</td>\n<td>8</td>\n<td>Rejected</td>\n<td>final</td>\n<td>The operator rejected the delivery. A possible reason is the client's refusal to receive an SMS.</td>\n</tr>\n<tr>\n<td>internal_server_error</td>\n<td>9</td>\n<td>Server error</td>\n<td>final</td>\n<td>The server could not process the request and shut down. We are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>unhandled_error</td>\n<td>10</td>\n<td>Unhandled error</td>\n<td>final</td>\n<td>Unknown operator error. Our specialists are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>incorrect_number</td>\n<td>11</td>\n<td>Invalid number</td>\n<td>final</td>\n<td>The wrong phone number is specified in the delivery request.</td>\n</tr>\n<tr>\n<td>forbidden</td>\n<td>12</td>\n<td>Forbidden</td>\n<td>final</td>\n<td>One of the restrictions has worked: on sending duplicates, on sending messages too often to one recipient, on numbers from the blacklist, on texts prohibited by the spam filter or names of senders.</td>\n</tr>\n<tr>\n<td>not_enough_money</td>\n<td>13</td>\n<td>Insufficient funds</td>\n<td>final</td>\n<td>Top up your account for sending SMS or mailing in messengers.</td>\n</tr>\n<tr>\n<td>waiting_for_sending</td>\n<td>14</td>\n<td>Waiting to be sent</td>\n<td>intermediate</td>\n<td>The message is in the queue to be sent, it will be sent to the operator soon.</td>\n</tr>\n<tr>\n<td>in_progress</td>\n<td>15</td>\n<td>In processing</td>\n<td>intermediate</td>\n<td>The message is being processed by the system. Its status will be updated in the near future.</td>\n</tr>\n<tr>\n<td>read</td>\n<td>16</td>\n<td>Read</td>\n<td>final</td>\n<td>Message read by recipient.</td>\n</tr>\n<tr>\n<td>too_many_requests</td>\n<td>17</td>\n<td>Request limit exceeded</td>\n<td>final</td>\n<td>Telegram informed us that you sent too many requests, check the status of your phone at the link: <a href=\"https://t.me/SpamBot\">https://t.me/SpamBot </a> .</td>\n</tr>\n<tr>\n<td>cancelled</td>\n<td>18</td>\n<td>Cancelled</td>\n<td>final</td>\n<td>Message delivery has been cancelled.</td>\n</tr>\n<tr>\n<td>smpp_queue_expired</td>\n<td>20</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>moderating</td>\n<td>21</td>\n<td>On moderation</td>\n<td>intermediate</td>\n<td>Message on moderation. According to the results of processing, an email will be sent with an explanation of the decision.</td>\n</tr>\n<tr>\n<td>moderation_declined</td>\n<td>22</td>\n<td>Moderation rejected</td>\n<td>final</td>\n<td>The message did not pass moderation. The reason: look in the mail.</td>\n</tr>\n<tr>\n<td>external_restriction</td>\n<td>25</td>\n<td>Restrictions on sending</td>\n<td>final</td>\n<td>One of the restrictions worked: on sending duplicates, on flooding (sending messages to one recipient too often), on numbers from the blacklist, on texts prohibited by the spam filter or names of senders.</td>\n</tr>\n<tr>\n<td>length_restriction</td>\n<td>26</td>\n<td>Message length limits</td>\n<td>final</td>\n<td>The message was not sent because in settings there is a limit on the length of messages sent.</td>\n</tr>\n<tr>\n<td>kazakhstan_restriction</td>\n<td>27</td>\n<td>Restrictions on sending to Kazakhstan</td>\n<td>final</td>\n<td>Sending promotional messages after 22:00 is prohibited in Kazakhstan.</td>\n</tr>\n<tr>\n<td>operator_restriction</td>\n<td>28</td>\n<td>Operator restriction</td>\n<td>final</td>\n<td>The message is blocked due to operator restriction for you.</td>\n</tr>\n<tr>\n<td>payment_transaction_error</td>\n<td>31</td>\n<td>Payment error</td>\n<td>final</td>\n<td>The server could not make the payment. We are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>subscription_expired</td>\n<td>32</td>\n<td>The subscription to messengers has not been paid</td>\n<td>final</td>\n<td>The message has not been delivered, since you have not paid for access to the message sending service. Top up your account in your personal account to continue sending messages.</td>\n</tr>\n<tr>\n<td>incorrect_delivery_params</td>\n<td>33</td>\n<td>Invalid sending parameters</td>\n<td>final</td>\n<td>The parameters in the delivery request were passed incorrectly. For more information, see [API documentation.]</td>\n</tr>\n<tr>\n<td>foreign_delivery_restricted</td>\n<td>34</td>\n<td>Restrictions on sending</td>\n<td>final</td>\n<td>One of the restrictions worked: on sending duplicates, on flooding (sending messages to one recipient too often), on numbers from the blacklist, on texts prohibited by the spam filter or names of senders.</td>\n</tr>\n<tr>\n<td>rate_limit_error</td>\n<td>35</td>\n<td>The limit of delivery requests has been exceeded</td>\n<td>final</td>\n<td>When more than 1 message per minute is sent to the messenger, they queue up, an error is displayed if the number of messages in the queue is exceeded.</td>\n</tr>\n<tr>\n<td>blocked_by_subscription_expired</td>\n<td>36</td>\n<td>Subscription suspended</td>\n<td>final</td>\n<td>Subscription suspended.</td>\n</tr>\n<tr>\n<td>daily_limit_error</td>\n<td>37</td>\n<td>The daily limit of delivery requests has been exceeded</td>\n<td>final</td>\n<td>The daily limit for sending messages has been exceeded.</td>\n</tr>\n<tr>\n<td>whatsapp_unregistered_number</td>\n<td>44</td>\n<td>WhatsApp unregistered number</td>\n<td>final</td>\n<td>This number is not registered in the messenger.</td>\n</tr>\n<tr>\n<td>whatsapp_session_doesnt_exist</td>\n<td>45</td>\n<td>WhatsApp session not started</td>\n<td>final</td>\n<td>Message not delivered because your WhatsApp is not authorized in the message sending service. To log in, scan the QR code.</td>\n</tr>\n<tr>\n<td>smsc_dos_error</td>\n<td>46</td>\n<td>Waiting to be sent</td>\n<td>intermediate</td>\n<td>Message in the queue to be sent, will be sent to the operator soon.</td>\n</tr>\n<tr>\n<td>smsc_not_enough_money</td>\n<td>47</td>\n<td>Unprocessed error</td>\n<td>final</td>\n<td>Unknown operator error. Our specialists are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>smsc_unavailable_number</td>\n<td>48</td>\n<td>Unavailable number</td>\n<td>final</td>\n<td>The operator could not deliver a message to this phone number.</td>\n</tr>\n<tr>\n<td>aggregate_forbidden</td>\n<td>49</td>\n<td>Prohibited</td>\n<td>final</td>\n<td>Operator's ban on sending from common names.</td>\n</tr>\n<tr>\n<td>tdlib_not_authorized</td>\n<td>50</td>\n<td>Telegram is not authorized</td>\n<td>final</td>\n<td>Sending to Telegram has stopped, you need to log in.</td>\n</tr>\n<tr>\n<td>customer_settings_delivery_time_restriction_cancel</td>\n<td>51</td>\n<td>Restriction on sending time settings</td>\n<td>final</td>\n<td>The message is blocked due to a restriction on sending time settings.</td>\n</tr>\n<tr>\n<td>smpp_connection_error</td>\n<td>69</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_sending_limit_error</td>\n<td>88</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_transmitter_not_allowed_region</td>\n<td>257</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>Failed to deliver the message if it is an SMS: the operator cannot deliver the message. This may be due to the fact that the subscriber is offline or has forbidden receiving messages. If this is a delivery to messengers: the message could not be delivered due to the fact that the sender's phone is offline.</td>\n</tr>\n<tr>\n<td>blacklisted_number_error</td>\n<td>555</td>\n<td>Blacklisted</td>\n<td>final</td>\n<td>Subscriber is blacklisted by the client or the message sending service.</td>\n</tr>\n<tr>\n<td>source_addr_forbidden</td>\n<td>1281</td>\n<td>Name blocked by operator</td>\n<td>final</td>\n<td>Name blocked by operator.</td>\n</tr>\n<tr>\n<td>smpp_num_blacklisted</td>\n<td>1282</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>There is a problem with the recipient's number. It is possible that there was an attempt to send to a direction prohibited for the client (for example, sending to non-Russian numbers may be prohibited) or the recipient himself forbade receiving a certain class of messages.</td>\n</tr>\n<tr>\n<td>template_violation</td>\n<td>1283</td>\n<td>Invalid text or template</td>\n<td>final</td>\n<td>The operator rejected the delivery due to violations of the text parameters.</td>\n</tr>\n<tr>\n<td>smpp_msg_blacklisted</td>\n<td>1284</td>\n<td>Rejected</td>\n<td>final</td>\n<td>The text of the message contains forbidden words.</td>\n</tr>\n<tr>\n<td>smpp_not_enough_money</td>\n<td>1285</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_foreign_delivery_restricted</td>\n<td>1286</td>\n<td>Restrictions on sending</td>\n<td>final</td>\n<td>One of the restrictions worked: on sending duplicates, on flooding (sending messages to one recipient too often), on numbers from the blacklist, on texts prohibited by the spam filter or names of senders.</td>\n</tr>\n<tr>\n<td>smpp_down_msisdn</td>\n<td>1287</td>\n<td>Operator error</td>\n<td>Final</td>\n<td>Operator error. Our specialists are already dealing with this problem.</td>\n</tr>\n<tr>\n<td>smpp_megafon_wrong_provider</td>\n<td>1288</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_beeline_wrong_provider</td>\n<td>1293</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>The operator reported a critical error when trying to send.</td>\n</tr>\n<tr>\n<td>smpp_beeline_partner_blocked</td>\n<td>1299</td>\n<td>Unable to deliver</td>\n<td>final</td>\n<td>Failed to deliver the message if it is an SMS: the operator cannot deliver the message. This may be due to the fact that the subscriber is offline or has forbidden receiving messages. If this is a delivery to messengers: the message could not be delivered due to the fact that the sender's phone is offline.</td>\n</tr>\n<tr>\n<td>smpp_anti_spam_block</td>\n<td>2291</td>\n<td>The subscriber has enabled the spam filter</td>\n<td>final</td>\n<td>The subscriber has forbidden receiving SMS.</td>\n</tr>\n<tr>\n<td>waba_not_authorized</td>\n<td>52</td>\n<td>WABA not authorized</td>\n<td>final</td>\n<td>Sending to WABA has stopped, you need to log in.</td>\n</tr>\n<tr>\n<td>mobile_operator_not_identified</td>\n<td>53</td>\n<td>Mobile operator not identified</td>\n<td>final</td>\n<td>Mobile operator not identified.</td>\n</tr>\n<tr>\n<td>sender_name_error</td>\n<td>38</td>\n<td>Sender name error</td>\n<td>final</td>\n<td>Sender name error.</td>\n</tr>\n<tr>\n<td>safe_sending_limit_exceeded</td>\n<td>56</td>\n<td>Safe sending limit exceeded</td>\n<td>final</td>\n<td>We have stopped sending to avoid the risk of number blocking. As soon as the limit is updated, the system will start sending messages again. With time, you will be able to send more and more.</td>\n</tr>\n<tr>\n<td>too_many_messages_to_new_contacts</td>\n<td>57</td>\n<td>Too many messages to new contacts</td>\n<td>final</td>\n<td>Telegram is currently limiting the number of outgoing messages due to increased demand. But this is temporary, as you have more conversations in Telegram, the limits will expand, and everything will be sent faster.</td>\n</tr>\n<tr>\n<td>user_not_found_in_telegram</td>\n<td>58</td>\n<td>User not found in Telegram</td>\n<td>final</td>\n<td>Telegram does not report the reason: the account may be hidden, not exist in the system, or temporarily restricted.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"list-of-traffic-categories\">List of traffic categories</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Short description</th>\n<th>ID</th>\n<th>Explanation</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>advert</td>\n<td>0</td>\n<td>Advertising</td>\n</tr>\n<tr>\n<td>transaction</td>\n<td>1</td>\n<td>Transactional</td>\n</tr>\n<tr>\n<td>service</td>\n<td>2</td>\n<td>Service</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"c61366ac-5e19-48b0-b08f-d1cdc28d1503"}],"id":"f823b52f-cdf0-4f2f-bcff-7e734a13cb27","description":"<h2 id=\"authorization\"><strong>Authorization</strong></h2>\n<p>The project uses api_key authorization. The required api_key can be obtained from the chat administrator or in the developer's personal account.</p>\n<p>All relevant requests in headers must contain the following:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>{api_key}</td>\n</tr>\n</tbody>\n</table>\n</div><p>If these parameters are missing or invalid, the response will have: HTTP code 401 (Not authorized).</p>\n","_postman_id":"f823b52f-cdf0-4f2f-bcff-7e734a13cb27"}],"event":[{"listen":"prerequest","script":{"id":"d73de180-ffaa-4bf2-99bd-a80311af470d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2b3e9667-a9cb-4aaf-ac82-edd9466798c6","type":"text/javascript","exec":[""]}}],"variable":[{"key":"host","value":"jetapi.io"}]}