{
  "version": "1.0",
  "generated_at": "2026-11-29T20:03:58.741Z",
  "language": "en",
  "canonical_base_url": "https://docs.99digital.co.il/",
  "site_url": "https://docs.99digital.co.il",
  "document_count": 231,
  "documents": [
    {
      "id": "intro",
      "title": "99 Digital API",
      "url": "https://docs.99digital.co.il/",
      "markdown_url": "https://docs.99digital.co.il/markdown/index.md",
      "section": "Overview",
      "section_path": [
        "Overview"
      ],
      "language": "en",
      "description": "The official API documentation of 99 Digital — the WhatsApp, Partners, SMS, Online and Facebook APIs.",
      "headings": [
        "Stay up to date"
      ],
      "keywords": [
        "99 Digital",
        "99digital",
        "API documentation",
        "WhatsApp API",
        "SMS API",
        "Online API",
        "Partners API",
        "Facebook API",
        "Instagram API"
      ],
      "content": "The official API documentation of 99 Digital. Choose the API you are integrating with: API What it covers WhatsApp API Messages, files, interactive messages and templates on WhatsApp, your business profile, webhooks and WhatsApp Calls. Partners API For partners: registering and onboarding WhatsApp numbers, Facebook onboarding, and managing Builder and Online accounts. SMS API Sending SMS to Israeli numbers, delivery status, verification codes and incoming-message webhooks. Online API The Online omni-channel inbox: agents, contacts, conversations, messages, teams, labels, forms and webhooks. Facebook API Posts and comments on your Facebook Pages and Instagram accounts. Stay up to date Every change to this documentation is listed in the Change Log. To get an email whenever it is updated, register for documentation updates."
    },
    {
      "id": "whatsapp-api/overview",
      "title": "WhatsApp API",
      "url": "https://docs.99digital.co.il/whatsapp-api",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Send WhatsApp messages, files, interactive messages and templates from your own systems, and receive events by webhook.",
      "headings": [
        "Base URL",
        "Authentication"
      ],
      "keywords": [
        "WhatsApp API",
        "WhatsApp Business API",
        "WhatsApp Cloud API",
        "send WhatsApp message"
      ],
      "content": "Send WhatsApp messages, files, interactive messages and templates from your own systems, manage your business profile, and receive messages and delivery events by webhook. Base URL https://api.99digital.co.il/whatsapp/v2 Authentication Every request carries your API key in the apiKey header: apiKey:"
    },
    {
      "id": "whatsapp-api/postman-collection",
      "title": "Postman Collection",
      "url": "https://docs.99digital.co.il/whatsapp-api/postman-collection",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/postman-collection.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Download the WhatsApp API Postman collection, with ready-to-send sample requests for every endpoint.",
      "headings": [],
      "keywords": [
        "Postman",
        "Postman collection",
        "WhatsApp API collection",
        "download",
        "import"
      ],
      "content": "Click here to download the WhatsApp API Postman Collection. The Postman collection is always updated with every change to the API, so make sure you always download the latest version. To use it, select Import in Postman and choose the downloaded file, then fill in apiKey and from in the collection's Variables tab."
    },
    {
      "id": "whatsapp-api/send-message",
      "title": "Send Message",
      "url": "https://docs.99digital.co.il/whatsapp-api/send-message",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/send-message.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Send a normal text message to a client who wrote to you within the last 24 hours.",
      "endpoint": {
        "method": "POST",
        "path": "/sendMessage",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendMessage"
      },
      "headings": [
        "Explanation",
        "Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Text",
        "Example: Formatting",
        "Example: Reply to client",
        "Example: Quote own message",
        "Example: To user id",
        "Example: showRequest",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK + showRequest",
        "Example: Reason 3",
        "Example: Reason 4",
        "Example: Reason 5",
        "Example: Reason 7"
      ],
      "keywords": [
        "sendMessage",
        "from",
        "to",
        "body",
        "replyTo",
        "showRequest",
        "status",
        "unique",
        "timestamp",
        "templateTimeLeft",
        "conversationTimeLeft",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendMessage Send a normal text message to a client who wrote to you within the last 24 hours. You can use the \"Send Message\" API in one case only: you reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that more than 24 hours have passed since their last message), you must use the Send Template Message API instead. Sending a contact is not available for a template message, therefore sending a contact message can only be done when replying to a client. If you sent a template message to the client, the client did not reply yet, and you want to send another message to them, you must use the template message again. Explanation Sending a message means sending a normal text message to your clients. Remarks You can only send a message to private people, not groups. The billing is per \"conversation\". A conversation means a 24-hour session between you and the client (this 24-hour conversation session is unrelated to the 24-hour timer for template messages). You can send unlimited messages within the 24-hour session time of a conversation. The 24-hour conversation session starts when you send a message to the client. Every time the client replies, the template message session resets, which means that you don't have to use a template message during this 24-hour template message session. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendMessage Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the message to, in international format, digits only. For example: 972501234567 (a local number such as 0501234567 is rejected with reason 4). or The user id you want to send the message to. For example: IL.1605856887361213 — for a client who hides their number behind a WhatsApp username; it arrives as from id in your webhook. yes body Your message goes here (up to 4096 characters). \\n for a new line text for bold text for italic text for strikethrough replyTo In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 - enable no Response { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"body\": \"your message\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL . Note: OK status doesn't mean the message arrived to the end user. It only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. body The text you sent timestamp Time stamp of the message (Unix time, in seconds) from Your WhatsApp account to The number or the user id that the message was sent to templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. conversationTimeLeft No longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0 . originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 to is either empty or wrong number format 5 body can't be empty 6 WhatsApp error - try again 7 You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead. 8 You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead. 9 Rate limit error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the message to, in international format, digits only (a local number such as 0501234567 is rejected with reason 4) — or the user id you want to send the message to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . body string Yes Your message goes here. Use \\n for a new line, text for bold, text for italic, text for strikethrough and replyTo string No In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. Example: 92E004B950CCEA3C386FCFA2AAF8558A . showRequest integer No You can get back in the response an object with all the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example: Text A plain text message. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Hi! Thanks for writing to us. How can we help today?\" } Example: Formatting New lines and WhatsApp formatting — bold , italic and strikethrough . { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \" Order #4711 confirmed \\n\\nPickup: today until 18:00 \\nAddress: Herzl 1, Tel Aviv\\n Delivery fee 20 NIS Free delivery this week!\" } Example: Reply to client Quote the client's message: replyTo is the unique ID of their message, from your webhook. The client sees it quoted above your reply. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Yes, that item is in stock.\", \"replyTo\": \"92E004B950CCEA3C386FCFA2AAF8558A\" } Example: Quote own message Quote one of your own messages: replyTo is the unique you received when you sent it. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Small correction to the message above: pickup is until 19:00.\", \"replyTo\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\" } Example: To user id For a client who hides their number behind a WhatsApp username: send to the user id from your webhook. { \"from\": \"972771234567\", \"to\": \"IL.1605856887361213\", \"body\": \"Hi! We received your message and will get back to you shortly.\" } Example: showRequest Get the request back in the response, as originalRequest . { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Hi! Thanks for writing to us. How can we help today?\", \"showRequest\": 1 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . body string (one of: OK) The text you sent. timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id that the message was sent to. Example: 972501234567 . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Example: 1200 . conversationTimeLeft integer (one of: OK) Deprecated. This value is no longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0. Example: 0 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.to string (one of: OK) The to you sent — the number or user id of the client. originalRequest.body string (one of: OK) The body you sent — the message text. originalRequest.replyTo string (one of: OK) The replyTo you sent — the unique ID of the quoted message. Left out when you did not quote a message. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong number format; 5 — 'body' can't be empty; 6 — WhatsApp error — try again; 7 — You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead; 8 — You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead; 9 — Rate limit error, try again. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"body\": \"Hi! Thanks for writing to us. How can we help today?\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: OK + showRequest With showRequest set to 1, the response includes originalRequest . { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"body\": \"Hi! Thanks for writing to us. How can we help today?\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"originalRequest\": { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Hi! Thanks for writing to us. How can we help today?\" }, \"reason\": 1 } Example: Reason 3 Wrong apiKey, or the \"from\" number is not registered with us. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 4 'to' is either empty or wrong number format. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 5 'body' can't be empty. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 7 More than 24 hours have passed since the client's last message. Use 'Send Template' instead. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/send-file",
      "title": "Send File",
      "url": "https://docs.99digital.co.il/whatsapp-api/send-file",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/send-file.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Send an image, a video, an audio file or a document to your client, from a link to the file.",
      "endpoint": {
        "method": "POST",
        "path": "/sendFile",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendFile"
      },
      "headings": [
        "Files you can send",
        "More Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Image",
        "Example: Video",
        "Example: Audio",
        "Example: Document",
        "Example: Any other file",
        "Example: localStorage",
        "Example: Reply to client",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 5",
        "Example: Reason 7"
      ],
      "keywords": [
        "sendFile",
        "from",
        "to",
        "body",
        "caption",
        "fileName",
        "replyTo",
        "showRequest",
        "localStorage",
        "status",
        "unique",
        "timestamp",
        "templateTimeLeft",
        "conversationTimeLeft",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendFile Send an image, a video, an audio file or a document to your client, from a link to the file. You can use the \"Send File\" API in one case only: you reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that more than 24 hours have passed since their last message), you must use the Send a Template API instead. Sending a contact is not available as a template message, therefore a contact can only be sent when replying to a client. If you sent a template message to the client, the client did not reply yet, and you want to send them another message, you must use a template message again. Files you can send Media Type Supported Format Maximum file size image png, jpg, jpeg 5 MB video mp4, avi, 3gpp 16 MB audio mp3, ogg (PTT only), amr, aac 16 MB document pdf, doc, docx, xls, xlsx, ppt, pptx, zip, txt, rar 100 MB The media type is taken from the file extension in the link (for a link without one, from the file's content type). Any other file — a gif, for example — is sent as a document. More Remarks You can only send a file to private people, not groups. The billing is per \"conversation\". A conversation means a 24-hour session between you and the client (this 24-hour conversation session is unrelated to the 24-hour timer for template messages). You can send unlimited messages within the 24-hour session of a conversation. The 24-hour conversation session starts when you send a message to the client. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendFile Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the file to, in international format, digits only. For example: 972501234567 (a local number such as 0501234567 is rejected with reason 4). Or: the user id you want to send the file to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). For example: IL.1605856887361213 yes body An https link to the file. For example: https://pubs.usgs.gov/dds/dds-057/ReadMe.pdf . WhatsApp downloads the file from this link, so it must be open to the internet (or see localStorage ). yes caption The caption text that will be sent with the file. Audio files are sent without a caption. no fileName For the document media type, you can specify the file name that will be used. If not provided, the file name is taken from the body URL. Don't add the file extension: it is added from the link. For example: yourFile no replyTo In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 — enable. no localStorage Whenever you provide a body URL, we deliver this URL to WhatsApp, and WhatsApp downloads the file from it in order to deliver it with your message. If for any reason your file link is not accessible to WhatsApp or not open to the internet, you can ask us to fetch the file instead, so that WhatsApp does not use your own link: we download the file and upload it to WhatsApp directly. We don't keep a copy of the file on our servers. Default value is 0 (disable). Enable — 1 . Please note that using this feature may delay the response from our server, due to the operation described above. It does not apply to audio files, and if the upload fails, your link is used. no Response { \"status\": \"OK\", \"unique\": \"65dfd4r4dref34rdfxd34r\", \"body\": \"Your link\", \"caption\": \"The text you sent\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 400, \"conversationTimeLeft\": 0, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL. Note: OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. body The link you sent. caption The caption you sent (empty when you sent none). timestamp Time stamp of the message (Unix time, in seconds). from Your WhatsApp account. to The number or the user id that the message was sent to. templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. conversationTimeLeft Deprecated. This value is no longer in use: the conversation time left is now part of the webhook instead. This parameter will be removed in a future update; until then, it is always 0 . originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason Description 1 Not FAIL, the status is OK. 2 from is missing, or JSON syntax error. 3 Wrong apiKey, or the from number is not registered with us. 4 to is either empty or wrong number format. 5 body is empty or not a valid link. 6 Your WhatsApp number is not set up for sending files. Please contact support. 7 You are trying to send a file but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead. 8 You are trying to send a file for the first time to a contact. Please use 'Send Template' message instead. 10 Not in use anymore. 11 Rate limit error, try again. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the file to, in international format, digits only (a local number such as 0501234567 is rejected with reason 4) — or the user id you want to send the file to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . body string (uri) Yes An https link to the file. WhatsApp downloads the file from this link, so it must be open to the internet — or see localStorage . Example: https://pubs.usgs.gov/dds/dds-057/ReadMe.pdf . caption string No The caption text that will be sent with the file. Audio files are sent without a caption. Example: Here is the photo you asked for 📸 . fileName string No For a document, you can specify the file name the client sees. If not provided, the file name is taken from the body link. Don't add the file extension: it is added from the link. Example: yourFile . replyTo string No In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. Example: 92E004B950CCEA3C386FCFA2AAF8558A . showRequest integer No You can get back in the response an object with all the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . localStorage integer No We deliver your body link to WhatsApp, and WhatsApp downloads the file from it in order to deliver it with your message. If your link is not accessible to WhatsApp or not open to the internet, enable this: we download the file ourselves and upload it to WhatsApp, so WhatsApp doesn't need your link. Please note that using this feature may delay the response from our server. We don't keep a copy of the file: it is passed on to WhatsApp and not stored on our servers. It does not apply to audio files, and if the upload fails, your link is used. One of: 0 — Off — WhatsApp downloads the file from your link; 1 — Enable — we upload the file to WhatsApp for you. Default: 0 . Example: Image An image with a caption. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"https://storage.99digital.online/samples/hello.png\", \"caption\": \"Here is the photo you asked for 📸\" } Example: Video A video with a caption. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"https://storage.99digital.online/samples/meditation.mp4\", \"caption\": \"A short demo of the product\" } Example: Audio An audio file or a voice note. Audio is sent without a caption. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"https://www.example.com/files/voice-note.mp3\" } Example: Document A PDF with the file name the client sees. The extension is added from the link. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"https://storage.99digital.online/samples/headerSample.pdf\", \"fileName\": \"Invoice 4711\", \"caption\": \"Your invoice for August is attached.\" } Example: Any other file An Excel, Word or any other file is sent as a document. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"https://www.example.com/files/price-list.xlsx\", \"fileName\": \"Price list September 2026\" } Example: localStorage We upload the file to WhatsApp for you, for a link that WhatsApp can't reach. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"https://storage.99digital.online/samples/hello.png\", \"caption\": \"Here is the photo you asked for 📸\", \"localStorage\": 1 } Example: Reply to client Quote the client's message: replyTo is the unique ID of their message, from your webhook. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"https://storage.99digital.online/samples/hello.png\", \"caption\": \"This one?\", \"replyTo\": \"92E004B950CCEA3C386FCFA2AAF8558A\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . body string (one of: OK) The link you sent. caption string (one of: OK) The caption you sent (empty when you sent none). timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id that the message was sent to. Example: 972501234567 . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Example: 1200 . conversationTimeLeft integer (one of: OK) Deprecated. This value is no longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0. Example: 0 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.to string (one of: OK) The to you sent — the number or user id of the client. originalRequest.body string (one of: OK) The body you sent — the link to the file. originalRequest.caption string (one of: OK) The caption you sent. Left out when you sent no caption. originalRequest.replyTo string (one of: OK) The replyTo you sent — the unique ID of the quoted message. Left out when you did not quote a message. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong number format; 5 — 'body' is empty or not a valid link; 6 — Your WhatsApp number is not set up for sending files. Please contact support; 7 — You are trying to send a file but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead; 8 — You are trying to send a file for the first time to a contact. Please use 'Send Template' message instead; 11 — Rate limit error, try again. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"body\": \"https://storage.99digital.online/samples/hello.png\", \"caption\": \"Here is the photo you asked for 📸\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: Reason 5 'body' is empty or not a valid link. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 7 More than 24 hours have passed since the client's last message. Use 'Send Template' instead. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/send-location",
      "title": "Send Location",
      "url": "https://docs.99digital.co.il/whatsapp-api/send-location",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/send-location.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Send a location pin to your client, by latitude and longitude, with an optional name or address.",
      "endpoint": {
        "method": "POST",
        "path": "/sendLocation",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendLocation"
      },
      "headings": [
        "More Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Location",
        "Example: Without caption",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 5",
        "Example: Reason 7"
      ],
      "keywords": [
        "sendLocation",
        "from",
        "to",
        "lat",
        "lng",
        "caption",
        "replyTo",
        "showRequest",
        "status",
        "unique",
        "timestamp",
        "templateTimeLeft",
        "conversationTimeLeft",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendLocation Send a location pin to your client, by latitude and longitude, with an optional name or address. You can use the \"Send Location\" API in one case only: you reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that more than 24 hours have passed since their last message), you must use the Send a Template API instead. Sending a contact is not available as a template message, therefore a contact can only be sent when replying to a client. If you sent a template message to the client, the client did not reply yet, and you want to send them another message, you must use a template message again. More Remarks You can only send a location to private people, not groups. The billing is per \"conversation\". A conversation means a 24-hour session between you and the client (this 24-hour conversation session is unrelated to the 24-hour timer for template messages). You can send unlimited messages within the 24-hour session of a conversation. The 24-hour conversation session starts when you send a message to the client. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendLocation Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the location to, in international format, digits only. For example: 972501234567 (a local number such as 0501234567 is rejected with reason 4). Or: the user id you want to send the location to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). For example: IL.1605856887361213 yes lat Latitude of the location. For example: \"37.422\" yes lng Longitude of the location. For example: \"-122.084\" yes caption The text that will be shown next to the location of the lat/lng. Usually this is the address or the place name. For example: \"Big Ben, London\" no replyTo In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 — enable. no Response { \"status\": \"OK\", \"unique\": \"65dfd4r4dref34rdfxd34r\", \"lat\": \"37.422\", \"lng\": \"-122.084\", \"caption\": \"Big Ben, London\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 400, \"conversationTimeLeft\": 0, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL. Note: OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. lat The latitude, as you sent it. lng The longitude, as you sent it. caption The caption you sent (empty when you sent none). timestamp Time stamp of the message (Unix time, in seconds). from Your WhatsApp account. to The number or the user id that the message was sent to. templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. conversationTimeLeft Deprecated. This value is no longer in use: the conversation time left is now part of the webhook instead. This parameter will be removed in a future update; until then, it is always 0 . originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason Description 1 Not FAIL, the status is OK. 2 from is missing, or JSON syntax error. 3 Wrong apiKey, or the from number is not registered with us. 4 to is either empty or wrong number format. 5 lat or lng is missing. 6 WhatsApp error — try again. 7 You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead. 8 You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead. 9 Rate limit error, try again. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the location to, in international format, digits only (a local number such as 0501234567 is rejected with reason 4) — or the user id you want to send the location to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . lat string Yes Latitude of the location. Example: 37.422 . lng string Yes Longitude of the location. Example: -122.084 . caption string No The text shown next to the location pin — usually the place name or the address. Example: Big Ben, London . replyTo string No In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. Example: 92E004B950CCEA3C386FCFA2AAF8558A . showRequest integer No You can get back in the response an object with all the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example: Location A location pin with the place name. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"lat\": \"32.0853\", \"lng\": \"34.7818\", \"caption\": \"Our store - Azrieli Center, Tel Aviv\" } Example: Without caption Only the pin. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"lat\": \"51.5007\", \"lng\": \"-0.1246\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . lat string (one of: OK) The latitude, as you sent it. lng string (one of: OK) The longitude, as you sent it. caption string (one of: OK) The caption you sent (empty when you sent none). timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id that the message was sent to. Example: 972501234567 . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Example: 1200 . conversationTimeLeft integer (one of: OK) Deprecated. This value is no longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0. Example: 0 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.to string (one of: OK) The to you sent — the number or user id of the client. originalRequest.lat string (one of: OK) The lat you sent — the latitude of the location. originalRequest.lng string (one of: OK) The lng you sent — the longitude of the location. originalRequest.caption string (one of: OK) The caption you sent — the place name or address. Left out when you sent no caption. originalRequest.replyTo string (one of: OK) The replyTo you sent — the unique ID of the quoted message. Left out when you did not quote a message. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong number format; 5 — 'lat' or 'lng' is missing; 6 — WhatsApp error — try again; 7 — You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead; 8 — You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead; 9 — Rate limit error, try again. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"lat\": \"32.0853\", \"lng\": \"34.7818\", \"caption\": \"Our store - Azrieli Center, Tel Aviv\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: Reason 5 'lat' or 'lng' is missing. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 7 More than 24 hours have passed since the client's last message. Use 'Send Template' instead. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/request-location",
      "title": "Request Location",
      "url": "https://docs.99digital.co.il/whatsapp-api/request-location",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/request-location.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Send your client a message with a button that asks them to share their location.",
      "endpoint": {
        "method": "POST",
        "path": "/requestLocation",
        "url": "https://api.99digital.co.il/whatsapp/v2/requestLocation"
      },
      "headings": [
        "Explanation",
        "Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Request location",
        "Example: Reply to client",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 5",
        "Example: Reason 7"
      ],
      "keywords": [
        "requestLocation",
        "from",
        "to",
        "body",
        "replyTo",
        "showRequest",
        "status",
        "unique",
        "timestamp",
        "templateTimeLeft",
        "conversationTimeLeft",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/requestLocation Send your client a message with a button that asks them to share their location. You can use the \"Request Location\" API in one case only: you reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that more than 24 hours have passed since their last message), you must use the Send a Template API instead. Sending a contact is not available as a template message, therefore a contact can only be sent when replying to a client. If you sent a template message to the client, the client did not reply yet, and you want to send them another message, you must use a template message again. Explanation Requesting a location means you send a message to your client which asks them to share their location. After the client clicks the location button and shares their location, the location data will be sent as the location type inside the webhook (Incoming Messages). Remarks You can use the \"Request Location\" API in one case only: for a reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that 24 hours since the client's last message have passed), you must use the \"Send Template Message\" API instead. If you sent a template message to the client, the client did not reply yet, and you want to send them another message, you must use a template message again. You can only send a message to private people, not groups. The billing is per \"conversation\". A conversation means a 24-hour session between you and the client (this 24-hour conversation session is unrelated to the 24-hour timer for template messages). You can send unlimited messages within the 24-hour session of a conversation. The 24-hour conversation session starts when you send a message to the client. Every time the client replies, the template message session resets, which means that you don't have to use a template message during this 24-hour template message session. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/requestLocation Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the message to, in international format, digits only. For example: 972501234567 (a local number such as 0501234567 is rejected with reason 4). Or: the user id you want to send the message to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). For example: IL.1605856887361213 yes body Your message goes here — the text shown above the location button. Use \\n for a new line, text for bold, text for italic and text for strikethrough. yes replyTo In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 — enable. no Response { \"status\": \"OK\", \"unique\": \"d1e113e0-a8e3-4c8f-8958-rx83zj39\", \"body\": \"Please click to provide your location\", \"timestamp\": 1705225312, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1372, \"conversationTimeLeft\": 0, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL. Note: OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. body The text you sent. timestamp Time stamp of the message (Unix time, in seconds). from Your WhatsApp account. to The number or the user id that the message was sent to. templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. conversationTimeLeft Deprecated. This value is no longer in use: the conversation time left is now part of the webhook instead. This parameter will be removed in a future update; until then, it is always 0 . originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason Description 1 Not FAIL, the status is OK. 2 from is missing, or JSON syntax error. 3 Wrong apiKey, or the from number is not registered with us. 4 to is either empty or wrong number format. 5 body is empty or wrong. 6 WhatsApp error — try again. 7 You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead. 8 You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead. 9 Rate limit error, try again. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the message to, in international format, digits only (a local number such as 0501234567 is rejected with reason 4) — or the user id you want to send the message to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . body string Yes The message shown above the location button. Use \\n for a new line, text for bold, text for italic and text for strikethrough. Example: Please click to provide your location . replyTo string No In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. Example: 92E004B950CCEA3C386FCFA2AAF8558A . showRequest integer No You can get back in the response an object with all the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example: Request location The client gets your message with a button to share their location. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Where should we deliver? Tap the button to share your location.\" } Example: Reply to client Quote the client's message: replyTo is the unique ID of their message, from your webhook. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Sure! Tap the button to share your location and we'll send the nearest branch.\", \"replyTo\": \"92E004B950CCEA3C386FCFA2AAF8558A\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . body string (one of: OK) The text you sent. timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id that the message was sent to. Example: 972501234567 . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Example: 1200 . conversationTimeLeft integer (one of: OK) Deprecated. This value is no longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0. Example: 0 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.to string (one of: OK) The to you sent — the number or user id of the client. originalRequest.body string (one of: OK) The body you sent — the message shown above the location button. originalRequest.replyTo string (one of: OK) The replyTo you sent — the unique ID of the quoted message. Left out when you did not quote a message. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong number format; 5 — 'body' is empty or wrong; 6 — WhatsApp error — try again; 7 — You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead; 8 — You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead; 9 — Rate limit error, try again. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"body\": \"Where should we deliver? Tap the button to share your location.\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: Reason 5 'body' is empty or wrong. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 7 More than 24 hours have passed since the client's last message. Use 'Send Template' instead. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/send-buttons",
      "title": "Send Buttons",
      "url": "https://docs.99digital.co.il/whatsapp-api/send-buttons",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/send-buttons.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Send a message with up to 3 reply buttons, or one external button that opens a website, starts a phone call or opens an email.",
      "endpoint": {
        "method": "POST",
        "path": "/sendButtons",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendButtons"
      },
      "headings": [
        "Explanation",
        "Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Reply buttons",
        "Example: Image header",
        "Example: Video header",
        "Example: Document header",
        "Example: Website button",
        "Example: Call button",
        "Example: Email button",
        "Example: localStorage",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — external button",
        "Example: Reason 7",
        "Example: Reason 11",
        "Example: Reason 16"
      ],
      "keywords": [
        "sendButtons",
        "from",
        "to",
        "header",
        "headerURL",
        "body",
        "footer",
        "fileName",
        "button1",
        "button2",
        "button3",
        "button1_id",
        "button2_id",
        "button3_id",
        "buttonExternal",
        "replyTo",
        "showRequest",
        "localStorage",
        "status",
        "unique",
        "timestamp",
        "templateTimeLeft",
        "conversationTimeLeft",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendButtons Send a message with up to 3 reply buttons, or one external button that opens a website, starts a phone call or opens an email. You can use the \"Send Buttons\" API in one case only: you reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that more than 24 hours have passed since their last message), you must use the Send Template Message API instead. Sending a contact is not available for a template message, therefore sending a contact message can only be done when replying to a client. If you sent a template message to the client, the client did not reply yet, and you want to send another message to them, you must use the template message again. Explanation The Send Buttons API allows you to send a message that includes up to 3 buttons OR an external button: website / phone / email. Remarks You can use the \"Send Buttons\" API in one case only: to reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that 24 hours have passed since the client's last message), you must use the \"Send Template Message\" API instead. If you sent a template message to the client, the client did not reply yet, and you want to send another message to them, you must use the template message again. You can only send a message to private people, not groups. The billing is per \"conversation\". A conversation means a 24-hour session between you and the client (this 24-hour conversation session is unrelated to the 24-hour timer for template messages). You can send unlimited messages within the 24-hour session time of a conversation. The 24-hour conversation session starts when you send a message to the client. Every time the client replies, the template message session resets, which means that you don't have to use a template message during this 24-hour template message session. When the end user clicks on the button, you will get it in the webhook as type \"button\", and the content of the button will be inside \"body\". External button means that instead of the normal 3 buttons, you can initiate an action to open a website, a phone call or an email. If buttonExternal is in use, button1 will be the text for the button, while button2 and button3 will be ignored. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendButtons Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the message to, in international format, digits only. For example: 972501234567 (a local number such as 0501234567 is rejected with reason 4). or The user id you want to send the message to. For example: IL.1605856887361213 — for a client who hides their number behind a WhatsApp username; it arrives as from id in your webhook. yes header Header allows you to choose extra content as media: 1 - none 2 - image 3 - video 4 - document yes headerURL If you choose image / video / document as a header, here you must provide an https URL of the file to be sent with the buttons: image - jpg / png (up to 5 MB) video - mp4 (up to 16 MB) document - pdf (up to 100 MB) Only if header is 2 / 3 / 4 body Your message goes here. \\n for a new line text for bold text for italic text for strikethrough yes footer You can provide a footer text that will be at the bottom of the message. \\n for a new line text for bold text for italic text for strikethrough Maximum 60 characters. no fileName When the header is a document ( header = 4), you can specify the file name that will arrive. If not provided, the file name is taken from the headerURL . The file extension is not required here: it is added from the link. Example: yourFile no button1 The text of button 1. Maximum 20 characters. With buttonExternal , this is the text of the external button (no emoji). yes button2 The text of button 2. Maximum 20 characters. no button3 The text of button 3. Maximum 20 characters. no button1 id The id of button1 . You can set a unique id that will be returned on the webhook. Letters, digits, and - . Maximum 256 characters. Example: my button 1 no If not set, the default is 1 button2 id The id of button2 . You can set a unique id that will be returned on the webhook. Letters, digits, and - . Maximum 256 characters. Example: my button 2 no If not set, the default is 2 button3 id The id of button3 . You can set a unique id that will be returned on the webhook. Letters, digits, and - . Maximum 256 characters. Example: my button 3 no If not set, the default is 3 buttonExternal In case you want button1 to be an external button, here is the place you put the value — see the table below. button1 is the text for the button; button2 and button3 are ignored. no replyTo In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 - enable no localStorage Whenever you provide headerURL , we deliver this URL to WhatsApp. They download the link in order to deliver it with your message. If for any reason your file link is not accessible by WhatsApp and open to the internet, you can ask us to download the file and upload it to WhatsApp ourselves, so WhatsApp does not need your own link. If the upload fails, your link is used. Default value is 0 (disable) 1 - enable Please note that using this feature may delay the response from our server, due to the operation described above. localStorage does not work when buttonExternal is provided: your link is used instead. no buttonExternal values: Input Example What will happen? phone number (numbers only) 972501234567 The system will create a button that will initiate a phone call link (must start with http or https ) https://www.google.com The system will create a button that will open the website email address john@example.com The system will create a button that will open the default email app to send an email anything else abcdefg Will be rejected with error code 14 Response { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"header\": 1, \"body\": \"your body\", \"footer\": \"your footer\", \"button1\": \"button 1 text\", \"button2\": \"button 2 text\", \"button3\": \"button 3 text\", \"buttonExternal\": \"\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 400, \"conversationTimeLeft\": 0, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL . Note: OK status doesn't mean the message arrived to the end user. It only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. header Your header selection (1 / 2 / 3 / 4) body The text you sent footer Footer text (empty when you sent none) button1 Text for button 1 button2 Text for button 2 (empty when unused) button3 Text for button 3 (empty when unused) buttonExternal The external button value you sent (empty when unused) timestamp Time stamp of the message (Unix time, in seconds) from Your WhatsApp account to The number or the user id that the message was sent to templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. conversationTimeLeft No longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0 . originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 to is either empty or wrong number format 5 body can't be empty 6 Your WhatsApp number is not set up for sending. Please contact support. 7 You are trying to send a message but it has been more than 24 hours since the client's last message. Please use Send Template instead. 8 You are trying to send a message for the first time to a contact. Please use Send Template Message instead. 9 header is mandatory (and must be 1, 2, 3 or 4) 10 footer is too long 11 button1 is missing or too long 12 button2 or button3 is too long 13 headerURL is mandatory for a media header 14 buttonExternal has invalid input 15 Rate limit error, try again 16 button1 id , button2 id or button3 id is invalid, wrong, not unique or exceeded the maximum length. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the message to, in international format, digits only (a local number such as 0501234567 is rejected with reason 4) — or the user id you want to send the message to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . header integer Yes Header allows you to choose extra content as media, shown above the message. One of: 1 — None; 2 — Image; 3 — Video; 4 — Document. Example: 1 . headerURL string (uri) No Required when header is 2, 3 or 4: an https link to the file to be sent with the buttons. Image — jpg / png (up to 5 MB); video — mp4 (up to 16 MB); document — pdf (up to 100 MB). Example: https://storage.99digital.online/samples/hello.png . body string Yes Your message goes here. Use \\n for a new line, text for bold, text for italic and text for strikethrough. Example: How can we help you today? . footer string No You can provide a footer text that will be at the bottom of the message. Use \\n for a new line, text for bold, text for italic and text for strikethrough. Maximum 60 characters. Max length: 60. Example: Reply anytime, we are here 08:00-20:00 . fileName string No When the header is a document ( header = 4), you can specify the file name the client sees. If not provided, the file name is taken from the headerURL . The file extension is not required here: it is added from the link. Example: yourFile . button1 string Yes The text of button 1. Maximum 20 characters. With buttonExternal , this is the text of the external button (no emoji). Max length: 20. Example: Track my order . button2 string No The text of button 2. Maximum 20 characters. Max length: 20. Example: Talk to an agent . button3 string No The text of button 3. Maximum 20 characters. Max length: 20. Example: Opening hours . button1 id string No The id of button1 . You can set a unique id that will be returned on the webhook. Letters, digits, and - , maximum 256 characters. If not set, the default is 1 . Default: 1 . Max length: 256. Example: my button 1 . button2 id string No The id of button2 . You can set a unique id that will be returned on the webhook. Letters, digits, and - , maximum 256 characters. If not set, the default is 2 . Default: 2 . Max length: 256. Example: my button 2 . button3 id string No The id of button3 . You can set a unique id that will be returned on the webhook. Letters, digits, and - , maximum 256 characters. If not set, the default is 3 . Default: 3 . Max length: 256. Example: my button 3 . buttonExternal string No In case you want button1 to be an external button, here is the place you put the value. button1 is the text for the button; button2 and button3 are ignored. - A phone number, digits only ( 972501234567 ) — a button that starts a phone call. - A link starting with http or https ( https://www.google.com ) — a button that opens the website. - An email address ( john@example.com ) — a button that opens the email app to send an email. Anything else is rejected with reason 14. Example: https://www.google.com . replyTo string No In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. Example: 92E004B950CCEA3C386FCFA2AAF8558A . showRequest integer No You can get back in the response an object with all the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . localStorage integer No Whenever you provide headerURL , we deliver this URL to WhatsApp. They download the link in order to deliver it with your message. If for any reason your file link is not accessible by WhatsApp and open to the internet, you can ask us to download the file and upload it to WhatsApp ourselves, so WhatsApp does not need your own link. If the upload fails, your link is used. Please note that using this feature may delay the response from our server, due to the operation described above. localStorage does not work when buttonExternal is provided: your link is used instead. One of: 0 — Off — WhatsApp downloads the file from your link; 1 — Enable — we upload the file to WhatsApp for you. Default: 0 . Example: Reply buttons Three buttons with your own ids. The id of the button the client clicks comes back in the webhook. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": 1, \"body\": \"How can we help you today?\", \"footer\": \"Reply anytime, we are here 08:00-20:00\", \"button1\": \"Track my order\", \"button1 id\": \"TRACK ORDER\", \"button2\": \"Talk to an agent\", \"button2 id\": \"AGENT\", \"button3\": \"Opening hours\", \"button3 id\": \"HOURS\" } Example: Image header An image above the message, with two buttons. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": 2, \"headerURL\": \"https://storage.99digital.online/samples/hello.png\", \"body\": \"The item you asked about is back in stock.\", \"button1\": \"Reserve it\", \"button1 id\": \"RESERVE\", \"button2\": \"Show me more\", \"button2 id\": \"MORE\" } Example: Video header A video above the message. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": 3, \"headerURL\": \"https://storage.99digital.online/samples/meditation.mp4\", \"body\": \"Here is how to set up your new device. Did it work?\", \"button1\": \"Yes, all good\", \"button1 id\": \"OK\", \"button2\": \"I need help\", \"button2 id\": \"HELP\" } Example: Document header A PDF above the message, with the file name the client sees. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": 4, \"headerURL\": \"https://storage.99digital.online/samples/headerSample.pdf\", \"fileName\": \"Quote 2026-0917\", \"body\": \"Here is your quote. Would you like to approve it?\", \"footer\": \"Prices include VAT\", \"button1\": \"Approve quote\", \"button1 id\": \"APPROVE\", \"button2\": \"Request changes\", \"button2 id\": \"CHANGES\" } Example: Website button One external button that opens a website. button1 is its text. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": 2, \"headerURL\": \"https://storage.99digital.online/samples/hello.png\", \"body\": \"Your personal offer is ready.\", \"button1\": \"Open my offer\", \"buttonExternal\": \"https://www.example.com/offer/4711\" } Example: Call button One external button that starts a phone call. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": 1, \"body\": \"Prefer to talk? Our team is available until 20:00.\", \"button1\": \"Call us\", \"buttonExternal\": \"97231234567\" } Example: Email button One external button that opens the email app. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": 1, \"body\": \"Questions about your invoice? Write to our billing team.\", \"button1\": \"Email billing\", \"buttonExternal\": \"billing@example.com\" } Example: localStorage We upload the header image to WhatsApp for you, for a link that WhatsApp can't reach. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": 2, \"headerURL\": \"https://storage.99digital.online/samples/hello.png\", \"body\": \"Is this the item you meant?\", \"button1\": \"Yes\", \"button1 id\": \"YES\", \"button2\": \"No\", \"button2 id\": \"NO\", \"localStorage\": 1 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . header integer (one of: OK) Your header selection (1/2/3/4). Example: 1 . body string (one of: OK) The text you sent. footer string (one of: OK) Footer text (empty when you sent none). button1 string (one of: OK) Text for button 1. button2 string (one of: OK) Text for button 2 (empty when unused). button3 string (one of: OK) Text for button 3 (empty when unused). buttonExternal string (one of: OK) The external button value you sent (empty when unused). timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id that the message was sent to. Example: 972501234567 . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Example: 1200 . conversationTimeLeft integer (one of: OK) Deprecated. This value is no longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0. Example: 0 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.to string (one of: OK) The to you sent — the number or user id of the client. originalRequest.header integer (one of: OK) The header you sent — 1 none, 2 image, 3 video, 4 document. originalRequest.headerURL string (one of: OK) The headerURL you sent — the link to the header file. originalRequest.body string (one of: OK) The body you sent — the message text. originalRequest.footer string (one of: OK) The footer you sent — the footer text. originalRequest.button1 string (one of: OK) The button1 you sent — the text of button 1, or of the external button. originalRequest.button2 string (one of: OK) The button2 you sent — the text of button 2. originalRequest.button3 string (one of: OK) The button3 you sent — the text of button 3. originalRequest.buttonExternal string (one of: OK) The buttonExternal you sent — the phone number, link or email of the external button. originalRequest.replyTo string (one of: OK) The replyTo you sent — the unique ID of the quoted message. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong number format; 5 — 'body' can't be empty; 6 — Your WhatsApp number is not set up for sending. Please contact support; 7 — You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead; 8 — You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead; 9 — 'header' is missing or not 1, 2, 3 or 4; 10 — 'footer' is too long; 11 — 'button1' is missing or too long; 12 — 'button2' or 'button3' is too long; 13 — 'headerURL' is mandatory for a media 'header'; 14 — 'buttonExternal' has invalid input; 15 — Rate limit error, try again; 16 — 'button1 id', 'button2 id' or 'button3 id' is invalid, not unique or longer than the maximum length. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"header\": 1, \"body\": \"How can we help you today?\", \"footer\": \"Reply anytime, we are here 08:00-20:00\", \"button1\": \"Track my order\", \"button2\": \"Talk to an agent\", \"button3\": \"Opening hours\", \"buttonExternal\": \"\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: OK — external button With buttonExternal , the unused buttons come back empty. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"header\": 1, \"body\": \"Prefer to talk? Our team is available until 20:00.\", \"footer\": \"\", \"button1\": \"Call us\", \"button2\": \"\", \"button3\": \"\", \"buttonExternal\": \"97231234567\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: Reason 7 More than 24 hours have passed since the client's last message. Use 'Send Template' instead. { \"status\": \"FAIL\", \"reason\": 7 } Example: Reason 11 'button1' is missing or too long. { \"status\": \"FAIL\", \"reason\": 11 } Example: Reason 16 Two buttons have the same id. { \"status\": \"FAIL\", \"reason\": 16 }"
    },
    {
      "id": "whatsapp-api/send-list",
      "title": "Send List",
      "url": "https://docs.99digital.co.il/whatsapp-api/send-list",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/send-list.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Send a message with a list of up to 10 choices that the client opens with a button and picks from.",
      "endpoint": {
        "method": "POST",
        "path": "/sendList",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendList"
      },
      "headings": [
        "Explanation",
        "Remarks",
        "Settings",
        "Body",
        "Sample request",
        "Sample screenshot of the message",
        "Sample screenshot after the \"Click to open\"",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: List with ids",
        "Example: 10 items",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 7",
        "Example: Reason 11"
      ],
      "keywords": [
        "sendList",
        "from",
        "to",
        "header",
        "body",
        "footer",
        "buttonText",
        "itemTitle1",
        "itemDescription1",
        "itemId1",
        "replyTo",
        "showRequest",
        "status",
        "unique",
        "timestamp",
        "templateTimeLeft",
        "conversationTimeLeft",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendList Send a message with a list of up to 10 choices that the client opens with a button and picks from. You can use the \"Send List\" API in one case only: you reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that more than 24 hours have passed since their last message), you must use the Send Template Message API instead. Sending a contact is not available for a template message, therefore sending a contact message can only be done when replying to a client. If you sent a template message to the client, the client did not reply yet, and you want to send another message to them, you must use the template message again. Explanation The Send List API allows you to send a message that includes a list of up to 10 choices. Remarks You can use the \"Send List\" API in one case only: to reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that 24 hours have passed since the client's last message), you must use the \"Send Template Message\" API instead. If you sent a template message to the client, the client did not reply yet, and you want to send another message to them, you must use the template message again. You can only send a message to private people, not groups. The billing is per \"conversation\". A conversation means a 24-hour session between you and the client (this 24-hour conversation session is unrelated to the 24-hour timer for template messages). You can send unlimited messages within the 24-hour session time of a conversation. The 24-hour conversation session starts when you send a message to the client. Every time the client replies, the template message session resets, which means that you don't have to use a template message during this 24-hour template message session. When the end user clicks on any of the list options, you will get it in the webhook as type \"list\", and the content of the option will be inside \"body\". Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendList Method JSON via POST Key Value apiKey Your API key for the service Body Each list item has a number from 1 to 10 in its field names: itemTitle1 , itemDescription1 and itemId1 describe the first item, itemTitle2 and so on the second, up to itemTitle10 . Parameter Description / Example Mandatory Max length from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the message to, in international format, digits only. For example: 972501234567 (a local number such as 0501234567 is rejected with reason 4). or The user id you want to send the message to. For example: IL.1605856887361213 — for a client who hides their number behind a WhatsApp username; it arrives as from id in your webhook. yes header The title of the list box. You can use emoji. no 60 body The body text of the list box. It is usually used to describe what this list is about. \\n for a new line text for bold text for italic text for strikethrough yes 1024 footer Some footer message, shown at the bottom of the list box no 60 buttonText The text of the button that will appear on the list box. You can use emoji. yes 20 itemTitle1-10 List of items: minimum is 1, maximum is 10. At least 1 item is mandatory ( itemTitle1 ) 24 itemDescription1-10 Extra description for the item. It will show below the title. no 72 itemId1-10 You can provide an id for each item you provide in the list. This id will be returned in the webhook. For example: itemId1 = \"id for sales\" itemId2 = \"id for support\" It must be unique for each item. Letters, digits, and - . itemID1 (capital D) works too. no If not provided, 1-10 will be set 200 replyTo In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 - enable no 1 Sample request { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": \"This is header\", \"body\": \"this is body\", \"footer\": \"Footer goes here\", \"buttonText\": \"Click to open\", \"itemTitle1\": \"Customer service\", \"itemDescription1\": \"Choose me for customer service\", \"itemTitle2\": \"Sales\", \"itemDescription2\": \"Sales enquiries? click here\", \"itemTitle3\": \"Support\" } Sample screenshot of the message A WhatsApp list message: header, body, footer and the \"Click to open\" button Sample screenshot after the \"Click to open\" The list opened, showing the items with their titles and descriptions Response { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"header\": \"your header\", \"body\": \"your body\", \"footer\": \"your footer\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 400, \"conversationTimeLeft\": 0, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL . Note: OK status doesn't mean the message arrived to the end user. It only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. header Your header text (empty when you sent none) body The text you sent footer Footer text (empty when you sent none) timestamp Time stamp of the message (Unix time, in seconds) from Your WhatsApp account to The number or the user id that the message was sent to templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. conversationTimeLeft No longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0 . originalRequest Original request object, if you enabled this in showRequest when sending the request: from , to , header , footer , buttonText , replyTo and the item titles and descriptions. Empty fields are left out. reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 to is either empty or wrong number format 5 body can't be empty 6 Your WhatsApp number is not set up for sending. Please contact support. 7 You are trying to send a message but it has been more than 24 hours since the client's last message. Please use Send Template instead. 8 You are trying to send a message for the first time to a contact. Please use Send Template Message instead. 9 header is too long 10 footer is too long 11 buttonText is mandatory and can be up to 20 characters 12 itemTitle1 is mandatory, and can be up to 24 characters 13 One (or more) of your itemTitle is more than 24 characters 14 One (or more) of your itemDescription is more than 72 characters 15 Rate limit error, try again 16 itemId1-10 is not valid, not unique, exceeded the maximum length, or was given for an item without a title Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the message to, in international format, digits only (a local number such as 0501234567 is rejected with reason 4) — or the user id you want to send the message to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . header string No The title of the list box. You can use emoji. Max length: 60. Example: This is header . body string Yes The body text of the list box, usually used to describe what this list is about. Use \\n for a new line, text for bold, text for italic and text for strikethrough. Max length: 1024. Example: this is body . footer string No Some footer message, shown at the bottom of the list box. Max length: 60. Example: Footer goes here . buttonText string Yes The text of the button that will appear on the list box. You can use emoji. Max length: 20. Example: Click to open . itemTitle1 string Yes The title of item 1. The list has items: minimum is 1, maximum is 10 — items 2 to 10 are itemTitle2 … itemTitle10 . At least 1 item is mandatory. Max length: 24. Example: Customer service . itemDescription1 string No Extra description for item 1, shown below its title. Items 2 to 10: itemDescription2 … itemDescription10 . Max length: 72. Example: Choose me for customer service . itemId1 string No An id for item 1, returned in the webhook when the client chooses it — for example id for sales . It must be unique for each item; letters, digits, and - . If not provided, the item number (1-10) is used. Items 2 to 10: itemId2 … itemId10 . itemID1 (capital D) works too. Max length: 200. Example: id for sales . replyTo string No In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. Example: 92E004B950CCEA3C386FCFA2AAF8558A . showRequest integer No You can get back in the response an object with the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example: List with ids Three items with descriptions and your own ids. The id of the item the client chooses comes back in the webhook. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"header\": \"Customer service\", \"body\": \"Please choose a department and we will connect you.\", \"footer\": \"Available Sun-Thu 08:00-18:00\", \"buttonText\": \"Choose department\", \"itemTitle1\": \"Sales\", \"itemDescription1\": \"Quotes, orders and pricing\", \"itemId1\": \"SALES\", \"itemTitle2\": \"Support\", \"itemDescription2\": \"Help with an existing product\", \"itemId2\": \"SUPPORT\", \"itemTitle3\": \"Billing\", \"itemDescription3\": \"Invoices and payments\", \"itemId3\": \"BILLING\" } Example: 10 items The maximum of 10 items, titles only. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Which day suits you for the delivery?\", \"buttonText\": \"Pick a day\", \"itemTitle1\": \"Sunday\", \"itemId1\": \"DAY SUN\", \"itemTitle2\": \"Monday\", \"itemId2\": \"DAY MON\", \"itemTitle3\": \"Tuesday\", \"itemId3\": \"DAY TUE\", \"itemTitle4\": \"Wednesday\", \"itemId4\": \"DAY WED\", \"itemTitle5\": \"Thursday\", \"itemId5\": \"DAY THU\", \"itemTitle6\": \"Friday\", \"itemId6\": \"DAY FRI\", \"itemTitle7\": \"Next Sunday\", \"itemId7\": \"NEXT SUN\", \"itemTitle8\": \"Next Monday\", \"itemId8\": \"NEXT MON\", \"itemTitle9\": \"Next Tuesday\", \"itemId9\": \"NEXT TUE\", \"itemTitle10\": \"Call me to arrange\", \"itemId10\": \"CALL ME\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . header string (one of: OK) Your header text (empty when you sent none). body string (one of: OK) The text you sent. footer string (one of: OK) Footer text (empty when you sent none). timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id that the message was sent to. Example: 972501234567 . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Example: 1200 . conversationTimeLeft integer (one of: OK) Deprecated. This value is no longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0. Example: 0 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request: the fields below and the item titles and descriptions. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.to string (one of: OK) The to you sent — the number or user id of the client. originalRequest.header string (one of: OK) The header you sent — the title of the list box. originalRequest.footer string (one of: OK) The footer you sent — the footer text. originalRequest.buttonText string (one of: OK) The buttonText you sent — the text of the button that opens the list. originalRequest.replyTo string (one of: OK) The replyTo you sent — the unique ID of the quoted message. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong number format; 5 — 'body' can't be empty; 6 — Your WhatsApp number is not set up for sending. Please contact support; 7 — You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead; 8 — You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead; 9 — 'header' is too long; 10 — 'footer' is too long; 11 — 'buttonText' is mandatory and can be up to 20 characters; 12 — 'itemTitle1' is mandatory and can be up to 24 characters; 13 — One (or more) of your item titles is more than 24 characters; 14 — One (or more) of your item descriptions is more than 72 characters; 15 — Rate limit error, try again; 16 — An item id is not valid, not unique, longer than 200 characters, or given for an item without a title. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"header\": \"Customer service\", \"body\": \"Please choose a department and we will connect you.\", \"footer\": \"Available Sun-Thu 08:00-18:00\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: Reason 7 More than 24 hours have passed since the client's last message. Use 'Send Template' instead. { \"status\": \"FAIL\", \"reason\": 7 } Example: Reason 11 'buttonText' is missing or longer than 20 characters. { \"status\": \"FAIL\", \"reason\": 11 }"
    },
    {
      "id": "whatsapp-api/send-contact",
      "title": "Send Contact",
      "url": "https://docs.99digital.co.il/whatsapp-api/send-contact",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/send-contact.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Send a contact card to your client, with a name, a phone number and optional details.",
      "endpoint": {
        "method": "POST",
        "path": "/sendContact",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendContact"
      },
      "headings": [
        "More Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Name and phone",
        "Example: Full card",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 6",
        "Example: Reason 7"
      ],
      "keywords": [
        "sendContact",
        "from",
        "to",
        "contact_name",
        "contact_phone",
        "contact_email",
        "contact_birthday",
        "address_street",
        "address_city",
        "address_country",
        "website",
        "replyTo",
        "showRequest",
        "status",
        "unique",
        "timestamp",
        "templateTimeLeft",
        "conversationTimeLeft",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendContact Send a contact card to your client, with a name, a phone number and optional details. You can use the \"Send Contact\" API in one case only: you reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that more than 24 hours have passed since their last message), you must use the Send a Template API instead. Sending a contact is not available as a template message, therefore a contact can only be sent when replying to a client. If you sent a template message to the client, the client did not reply yet, and you want to send them another message, you must use a template message again. More Remarks You can only send a contact to private people, not groups. The billing is per \"conversation\". A conversation means a 24-hour session between you and the client (this 24-hour conversation session is unrelated to the 24-hour timer for template messages). You can send unlimited messages within the 24-hour session of a conversation. The 24-hour conversation session starts when you send a message to the client. Every time the client replies, the template message session resets, which means that you don't have to use a template message during this 24-hour template message session. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendContact Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the contact to, in international format, digits only. For example: 972501234567 (a local number such as 0501234567 is rejected with reason 4). Or: the user id you want to send the contact to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). For example: IL.1605856887361213 yes contact name Contact name (first name or full name). yes contact phone Contact phone number, in any format you like ( 0501234567 or 972501234567 ). We recommend the international number format ( 972501234567 ), so WhatsApp can link the card to the contact's WhatsApp account. yes contact email Email address ( example@example.com ). no contact birthday Birthday, in the format YYYY-MM-DD . no address street Street address. no address city City. no address country Country. no website Any website URL. no replyTo In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 — enable. no Response { \"status\": \"OK\", \"unique\": \"65dfd4r4dref34rdfxd34r\", \"contact name\": \"The contact name you sent\", \"contact phone\": \"The contact phone you sent\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 400, \"conversationTimeLeft\": 0, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL. Note: OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. contact name The contact name you sent. contact phone The contact phone you sent. timestamp Time stamp of the message (Unix time, in seconds). from Your WhatsApp account. to The number or the user id that the message was sent to. templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. conversationTimeLeft Deprecated. This value is no longer in use: the conversation time left is now part of the webhook instead. This parameter will be removed in a future update; until then, it is always 0 . originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason Description 1 Not FAIL, the status is OK. 2 from is missing, or JSON syntax error. 3 Wrong apiKey, or the from number is not registered with us. 4 to is either empty or wrong number format. 5 contact name can't be empty. 6 contact phone can't be empty. 7 You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead. 8 You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead. 9 WhatsApp error, please try again or contact support. 10 Rate limit error, try again. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the contact to, in international format, digits only (a local number such as 0501234567 is rejected with reason 4) — or the user id you want to send the contact to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . contact name string Yes Contact name (first name or full name). Example: Dana Levi . contact phone string Yes Contact phone number. Any format works ( 0501234567 or 972501234567 ), but we recommend the international format ( 972501234567 ), so WhatsApp can link the card to the contact's WhatsApp account. Example: 972521234567 . contact email string (email) No Email address. Example: example@example.com . contact birthday string (date) No Birthday, in the format YYYY-MM-DD . Example: 1990-05-14 . address street string No Street address. Example: Herzl 1 . address city string No City. Example: Tel Aviv . address country string No Country. Example: Israel . website string No Any website URL. Example: https://www.example.com . replyTo string No In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. Example: 92E004B950CCEA3C386FCFA2AAF8558A . showRequest integer No You can get back in the response an object with all the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example: Name and phone The minimum — a name and a phone number. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"contact name\": \"Dana Levi - Sales\", \"contact phone\": \"972521234567\" } Example: Full card Every detail a contact card can hold. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"contact name\": \"Dana Levi - Sales\", \"contact phone\": \"972521234567\", \"contact email\": \"dana@example.com\", \"contact birthday\": \"1990-05-14\", \"address street\": \"Herzl 1\", \"address city\": \"Tel Aviv\", \"address country\": \"Israel\", \"website\": \"https://www.example.com\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . contact name string (one of: OK) The contact name you sent. contact phone string (one of: OK) The contact phone you sent. timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id that the message was sent to. Example: 972501234567 . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Example: 1200 . conversationTimeLeft integer (one of: OK) Deprecated. This value is no longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0. Example: 0 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.to string (one of: OK) The to you sent — the number or user id of the client. originalRequest.contact name string (one of: OK) The contact name you sent — the name on the contact card. originalRequest.contact phone string (one of: OK) The contact phone you sent — the phone number on the contact card. originalRequest.contact email string (one of: OK) The contact email you sent — the contact's email address. originalRequest.contact birthday string (one of: OK) The contact birthday you sent — the contact's birthday ( YYYY-MM-DD ). originalRequest.address street string (one of: OK) The address street you sent — the contact's street address. originalRequest.address city string (one of: OK) The address city you sent — the contact's city. originalRequest.address country string (one of: OK) The address country you sent — the contact's country. originalRequest.website string (one of: OK) The website you sent — the contact's website URL. originalRequest.replyTo string (one of: OK) The replyTo you sent — the unique ID of the quoted message. Left out when you did not quote a message. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong number format; 5 — 'contact name' can't be empty; 6 — 'contact phone' can't be empty; 7 — You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead; 8 — You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead; 9 — WhatsApp error, please try again or contact support; 10 — Rate limit error, try again. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"contact name\": \"Dana Levi - Sales\", \"contact phone\": \"972521234567\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: Reason 6 'contact phone' can't be empty. { \"status\": \"FAIL\", \"reason\": 6 } Example: Reason 7 More than 24 hours have passed since the client's last message. Use 'Send Template' instead. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/send-reaction",
      "title": "Send Reaction",
      "url": "https://docs.99digital.co.il/whatsapp-api/send-reaction",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/send-reaction.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "React with an emoji to a message your client sent you, or remove your reaction.",
      "endpoint": {
        "method": "POST",
        "path": "/sendReaction",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendReaction"
      },
      "headings": [
        "More Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: React",
        "Example: Remove reaction",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 4",
        "Example: Reason 7"
      ],
      "keywords": [
        "sendReaction",
        "from",
        "to",
        "unique",
        "reaction",
        "showRequest",
        "status",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendReaction React with an emoji to a message your client sent you, or remove your reaction. Reactions are emoji responses to an incoming message: A WhatsApp message with an emoji reaction under it For every incoming message you get to your webhook, you can send a reaction emoji. More Remarks You can only have one reaction per message. The emoji can be any emoji you want. You can send a rendered emoji (🧐) or its escaped source code form, as in Java or JSON ( \"\\uD83D\\uDE00\" ). You can send a reaction to the messages your client sent you: unique is the message's unique ID from your webhook. You can send a reaction within 24 hours since the client's last message. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendReaction Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the reaction to, in international format, digits only. For example: 972501234567 . Or: the user id you want to send the reaction to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). For example: IL.1605856887361213 yes unique The unique ID of the message you wish to attach the reaction to. yes reaction The emoji you wish to react with. If you want to remove the emoji, just send an empty value. yes showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 — enable. no Response { \"status\": \"OK\", \"unique\": \"65dfd4r4dref34rdfxd34r\", \"reaction\": \"😀\", \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL. Note: OK status doesn't mean the reaction arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. unique The unique ID of the reaction message. reaction The emoji you used. originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason Description 1 Not FAIL, the status is OK. 2 from is missing, or JSON syntax error. 3 Wrong apiKey, or the from number is not registered with us. 4 unique is empty or does not exist, or to is empty or wrong. 5 Error in the emoji you used. 7 You are trying to send a reaction but it has been more than 24 hours since the client's last message. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the reaction to, in international format, digits only — or the user id you want to send the reaction to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . unique string Yes The unique ID of the message you wish to attach the reaction to. Example: 92E004B950CCEA3C386FCFA2AAF8558A . reaction string Yes The emoji you wish to react with. To remove your reaction, send an empty value. Example: 😀 . showRequest integer No You can get back in the response an object with all the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example: React React to the client's message. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"reaction\": \"👍\" } Example: Remove reaction An empty reaction removes your reaction from the message. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"reaction\": \"\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the reaction arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) The unique ID of the reaction message. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . reaction string (one of: OK) The emoji you used. Example: 👍 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.unique string (one of: OK) The unique you sent — the ID of the message you reacted to. originalRequest.reaction string (one of: OK) The reaction you sent — the emoji. Left out when you removed a reaction (empty value). reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'unique' is empty or does not exist, or 'to' is empty or wrong; 5 — Error in the emoji you used; 7 — You are trying to send a reaction but it has been more than 24 hours since the client's last message. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"reaction\": \"👍\", \"reason\": 1 } Example: Reason 4 'unique' is empty or does not exist. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 7 More than 24 hours have passed since the client's last message. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/send-carousel",
      "title": "Send Carousel",
      "url": "https://docs.99digital.co.il/whatsapp-api/send-carousel",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/send-carousel.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Send a row of 2 to 10 media cards that your client scrolls through, each with its own buttons.",
      "endpoint": {
        "method": "POST",
        "path": "/sendCarousel",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendCarousel"
      },
      "headings": [
        "Remarks",
        "Settings",
        "Body",
        "Sample request",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: External buttons",
        "Example: One reply button",
        "Example: Two reply buttons",
        "Example: Cards without text",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 7",
        "Example: Reason 10"
      ],
      "keywords": [
        "sendCarousel",
        "from",
        "to",
        "body",
        "buttons",
        "card1_headerLink",
        "card1_body",
        "card1_buttonExternal",
        "card1_buttonExternalText",
        "card1_button1",
        "card1_button1ID",
        "card1_button2",
        "card1_button2ID",
        "replyTo",
        "showRequest",
        "status",
        "unique",
        "timestamp",
        "reason",
        "templateTimeLeft",
        "originalRequest"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendCarousel Send a row of 2 to 10 media cards that your client scrolls through, each with its own buttons. You can use the \"Send Carousel\" API in one case only: you reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that more than 24 hours have passed since their last message), you must use the Send Template Message API instead. Sending a contact is not available for a template message, therefore sending a contact message can only be done when replying to a client. If you sent a template message to the client, the client did not reply yet, and you want to send another message to them, you must use the template message again. Sending a carousel means sending a carousel of media cards to the client. This looks like this: A WhatsApp carousel: a message followed by image cards side by side, each with a button Remarks You can use the \"Send Carousel\" API in one case only: to reply to a message that the client sent, within 24 hours since the client sent their last message. If you send a message to a new client, or try to send a message to an old client (old client means that 24 hours have passed since the client's last message), you must use the \"Send Template Message\" API instead. If you sent a template message to the client, the client did not reply yet, and you want to send another message to them, you must use the template message again. You can only send a message to private people, not groups. The billing is per \"conversation\". A conversation means a 24-hour session between you and the client (this 24-hour conversation session is unrelated to the 24-hour timer for template messages). You can send unlimited messages within the 24-hour session time of a conversation. The 24-hour conversation session starts when you send a message to the client. Every time the client replies, the template message session resets, which means that you don't have to use a template message during this 24-hour template message session. The message must include between 2 and 10 cards. Header and footer are not supported. Cards must include either an image or a video. A card must include either a URL button (external button) or one / two reply buttons. All cards must look the same regarding the buttons type (either 1 with buttonExternal , or 2 / 3 with button1 / button2 ). All cards must look the same regarding the card body. If you choose to use a body, all cards must have a body. All cards must have the same headerLink type, either an image or a video. Make sure you follow the cards numbering right. Do not send card5 data without sending card1 , card2 , card3 and card4 too. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendCarousel Method JSON via POST Key Value apiKey Your API key for the service Body Each card has a number from 1 to 10 in its field names (the X below): card1 headerLink , card1 body and so on describe the first card, card2 headerLink the second, up to card10 . Every card has the same fields. Parameter Description / Example Mandatory Max length Example from Your WhatsApp account. International number without + . yes 972771234567 to The number you want to send the message to, in international format, digits only (a local number such as 0501234567 is rejected with reason 4). or The user id you want to send the message to — for a client who hides their number behind a WhatsApp username; it arrives as from id in your webhook. yes 972501234567 or IL.1605856887361213 body Your message goes here, that comes with all the cards. \\n for a new line text for bold text for italic text for strikethrough yes 1024 hello, please choose a product you like! buttons Here you need to choose how the buttons of all cards will be: 1 - buttonExternal type 2 - one 'reply' button type 3 - two 'reply' buttons type yes 1 1 cardX headerLink The headerLink URL for card X. X can be 1 to 10. The media must be either an image or a video; you must provide a valid URL, starting with https:// . Maximum 5 MB for an image, 16 MB for a video. yes minimum 2, maximum 10 2000 card8 headerLink = \"https://www.example.com/file.png\" cardX body The body content of a card. X can be between 1 to 10. If one card has a body, all the cards must have one. no 160 characters and up to 2 new lines ( \\n ) card8 body = \"Here is our blue flower\\n\\nclick to buy\" cardX buttonExternal In case you selected the buttons parameter to 1, here is the external button of card X — a phone number, a link or an email address, see the table below. X can be between 1 to 10. only if buttons is set to 1 1000 https://www.google.com cardX buttonExternalText The text that will appear for cardX buttonExternal . X can be between 1 to 10. only if buttons is set to 1 20 characters Click here cardX button1 In case you selected the buttons parameter to 2 or 3, here is the first button text. X can be between 1 to 10. only if buttons is set to 2 or 3 20 characters Click here one cardX button1ID In case you selected the buttons parameter to 2 or 3, here you can provide an ID for that button, that will be sent back to you on the webhook. If you choose not to provide this value, the value will be set to 1. X can be between 1 to 10. Not mandatory, only if buttons is set to 2 or 3. If not provided, 1 will be set 256 id-for-button-one cardX button2 In case you selected the buttons parameter to 3, here is the second button text. X can be between 1 to 10. only if buttons is set to 3 20 characters Click here two cardX button2ID In case you selected the buttons parameter to 3, here you can provide an ID for that button, that will be sent back to you on the webhook. If you choose not to provide this value, the value will be set to 2. X can be between 1 to 10. Not mandatory, only if buttons is set to 3. If not provided, 2 will be set 256 characters id-for-button-two replyTo In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 - enable no 1 0 cardX buttonExternal values: Input Example What will happen? phone number (numbers only) 972501234567 The system will create a button that will initiate a phone call link (must start with http or https ) https://www.google.com The system will create a button that will open the website email address john@example.com The system will create a button that will open the default email app to send an email Sample request A message with two cards, an image header and buttonExternal : { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"hello\", \"buttons\": 1, \"card1 headerLink\": \"https://www.example.com/image.png\", \"card1 buttonExternal\": \"972501234567\", \"card1 buttonExternalText\": \"Call us\", \"card2 headerLink\": \"https://www.example.com/imagetwo.png\", \"card2 buttonExternal\": \"https://www.example.com\", \"card2 buttonExternalText\": \"Our website\" } Response { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"body\": \"hello\", \"timestamp\": 1771932645, \"from\": \"972771234567\", \"to\": \"972501234567\", \"reason\": 1, \"templateTimeLeft\": 1431, \"card1 headerLink\": \"https://www.example.com/image.png\", \"card2 headerLink\": \"https://www.example.com/imagetwo.png\" } Response-Explain Parameter Description status OK or FAIL . Note: OK status doesn't mean the message arrived to the end user. It only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. body The text you sent timestamp Time stamp of the message (Unix time, in seconds) from Your WhatsApp account to The number or the user id that the message was sent to cardX headerLink The link you provided for any of the cards cardX body The body text you provided for any of the cards (if provided) templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 to is either empty or wrong number format 5 body can't be empty 6 Your WhatsApp number is not set up for sending. Please contact support. 7 You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead. 8 You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead. 9 Rate limit error, try again 10 The cards are not in the right format or order, or card1 + card2 do not exist. Make sure you have the right order of cards. This also covers a card whose headerLink is missing or does not start with https:// , and a card with buttons that don't match buttons . 11 buttons is incorrect or wrong (missing, or not 1, 2 or 3) 12 The cards mix images and videos: all cards must have the same headerLink type 13 cardX body is too long or incorrect for one or more of the cards (more than 160 characters or more than 2 new lines), or only some of the cards have a body 14 cardX buttonExternal is required for the selected buttons type. Make sure cardX buttonExternal is in the correct format (a phone number, a link or an email address). The issue can be in one or more of the cards provided. 15 cardX buttonExternalText is required since cardX buttonExternal is in use. Make sure cardX buttonExternalText is in the correct format (up to 20 characters). The issue can be in one or more of the cards provided. 16 cardX button1 is required for the selected buttons type. Make sure cardX button1 is in the correct format (up to 20 characters). The issue can be in one or more of the cards provided. 17 cardX button1ID is wrong or not in the correct format (longer than 256 characters). The issue can be in one or more of the cards provided. 18 cardX button2 is required for the selected buttons type. Make sure cardX button2 is in the correct format (up to 20 characters). The issue can be in one or more of the cards provided. 19 cardX button2ID is wrong or not in the correct format (longer than 256 characters). The issue can be in one or more of the cards provided. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the message to, in international format, digits only (a local number such as 0501234567 is rejected with reason 4) — or the user id you want to send the message to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . body string Yes Your message, which comes with all the cards. Use \\n for a new line, text for bold, text for italic and text for strikethrough. Max length: 1024. Example: Hello, please choose a product you like! . buttons integer Yes Here you need to choose how the buttons of all the cards will be. One of: 1 — buttonExternal type — one external button per card ( cardX buttonExternal ); 2 — One 'reply' button type — one reply button per card ( cardX button1 ); 3 — Two 'reply' buttons type — two reply buttons per card ( cardX button1 and cardX button2 ). Example: 1 . card1 headerLink string (uri) Yes The headerLink URL of card 1: the media must be either an image or a video, and you must provide a valid URL starting with https:// — up to 5 MB for an image, 16 MB for a video. All cards must use the same media type. Every card needs one, and there are at least 2 cards: card1 headerLink , card2 headerLink , and up to card10 headerLink . Example: https://storage.image.com/file.png . card1 body string No The text of card 1: up to 160 characters and up to 2 new lines ( \\n ). If one card has a body, all the cards must have one. Max length: 160. Example: Here is our blue flower click to buy . card1 buttonExternal string No Required when buttons is 1: the external button of card 1. - A phone number, digits only ( 972501234567 ) — a button that starts a phone call. - A link starting with http or https ( https://www.google.com ) — a button that opens the website. - An email address ( john@example.com ) — a button that opens the email app to send an email. Example: https://www.google.com . card1 buttonExternalText string No Required when buttons is 1: the text that will appear on card1 buttonExternal . Max length: 20. Example: Click here . card1 button1 string No Required when buttons is 2 or 3 — the text of the first button. Max length: 20. Example: Click here one . card1 button1ID string No When buttons is 2 or 3, an id for the first button, which will be sent back to you on the webhook. If you choose not to provide this value, it will be set to 1. Default: 1 . Max length: 256. Example: id-for-button-one . card1 button2 string No Required when buttons is 3 — the text of the second button. Max length: 20. Example: Click here two . card1 button2ID string No When buttons is 3, an id for the second button, which will be sent back to you on the webhook. If you choose not to provide this value, it will be set to 2. Default: 2 . Max length: 256. Example: id-for-button-two . replyTo string No In case you want to reply to a message that the end user has sent (quoted message), here you can provide the unique ID of that message. To quote one of your own messages, provide the unique you received when you sent it. Example: 92E004B950CCEA3C386FCFA2AAF8558A . showRequest integer No You can get back in the response an object with all the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example: External buttons buttons 1 — each card has one button that opens a website, starts a call or opens an email. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Hello, please choose a product you like!\", \"buttons\": 1, \"card1 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"card1 body\": \"Browse the full catalogue online.\", \"card1 buttonExternal\": \"https://www.example.com/catalogue\", \"card1 buttonExternalText\": \"Open catalogue\", \"card2 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"card2 body\": \"Or talk to a human - we pick up fast.\", \"card2 buttonExternal\": \"97231234567\", \"card2 buttonExternalText\": \"Call us\" } Example: One reply button buttons 2 — each card has one reply button with your own id, which comes back in the webhook. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Which one would you like?\", \"buttons\": 2, \"card1 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"card1 body\": \"Leather wallet - 149 NIS\", \"card1 button1\": \"I want this\", \"card1 button1ID\": \"WANT WALLET\", \"card2 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"card2 body\": \"Travel backpack - 349 NIS\", \"card2 button1\": \"I want this\", \"card2 button1ID\": \"WANT BACKPACK\", \"card3 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"card3 body\": \"Ceramic mug - 59 NIS\", \"card3 button1\": \"I want this\", \"card3 button1ID\": \"WANT MUG\" } Example: Two reply buttons buttons 3 — each card has two reply buttons. These cards are videos. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Pick a show and a seat.\", \"buttons\": 3, \"card1 headerLink\": \"https://storage.99digital.online/samples/meditation.mp4\", \"card1 body\": \"Sunday 20:00\", \"card1 button1\": \"Standard seat\", \"card1 button1ID\": \"SUN STD\", \"card1 button2\": \"Front row\", \"card1 button2ID\": \"SUN FRONT\", \"card2 headerLink\": \"https://storage.99digital.online/samples/meditation.mp4\", \"card2 body\": \"Tuesday 20:00\", \"card2 button1\": \"Standard seat\", \"card2 button1ID\": \"TUE STD\", \"card2 button2\": \"Front row\", \"card2 button2ID\": \"TUE FRONT\" } Example: Cards without text No cardX body — the cards show only the media and the button. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Tap the item you want to know more about.\", \"buttons\": 2, \"card1 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"card1 button1\": \"Details\", \"card1 button1ID\": \"ITEM 1\", \"card2 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"card2 button1\": \"Details\", \"card2 button1ID\": \"ITEM 2\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . body string (one of: OK) The text you sent. timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id that the message was sent to. Example: 972501234567 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Example: 1200 . card1 headerLink string (one of: OK) The link you provided for each of the cards: card1 headerLink , card2 headerLink and so on. card1 body string (one of: OK) The body text you provided for each of the cards, if provided: card1 body , card2 body and so on. originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request: the fields below and every card field you sent. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.to string (one of: OK) The to you sent — the number or user id of the client. originalRequest.body string (one of: OK) The body you sent — the message text that comes with the cards. originalRequest.buttons integer (one of: OK) The buttons you sent — 1 external button, 2 one reply button, 3 two reply buttons per card. originalRequest.replyTo string (one of: OK) The replyTo you sent — the unique ID of the quoted message. status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong number format; 5 — 'body' can't be empty; 6 — Your WhatsApp number is not set up for sending. Please contact support; 7 — You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead; 8 — You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead; 9 — Rate limit error, try again; 10 — The cards are not in the right format or order: there are fewer than 2 cards, a card number is skipped, a card's headerLink is missing or is not an https link, or a card has buttons that don't match buttons ; 11 — 'buttons' is missing or not 1, 2 or 3; 12 — The cards mix images and videos. All cards must use the same media type; 13 — A card body is longer than 160 characters or has more than 2 new lines, or only some of the cards have a body; 14 — cardX buttonExternal is required for the selected 'buttons' type, and must be a phone number, a link or an email address. The issue can be in one or more of the cards; 15 — cardX buttonExternalText is required since cardX buttonExternal is in use, up to 20 characters. The issue can be in one or more of the cards; 16 — cardX button1 is required for the selected 'buttons' type, up to 20 characters. The issue can be in one or more of the cards; 17 — cardX button1ID is wrong or too long. The issue can be in one or more of the cards; 18 — cardX button2 is required for the selected 'buttons' type, up to 20 characters. The issue can be in one or more of the cards; 19 — cardX button2ID is wrong or too long. The issue can be in one or more of the cards. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"body\": \"Hello, please choose a product you like!\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"reason\": 1, \"templateTimeLeft\": 1200, \"card1 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"card1 body\": \"Browse the full catalogue online.\", \"card2 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"card2 body\": \"Or talk to a human - we pick up fast.\" } Example: Reason 7 More than 24 hours have passed since the client's last message. Use 'Send Template' instead. { \"status\": \"FAIL\", \"reason\": 7 } Example: Reason 10 Only one card was sent, or the cards are not numbered in order. { \"status\": \"FAIL\", \"reason\": 10 }"
    },
    {
      "id": "whatsapp-api/typing",
      "title": "Type Effect",
      "url": "https://docs.99digital.co.il/whatsapp-api/type-effect",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/type-effect.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Type effect allows you to send a 'typing...' indicator to your client.",
      "endpoint": {
        "method": "POST",
        "path": "/typing",
        "url": "https://api.99digital.co.il/whatsapp/v2/typing"
      },
      "headings": [
        "More Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 7"
      ],
      "keywords": [
        "typing",
        "from",
        "to",
        "status",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/typing Type effect allows you to send a \"typing...\" indicator to your client. The \"typing...\" indicator under the client's message, which shows two blue check marks The \"typing...\" indicator gives a more live feeling to the conversation, especially if you are building a chat bot. More Remarks The typing effect will be dismissed once you send an actual message (Send Message or any other) or once 20 seconds have passed, whichever comes first. To prevent your client from waiting in the chat, it is better to use the typing indicator just a few moments before you are actually going to send a response. The typing indicator is not an on/off feature for your entire WhatsApp number: this endpoint needs to be called every time you wish to create this effect. This can only be sent when a session is open between you and the client (24-hour session), meaning that the client has sent you a message in the last 24 hours. When using the type effect, it will automatically mark the message that the client sent you as \"read\" (two blue check marks, as shown in the picture above), so the client knows your API has read the message and is preparing a response. Best practice is to use this when you are using an AI bot and the answers take a bit of time to generate, or when you wish to keep the client in the chat while preparing an answer. Typing effect is not yet supported for all WhatsApp API accounts. Avoid sending too many typing effects to the same client without sending an actual message, for a better user experience (no hard limit, just a suggestion). Avoid sending a typing effect if you reply within less than 1 second, for a better user experience (no hard limit, just a suggestion). Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/typing Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the typing effect to, in international format, digits only. For example: 972501234567 . Or: the user id you want to send the typing effect to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). For example: IL.1605856887361213 yes Response { \"status\": \"OK\", \"from\": \"972771234567\", \"to\": \"972501234567\", \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL. OK means the system received your request and sends the typing effect to the client. from Your WhatsApp account. to The number or the user id you sent the typing effect to. reason Description 1 Not FAIL, the status is OK. 2 from is missing, or JSON syntax error. 3 Wrong apiKey, or the from number is not registered with us. 4 to is empty or wrong. 6 Error sending typing effect, please contact support. 7 You are trying to use typing effect but it has been more than 24 hours since the client's last message. Please wait for a message from the client. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the typing effect to, in international format, digits only — or the user id, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . Example (generated from the schema) { \"from\": \"972771234567\", \"to\": \"972501234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the system received your request and sends the typing effect to the client. It shows until you send an actual message, or for up to 20 seconds. Always OK . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id you sent the typing effect to. Example: 972501234567 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is empty or wrong; 6 — Error sending typing effect, please contact support; 7 — You are trying to use typing effect but it has been more than 24 hours since the client's last message. Please wait for a message from the client. Example: OK The client sees \"typing...\". { \"status\": \"OK\", \"from\": \"972771234567\", \"to\": \"972501234567\", \"reason\": 1 } Example: Reason 7 More than 24 hours have passed since the client's last message. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/get-history",
      "title": "Get History",
      "url": "https://docs.99digital.co.il/whatsapp-api/get-history",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/get-history.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Get history allows you to see all chat history per conversation or for your entire WhatsApp number.",
      "endpoint": {
        "method": "POST",
        "path": "/getHistory",
        "url": "https://api.99digital.co.il/whatsapp/v2/getHistory"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Whole account",
        "Example: One contact",
        "Responses",
        "200 — The request was processed. A successful request answers with the list of messages; a failed one with status FAIL and a reason. Both are HTTP 200.",
        "Example: Messages",
        "Example: No messages",
        "Example: Reason 11"
      ],
      "keywords": [
        "getHistory",
        "from",
        "to",
        "page",
        "unique",
        "timestamp",
        "direction",
        "from_id",
        "to_id",
        "type",
        "state",
        "message",
        "status",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/getHistory Get history allows you to see all chat history per conversation or for your entire WhatsApp number. We keep the chat history for 1 year: every message that is stored for more than 1 year is deleted. The files are stored as links, which are deleted after 7 days. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/getHistory Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example from Your WhatsApp account. International number without + . For example: 972771234567 to You can choose which contact to get the chat history for: the number, or the user id for a client who hides their number, exactly as it appears in your webhook. If you leave this empty, you will get the history for all your WhatsApp account. For example: 972501234567 page Mandatory. Integer number. Every page shows the last 50 messages, newest first. For example, page 1 will show the last known messages from 1 to 50; page 2 will show the last known messages from message 51 to 100. A page past the end returns an empty list. Response [ { \"unique\": \"3EB08F941940DDC30F58\", \"timestamp\": 1614198777, \"direction\": 2, \"from\": \"972771234567\", \"from id\": null, \"to\": \"972501234567\", \"to id\": null, \"type\": \"text\", \"state\": 1, \"message\": \"outgoing message\" }, { \"unique\": \"3EB08F941940DDCFGF58\", \"timestamp\": 1614198211, \"direction\": 1, \"from\": \"972501234568\", \"from id\": null, \"to\": \"972771234567\", \"to id\": null, \"type\": \"text\", \"state\": 0, \"message\": \"incoming message\" } ] A failed request answers with status FAIL and a reason instead of the list, for example {\"status\": \"FAIL\", \"reason\": 11} . Response-Explain Parameter Description unique The unique ID of the message timestamp The timestamp of the message (Unix time, in seconds) direction 1 for an incoming message, 2 for an outgoing message (incoming messages are messages that come to the webhook; outgoing messages are messages you sent using the API) from The chat that sent the message from id In case the message came from an end user under hidden identity, this is the user id; otherwise null to The chat that received the message to id In case the message was sent to an end user under hidden identity, this is the user id; otherwise null type The message type. The available types depend on the direction — see the table below. state The delivery state of the message — see the table below. The state is only relevant for outgoing messages. message The message that was sent direction Available message types 1 text, image, audio, video, location, ptt, document 2 text, file, location, ptt value Information 0 Acknowledge that the message failed to deliver 1 Acknowledge that the message was received by the server (1 gray check mark) 2 Acknowledge that the message was delivered (2 gray check marks) 3 Acknowledge that the message was read (2 blue check marks) reason Description 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 from is either empty or wrong number format 11 page is invalid or empty Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string No You can choose which contact to get the chat history for — the number, or the user id for a client who hides their number, exactly as it appears in your webhook. If you leave this empty, you will get the history for all your WhatsApp account. Example: 972509876543 . page integer Yes Every page shows 50 messages, newest first: page 1 shows the last known messages 1 to 50, page 2 messages 51 to 100, and so on. A page past the end returns an empty list. Minimum: 1. Example: 1 . Example: Whole account The last 50 messages of your WhatsApp number, with every contact. { \"from\": \"972771234567\", \"page\": 1 } Example: One contact The last 50 messages with one contact. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"page\": 1 } Responses 200 — The request was processed. A successful request answers with the list of messages; a failed one with status FAIL and a reason . Both are HTTP 200. Content type: application/json Field Type Description [].unique string (one of: Messages) The unique ID of the message. [].timestamp integer (one of: Messages) The timestamp of the message (Unix time, in seconds). [].direction integer (one of: Messages) Incoming messages are messages that come to your webhook; outgoing messages are messages you sent using the API. One of: 1 — Incoming message; 2 — Outgoing message. [].from string (one of: Messages) The chat that sent the message. [].from id string \\ null (one of: Messages) In case the message came from an end user under hidden identity, this is the user id; otherwise null. [].to string (one of: Messages) The chat that received the message. [].to id string \\ null (one of: Messages) In case the message was sent to an end user under hidden identity, this is the user id; otherwise null. [].type string (one of: Messages) The message type, which depends on the direction. Incoming (1): text, image, audio, video, location, ptt, document. Outgoing (2): text, file, location, ptt. [].state integer (one of: Messages) This state is only relevant for outgoing messages. One of: 0 — The message failed to deliver; 1 — The message was received by the server (1 gray check mark); 2 — The message was delivered (2 gray check marks); 3 — The message was read (2 blue check marks). [].message string (one of: Messages) The message that was sent. status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. It does not explain the state 0 of a failed message. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'from' is either empty or wrong number format; 11 — 'page' is invalid or empty. Example: Messages An outgoing and an incoming message. [ { \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"timestamp\": 1614198777, \"direction\": 2, \"from\": \"972771234567\", \"from id\": null, \"to\": \"972501234567\", \"to id\": null, \"type\": \"text\", \"state\": 3, \"message\": \"outgoing message\" }, { \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"timestamp\": 1614198211, \"direction\": 1, \"from\": \"972501234567\", \"from id\": null, \"to\": \"972771234567\", \"to id\": null, \"type\": \"text\", \"state\": 0, \"message\": \"incoming message\" } ] Example: No messages Nothing on this page. [] Example: Reason 11 'page' is invalid or empty. { \"status\": \"FAIL\", \"reason\": 11 }"
    },
    {
      "id": "whatsapp-api/get-contacts",
      "title": "Get Contacts",
      "url": "https://docs.99digital.co.il/whatsapp-api/get-contacts",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/get-contacts.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Get Contacts allows you to see all contacts that messaged you and that you messaged.",
      "endpoint": {
        "method": "POST",
        "path": "/getContacts",
        "url": "https://api.99digital.co.il/whatsapp/v2/getContacts"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. A successful request answers with the list of contacts; a failed one with status FAIL and a reason. Both are HTTP 200.",
        "Example: Contacts",
        "Example: Reason 3"
      ],
      "keywords": [
        "getContacts",
        "from",
        "page",
        "contact_phone",
        "contact_phone_id",
        "contact_name",
        "update_time",
        "online_contact_id",
        "online_conversation_id",
        "contact_profilePic",
        "status",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/getContacts Get Contacts allows you to see all contacts that messaged you and that you messaged. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/getContacts Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example from Your WhatsApp account. International number without + . For example: 972771234567 page Integer number. Every page shows the last 50 contacts, most recent first. For example, page 1 will show the last known contacts from 1 to 50; page 2 will show the last known contacts from contact 51 to 100. If you leave it out, you get page 1 . A page past the end returns an empty list. Response [ { \"contact phone\": \"972501234567\", \"contact phone id\": null, \"contact name\": \"John\", \"update time\": 1770196687, \"online contact id\": 1, \"online conversation id\": 2, \"contact profilePic\": \"https://storage.99digital.online/samples/hello.png\" }, { \"contact phone\": \"972501234568\", \"contact phone id\": null, \"contact name\": \"Smith\", \"update time\": 1770196600, \"online contact id\": 3, \"online conversation id\": 4, \"contact profilePic\": null } ] A failed request answers with status FAIL and a reason instead of the list, for example {\"status\": \"FAIL\", \"reason\": 3} . Response-Explain Parameter Description contact phone The end user's phone number — or their user id, for a client who hides their number contact name The end user's contact name update time The time when this contact was created / updated (Unix time, in seconds). This is based on your last interaction with them. online contact id If you are using 99 Digital omni channel, this is the contact ID online conversation id If you are using 99 Digital omni channel, this is the conversation ID contact profilePic If the contact ever sent you a message, and the profile picture arrived, you will find the link here (the same as in the webhook message when the incoming message arrived). If empty, you will get null . contact phone id The user id of the contact (available for new contacts after May 28, 2026). Any contact before that will return null . reason Description 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 11 page is invalid Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . page integer No Every page shows 50 contacts, most recent first: page 1 shows the last known contacts 1 to 50, page 2 contacts 51 to 100, and so on. A page past the end returns an empty list. Default: 1 . Minimum: 1. Example: 1 . Example (generated from the schema) { \"from\": \"972771234567\", \"page\": 1 } Responses 200 — The request was processed. A successful request answers with the list of contacts; a failed one with status FAIL and a reason . Both are HTTP 200. Content type: application/json Field Type Description [].contact phone string (one of: Contacts) The end user's phone number — or their user id, for a client who hides their number. [].contact phone id string \\ null (one of: Contacts) The user id of the contact. Available for contacts created after May 28, 2026; null for any contact before that. [].contact name string (one of: Contacts) The end user's contact name. [].update time integer (one of: Contacts) The time when this contact was created or updated (Unix time, in seconds), based on your last interaction with them. [].online contact id integer (one of: Contacts) If you are using 99 Digital omni channel, this is the contact ID. [].online conversation id integer (one of: Contacts) If you are using 99 Digital omni channel, this is the conversation ID. [].contact profilePic string \\ null (one of: Contacts) If the contact ever sent you a message and the profile picture arrived, you will find the link here (the same as in the webhook of that message). If there is none, null. status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 11 — 'page' is invalid. Example: Contacts Two contacts — the second hides their number behind a WhatsApp username. [ { \"contact phone\": \"972501234567\", \"contact phone id\": null, \"contact name\": \"John\", \"update time\": 1770196687, \"online contact id\": 1, \"online conversation id\": 2, \"contact profilePic\": \"https://storage.99digital.online/samples/hello.png\" }, { \"contact phone\": \"IL.1605856887361213\", \"contact phone id\": \"IL.1605856887361213\", \"contact name\": \"Smith\", \"update time\": 1770196600, \"online contact id\": 3, \"online conversation id\": 4, \"contact profilePic\": null } ] Example: Reason 3 Wrong apiKey, or the \"from\" number is not registered with us. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "whatsapp-api/get-timers",
      "title": "Get Timers",
      "url": "https://docs.99digital.co.il/whatsapp-api/get-timers",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/get-timers.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Get Timers API allows you to see the templateTimeLeft for a specific number.",
      "endpoint": {
        "method": "POST",
        "path": "/getTimers",
        "url": "https://api.99digital.co.il/whatsapp/v2/getTimers"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Window closed",
        "Example: Reason 4"
      ],
      "keywords": [
        "getTimers",
        "from",
        "number",
        "status",
        "templateTimeLeft",
        "conversationTimeLeft",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/getTimers Get Timers API allows you to see the templateTimeLeft for a specific number. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/getTimers Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example from Your WhatsApp account. International number without + . For example: 972771234567 number The phone number you want to check. International number, digits only — or the user id, for a client who hides their number. For example: 972501234567 Response { \"status\": \"OK\", \"templateTimeLeft\": 400, \"conversationTimeLeft\": 0, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL templateTimeLeft Amount of minutes left since the client's last message. If passed ( 0 ), you must use a template message. This value resets every time the client sends you a message. conversationTimeLeft No longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0 . reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 number is either empty or wrong number format Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . number string Yes The phone number you want to check, in international format, digits only — or the user id, for a client who hides their number. Example: 972551234567 . Example (generated from the schema) { \"from\": \"972771234567\", \"number\": \"972551234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the request succeeded; templateTimeLeft shows the time left for this number. Always OK . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed (0), you must use a template message. This value resets every time the client sends you a message. Example: 1200 . conversationTimeLeft integer (one of: OK) Deprecated. This value is no longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0. Example: 0 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'number' is either empty or wrong number format. Example: OK The client wrote recently — you can still reply without a template. { \"status\": \"OK\", \"templateTimeLeft\": 1200, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: Window closed More than 24 hours have passed — use a template message. { \"status\": \"OK\", \"templateTimeLeft\": 0, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: Reason 4 'number' is empty. { \"status\": \"FAIL\", \"reason\": 4 }"
    },
    {
      "id": "whatsapp-api/read-status",
      "title": "Mark as Read",
      "url": "https://docs.99digital.co.il/whatsapp-api/mark-as-read",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/mark-as-read.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Mark as read allows you to send 'read' status for incoming messages.",
      "endpoint": {
        "method": "POST",
        "path": "/readStatus",
        "url": "https://api.99digital.co.il/whatsapp/v2/readStatus"
      },
      "headings": [
        "More Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 2"
      ],
      "keywords": [
        "readStatus",
        "from",
        "to",
        "status",
        "reason",
        "error"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/readStatus Mark as read allows you to send \"read\" status for incoming messages. The default is always to show the client 2 gray check marks; this endpoint allows you to set the read status for messages. For every incoming message you get to your webhook, you can send the status read, which is two blue check marks, like this: Two blue check marks under a WhatsApp message so your client can know you read the message. The system will automatically mark the client's last message as read once you use this endpoint. More Remarks Marking a message as read will also mark earlier messages in the conversation as read. This operation is irreversible: once you marked a message as read, you can't change it back. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/readStatus Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number whose messages you want to mark as read, in international format, digits only. For example: 972501234567 or The user id of the client, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). For example: IL.1605856887361213 yes Response { \"status\": \"OK\", \"reason\": 1, \"from\": \"972771234567\", \"to\": \"972501234567\" } Response-Explain Parameter Description status OK or FAIL from Your WhatsApp number to The destination number or destination user id reason The status explanation — see the table below. error Details, with some of the reason 2 failures (for example No HB message found in history when there is no message from this client to mark as read). Only in a FAIL response. reason Description 1 Not FAIL. The status is OK. 2 from is missing, JSON syntax error, or there is no message from this client to mark as read 3 Wrong apiKey, or the \"from\" number is not registered with us 4 to is empty or wrong (not a valid number or user id) Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number whose messages you want to mark as read, in international format, digits only — or the user id, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . Example (generated from the schema) { \"from\": \"972771234567\", \"to\": \"972501234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the client's messages are marked as read (two blue check marks). Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . from string (one of: OK) Your WhatsApp number. Example: 972771234567 . to string (one of: OK) The destination number or destination user id. Example: 972501234567 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, JSON syntax error, or there is no message from this client to mark as read; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is empty or wrong (not a valid number or user id). error string (one of: FAIL) Details, with some of the reason 2 failures. Example: OK The client's messages show two blue check marks. { \"status\": \"OK\", \"reason\": 1, \"from\": \"972771234567\", \"to\": \"972501234567\" } Example: Reason 2 There is no message from this client to mark as read. { \"status\": \"FAIL\", \"reason\": 2, \"error\": \"No HB message found in history\" }"
    },
    {
      "id": "whatsapp-api/black-list-block",
      "title": "Black List (Block)",
      "url": "https://docs.99digital.co.il/whatsapp-api/black-list-block",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/black-list-block.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Black list (Block)"
      ],
      "language": "en",
      "description": "Block, unblock and list the WhatsApp numbers that can't message you and that you can't message.",
      "headings": [
        "What happens here?",
        "More Remarks",
        "Best Practice - how to use"
      ],
      "keywords": [
        "black list",
        "blacklist",
        "block",
        "unblock",
        "blocked list",
        "unsubscribe"
      ],
      "content": "These endpoints allow you to block, unblock and get the list of blocked WhatsApp user numbers. Endpoint What it does Block This endpoint allows you to block a number. Unblock This endpoint allows you to unblock a number you previously blocked. Get Blocked List This endpoint allows you to see all the numbers you blocked. What happens here? Sometimes you wish to block a contact number (WhatsApp number) from sending you a message, for any kind of reason. When you do this, this will happen: The user cannot contact your WhatsApp number at all: they won't be able to send you any message (they will see 1 grey check mark). You can't message that user either. If you try to send, you will get an error. More Remarks You can only block users that have messaged you in the last 24 hours. The maximum limit is 64,000 numbers that you can have in your \"block list\". Best Practice - how to use This blacklist can be used, for example, when you send a template to the user with one of the buttons being \"Unsubscribe\": when the user clicks on it, you can add them to the block list. This endpoint is not only blocking incoming, but also outgoing messages: it will prevent, from your end, any future templates you might accidentally try to send them again. A real blacklist. Another use case: if a client sends you unwanted messages (or files), triggering your chat bot or other processes and integrations, you can stop their messages by blocking their number."
    },
    {
      "id": "whatsapp-api/block",
      "title": "Block",
      "url": "https://docs.99digital.co.il/whatsapp-api/black-list-block/block",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/black-list-block/block.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Black list (Block)"
      ],
      "language": "en",
      "description": "This endpoint allows you to block a number.",
      "endpoint": {
        "method": "POST",
        "path": "/block",
        "url": "https://api.99digital.co.il/whatsapp/v2/block"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 7"
      ],
      "keywords": [
        "block",
        "from",
        "whatsapp",
        "status",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/block This endpoint allows you to block a number. The user cannot contact your WhatsApp number at all (they will see 1 grey check mark), and you can't message that user either: if you try to send, you will get an error. You can only block users that have messaged you in the last 24 hours, and the maximum is 64,000 numbers in your block list. See Black List (Block) for how it works and when to use it. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/block Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes whatsapp The number you want to block, in international format, digits only. For example: 972501234567 yes Response { \"status\": \"OK\", \"from\": \"972771234567\", \"whatsapp\": \"972501234567\", \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL from Your WhatsApp account whatsapp The number that you blocked reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 whatsapp is either empty or wrong number format 6 Error blocking the number, please try again 7 You are trying to block a number, but it has been more than 24 hours since the user sent you a message. You need to wait for their next message. 8 The 64,000 block limit has been reached Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . whatsapp string Yes The number you want to block, in international format, digits only. Example: 972501234567 . Example (generated from the schema) { \"from\": \"972771234567\", \"whatsapp\": \"972501234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the number is blocked. Always OK . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . whatsapp string (one of: OK) The number that you blocked. Example: 972501234567 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'whatsapp' is either empty or wrong number format; 6 — Error blocking the number, please try again; 7 — You are trying to block a number, but it has been more than 24 hours since the user sent you a message. You need to wait for their next message; 8 — The 64,000 block limit has been reached. Example: OK The number is blocked. { \"status\": \"OK\", \"from\": \"972771234567\", \"whatsapp\": \"972501234567\", \"reason\": 1 } Example: Reason 7 The user hasn't messaged you in the last 24 hours. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/unblock",
      "title": "Unblock",
      "url": "https://docs.99digital.co.il/whatsapp-api/black-list-block/unblock",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/black-list-block/unblock.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Black list (Block)"
      ],
      "language": "en",
      "description": "This endpoint allows you to unblock a number you previously blocked.",
      "endpoint": {
        "method": "POST",
        "path": "/unblock",
        "url": "https://api.99digital.co.il/whatsapp/v2/unblock"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 4"
      ],
      "keywords": [
        "unblock",
        "from",
        "whatsapp",
        "status",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/unblock This endpoint allows you to unblock a number you previously blocked. See Black List (Block) for how blocking works. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/unblock Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes whatsapp The number you want to unblock, in international format, digits only. For example: 972501234567 yes Response { \"status\": \"OK\", \"from\": \"972771234567\", \"whatsapp\": \"972501234567\", \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL from Your WhatsApp account whatsapp The number that you unblocked reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 whatsapp is either empty or wrong number format 6 Error unblocking the number, please try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . whatsapp string Yes The number you want to unblock, in international format, digits only. Example: 972501234567 . Example (generated from the schema) { \"from\": \"972771234567\", \"whatsapp\": \"972501234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the number is unblocked. Always OK . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . whatsapp string (one of: OK) The number that you unblocked. Example: 972501234567 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'whatsapp' is either empty or wrong number format; 6 — Error unblocking the number, please try again. Example: OK The number is unblocked. { \"status\": \"OK\", \"from\": \"972771234567\", \"whatsapp\": \"972501234567\", \"reason\": 1 } Example: Reason 4 'whatsapp' is either empty or wrong number format. { \"status\": \"FAIL\", \"reason\": 4 }"
    },
    {
      "id": "whatsapp-api/blocked-list",
      "title": "Get Blocked List",
      "url": "https://docs.99digital.co.il/whatsapp-api/black-list-block/get-blocked-list",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/black-list-block/get-blocked-list.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Black list (Block)"
      ],
      "language": "en",
      "description": "This endpoint allows you to see all the numbers you blocked.",
      "endpoint": {
        "method": "POST",
        "path": "/blockedList",
        "url": "https://api.99digital.co.il/whatsapp/v2/blockedList"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3"
      ],
      "keywords": [
        "blockedList",
        "from",
        "status",
        "numbers",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/blockedList This endpoint allows you to see all the numbers you blocked. See Black List (Block) for how blocking works. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/blockedList Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes Response { \"status\": \"OK\", \"from\": \"972771234567\", \"numbers\": [\"972501234567\", \"972501234568\"] } Response-Explain Parameter Description status OK or FAIL from Your WhatsApp account numbers Array of the numbers that were blocked by you reason Only in a FAIL response: the status explanation — see the table below. reason Description 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . Example (generated from the schema) { \"from\": \"972771234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — numbers lists the numbers you blocked. Always OK . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . numbers array of string (one of: OK) The numbers that you blocked. status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us. Example: OK Every number you blocked. { \"status\": \"OK\", \"from\": \"972771234567\", \"numbers\": [ \"972501234567\", \"972502958372\" ] } Example: Reason 3 Wrong apiKey, or the \"from\" number is not registered with us. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "whatsapp-api/request-phone",
      "title": "Request Phone",
      "url": "https://docs.99digital.co.il/whatsapp-api/request-phone",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/request-phone.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API"
      ],
      "language": "en",
      "description": "Ask a client who hides their phone number behind a WhatsApp username to share their phone number and name with you.",
      "endpoint": {
        "method": "POST",
        "path": "/requestPhone",
        "url": "https://api.99digital.co.il/whatsapp/v2/requestPhone"
      },
      "headings": [
        "Explanation",
        "Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 7"
      ],
      "keywords": [
        "requestPhone",
        "from",
        "to",
        "body",
        "showRequest",
        "status",
        "unique",
        "timestamp",
        "templateTimeLeft",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/requestPhone Ask a client who hides their phone number behind a WhatsApp username to share their phone number and name with you. You can use the \"Request Phone\" API in one case only: you reply to a message that the client sent, within 24 hours since the client sent their last message. Explanation Requesting a phone is used only when the client is using the \"username\" feature, and hides their phone number on WhatsApp. When a client is hiding their phone number and their name, you can use Request Phone to ask the client to reveal their phone number to you. Read more about usernames. The user will get a message with a button (you can't control its text), asking whether they want to reveal their phone number and their name to you. After the client confirms and clicks the button, the new phone number data will be sent as a phone type inside the webhook. Remarks You can use the \"Request Phone\" API in one case only: to reply to a message that the client sent, within 24 hours since the client sent their last message. The billing is per message: when sending this message, you will be billed. Every time the client replies, the template message session resets, which means that you don't have to use a template message during this 24-hour template message session. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/requestPhone Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The user id you want to send the message to (it arrives as from id in your webhook). For example: IL.1605856887361213 yes body Your message goes here. \\n for a new line text for bold text for italic text for strikethrough yes showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 - enable no Response { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"body\": \"Please click to share your phone number\", \"timestamp\": 1705225312, \"from\": \"972771234567\", \"to\": \"IL.1605856887361213\", \"templateTimeLeft\": 1372, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL . Note: OK status doesn't mean the message arrived to the end user. It only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. body The text you sent timestamp Time stamp of the message (Unix time, in seconds) from Your WhatsApp account to The number or the user id that the message was sent to templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 to is either empty or wrong format 5 body is empty or wrong 6 WhatsApp error - try again 7 You are trying to send a message but it has been more than 24 hours since the client's last message. Please use Send Template instead. 8 You are trying to send a message for the first time to a contact. Please use Send Template Message instead. 9 Rate limit error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The user id you want to send the message to (it arrives as from id in your webhook). Example: IL.1605856887361213 . body string Yes Your message goes here. Use \\n for a new line, text for bold, text for italic and text for strikethrough. Example: To complete your order we need your phone number - please tap the button to share it. . showRequest integer No You can get back in the response an object with all the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example (generated from the schema) { \"from\": \"972771234567\", \"to\": \"IL.1605856887361213\", \"body\": \"To complete your order we need your phone number - please tap the button to share it.\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . body string (one of: OK) The text you sent. timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The user id that the message was sent to. Example: IL.1605856887361213 . templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Example: 1200 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. originalRequest.from string (one of: OK) The from you sent — your WhatsApp account. originalRequest.to string (one of: OK) The to you sent — the user id of the client. originalRequest.body string (one of: OK) The body you sent — the message text. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong format; 5 — 'body' is empty or wrong; 6 — WhatsApp error — try again; 7 — You are trying to send a message but it has been more than 24 hours since the client's last message. Please use 'Send Template' instead; 8 — You are trying to send a message for the first time to a contact. Please use 'Send Template' message instead; 9 — Rate limit error, try again. Example: OK The system received your request. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"body\": \"To complete your order we need your phone number - please tap the button to share it.\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"IL.1605856887361213\", \"templateTimeLeft\": 1200, \"reason\": 1 } Example: Reason 7 More than 24 hours have passed since the client's last message. Use 'Send Template' instead. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/set-webhook",
      "title": "Set Webhook",
      "url": "https://docs.99digital.co.il/whatsapp-api/webhook/set-webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/webhook/set-webhook.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Webhook"
      ],
      "language": "en",
      "description": "Set Webhook allows you to set the webhook URL you want for all incoming messages and acknowledges.",
      "endpoint": {
        "method": "POST",
        "path": "/setWebhook",
        "url": "https://api.99digital.co.il/whatsapp/v2/setWebhook"
      },
      "headings": [
        "Retry mechanism",
        "Remarks",
        "Authentication",
        "Request body",
        "Example: URL",
        "Example: URL + all notifications",
        "Example: System alerts to my phone",
        "Example: Turn off the webhook",
        "Example: Clear alert phones",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — some fields",
        "Example: Webhook turned off",
        "Example: Reason 3",
        "Example: Reason 5",
        "Example: Reason 9"
      ],
      "keywords": [
        "setWebhook",
        "from",
        "url",
        "system",
        "systemPhoneAlert",
        "readStatus",
        "retry",
        "status",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/setWebhook Set Webhook allows you to set the webhook URL you want for all incoming messages and acknowledges. What we send to this URL, and when, is explained on the Webhook page: one page for every kind of webhook — Incoming Messages, Acknowledge, System Messages, Contacts Update and Outgoing Messages. Settings: Setting Value URL https://api.99digital.co.il/whatsapp/v2/setWebhook Method JSON via POST Header Value apiKey Your API key for the service Body: Parameter Description / Example Mandatory Example from Your WhatsApp account. International number without + , for example: 972771234567 . yes 972771234567 url The webhook URL. It must start with http:// or https:// . If you need to clear this data, you can send \" \" (space): the webhook is turned off and nothing is sent until you set a URL again. no https://your-server.example.com/99digital/whatsapp-webhook system System messages notifications (System Messages). 0 for off, 1 for on. Default is off. no 1 systemPhoneAlert You can receive all system notifications via WhatsApp message directly from us. Here you can specify the phone you wish us to send the messages to (starting with 972). The messages will be sent in Hebrew. A list of phone numbers is accepted by providing comma separation, up to 5 numbers — digits and commas only, without spaces or + . If you need to clear this data, you can send \" \" (space). no 972502211234,972527788695 readStatus Read status notification — sent / delivered / read / failed (Acknowledge). 0 is off, 1 is on. Default is off. no 1 retry Retry mechanism for webhook sending — see \"Retry mechanism\" below. 1 — enable this feature. 0 — disable this feature. By default, this feature is disabled (0). no 1 Every field except from is optional: a field you leave out keeps its current value, so you can change one setting at a time. Changes take effect immediately. Use Get Webhook to see all your current settings. Retry mechanism Whenever we have a new update that we need to deliver to you, we will try to deliver it to your webhook. Your webhook must respond with a 2xx status (200 OK, 201, 204 …): we wait up to 5 seconds to connect to your server and up to 15 seconds for its answer. If this happens, we assume the message was received successfully. If this does not happen, we will initiate more retries in the following sequence (the same payload every time): retry 1 — immediately after the first attempt retry 2 — after 5 minutes retry 3 — after 20 minutes retry 4 — after 1 hour retry 5 — after 4 hours retry 6 — after 24 hours After that, we will stop trying to deliver the webhook message. By default, this feature is disabled (0), which means that we try to send only once, without any retries. Response: { \"status\": \"OK\", \"url\": \"https://your-server.example.com/99digital/whatsapp-webhook\", \"system\": 1, \"systemPhoneAlert\": \"972502211234\", \"readStatus\": 1, \"retry\": 0, \"reason\": 1 } Response explained: Parameter Description status OK or FAIL url The webhook url you provided system The system messages setting you provided systemPhoneAlert The phone numbers you provided readStatus The read status setting you provided retry The retry setting you provided reason The status explanation — see below A field you did not send in this request comes back as null and keeps its saved value. Reason Explanation 1 Not FAIL. The status is OK. 2 from is missing, or a JSON syntax error. 3 Wrong apiKey, or your \"from\" number account does not exist. 4 system must be 0 or 1. 5 systemPhoneAlert list is invalid — digits and commas only. 6 readStatus is invalid — it must be 0 or 1. 7 retry is invalid — it must be 0 or 1. 9 The url is invalid — it must start with http:// or https:// . Remarks Incoming messages, contacts updates and outgoing messages (coexistence) are sent whenever a url is set. Acknowledges (sent / delivered / read / failed) are sent only with readStatus 1, and system messages only with system 1. Webhook messages come from the IP address 34.165.99.212 . In case you are required to whitelist, please whitelist this IP. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . url string No The webhook URL. It must start with http:// or https:// . If you need to clear this data, you can send \" \" (space): the webhook is turned off and nothing is sent until you set a URL again. Example: https://your-server.example.com/99digital/whatsapp-webhook . system integer No System messages notifications: updates about your account, your templates and messages that failed — see System Messages. 0 for off, 1 for on. Default is off. One of: 0 — Off; 1 — On. Default: 0 . Example: 1 . systemPhoneAlert string No You can receive all system notifications via WhatsApp message directly from us. Here you can specify the phone you wish us to send the messages to, in international format (starting with 972). The messages will be sent in Hebrew. A list of phone numbers is accepted by providing comma separation, up to 5 numbers — digits and commas only, without spaces or + . If you need to clear this data, you can send \" \" (space). Example: 972502211234,972527788695 . readStatus integer No Read status notification: the acknowledge webhooks (sent / delivered / read / failed) of the messages you send — see Acknowledge. 0 is off, 1 is on. Default is off. One of: 0 — Off; 1 — On. Default: 0 . Example: 1 . retry integer No Retry mechanism for webhook sending. Whenever we have a new update that we need to deliver to you, we will try to deliver it to your webhook. Your webhook must respond with a 2xx status (200 OK, 201, 204 …): we wait up to 5 seconds to connect to your server and up to 15 seconds for its answer. If this happens, we assume the message was received successfully. If this does not happen, we will initiate more retries in the following sequence (the same payload every time): - retry 1 — immediately after the first attempt - retry 2 — after 5 minutes - retry 3 — after 20 minutes - retry 4 — after 1 hour - retry 5 — after 4 hours - retry 6 — after 24 hours After that, we will stop trying to deliver the webhook message. By default, this feature is disabled (0), which means that we try to send only once, without the retries above. One of: 0 — Disable this feature — one attempt only; 1 — Enable this feature. Default: 0 . Example: 1 . Example: URL Set the webhook URL; the other settings keep their current values. { \"from\": \"972771234567\", \"url\": \"https://your-server.example.com/99digital/whatsapp-webhook\" } Example: URL + all notifications The recommended production setup: incoming messages, acknowledges, system messages and retries all on. { \"from\": \"972771234567\", \"url\": \"https://your-server.example.com/99digital/whatsapp-webhook\", \"system\": 1, \"readStatus\": 1, \"retry\": 1 } Example: System alerts to my phone Receive the system notifications as WhatsApp messages (in Hebrew) on up to 5 phone numbers. { \"from\": \"972771234567\", \"system\": 1, \"systemPhoneAlert\": \"972502211234,972527788695\" } Example: Turn off the webhook A space as url clears it — nothing is sent until you set a URL again. { \"from\": \"972771234567\", \"url\": \" \" } Example: Clear alert phones A space as systemPhoneAlert clears the phone numbers. { \"from\": \"972771234567\", \"systemPhoneAlert\": \" \" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the settings were saved. Always OK . url string \\ null (one of: OK) The webhook url you provided, as you sent it. Example: https://your-server.example.com/99digital/whatsapp-webhook . system integer \\ null (one of: OK) The system messages setting you provided. Example: 1 . systemPhoneAlert string \\ null (one of: OK) The phone numbers you provided, as you sent them. Example: 972502211234,972527788695 . readStatus integer \\ null (one of: OK) The read status setting you provided. Example: 1 . retry integer \\ null (one of: OK) The retry setting you provided. Example: 1 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — nothing was saved; reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'system' must be 0 or 1; 5 — 'systemPhoneAlert' list is invalid — digits and commas only; 6 — 'readStatus' is invalid — it must be 0 or 1; 7 — 'retry' is invalid — it must be 0 or 1; 9 — The url is invalid — it must start with http:// or https://. Example: OK The settings of \"URL + all notifications\" are saved. { \"status\": \"OK\", \"url\": \"https://your-server.example.com/99digital/whatsapp-webhook\", \"system\": 1, \"systemPhoneAlert\": null, \"readStatus\": 1, \"retry\": 1, \"reason\": 1 } Example: OK — some fields Only system and systemPhoneAlert were sent; the fields you left out are null and keep their saved values. { \"status\": \"OK\", \"url\": null, \"system\": 1, \"systemPhoneAlert\": \"972502211234,972527788695\", \"readStatus\": null, \"retry\": null, \"reason\": 1 } Example: Webhook turned off The url you sent (a space) is echoed as is. { \"status\": \"OK\", \"url\": \" \", \"system\": null, \"systemPhoneAlert\": null, \"readStatus\": null, \"retry\": null, \"reason\": 1 } Example: Reason 3 Wrong apiKey, or the \"from\" number is not registered with us. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 5 'systemPhoneAlert' contains something other than digits and commas. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 9 The url does not start with http:// or https://. { \"status\": \"FAIL\", \"reason\": 9 }"
    },
    {
      "id": "whatsapp-api/webhook/overview",
      "title": "Webhook",
      "url": "https://docs.99digital.co.il/whatsapp-api/webhook/webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/webhook/webhook.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Webhook",
        "Webhook"
      ],
      "language": "en",
      "description": "How webhooks arrive from the WhatsApp API — incoming messages, acknowledges, system messages, contacts updates and outgoing messages — the IP address they come from, and delivery and retries.",
      "headings": [
        "Webhook types",
        "IP addresses",
        "Delivery and retries",
        "Remarks"
      ],
      "keywords": [
        "webhook",
        "callback",
        "incoming messages",
        "acknowledge",
        "read status",
        "system messages",
        "contacts update",
        "outgoing messages",
        "coexistence",
        "retry",
        "IP address",
        "whitelist"
      ],
      "content": "Webhook allows you to get a callback push to your server whenever there is an incoming message or status. You need to set the webhook URL with the Set Webhook API. Get Webhook shows your current settings. Every webhook is sent to your URL as JSON via POST ( Content-Type: application/json ), and hook tells you what arrived. Settings: Setting Value URL Your URL Method JSON via POST Webhook types Every kind of webhook has its own page, with its explanation, an example, and every parameter explained: Webhook hook What arrives When it is sent Incoming Messages new Every incoming message from a client: text, media, location, contacts, button and list replies, reactions, store orders and more. Always, once a webhook URL is set. Acknowledge update For every message or template you send: failed, sent, delivered or read. Turned off by default — enable with readStatus 1 in Set Webhook. System Messages system Updates about your account: daily limit, spam flags, account blocked, templates approved or rejected, failed messages, display name. Turned off by default — enable with system 1 in Set Webhook. Contacts Update contact A contact was added or changed in the WhatsApp Business app (coexistence accounts). Turned on by default. Outgoing Messages outgoing A message the user sent from the WhatsApp Business app on their phone, outside the API (coexistence accounts). Turned on by default. IP addresses Note! Webhook messages come from the following IP address. In case you are required to whitelist, please whitelist this: 34.165.99.212 If you wish to whitelist the IP of the API endpoints too ( https://api.99digital.co.il/whatsapp/v2/ , the address your own requests go to), you should whitelist this IP: 130.211.28.127 . You need it only if your firewall also limits outgoing traffic. Delivery and retries Your webhook must respond with a 2xx status (200 OK, 201, 204 …). We wait up to 5 seconds to connect to your server and up to 15 seconds for its answer, so answer first and process the webhook afterwards. Any other answer counts as a failed delivery. The body of your answer is ignored. With retry 1 in Set Webhook, a failed delivery is retried immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours, with the same payload. After that, we stop trying to deliver the webhook message. Without it, we try once. When your server can't be reached or answers 429, 500, 502, 503 or 504, each attempt is repeated up to 3 more times within a few seconds. The same webhook can therefore arrive more than once, even with retry 0: use hook and unique (and ack for acknowledges) to ignore duplicates. The order of the webhooks is not guaranteed. For example, a delivered acknowledge ( ack 2) may arrive before the sent one ( ack 1). There is no signature header: restrict your endpoint to our IP address and keep its URL secret. Remarks You must download the link files (images, audio, video, documents) to your server. We delete all files within 7 days. In the text of text , button and list messages, in senderName and in contact names, a single quote ( ' ) arrives as a backtick ( )."
    },
    {
      "id": "whatsapp-api/incoming-messages",
      "title": "Incoming Messages",
      "url": "https://docs.99digital.co.il/whatsapp-api/webhook/incoming-messages",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/webhook/incoming-messages.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Webhook",
        "Webhook"
      ],
      "language": "en",
      "description": "With every incoming message, you will receive the following webhook",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Response explained",
        "body by message type",
        "caption by message type",
        "referral",
        "order",
        "Remarks",
        "Webhook payload",
        "Example: Text",
        "Example: Quoted reply",
        "Example: Image",
        "Example: Video",
        "Example: Audio",
        "Example: Voice message (ptt)",
        "Example: Document",
        "Example: Location",
        "Example: Location (Request Location)",
        "Example: Contact",
        "Example: Button reply",
        "Example: Template quick reply",
        "Example: List reply",
        "Example: Reaction",
        "Example: Order",
        "Example: Phone (Request Phone)",
        "Example: Hidden number",
        "Example: Ad referral",
        "Responses",
        "200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored.",
        "default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
      ],
      "keywords": [
        "incomingMessages",
        "status",
        "hook",
        "unique",
        "from",
        "from_id",
        "username",
        "country",
        "phone",
        "to",
        "senderName",
        "type",
        "body",
        "caption",
        "template",
        "isForwarded",
        "timestamp",
        "timestampMS",
        "media",
        "quote",
        "quoteUnique",
        "profilePic",
        "conversationTimeLeft",
        "isNewConversation",
        "referral",
        "ref_type",
        "ref_title",
        "ref_body",
        "ref_id",
        "ref_link",
        "ref_image",
        "order",
        "product_retailer_id",
        "quantity",
        "item_price",
        "currency"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. With every incoming message, you will receive the following webhook ( hook \"new\"). Settings: Setting Value URL Your URL — set it with Set Webhook Method JSON via POST Incoming messages webhooks are always sent once a webhook URL is set. How webhooks are delivered and retried, and the IP address they come from, is explained on Webhook. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": \"IL.1605856887361213\", \"username\": null, \"country\": \"IL\", \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"text\", \"body\": \"Hi, is the store open today?\", \"caption\": \"\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1435, \"isNewConversation\": 1, \"referral\": { \"ref type\": \"none\" } } You must download the link files to your server. We delete all files within 7 days. Response explained Parameter Description / Example status \"OK\" always. hook \"new\" always, for a new incoming message. unique Unique ID for the incoming message. Use it as replyTo to quote the message in your reply, or to react to it with Send Reaction. from The contact person that sent you the message, in international format: 972501234567 . If the person is hiding their identity (enabled the username feature), this value will return the from id , for example IL.1605856887361213 . from id The contact person (sender) user id. It arrives whenever WhatsApp provides it, also when the client did not hide their identity; otherwise null. The format is always 2 letters country code + dot + 16 digits, for example IL.1605856887361213 . This value is fixed per end user per WhatsApp API account. You can use this value to send messages to the client. username The username the client chose for their WhatsApp. This feature is not available yet and will return null until officially released by Meta. country The country code (two letters) of the contact person (sender), taken from their user id. Null when there is no user id. phone The contact person phone number, in international format, for example 972501234567 . If the phone number is not available (the client hides their identity), this will return null. to Your WhatsApp account. senderName The name of the person that sent the message. For type phone , the name they shared. type Message type. Can be one of the following: text , image , audio , video , location , ptt , document , button , contacts , list , reaction , order , phone . What arrives in body and caption for each type is in the tables below. body The content of the 'body' depends on the 'type' of the message — see \" body by message type\" below. caption The content of the 'caption' depends on the 'type' of the message — see \" caption by message type\" below. template The template name, if the client clicked on a quick reply button when getting the template (Send a Template). For everything else, this will return null. isForwarded Shows if the incoming message is forwarded — true or false. timestamp Time stamp of the incoming message (Unix time, in seconds, as a string). timestampMS The sub-second part of the timestamp (the digits after the decimal point of the time we processed the message), in case you need it. media If this message contains any media file, it will be true; otherwise false. quote If this message is a quoted message, it will be true; otherwise false. A reaction is always quoted: it points to the message the client reacted to. quoteUnique In case the message is quoted (it means that someone replied to your outgoing message), this will be the original message unique ID — for your own message, the unique you received when you sent it. For a reaction, the message the client reacted to. If the message is not quoted, this will be false. profilePic jpg file link to the client's profile picture, if the user has a profile picture and their privacy settings allow it; otherwise a link to a default image. Profile picture links are generated once per number. conversationTimeLeft Amount of minutes left for the incoming conversation session to end (up to 1435). If passed, any incoming message after that will be considered as a new incoming conversation, and the timer will reset. isNewConversation Whether this message started a new incoming message conversation session or not. 0 — this new message does not open a new conversation. 1 — this new message opens a new conversation. referral Object of items that describes the original referral that initiated the incoming WhatsApp message — see \" referral \" below. order Only for type order : the list of products of the order summary that was sent from your WhatsApp store — see \" order \" below. body by message type Type The data that will come text Regular incoming message image A link to download the image file (jpg) audio A link to download the audio file (ogg) video A link to download the video file (mp4) location A location text in format latitude,longitude ptt A link to download the push to talk audio (voice message, ogg) document A link to download the document file button The text of the button that was selected contacts The phone number that was shared list The selection text from the list reaction The emoji that was sent — empty when the client removed their reaction order The note the client wrote with the order — the items are in order phone The phone number that was shared when the client revealed their phone number (Request Phone) You must download the link files to your server: we delete all files within 7 days. Documents are kept as pdf, zip, xls, xlsx, doc, docx, csv, apk, rar, ppt, pptx or wav; a jpg, png or mp4 sent as a document arrives as image or video . If a file could not be kept (for example a document of another file type), body is empty and media is false. caption by message type Type The data that will come text Nothing, empty image Caption text with the image audio Nothing, empty video Caption text with the video location The name and address of the place ( name - address ), when the client shared a place; otherwise empty ptt Nothing, empty document Caption text with the document button The ID of the button that was selected. This ID arrives for the Send Buttons and Send Carousel button IDs, and for a template quick reply button (if you provided a quickReply button id) contacts The name of the contact list The item list ID that was selected (Send List) reaction Nothing, empty order The store (catalog) ID number phone The name of the person that revealed their phone number The answer to Request Location arrives as type location . referral Object of items that describes the original referral that initiated the incoming WhatsApp message. Available data: Field Description ref type none (for a non-referral incoming message), post (Facebook / Instagram post) or ad (Facebook / Instagram campaign). If the ref type is post or ad , more information will be available: Field Description ref title The title of the post / ad. ref body The message of the post / ad. ref id ID of the post / ad. ref link Link to the post / ad. ref image Image of the original post / ad (the link will be deleted in 7 days). Null when there is no image. \"referral\": { \"ref type\": \"ad\", \"ref title\": \"Summer sale\", \"ref body\": \"20% off everything\", \"ref id\": \"120210000000000000\", \"ref link\": \"https://fb.me/xyz123\", \"ref image\": \"https://storage.99digital.online/files/1789900000Qw3Er4Ty5U.jpg\" } order This is the list of products of the order summary that was sent from your WhatsApp store. This parameter is an array of items, and looks like this: \"order\": [ { \"product retailer id\": \"woo 92\", \"quantity\": 2, \"item price\": 24, \"currency\": \"ILS\" }, { \"product retailer id\": \"woo 70\", \"quantity\": 3, \"item price\": 10, \"currency\": \"ILS\" } ] Field Description product retailer id The product ID of the item. quantity The quantity of that product. item price The price of each product. currency The currency of that product. Remarks Stickers and other message kinds that are not listed in type are not forwarded. In the text of text , button and list messages, in senderName and in contact names, a single quote ( ' ) arrives as a backtick ( ). An example of every message type is under Webhook payload below. Webhook payload Content type: application/json (required) Field Type Required Description status string Yes \"OK\" always. One of: OK . hook string Yes \"new\" always, for a new incoming message. Always new . unique string Yes Unique ID for the incoming message. Use it as replyTo to quote the message in your reply, or to react to it with Send Reaction. Example: 92E004B950CCEA3C386FCFA2AAF8558A . from string Yes The contact person that sent you the message, in international format: 972501234567 . If the person is hiding their identity (enabled the username feature), this value will return the from id , for example IL.1605856887361213 . Example: 972501234567 . from id string \\ null Yes The contact person (sender) user id. It arrives whenever WhatsApp provides it, also when the client did not hide their identity; otherwise null. The format is always 2 letters country code + dot + 16 digits, for example IL.1605856887361213 . This value is fixed per end user per WhatsApp API account. You can use this value to send messages to the client. Example: IL.1605856887361213 . username null Yes The username the client chose for their WhatsApp. This feature is not available yet and will return null until officially released by Meta. country string \\ null Yes The country code (two letters) of the contact person (sender), taken from their user id. Null when there is no user id. Example: IL . phone string \\ null Yes The contact person phone number, in international format, for example 972501234567 . If the phone number is not available (the client hides their identity), this will return null. Example: 972501234567 . to string Yes Your WhatsApp account. Example: 972771234567 . senderName string Yes The name of the person that sent the message. For type phone , the name they shared. Example: Dana Cohen . type string Yes Message type. ptt is a voice message (push to talk). button and list are the client's choice in Send Buttons, Send Carousel, Send List or a template quick reply button. order is a cart from your WhatsApp store. phone is the client's phone number, shared through Request Phone. The answer to Request Location arrives as location . One of: text , image , audio , video , location , ptt , document , button , contacts , list , reaction , order , phone . Example: text . body string Yes The content of the 'body' depends on the 'type' of the message: \\ Type \\ The data that will come \\ \\ --- \\ --- \\ \\ text \\ Regular incoming message \\ \\ image \\ A link to download the image file (jpg) \\ \\ audio \\ A link to download the audio file (ogg) \\ \\ video \\ A link to download the video file (mp4) \\ \\ location \\ A location text in format latitude,longitude \\ \\ ptt \\ A link to download the push to talk audio (ogg) \\ \\ document \\ A link to download the document file \\ \\ button \\ The text of the button that was selected \\ \\ contacts \\ The phone number that was shared \\ \\ list \\ The selection text from the list \\ \\ reaction \\ The emoji that was sent — empty when the client removed their reaction \\ \\ order \\ The note the client wrote with the order — the items are in order \\ \\ phone \\ The phone number that was shared when the client revealed their phone number \\ You must download the link files to your server: we delete all files within 7 days. Documents are kept as pdf, zip, xls, xlsx, doc, docx, csv, apk, rar, ppt, pptx or wav; a jpg, png or mp4 sent as a document arrives as image or video . If a file could not be kept (for example a document of another file type), body is empty and media is false. Example: Hi, is the store open today? . caption string Yes The content of the 'caption' depends on the 'type' of the message: \\ Type \\ The data that will come \\ \\ --- \\ --- \\ \\ text \\ Nothing, empty \\ \\ image \\ Caption text with the image \\ \\ audio \\ Nothing, empty \\ \\ video \\ Caption text with the video \\ \\ location \\ The name and address of the place ( name - address ), when the client shared a place; otherwise empty \\ \\ ptt \\ Nothing, empty \\ \\ document \\ Caption text with the document \\ \\ button \\ The ID of the button that was selected. This ID arrives for the sendButtons and sendCarousel button IDs, and for a template quick reply button (if you provided a quickReply button id) \\ \\ contacts \\ The name of the contact \\ \\ list \\ The item list ID that was selected \\ \\ reaction \\ Nothing, empty \\ \\ order \\ The store (catalog) ID number \\ \\ phone \\ The name of the person that revealed their phone number \\ . Example: . template string \\ null Yes The template name, if the client clicked on a quick reply button of a template you sent (Send a Template). For everything else, this will return null. Example: null . isForwarded boolean Yes Shows if the incoming message is forwarded — true or false. Example: false . timestamp string Yes Time stamp of the incoming message (Unix time, in seconds, as a string). Example: 1789900000 . timestampMS integer Yes The sub-second part of the time we processed the message (the digits after the decimal point), in case you need it. Example: 483921 . media boolean Yes If this message contains a media file ( body is a link to it), it will be true; otherwise false. Example: false . quote boolean Yes If this message is a quoted message, it will be true; otherwise false. A reaction is always quoted: it points to the message the client reacted to. Example: false . quoteUnique string \\ boolean Yes In case the message is quoted (it means that someone replied to your outgoing message), this will be the original message unique ID — for your own message, the unique you received when you sent it. For a reaction, the message the client reacted to. If the message is not quoted, this will be false. Example: false . profilePic string Yes jpg file link to the client's profile picture, if the user has a profile picture and their privacy settings allow it; otherwise a link to a default image. Profile picture links are generated once per number. Example: https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg . conversationTimeLeft integer Yes Amount of minutes left for the incoming conversation session to end (up to 1435). If passed, any incoming message after that will be considered as a new incoming conversation, and the timer will reset. Example: 1435 . isNewConversation integer Yes Whether this message started a new incoming message conversation session or not. One of: 0 — This new message does not open a new conversation; 1 — This new message opens a new conversation. Example: 1 . referral object Yes Object of items that describes the original referral that initiated the incoming WhatsApp message. If the ref type is 'post' or 'ad', more information is available. referral.ref type string Yes The referral type. One of: none — Not a referral incoming message; post — Facebook / Instagram post; ad — Facebook / Instagram campaign. referral.ref title string No The title of the post / ad. referral.ref body string No The message of the post / ad. referral.ref id string No ID of the post / ad. referral.ref link string No Link to the post / ad. referral.ref image string \\ null No Image of the original post / ad (the link will be deleted in 7 days). Null when there is no image. order array of object No Only for type order : the list of products of the order summary that was sent from your WhatsApp store. order[].product retailer id string No The product ID of the item. Example: woo 92 . order[].quantity integer No The quantity of that product. Example: 2 . order[].item price number No The price of each product. Example: 24 . order[].currency string No The currency of that product. Example: ILS . Example: Text A regular incoming text message — here the first one of a new conversation. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"text\", \"body\": \"Hi, is the store open today?\", \"caption\": \"\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1435, \"isNewConversation\": 1, \"referral\": { \"ref type\": \"none\" } } Example: Quoted reply The client quoted your message: quoteUnique is the unique you received when you sent it. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"text\", \"body\": \"Yes, tomorrow at 10:00 works for me\", \"caption\": \"\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": true, \"quoteUnique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Image body is a link to the image file (jpg), caption the text with it. Download it — we delete files within 7 days. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"image\", \"body\": \"https://storage.99digital.online/files/1789900000Ab3dE9fGh1.jpg\", \"caption\": \"My receipt\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": true, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Video body is a link to the video file (mp4). { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"video\", \"body\": \"https://storage.99digital.online/files/1789900000Kp4LmN7qRs.mp4\", \"caption\": \"This is the noise it makes\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": true, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Audio body is a link to the audio file (ogg); caption is empty. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"audio\", \"body\": \"https://storage.99digital.online/files/1789900000Wq2Er5TyUi.ogg\", \"caption\": \"\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": true, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Voice message (ptt) A voice message (push to talk): body is a link to the audio (ogg); caption is empty. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"ptt\", \"body\": \"https://storage.99digital.online/files/1789900000Hj8Kl3ZxCv.ogg\", \"caption\": \"\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": true, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Document body is a link to the document file, caption the text with it. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"document\", \"body\": \"https://storage.99digital.online/files/1789900000Zx9Yw8Vu7T.pdf\", \"caption\": \"Signed contract\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": true, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Location body is latitude,longitude ; caption is the name and address of the place the client shared. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"location\", \"body\": \"32.0853,34.7818\", \"caption\": \"Azrieli Center - Menachem Begin 132, Tel Aviv\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Location (Request Location) The client shared their current location after Request Location: caption is empty. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"location\", \"body\": \"32.0853,34.7818\", \"caption\": \"\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Contact A shared contact: body is the phone number, caption the name. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"contacts\", \"body\": \"972521112233\", \"caption\": \"Yossi Levi\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Button reply A tap on a button of Send Buttons or Send Carousel: body is the button text, caption its ID. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"button\", \"body\": \"Track my order\", \"caption\": \"track order\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": true, \"quoteUnique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Template quick reply A tap on a quick reply button of a template: caption is the quickReply button id, template the template name. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"button\", \"body\": \"Confirm\", \"caption\": \"confirm\", \"template\": \"appointment reminder\", \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": true, \"quoteUnique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: List reply A choice from Send List: body is the selection text, caption the item ID. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"list\", \"body\": \"Support\", \"caption\": \"support\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": true, \"quoteUnique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Reaction body is the emoji; quoteUnique is the message the client reacted to. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"reaction\", \"body\": \"👍\", \"caption\": \"\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": true, \"quoteUnique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Order A cart from your WhatsApp store: order lists the items, body is the client's note, caption the store ID. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"order\", \"body\": \"Please deliver after 18:00\", \"caption\": \"1234567890123456\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" }, \"order\": [ { \"product retailer id\": \"woo 92\", \"quantity\": 2, \"item price\": 24, \"currency\": \"ILS\" }, { \"product retailer id\": \"woo 70\", \"quantity\": 3, \"item price\": 10, \"currency\": \"ILS\" } ] } Example: Phone (Request Phone) A client who hides their number shared it after Request Phone: body is the phone number, caption and senderName the name they shared. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"IL.1605856887361213\", \"from id\": \"IL.1605856887361213\", \"username\": null, \"country\": \"IL\", \"phone\": null, \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"phone\", \"body\": \"972501234567\", \"caption\": \"Dana Cohen\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/noprofile.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Hidden number A client who hides their number: from is their user id and phone is null. Reply to the user id. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"IL.1605856887361213\", \"from id\": \"IL.1605856887361213\", \"username\": null, \"country\": \"IL\", \"phone\": null, \"to\": \"972771234567\", \"senderName\": \"Dana\", \"type\": \"text\", \"body\": \"Hi, I saw your ad\", \"caption\": \"\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/noprofile.jpg\", \"conversationTimeLeft\": 1380, \"isNewConversation\": 0, \"referral\": { \"ref type\": \"none\" } } Example: Ad referral The conversation started from a Facebook / Instagram ad: referral describes it. { \"status\": \"OK\", \"hook\": \"new\", \"unique\": \"92E004B950CCEA3C386FCFA2AAF8558A\", \"from\": \"972501234567\", \"from id\": null, \"username\": null, \"country\": null, \"phone\": \"972501234567\", \"to\": \"972771234567\", \"senderName\": \"Dana Cohen\", \"type\": \"text\", \"body\": \"I would like to know more about the offer\", \"caption\": \"\", \"template\": null, \"isForwarded\": false, \"timestamp\": \"1789900000\", \"timestampMS\": 483921, \"media\": false, \"quote\": false, \"quoteUnique\": false, \"profilePic\": \"https://storage.99digital.online/profilePic/1789900000-ab12cd34.jpg\", \"conversationTimeLeft\": 1435, \"isNewConversation\": 1, \"referral\": { \"ref type\": \"ad\", \"ref title\": \"Summer sale\", \"ref body\": \"20% off everything\", \"ref id\": \"120210000000000000\", \"ref link\": \"https://fb.me/xyz123\", \"ref image\": \"https://storage.99digital.online/files/1789900000Qw3Er4Ty5U.jpg\" } } Responses 200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored. default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
    },
    {
      "id": "whatsapp-api/acknowledge",
      "title": "Acknowledge",
      "url": "https://docs.99digital.co.il/whatsapp-api/webhook/acknowledge",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/webhook/acknowledge.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Webhook",
        "Webhook"
      ],
      "language": "en",
      "description": "For every message or template you send, you can get an acknowledge if the",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Response explained",
        "isBilledTemplate",
        "newTemplateType",
        "ack",
        "Remarks",
        "Webhook payload",
        "Example: Ack 1 — sent",
        "Example: Ack 2 — delivered",
        "Example: Ack 3 — read",
        "Example: Ack 0 — failed",
        "Example: Billed template",
        "Responses",
        "200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored.",
        "default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
      ],
      "keywords": [
        "acknowledge",
        "status",
        "hook",
        "unique",
        "to",
        "from",
        "from_id",
        "country",
        "timestamp",
        "conversationTimeLeft",
        "isBilledTemplate",
        "newTemplateType",
        "isNewConversation",
        "newConversationType",
        "ack"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. For every message or template you send, you can get an acknowledge if the recipient received your message or not ( hook \"update\"). There are four available statuses: failed, sent, delivered, read. Acknowledges are turned off by default. You can enable them with readStatus in the Set Webhook endpoint. Settings: Setting Value URL Your URL — set it with Set Webhook Method JSON via POST With every acknowledge message, you will receive the following: { \"status\": \"OK\", \"hook\": \"update\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"to\": \"972771234567\", \"from\": \"972501234567\", \"from id\": \"IL.1605856887361213\", \"country\": \"IL\", \"timestamp\": \"1789900061\", \"conversationTimeLeft\": 1380, \"isBilledTemplate\": 0, \"newTemplateType\": 0, \"isNewConversation\": 0, \"newConversationType\": 0, \"ack\": 3 } Response explained Parameter Description / Example status \"OK\" always. hook \"update\" always, for an acknowledge update message. unique The same unique ID as the original message — the unique you received when you sent it. This parameter allows you to know which message was seen. to Your WhatsApp account. from The contact that you sent the message to. If you messaged a normal international number, this will return the number. If you messaged a user id (2 letters country code + dot + 16 digits), this will return this value. from id The user id of the contact that you sent the message to. Null when it is not known. country The country code (two letters) of the contact that you sent the message to, taken from their user id. Null when there is no user id. timestamp The timestamp of the ack (Unix time, in seconds, as a string). conversationTimeLeft The time (in minutes) that is left for the conversation between you and the end user to finish, in case an incoming conversation is open between you and the client; otherwise 0. A conversation is a 24 hours session. isBilledTemplate This value shows if a new billed template was sent to the client — see below. newTemplateType In case a new billed template is created under isBilledTemplate , here you can know the type of the template — see below. isNewConversation This value is no longer in use. It is always 0. newConversationType This value is no longer in use. It is always 0. ack Acknowledge type — see below. isBilledTemplate This value shows if a new billed template was sent to the client. You will get this only once per new billed template: 1 arrives on its first delivered ( ack 2) or read ( ack 3) update. If this value is 1, it means a new template is billed. If this value is 0, it means there is no new billing event. A billed template is: any marketing template you send. any utility template you send if no incoming 24 hours session is open with the client. any authentication template you send. newTemplateType Value Explanation 0 No billing template 1 Utility template. Authentication templates currently arrive as 1 too. 2 Marketing template 3 Authentication template (not sent at the moment — see 1) ack Value Explanation 0 Message failed to deliver. For more information, check the System Messages of type \"messages\" with the same unique (needs system 1 in Set Webhook). 1 Acknowledge that the message was sent (one gray check mark). 2 Acknowledge that the recipient received the message (two gray check marks). Message marked as delivered . 3 Acknowledge that the recipient read the message (two blue check marks). Message marked as read . This ack is only available if the recipient allowed it within their WhatsApp privacy settings inside the mobile app. The word \"conversation\" can be a little confusing regarding how it is counted and billed. Please see this page for more information: Template, conversation and Message. Remarks The order of the acknowledges is not guaranteed: a delivered acknowledge ( ack 2) may arrive before the sent one ( ack 1). The acknowledges of messages sent from the WhatsApp Business app of a coexistence account (Outgoing Messages) arrive here too, with the same unique . An example of every acknowledge is under Webhook payload below. Webhook payload Content type: application/json (required) Field Type Required Description status string Yes \"OK\" always. One of: OK . hook string Yes \"update\" always, for an acknowledge update message. Always update . unique string Yes The same unique ID as the original message — the unique you received when you sent it. This parameter allows you to know which message was seen. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . to string Yes Your WhatsApp account. Example: 972771234567 . from string Yes The contact that you sent the message to. If you messaged a normal international number, this will return the number. If you messaged a user id (2 letters country code + dot + 16 digits), this will return this value. Example: 972501234567 . from id string \\ null Yes The user id of the contact that you sent the message to. Null when it is not known. Example: null . country string \\ null Yes The country code (two letters) of the contact that you sent the message to, taken from their user id. Null when there is no user id. Example: null . timestamp string Yes The timestamp of the ack (Unix time, in seconds, as a string). Example: 1789900061 . conversationTimeLeft integer Yes The time (in minutes) that is left for the conversation between you and the end user to finish, in case an incoming conversation is open between you and the client; otherwise 0. A conversation is a 24 hours session. Example: 1380 . isBilledTemplate integer Yes This value shows if a new billed template was sent to the client. You will get 1 only once per new billed template: on its first delivered ( ack 2) or read ( ack 3) update. A billed template is: - any marketing template you send. - any utility template you send if no incoming 24 hours session is open with the client. - any authentication template you send. One of: 0 — No new billing event; 1 — A new template is billed — see newTemplateType . Example: 0 . newTemplateType integer Yes In case a new billed template is created under isBilledTemplate , here you can know the type of the template. One of: 0 — No billing template; 1 — Utility template. Authentication templates currently arrive as 1 too; 2 — Marketing template; 3 — Authentication template (not sent at the moment — see 1). Example: 0 . isNewConversation integer Yes Deprecated. This value is no longer in use. It is always 0. Example: 0 . newConversationType integer Yes Deprecated. This value is no longer in use. It is always 0. Example: 0 . ack integer Yes Acknowledge type. One of: 0 — Message failed to deliver. For more information, check the system message of type \"messages\" with the same unique (needs system 1); 1 — Acknowledge that the message was sent (one gray check mark); 2 — Acknowledge that the recipient received the message (two gray check marks). Message marked as delivered ; 3 — Acknowledge that the recipient read the message (two blue check marks). Message marked as read . This ack is only available if the recipient allowed it within their WhatsApp privacy settings inside the mobile app. Example: 3 . Example: Ack 1 — sent The message was sent (one gray check mark). { \"status\": \"OK\", \"hook\": \"update\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"to\": \"972771234567\", \"from\": \"972501234567\", \"from id\": null, \"country\": null, \"timestamp\": \"1789900061\", \"conversationTimeLeft\": 1380, \"isBilledTemplate\": 0, \"newTemplateType\": 0, \"isNewConversation\": 0, \"newConversationType\": 0, \"ack\": 1 } Example: Ack 2 — delivered The recipient received the message (two gray check marks). { \"status\": \"OK\", \"hook\": \"update\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"to\": \"972771234567\", \"from\": \"972501234567\", \"from id\": null, \"country\": null, \"timestamp\": \"1789900061\", \"conversationTimeLeft\": 1380, \"isBilledTemplate\": 0, \"newTemplateType\": 0, \"isNewConversation\": 0, \"newConversationType\": 0, \"ack\": 2 } Example: Ack 3 — read The recipient read the message (two blue check marks). { \"status\": \"OK\", \"hook\": \"update\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"to\": \"972771234567\", \"from\": \"972501234567\", \"from id\": null, \"country\": null, \"timestamp\": \"1789900061\", \"conversationTimeLeft\": 1380, \"isBilledTemplate\": 0, \"newTemplateType\": 0, \"isNewConversation\": 0, \"newConversationType\": 0, \"ack\": 3 } Example: Ack 0 — failed The message failed to deliver. The reason arrives as a system message of type \"messages\". { \"status\": \"OK\", \"hook\": \"update\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"to\": \"972771234567\", \"from\": \"972501234567\", \"from id\": null, \"country\": null, \"timestamp\": \"1789900061\", \"conversationTimeLeft\": 1380, \"isBilledTemplate\": 0, \"newTemplateType\": 0, \"isNewConversation\": 0, \"newConversationType\": 0, \"ack\": 0 } Example: Billed template A marketing template opened a new billed conversation: sent once, with its first delivered or read update. { \"status\": \"OK\", \"hook\": \"update\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"to\": \"972771234567\", \"from\": \"972501234567\", \"from id\": null, \"country\": null, \"timestamp\": \"1789900061\", \"conversationTimeLeft\": 0, \"isBilledTemplate\": 1, \"newTemplateType\": 2, \"isNewConversation\": 0, \"newConversationType\": 0, \"ack\": 2 } Responses 200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored. default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
    },
    {
      "id": "whatsapp-api/system-messages",
      "title": "System Messages",
      "url": "https://docs.99digital.co.il/whatsapp-api/webhook/system-messages",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/webhook/system-messages.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Webhook",
        "Webhook"
      ],
      "language": "en",
      "description": "System messages allow you to receive a webhook when there is a new update",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Response explained",
        "issues codes",
        "templateUpdate codes",
        "messageUpdate codes",
        "rejectReason codes",
        "Remarks",
        "Webhook payload",
        "Example: Message failed",
        "Example: Template approved",
        "Example: Template rejected",
        "Example: Template category",
        "Example: Daily limit",
        "Example: Account flagged",
        "Example: Account blocked",
        "Example: Display name",
        "Responses",
        "200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored.",
        "default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
      ],
      "keywords": [
        "systemMessages",
        "status",
        "hook",
        "type",
        "to",
        "timestamp",
        "update",
        "issues",
        "template",
        "templateUpdate",
        "templateCategory",
        "unique",
        "messageUpdate",
        "messageTo",
        "name",
        "rejectReason"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. System messages allow you to receive a webhook when there is a new update about your account ( hook \"system\"). The types of system messages you can get are: Daily limit of outgoing conversations (250, 2000, 10000 etc.). Cases where your WhatsApp number is flagged due to spam reports. Message template approved or rejected. Message template ongoing spam reports. Failed messages (messages that you tried to send but they failed). Account blocked (due to spam or any other reason). Display name approved or rejected. System messages are turned off by default. You can enable them with system in the Set Webhook endpoint. Settings: Setting Value URL Your URL — set it with Set Webhook Method JSON via POST With every system message, you will get some of the following: { \"status\": \"OK\", \"hook\": \"system\", \"type\": \"template\", \"to\": \"972771234567\", \"timestamp\": 1789900000, \"update\": \"\", \"issues\": \"\", \"template\": \"order confirmation\", \"templateUpdate\": 1, \"templateCategory\": 1, \"unique\": \"\", \"messageUpdate\": \"\", \"messageTo\": \"\" } The fields that are not relevant to the message's type are empty ( \"\" ). Response explained Parameter Description / Example status \"OK\" always. hook \"system\" always, for a system update message. type System message type. Values: for daily limit updates: \"update\"; for account issues: \"issues\"; for templates update: \"template\"; for messages update: \"messages\"; for names update: \"name\". Another change of the daily limit, such as a lower limit, arrives as \"unknown\". to Your WhatsApp account. timestamp The timestamp of the information (Unix time, in seconds). A number; for type \"messages\", a string with the time of the failed message's status. update Relevant for \"update\" type only. Will show the new daily conversation limit for the WhatsApp account: 50, 250, 1000, 2000, 10000, 100000, or 1000000 for unlimited. An \"issues\" message about spam flags (codes 1 and 2) shows the current limit here too. issues Relevant for \"issues\" type only. Here you can get account issues. If there is an account issue, one of the codes below will be returned. template Relevant for \"template\" type only. Will show the template name. templateUpdate Relevant for \"template\" type only. Will show the status code for the relevant template — see the codes below. templateCategory Relevant for \"template\" type only, and will only come when templateUpdate is 1 or 8. Will show the category that this template is set to: 1 — utility, 2 — marketing, 3 — authentication. unique Relevant for \"messages\" type only. This is the unique ID of the message that was sent. messageUpdate Relevant for \"messages\" type only. Will show the status code for messages that failed to deliver — see the codes below. messageTo Relevant for \"messages\" type only. The WhatsApp number (or user id) you tried to send the message to. name Relevant for \"name\" type only (the field is sent only with it). This is the requested display name. rejectReason Relevant for \"name\" type only (the field is sent only with it). This is the reason to reject the name, if any — see the codes below. issues codes Code Explanation 1 Your account is flagged due to spam. Be careful! 2 Your account is no longer flagged. 3 Your account has been blocked from WhatsApp. 4 Your account is back to be active again after being blocked / reviewed. 5 The phone number has been removed from the business manager, please contact support. 6 The account has been deleted, please contact support. 7 Access to the account has been removed by the client, please contact support. 8 Your account was sent to review by Meta. templateUpdate codes Code Explanation 1 Your template has been approved and is available to use. 2 Template rejected. Reason: wrong format template / too many variables / template is similar to another template that already exists in your account. 3 Template rejected. Reason: the template contains content that is violating WhatsApp policy. 4 Template rejected. Reason: the template contains content that is marked as spam. 5 Template rejected. Reason unknown. 6 Template received too many spam reports. You can't use this template for the next 6 hours. 7 Template is banned to use due to too many spam reports. 8 Template category has been changed. 9 The template has been deleted. 10 The template is flagged, it received a high amount of negative reports from users. Be careful! 11 The template is no longer flagged. messageUpdate codes Code Explanation 1 Server error, try to send the message again. 2 Billing issue, please contact support to fix the billing. 3 Attached file is incorrect, please try to re-send the message and fix the file. 4 Account is blocked for sending messages. 5 You have reached your daily limit for sending messages. 6 The 'to' and 'from' parameters are the same. You can't send a message to yourself. 7 The WhatsApp number you tried to send the message to is using an old WhatsApp app, or did not accept the WhatsApp 'terms of use' within their app. 8 It's been more than 24 hours since the client's last reply, please use a template instead. 9 Error unknown, please contact support. 10 Variables error, please check the variables used in the template (either a body variable or the header link). 11 Context issue in the body or header of the message. 12 The template you tried to send was not approved to use by Meta. 13 The client can't receive this template message now because their number is marked as \"trial\". Contact support for more information. 14 You can't send more than two marketing templates to the same number within 24 hours. Please wait for the user to reply first. 15 The template you tried to send does not exist. 16 You are trying to send too many messages in a short period of time. Slow down. 17 Permission issue, please contact support. rejectReason codes Code Meaning 0 No rejection. The name was approved to use. 1 The name does not relate to the business name. 2 The name violates WhatsApp name policy. 3 The name is related to alcohol, which is forbidden. 4 The name is related to selling digital goods, which is forbidden. 10 Rejection reason unknown. Remarks A failed message also arrives as an Acknowledge with ack 0 and the same unique ; the reason is in the system message above. With systemPhoneAlert in Set Webhook, you can also get system alerts to your phone. An example of every system message type is under Webhook payload below. Webhook payload Content type: application/json (required) Field Type Required Description status string Yes \"OK\" always. One of: OK . hook string Yes \"system\" always, for a system update message. Always system . type string Yes System message type. One of: update — Daily limit updates — see update ; issues — Account issues — see issues ; template — Templates update — see template , templateUpdate and templateCategory ; messages — Messages update — a message you sent failed; see unique , messageUpdate and messageTo ; name — Display name update — see name and rejectReason ; unknown — Another change of the daily limit, such as a lower limit — see update . Example: template . to string Yes Your WhatsApp account. Example: 972771234567 . timestamp integer \\ string Yes The timestamp of the information (Unix time, in seconds). A number; for type \"messages\", a string with the time of the failed message's status. Example: 1789900000 . update integer \\ string Yes Relevant for \"update\" type only. Will show the new daily conversation limit for the WhatsApp account: 50, 250, 1000, 2000, 10000, 100000, or 1000000 for unlimited. An \"issues\" message about spam flags (codes 1 and 2) shows the current limit here too. Example: . issues integer \\ string Yes Relevant for \"issues\" type only. Here you can get account issues. If there is an account issue, one of the following codes will be returned. One of: 1 — Your account is flagged due to spam. Be careful!; 2 — Your account is no longer flagged; 3 — Your account has been blocked from WhatsApp; 4 — Your account is back to be active again after being blocked / reviewed; 5 — The phone number has been removed from the business manager, please contact support; 6 — The account has been deleted, please contact support; 7 — Access to the account has been removed by the client, please contact support; 8 — Your account was sent to review by Meta; — Empty — another type, or an account update that needs no action. Example: . template string Yes Relevant for \"template\" type only. Will show the template name. Example: order confirmation . templateUpdate integer \\ string Yes Relevant for \"template\" type only. Will show the status code for the relevant template. One of: 1 — Your template has been approved and is available to use; 2 — Template rejected. Reason: wrong format template / too many variables / template is similar to another template that already exists in your account; 3 — Template rejected. Reason: the template contains content that is violating WhatsApp policy; 4 — Template rejected. Reason: the template contains content that is marked as spam; 5 — Template rejected. Reason unknown; 6 — Template received too many spam reports. You can't use this template for the next 6 hours; 7 — Template is banned to use due to too many spam reports; 8 — Template category has been changed; 9 — The template has been deleted; 10 — The template is flagged, it received a high amount of negative reports from users. Be careful!; 11 — The template is no longer flagged; — Empty — another type. Example: 1 . templateCategory integer No Relevant for \"template\" type only, and will only come when templateUpdate is 1 or 8. Will show the category that this template is set to. One of: 1 — Utility; 2 — Marketing; 3 — Authentication. Example: 1 . unique string Yes Relevant for \"messages\" type only. This is the unique ID of the message that was sent. Example: . messageUpdate integer \\ string Yes Relevant for \"messages\" type only. Will show the status code for messages that failed to deliver. One of: 1 — Server error, try to send the message again; 2 — Billing issue, please contact support to fix the billing; 3 — Attached file is incorrect, please try to re-send the message and fix the file; 4 — Account is blocked for sending messages; 5 — You have reached your daily limit for sending messages; 6 — The 'to' and 'from' parameters are the same. You can't send a message to yourself; 7 — The WhatsApp number you tried to send the message to is using an old WhatsApp app, or did not accept the WhatsApp 'terms of use' within their app; 8 — It's been more than 24 hours since the client's last reply, please use a template instead; 9 — Error unknown, please contact support; 10 — Variables error, please check the variables used in the template (either a body variable or the header link); 11 — Context issue in the body or header of the message; 12 — The template you tried to send was not approved to use by Meta; 13 — The client can't receive this template message now because their number is marked as \"trial\". Contact support for more information; 14 — You can't send more than two marketing templates to the same number within 24 hours. Please wait for the user to reply first; 15 — The template you tried to send does not exist; 16 — You are trying to send too many messages in a short period of time. Slow down; 17 — Permission issue, please contact support; — Empty — another type. Example: . messageTo string Yes Relevant for \"messages\" type only. The WhatsApp number (or user id) you tried to send the message to. Example: . name string No Relevant for \"name\" type only (the field is sent only with it). This is the requested display name. Example: 99 Digital . rejectReason integer No Relevant for \"name\" type only (the field is sent only with it). This is the reason to reject the name, if any. One of: 0 — No rejection. The name was approved to use; 1 — The name does not relate to the business name; 2 — The name violates WhatsApp name policy; 3 — The name is related to alcohol, which is forbidden; 4 — The name is related to selling digital goods, which is forbidden; 10 — Rejection reason unknown. Example: 0 . Example: Message failed A message you sent failed: messageUpdate is the reason. Here, more than 24 hours since the client's last reply. { \"status\": \"OK\", \"hook\": \"system\", \"type\": \"messages\", \"to\": \"972771234567\", \"timestamp\": \"1789900061\", \"update\": \"\", \"issues\": \"\", \"template\": \"\", \"templateUpdate\": \"\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"messageUpdate\": 8, \"messageTo\": \"972501234567\" } Example: Template approved Your template was approved; templateCategory is its category. { \"status\": \"OK\", \"hook\": \"system\", \"type\": \"template\", \"to\": \"972771234567\", \"timestamp\": 1789900000, \"update\": \"\", \"issues\": \"\", \"template\": \"order confirmation\", \"templateUpdate\": 1, \"unique\": \"\", \"messageUpdate\": \"\", \"messageTo\": \"\", \"templateCategory\": 1 } Example: Template rejected Your template was rejected (here: wrong format / too many variables / similar to another template). { \"status\": \"OK\", \"hook\": \"system\", \"type\": \"template\", \"to\": \"972771234567\", \"timestamp\": 1789900000, \"update\": \"\", \"issues\": \"\", \"template\": \"summer sale\", \"templateUpdate\": 2, \"unique\": \"\", \"messageUpdate\": \"\", \"messageTo\": \"\" } Example: Template category Meta changed the category of your template; templateCategory is the new one. { \"status\": \"OK\", \"hook\": \"system\", \"type\": \"template\", \"to\": \"972771234567\", \"timestamp\": 1789900000, \"update\": \"\", \"issues\": \"\", \"template\": \"order confirmation\", \"templateUpdate\": 8, \"unique\": \"\", \"messageUpdate\": \"\", \"messageTo\": \"\", \"templateCategory\": 2 } Example: Daily limit Your daily limit of new conversations changed; update is the new limit. { \"status\": \"OK\", \"hook\": \"system\", \"type\": \"update\", \"to\": \"972771234567\", \"timestamp\": 1789900000, \"update\": 10000, \"issues\": \"\", \"template\": \"\", \"templateUpdate\": \"\", \"unique\": \"\", \"messageUpdate\": \"\", \"messageTo\": \"\" } Example: Account flagged Your number is flagged due to spam reports; update shows the current daily limit. { \"status\": \"OK\", \"hook\": \"system\", \"type\": \"issues\", \"to\": \"972771234567\", \"timestamp\": 1789900000, \"update\": 2000, \"issues\": 1, \"template\": \"\", \"templateUpdate\": \"\", \"unique\": \"\", \"messageUpdate\": \"\", \"messageTo\": \"\" } Example: Account blocked Your account has been blocked from WhatsApp. { \"status\": \"OK\", \"hook\": \"system\", \"type\": \"issues\", \"to\": \"972771234567\", \"timestamp\": 1789900000, \"update\": \"\", \"issues\": 3, \"template\": \"\", \"templateUpdate\": \"\", \"unique\": \"\", \"messageUpdate\": \"\", \"messageTo\": \"\" } Example: Display name Your display name was approved ( rejectReason 0). { \"status\": \"OK\", \"hook\": \"system\", \"type\": \"name\", \"to\": \"972771234567\", \"timestamp\": 1789900000, \"update\": \"\", \"issues\": \"\", \"template\": \"\", \"templateUpdate\": \"\", \"unique\": \"\", \"messageUpdate\": \"\", \"messageTo\": \"\", \"name\": \"99 Digital\", \"rejectReason\": 0 } Responses 200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored. default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
    },
    {
      "id": "whatsapp-api/contacts-update",
      "title": "Contacts Update",
      "url": "https://docs.99digital.co.il/whatsapp-api/webhook/contacts-update",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/webhook/contacts-update.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Webhook",
        "Webhook"
      ],
      "language": "en",
      "description": "Contacts update allows you to receive a webhook when there is a new update",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Response explained",
        "Webhook payload",
        "Example: Contact saved (coexistence)",
        "Responses",
        "200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored.",
        "default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
      ],
      "keywords": [
        "contactsUpdate",
        "status",
        "hook",
        "type",
        "to",
        "contact",
        "timestamp",
        "coexistence",
        "marketing",
        "calls",
        "contact_name"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. Contacts update allows you to receive a webhook when there is a new update about your WhatsApp contacts ( hook \"contact\"). A contact is an end user WhatsApp number that you are chatting with. The types of contacts updates you can get are: For coexistence accounts, when a contact is added or changed. For coexistence accounts, when a contact is deleted (not sent at the moment). When a contact asked to stop receiving marketing messages (future update, not on production now). When a contact asked to keep receiving marketing messages (future update, not on production now). When a contact accepted your WhatsApp API to call them using WhatsApp Calls (future update, not on production now). Contacts updates are turned on by default. Settings: Setting Value URL Your URL — set it with Set Webhook Method JSON via POST With every contacts update, you will get some of the following: { \"status\": \"OK\", \"hook\": \"contact\", \"type\": \"coexistence\", \"to\": \"972771234567\", \"contact\": \"972501234567\", \"timestamp\": \"1789900000\", \"coexistence\": \"add\", \"contact name\": \"Dana Cohen\" } Response explained Parameter Description / Example status \"OK\" always. hook \"contact\" always, for contact webhooks. type Contact webhook type. Values: for a coexistence contact update: \"coexistence\"; for marketing requests: \"marketing\" (future feature); for calls requests: \"calls\" (future feature). to Your WhatsApp account. contact The end user WhatsApp number. timestamp The timestamp of the information (Unix time, in seconds, as a string). coexistence Relevant for \"coexistence\" type only. This will show \"add\" if a new contact was saved to the WhatsApp Business app phone contact list, or an existing contact was changed. This will show \"remove\" if the WhatsApp Business app removed a phone from the contact list (not sent at the moment). marketing Relevant for \"marketing\" type only. This will show \"remove\" if a contact asked to stop getting marketing messages. This will show \"add\" if the contact asked to resume getting marketing messages. (This is a future feature.) calls Relevant for \"calls\" type only. This will show \"add\" if a contact allows your business to call them over WhatsApp. This will show \"remove\" if the contact no longer allows your business to call them over WhatsApp. (This is a future feature.) contact name Relevant for \"coexistence\" type with \"add\" only. This will show the contact name as it was saved in the WhatsApp Business app on the mobile phone. Webhook payload Content type: application/json (required) Field Type Required Description status string Yes \"OK\" always. One of: OK . hook string Yes \"contact\" always, for contact webhooks. Always contact . type string Yes Contact webhook type. One of: coexistence — Coexistence contact update; marketing — Marketing requests (this is a future feature); calls — Calls requests (this is a future feature). Example: coexistence . to string Yes Your WhatsApp account. Example: 972771234567 . contact string Yes The end user WhatsApp number. Example: 972501234567 . timestamp string Yes The timestamp of the information (Unix time, in seconds, as a string). Example: 1789900000 . coexistence string No Relevant for \"coexistence\" type only. One of: add — A new contact was saved to the WhatsApp Business app phone contact list, or an existing contact was changed; remove — The WhatsApp Business app removed a phone from the contact list (not sent at the moment). Example: add . marketing string No Relevant for \"marketing\" type only (this is a future feature). One of: add — The contact asked to resume getting marketing messages; remove — The contact asked to stop getting marketing messages. calls string No Relevant for \"calls\" type only (this is a future feature). One of: add — The contact allows your business to call them over WhatsApp; remove — The contact no longer allows your business to call them over WhatsApp. contact name string No Relevant for \"coexistence\" type with \"add\" only. This will show the contact name as it was saved in the WhatsApp Business app on the mobile phone. Example: Dana Cohen . Example: Contact saved (coexistence) A contact was saved or changed in the WhatsApp Business app on the phone. { \"status\": \"OK\", \"hook\": \"contact\", \"type\": \"coexistence\", \"to\": \"972771234567\", \"contact\": \"972501234567\", \"timestamp\": \"1789900000\", \"coexistence\": \"add\", \"contact name\": \"Dana Cohen\" } Responses 200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored. default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
    },
    {
      "id": "whatsapp-api/outgoing-messages",
      "title": "Outgoing Messages",
      "url": "https://docs.99digital.co.il/whatsapp-api/webhook/outgoing-messages",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/webhook/outgoing-messages.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Webhook",
        "Webhook"
      ],
      "language": "en",
      "description": "Outgoing messages webhooks are only relevant to",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Response explained",
        "body by message type",
        "caption by message type",
        "Webhook payload",
        "Example: Text",
        "Responses",
        "200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored.",
        "default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
      ],
      "keywords": [
        "outgoingMessages",
        "status",
        "hook",
        "unique",
        "from",
        "to",
        "type",
        "body",
        "caption",
        "isForwarded",
        "timestamp",
        "timestampMS",
        "media",
        "quote",
        "quoteUnique"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. Outgoing messages webhooks are only relevant to coexistence WhatsApp accounts ( hook \"outgoing\"). They show outgoing messages sent by the user themselves from their mobile phone WhatsApp Business app (or WhatsApp Web), outside of the API. This is only relevant to let you know the user sent a message, in case you want to show it as an outgoing message in your platform. Note: any outgoing message sent from the API will not trigger an outgoing message webhook. Outgoing messages webhooks are turned on by default. Note 2: outgoing messages to groups are not supported. The acknowledges of these messages arrive as Acknowledge webhooks ( hook \"update\") with the same unique . Settings: Setting Value URL Your URL — set it with Set Webhook Method JSON via POST With every outgoing message, you will get the following: { \"status\": \"OK\", \"hook\": \"outgoing\", \"unique\": \"HBgMOTcyNTAxMjM0NTY3FQIAEhgUOEY0QzE2N0E5RDNCMDA5RkQ1QjIA\", \"from\": \"972771234567\", \"to\": \"972501234567\", \"type\": \"text\", \"body\": \"Sure, we are open until 20:00\", \"caption\": \"\", \"isForwarded\": false, \"timestamp\": \"1789900120\", \"timestampMS\": 102938, \"media\": false, \"quote\": false, \"quoteUnique\": false } Response explained Parameter Description / Example status \"OK\" always. hook \"outgoing\" always, for a new outgoing message. unique Unique ID for the outgoing message. Its acknowledges arrive with the same unique . from Your WhatsApp account. to The end user WhatsApp account that received the message. type Message type. Can be one of the following: text , image , audio , video , location , ptt , document , button , contacts , list , reaction . body The content of the 'body' depends on the 'type' of the message — see the table below. caption The content of the 'caption' depends on the 'type' of the message — see the table below. isForwarded Shows if the outgoing message is forwarded — true or false. timestamp Time stamp of the outgoing message (Unix time, in seconds, as a string). timestampMS The sub-second part of the timestamp (of the time we processed the message, in microseconds), in case you need it. media If this message contains any media file, it will be true; otherwise false. quote If this message is a quoted message, it will be true; otherwise false. quoteUnique In case the message is quoted (it means that the user replied to an incoming message), this will be the original message unique ID. If the message is not quoted, this will be false. body by message type Type The data that will come text Outgoing text message image Link audio Link video Link location lat,lng ptt Link document Link button Button text contacts Phone number list The selection text reaction The emoji You must download the link files to your server: we delete all files within 7 days. caption by message type Type The data that will come text Nothing, empty image Caption text with the image audio Nothing, empty video Caption text with the video location The name and address of the place ( name - address ), if any ptt Nothing, empty document Caption text with the document button Nothing, empty contacts Name of the contact list The item list ID that was selected reaction Nothing, empty Webhook payload Content type: application/json (required) Field Type Required Description status string Yes \"OK\" always. One of: OK . hook string Yes \"outgoing\" always, for a new outgoing message. Always outgoing . unique string Yes Unique ID for the outgoing message. Its acknowledges arrive with the same unique . Example: HBgMOTcyNTAxMjM0NTY3FQIAEhgUOEY0QzE2N0E5RDNCMDA5RkQ1QjIA . from string Yes Your WhatsApp account. Example: 972771234567 . to string Yes The end user WhatsApp account that received the message. Example: 972501234567 . type string Yes Message type. One of: text , image , audio , video , location , ptt , document , button , contacts , list , reaction . Example: text . body string Yes The content of the 'body' depends on the 'type' of the message: \\ Type \\ The data that will come \\ \\ --- \\ --- \\ \\ text \\ Outgoing text message \\ \\ image \\ Link \\ \\ audio \\ Link \\ \\ video \\ Link \\ \\ location \\ lat,lng \\ \\ ptt \\ Link \\ \\ document \\ Link \\ \\ button \\ Button text \\ \\ contacts \\ Phone number \\ \\ list \\ The selection text \\ \\ reaction \\ The emoji \\ You must download the link files to your server: we delete all files within 7 days. Example: Sure, we are open until 20:00 . caption string Yes The content of the 'caption' depends on the 'type' of the message: \\ Type \\ The data that will come \\ \\ --- \\ --- \\ \\ text \\ Nothing, empty \\ \\ image \\ Caption text with the image \\ \\ audio \\ Nothing, empty \\ \\ video \\ Caption text with the video \\ \\ location \\ The name and address of the place ( name - address ), if any \\ \\ ptt \\ Nothing, empty \\ \\ document \\ Caption text with the document \\ \\ button \\ Nothing, empty \\ \\ contacts \\ Name of the contact \\ \\ list \\ The item list ID that was selected \\ \\ reaction \\ Nothing, empty \\ . Example: . isForwarded boolean Yes Shows if the outgoing message is forwarded — true or false. Example: false . timestamp string Yes Time stamp of the outgoing message (Unix time, in seconds, as a string). Example: 1789900120 . timestampMS integer Yes The sub-second part of the time we processed the message (in microseconds), in case you need it. Example: 102938 . media boolean Yes If this message contains any media file, it will be true; otherwise false. Example: false . quote boolean Yes If this message is a quoted message, it will be true; otherwise false. Example: false . quoteUnique string \\ boolean Yes In case the message is quoted (it means that the user replied to an incoming message), this will be the original message unique ID. If the message is not quoted, this will be false. Example: false . Example: Text A message sent from the WhatsApp Business app on the phone, not through the API. { \"status\": \"OK\", \"hook\": \"outgoing\", \"unique\": \"HBgMOTcyNTAxMjM0NTY3FQIAEhgUOEY0QzE2N0E5RDNCMDA5RkQ1QjIA\", \"from\": \"972771234567\", \"to\": \"972501234567\", \"type\": \"text\", \"body\": \"Sure, we are open until 20:00\", \"caption\": \"\", \"isForwarded\": false, \"timestamp\": \"1789900120\", \"timestampMS\": 102938, \"media\": false, \"quote\": false, \"quoteUnique\": false } Responses 200 — Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored. default — Any other status, or no answer in time, counts as a failed delivery. With retry 1 in Set Webhook we try again: immediately, then after 5 minutes, 20 minutes, 1 hour, 4 hours and 24 hours. Without it, the webhook is not sent again."
    },
    {
      "id": "whatsapp-api/get-webhook",
      "title": "Get Webhook",
      "url": "https://docs.99digital.co.il/whatsapp-api/webhook/get-webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/webhook/get-webhook.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Webhook"
      ],
      "language": "en",
      "description": "Get Webhook allows you to see the webhook URL you have for incoming messages. The default is empty.",
      "endpoint": {
        "method": "POST",
        "path": "/getWebhook",
        "url": "https://api.99digital.co.il/whatsapp/v2/getWebhook"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: No webhook",
        "Example: Reason 3"
      ],
      "keywords": [
        "getWebhook",
        "from",
        "status",
        "url",
        "system",
        "systemPhoneAlert",
        "retry",
        "readStatus",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/getWebhook Get Webhook allows you to see the webhook URL you have for incoming messages. The default is empty. It also shows your other webhook settings — the ones you set with Set Webhook: system messages, the phones for system alerts, retries and read status. Settings: Setting Value URL https://api.99digital.co.il/whatsapp/v2/getWebhook Method JSON via POST Header Value apiKey Your API key for the service Body: Parameter Description / Example from Your WhatsApp account. International number without + , for example: 972771234567 . Response: { \"status\": \"OK\", \"url\": \"https://your-server.example.com/99digital/whatsapp-webhook\", \"system\": 1, \"systemPhoneAlert\": \"972502211234\", \"retry\": 1, \"readStatus\": 1, \"reason\": 1 } Response explained: Parameter Description status OK or FAIL url Your webhook url. Empty when no webhook is set. system System messages status: 1 — active, 0 — not active. systemPhoneAlert List of phone numbers to receive system notifications via WhatsApp message, comma separated. null if you never set one, empty after you cleared it. retry 0 if disabled, 1 if enabled. readStatus 0 if disabled, 1 if enabled. reason The status explanation — see below. Reason Explanation 1 Not FAIL. The status is OK. 2 from is missing, or a JSON syntax error. 3 Wrong apiKey, or your \"from\" number account does not exist. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . Example (generated from the schema) { \"from\": \"972771234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the request was successful. Always OK . url string (one of: OK) Your webhook url. Empty when no webhook is set. Example: https://your-server.example.com/99digital/whatsapp-webhook . system integer (one of: OK) System messages status. One of: 0 — Not active; 1 — Active. Example: 1 . systemPhoneAlert string \\ null (one of: OK) List of phone numbers to receive system notifications via WhatsApp message, comma separated. null if you never set one, empty after you cleared it. Example: 972502211234,972527788695 . retry integer (one of: OK) The retry mechanism for webhook sending — see \"Retry mechanism\" on Set Webhook. One of: 0 — Disabled; 1 — Enabled. Example: 1 . readStatus integer (one of: OK) Read status notification (the acknowledge webhooks). One of: 0 — Disabled; 1 — Enabled. Example: 1 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request failed; reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us. Example: OK A webhook with every notification on. { \"status\": \"OK\", \"url\": \"https://your-server.example.com/99digital/whatsapp-webhook\", \"system\": 1, \"systemPhoneAlert\": \"972502211234,972527788695\", \"retry\": 1, \"readStatus\": 1, \"reason\": 1 } Example: No webhook The defaults — no webhook URL and every setting off. { \"status\": \"OK\", \"url\": \"\", \"system\": 0, \"systemPhoneAlert\": null, \"retry\": 0, \"readStatus\": 0, \"reason\": 1 } Example: Reason 3 Wrong apiKey, or the \"from\" number is not registered with us. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "whatsapp-api/get-templates",
      "title": "Get Templates",
      "url": "https://docs.99digital.co.il/whatsapp-api/templates/get-templates",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/templates/get-templates.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Templates"
      ],
      "language": "en",
      "description": "List all the templates in your WhatsApp account, with their language, category, status and content.",
      "endpoint": {
        "method": "POST",
        "path": "/getTemplates",
        "url": "https://api.99digital.co.il/whatsapp/v2/getTemplates"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3"
      ],
      "keywords": [
        "getTemplates",
        "from",
        "status",
        "list",
        "name",
        "language",
        "category",
        "template",
        "type",
        "format",
        "text",
        "add_security_recommendation",
        "code_expiration_minutes",
        "buttons",
        "url",
        "phone_number",
        "otp_type",
        "cards",
        "components",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/getTemplates List all the templates in your WhatsApp account, with their language, category, status and content. Get Templates allows you to see all the templates you have in your account. Use a template's name to send it with Send a Template. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/getTemplates Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example from Your WhatsApp account. International number without + . For example: 972771234567 Response The way that the response provides the information back is not the same as the way you submitted the template with Create a Template: the response shows each template as its parts — header, body, footer and buttons — the way WhatsApp stores them. { \"status\": \"OK\", \"list\": [ { \"name\": \"template name\", \"language\": \"en US\", \"category\": 1, \"status\": \"approved\", \"template\": [ { \"type\": \"HEADER\", \"format\": \"TEXT\", \"text\": \"hello {{1}}\" }, { \"type\": \"BODY\", \"text\": \"thank you for coming\" }, { \"type\": \"FOOTER\", \"text\": \"have a great day\" } ] } ] } Response-Explain Parameter Description status OK or FAIL list An array of information about your templates list->name The name of the template, to use when you send a template message list->language The language you chose, as WhatsApp writes it: he (Hebrew), en US (English), ar , ru , es , zh CN , hi , th or fr list->category The template category — see the values below list->status The template status — see the statuses below list->template The parts of the template: HEADER (with its format — TEXT , IMAGE , VIDEO or DOCUMENT — and text for a text header), BODY , FOOTER , BUTTONS (with each button's type , text , and url or phone number ) and, for a carousel, CAROUSEL with its cards Value Meaning 1 Utility template 2 Marketing template 3 Authentication template Status Meaning approved Approved to use by Meta pending Still under review rejected Rejected by Meta. You must create a new one with a different name. paused The template was approved before, but received spam reports, and therefore it is paused for 10 hours disabled The template was approved before, but received massive spam reports for a period of time. This template is disabled and can't be used anymore. WhatsApp may report other statuses as well. reason Description 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . Example (generated from the schema) { \"from\": \"972771234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — your templates are listed in list . Always OK . list array of object (one of: OK) Information about each of your templates. list[].name string (one of: OK) The name of the template, to use when you send a template message. Example: website welcome . list[].language string (one of: OK) The language you chose for the template, as WhatsApp writes it: he (Hebrew), en US (English), ar , ru , es , zh CN , hi , th or fr . Example: en US . list[].category integer (one of: OK) The template category, as approved by WhatsApp. One of: 1 — Utility template; 2 — Marketing template; 3 — Authentication template. list[].status string (one of: OK) The template's status. WhatsApp may report other statuses as well. One of: approved — Approved to use by WhatsApp (Meta); pending — Still under review; rejected — Rejected by WhatsApp. You must create a new one with a different name; paused — The template was approved before, but received spam reports and therefore it is paused for 10 hours; disabled — The template was approved before, but received massive spam reports for a period of time. This template is disabled and can't be used anymore. list[].template array of object (one of: OK) The parts of the template: HEADER (with its format — TEXT , IMAGE , VIDEO or DOCUMENT — and text for a text header), BODY , FOOTER , BUTTONS (with each button's type , text , and url or phone number ) and, for a carousel, CAROUSEL with its cards . list[].template[].type string (one of: OK) The part — HEADER , BODY , FOOTER , BUTTONS or CAROUSEL . list[].template[].format string (one of: OK) For HEADER , its kind — TEXT , IMAGE , VIDEO or DOCUMENT . list[].template[].text string (one of: OK) The text of the part, with its {{1}} variables. list[].template[].add security recommendation boolean (one of: OK) For the BODY of an authentication template: whether WhatsApp adds its security recommendation (not to share the code) to the message. list[].template[].code expiration minutes integer (one of: OK) For the FOOTER of an authentication template: the number of minutes until the code expires, shown to the client. list[].template[].buttons array of object (one of: OK) For BUTTONS , the buttons. list[].template[].buttons[].type string (one of: OK) The kind of button, as WhatsApp writes it — for example QUICK REPLY , URL (website), PHONE NUMBER , COPY CODE (coupon code) or OTP (authentication code). list[].template[].buttons[].text string (one of: OK) The text on the button. list[].template[].buttons[].url string (one of: OK) For a URL button: the website address. A dynamic website ends with {{1}} , which you fill in with websiteVariable when you send the template. list[].template[].buttons[].phone number string (one of: OK) For a PHONE NUMBER button, the phone number it calls. list[].template[].buttons[].otp type string (one of: OK) For an OTP button: how the client gets the code — for example COPY CODE , a button that copies it. list[].template[].cards array of object (one of: OK) For CAROUSEL : the cards, in order, each with its own components — its HEADER (image or video), BODY and BUTTONS . list[].template[].cards[].components array of object (one of: OK) The parts of this card, in the same form as the parts of the template. status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us. Example: OK A utility template with variables, a template with a document header and a website button that is still under review, and an authentication template. { \"status\": \"OK\", \"list\": [ { \"name\": \"postman welcome text\", \"language\": \"en US\", \"category\": 1, \"status\": \"approved\", \"template\": [ { \"type\": \"BODY\", \"text\": \"Hi {{1}}, your order {{2}} was received. We will let you know when it ships.\" }, { \"type\": \"FOOTER\", \"text\": \"Thank you for shopping with us\" } ] }, { \"name\": \"postman invoice pdf\", \"language\": \"en US\", \"category\": 1, \"status\": \"pending\", \"template\": [ { \"type\": \"BODY\", \"text\": \"Dear {{1}}, your invoice for {{2}} is attached. The total amount is {{3}}. Thank you for your business.\" }, { \"type\": \"HEADER\", \"format\": \"DOCUMENT\" }, { \"type\": \"BUTTONS\", \"buttons\": [ { \"type\": \"URL\", \"text\": \"Pay online\", \"url\": \"https://www.example.com/pay/{{1}}\" } ] } ] }, { \"name\": \"postman login code\", \"language\": \"en US\", \"category\": 3, \"status\": \"approved\", \"template\": [ { \"type\": \"BODY\", \"add security recommendation\": true }, { \"type\": \"FOOTER\", \"code expiration minutes\": 5 }, { \"type\": \"BUTTONS\", \"buttons\": [ { \"type\": \"OTP\", \"otp type\": \"COPY CODE\" } ] } ] } ] } Example: Reason 3 Wrong apiKey, or the \"from\" number is not registered with us. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "whatsapp-api/create-template",
      "title": "Create a Template",
      "url": "https://docs.99digital.co.il/whatsapp-api/templates/create-a-template",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/templates/create-a-template.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Templates"
      ],
      "language": "en",
      "description": "Submit a new WhatsApp template (utility, marketing, carousel or authentication) to WhatsApp (Meta) for approval.",
      "endpoint": {
        "method": "POST",
        "path": "/createTemplate",
        "url": "https://api.99digital.co.il/whatsapp/v2/createTemplate"
      },
      "headings": [
        "Explanation",
        "Create a Utility and Marketing template",
        "Remarks",
        "Endpoint",
        "Template setup",
        "Template structure",
        "Buttons setup",
        "Full Request",
        "Full example 1",
        "Full example 2",
        "Full example 3",
        "Full example 4",
        "Full example 5",
        "Response",
        "Full example 6",
        "Response",
        "Response-Explain",
        "Create an Authentication template",
        "Remarks",
        "Endpoint (same as regular template creation)",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Text only",
        "Example: Variables with samples",
        "Example: Quick replies (Hebrew)",
        "Example: Image header",
        "Example: Video header",
        "Example: Document header",
        "Example: Call button",
        "Example: Two websites",
        "Example: All button kinds",
        "Example: Coupon code",
        "Example: Carousel",
        "Example: Carousel with variables",
        "Example: Carousel (video)",
        "Example: Carousel (call + website)",
        "Example: Authentication",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — carousel",
        "Example: OK — authentication",
        "Example: Reason 4",
        "Example: Reason 34"
      ],
      "keywords": [
        "createTemplate",
        "from",
        "name",
        "language",
        "header",
        "body",
        "bodyVariableSample1",
        "footer",
        "buttons",
        "callToAction",
        "callToActionWebsiteText",
        "callToActionWebsiteType",
        "callToActionWebsiteURL",
        "callToActionWebsiteText2",
        "callToActionWebsiteType2",
        "callToActionWebsiteURL2",
        "callToActionCallText",
        "callToActionCallNumber",
        "useCoupon",
        "couponTitle",
        "couponExpiration",
        "quickReply1",
        "carouselMedia",
        "carouselButtons",
        "carouselCard1_body",
        "carouselCard1_var",
        "carouselCard1_websiteText",
        "carouselCard1_websiteType",
        "carouselCard1_websiteURL",
        "carouselCard1_quickReply1",
        "carouselCard1_quickReply2",
        "carouselCard1_callText",
        "carouselCard1_callNumber",
        "authentication",
        "add_security_text",
        "code_expiration",
        "status",
        "timestamp",
        "category",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/createTemplate Submit a new WhatsApp template (utility, marketing, carousel or authentication) to WhatsApp (Meta) for approval. Explanation Template messages need to get approval by WhatsApp (Meta) before you can start using them. This API will guide you on submitting a new template. Every option below also has its own example tab under Body , with an explanation and a picture of the result. Once a template is approved, send it with Send a Template; check its status and final category with Get Templates. Create a Utility and Marketing template (If you wish to create an authentication template, please scroll down to the last part of this page: \"Create an Authentication template\".) Remarks If the template body is too general, it will not be approved. You can use variables in this way: {{1}} and {{2}} and so on (up to 10 variables). You set these variables later, when you send the template to your clients. A variable can be used only once inside the body. It means that if you used {{1}} somewhere in your body, you should not use {{1}} again. You must have a reasonable number of variables compared to the rest of the text. Usually, for every variable you need at least 3 words in your body. For example: if you have 5 variables, make sure the rest of the body has at least 15 words. It usually takes up to 1 hour for a template to change its status to approved or rejected. You can't edit a rejected template; you must submit a new one with a new name. New accounts might get approved within 24 hours for their first template submissions. The template name must be unique. If you delete a template, you can't use the same name for 30 days. The template name must be lower case, English letters and numbers only. No spaces. A template can contain more than just text. It can also have an image, a document or a video as part of the template. You can have up to 6000 templates in your account. A template can contain buttons for quick actions. You can have website / call / coupon / quick reply buttons, under these limitations: A template can have a maximum of 10 buttons of all kinds. You can have a maximum of 1 'Call' button. You can have a maximum of 2 'Website' buttons. You can have a maximum of 10 'Quick reply' buttons. You can have a maximum of 1 'Coupon' button. Quick reply buttons are buttons that, when the end user clicks on them, send you the text and the ID of the button. They must not contain variables, new lines, emoji or any design symbols. A call button makes a phone call from the user's mobile phone to the number you requested. Website buttons open a website link: a static link (fixed) or a dynamic link (with a variable). A coupon button holds a code: when the user clicks on the button, the code is copied to their clipboard. If you wish to create a template that you will not be able to delete afterwards (an important template you wish to protect against accidental deletion), use this as the start of the template name: reserved . The body of the template can't start with a variable and can't end with a variable. A template that is created and not used even once for 12 months will automatically be deleted by Meta. You will get a delete webhook notification. A carousel template must have between 2 and 10 cards, the header must be an image or a video, and each card can have up to 2 buttons. This template will be in the Marketing category. All cards must look the same (body, button types, variables). The card fields carry the card's number: carouselCard1 … for card 1, carouselCard2 … for card 2, up to carouselCard10 … ; number the cards from 1 without gaps. Endpoint Setting Value URL https://api.99digital.co.il/whatsapp/v2/createTemplate Method JSON via POST Key Value apiKey Your API key for the service Template setup Each template needs to have a name and a language. Content Explanation Mandatory Example Limit (characters) name Name for your template, without spaces (use an underscore instead), lower case, English only. The template name must be unique. yes website login new client 512 language The language of the template: the code to use, from the table below. yes 1 Language name Code to use Hebrew 1 English 2 Arabic 3 Russian 4 Spanish 5 Chinese 6 Hindi 7 Thai 8 French 9 Template structure Each template contains 4 parts: header (media is optional). body (mandatory). footer (optional). buttons (optional). Content Explanation Mandatory Number of variables allowed Example Limit (characters) header Header allows you to choose media to be sent as part of the template: 1 - no media 2 - image 3 - video 4 - document 5 - carousel WhatsApp reviews the template with a sample file that we provide; you send the real file each time you send the template. yes 0 1 1 body Your template message goes here. \\n for a new line text for bold text for italic text for strikethrough {{1}} - {{10}} for variables yes 10 Hello {{1}}, and welcome to our website! Thank you for buying {{2}}. Your order will be shipped on {{3}}. 1024 for the total body content, including the variables' data when sending the template (600 with a coupon code button) bodyVariableSample1-10 For any given variable you used in body , you can provide a sample text, for example: for {{1}} use bodyVariableSample1 for {{2}} use bodyVariableSample2 and so on. WhatsApp reviews the template with these samples. No, but if not provided, a variable sample will be generated for you automatically 0 This is a sample text 500 footer Any footer you want to add. No emoji, no variables. A footer does not work with a carousel header. no 0 This is footer, optional 60 buttons 1 - No buttons 2 - for \"call to action\" only 3 - for \"quick reply\" only 4 - both call to action and quick reply combination yes, you must select 1/2/3/4 (not needed for a carousel, header 5) see below see below 1 carouselMedia Only relevant if header is set to 5. You must choose the carousel cards: either an image for all cards, or a video for all cards. 1 - image cards 2 - video cards yes, if header = 5 0 1 1 carouselButtons Only relevant if header is set to 5. The buttons setup (the same on every card): 1 - one website only 2 - one quick reply only 3 - two quick replies only 4 - website + quick reply 5 - phone + website 6 - phone + quick reply only yes, if header = 5 0 3 1 For the body part, you can also use the following markups: WhatsApp text formatting: bold , italic , strikethrough and \\ \\ \\ monospace\\ \\ \\ Buttons setup If you wish to use buttons, you need to choose between \"call to action\" or \"quick reply\", or use both. Call to action is a button that triggers an action. There are two types: url (which opens a website in the phone's browser) and call (which makes a regular phone call to a number). You can use up to 1 call button and 2 website buttons in your template. Quick reply is a button that the user clicks, and it returns a webhook about the button text that was clicked. For example, a button named \"sales\" will return to your webhook URL a reply saying that \"sales\" was clicked, so you can build your flow scenario according to that. You can have up to 10 buttons of the quick reply type. Remember! A total of 10 buttons is allowed from the two kinds. Content Explain Option to select Mandatory Number of variables allowed Example Limit (characters) callToAction Here you can choose how you want to set up the call to action 1 - One website button only 2 - Call button only 3 - One website + Call button 4 - Two websites + Call button 5 - Two websites only only if you selected \"2\" or \"4\" in buttons - 3 1 callToActionWebsiteText First website text to show Text to show for the link only if you used callToAction option 1 / 3 / 4 / 5 0 Click here for my website 20 callToActionWebsiteType First website link type 1 - for a static URL (meaning, no variable) 2 - for a dynamic URL, with one variable automatically added at the end of the URL only if you used callToAction option 1 / 3 / 4 / 5 0 1 1 callToActionWebsiteURL First website link URL The link to your website. You cannot use WhatsApp groups, WhatsApp URLs for opening a conversation, and cannot use short URL services such as bitly. only if you used callToAction option 1 / 3 / 4 / 5 In case you choose \"2\" in callToActionWebsiteType , the variable will be automatically put at the end. For example: https://www.amazon.com/{{1}} , so when you send the template, you can provide what the {{1}} will be. Write the URL without the variable: it is added for you. https://www.google.com/ 2000 callToActionWebsiteText2 Second website text to show, in case you want to use a second website button Text to show for the link only if you used callToAction option 4 / 5 0 Click here for my second website 20 callToActionWebsiteType2 Second website link type 1 - for a static URL (meaning, no variable) 2 - for a dynamic URL, with one variable automatically added at the end of the URL only if you used callToAction option 4 / 5 0 1 1 callToActionWebsiteURL2 Second website link URL The link to your website. You cannot use WhatsApp groups, WhatsApp URLs for opening a conversation, and cannot use short URL services such as bitly. only if you used callToAction option 4 / 5 In case you choose \"2\" in callToActionWebsiteType2 , the variable will be automatically put at the end. For example: https://www.amazon.com/{{1}} , so when you send the template, you can provide what the {{1}} will be. Write the URL without the variable: it is added for you. https://www.amazon.com/ 2000 callToActionCallText The button text for the call The text to show for the dial button only if you used callToAction option 2 / 3 / 4 0 Click here to call me 20 callToActionCallNumber The number to dial. The number is fixed. The number to dial, with the country code and + only if you used callToAction option 2 / 3 / 4 0 +972501234567 20 useCoupon A coupon button is another type of \"call to action\" and can be added to any of the callToAction options 1/3/4/5. When using a coupon button, the end user receives a \"copy code\" coupon message that can have an expiration time. If a coupon code button is used, please notice the following limitations: - the body parameter can only have 600 characters; - the header can only be none/image/video, not a document; - at least one website URL is required; - a footer can't be used; - only mobile phones using WhatsApp can see this template, not WhatsApp Web. 0 to disable 1 to enable (send it as a number, not as text) no. Default is 0. 0 1 1 couponTitle The title of the coupon code, which will be presented next to the code in the template. Text to show for the coupon title only if useCoupon is set to 1 0 Special offer! 16 couponExpiration In case you want to use a time limit for the coupon button. You will provide the expiration time when sending the template, and the template shows the timer. 0 - to have a coupon without a time limit 1 - to limit the time to use the coupon (send it as a number, not as text) only if useCoupon is set to 1 0 1 1 quickReply1-10 The quick reply buttons, up to 10 buttons Provide the quick reply buttons as parameters ( quickReply1 , quickReply2 , etc.) only if you selected the buttons parameter as 3 or 4 0 \"customer service\" \"sales\" \"support\" 25 carouselCardX body In case the header is a carousel, this is the body of card number X, where X is from 1 to 10 The body text of the specific carousel card, with up to 2 new lines No, but it's all or none: if you choose to have a body for one card, all of them must have one. 1 (only {{1}} ) Here is my first product, named: {{1}} . Click to buy 160 carouselCardX var In case the body of card X has the variable {{1}} , where X can be between 1 and 10 A sample text for that {{1}} , which WhatsApp reviews the template with No, but if not provided, a sample will be generated for you automatically. Send it only if the card body has {{1}} . 0 Leather wallet 160 carouselCardX websiteText In case carouselButtons is set to 1/4/5, where X can be between 1 and 10 Text to show for the website button only if carouselButtons is 1/4/5 0 Click here 25 carouselCardX websiteType In case carouselButtons is set to 1/4/5, where X can be between 1 and 10 1 - for a static website URL 2 - for a dynamic URL, with a variable at the end The same type on all cards. only if carouselButtons is 1/4/5 1 1 1 carouselCardX websiteURL In case carouselButtons is set to 1/4/5, where X can be between 1 and 10 This is the website URL; you can use a variable that will be added at the end. only if carouselButtons is 1/4/5 In case you choose \"2\" in carouselCardX websiteType , the variable will be automatically put at the end. For example: https://www.amazon.com/{{1}} , so when you send the template, you can provide what the {{1}} will be. https://www.amazon.com/ 2000 carouselCardX quickReply1 In case carouselButtons is set to 2/3/4/6, where X can be between 1 and 10 This is the first quick reply button only if carouselButtons is 2/3/4/6 0 Click Here 25 carouselCardX quickReply2 In case carouselButtons is set to 3, where X can be between 1 and 10 This is the second quick reply button only if carouselButtons is 3 0 Click here 2 25 carouselCardX callText In case carouselButtons is set to 5/6, where X can be between 1 and 10 This is the button text for the phone call only if carouselButtons is 5/6 0 Call now 25 carouselCardX callNumber In case carouselButtons is set to 5/6, where X can be between 1 and 10 This is the phone number, with the country code and + only if carouselButtons is 5/6, and carouselCardX callText is provided 0 +972501234567 20 Full Request Parameter Description / Example from Your WhatsApp account. International number without + . For example: 972771234567 name Any name for the template; it cannot be used twice language 1-9 header 2 for image body Your template + variables go here. \\n for a new line text for bold text for italic text for strikethrough {{1}} for variable 1 {{2}} for variable 2 and so on (maximum 10 variables) footer Footer text buttons 3 for quick reply callToAction Everything that is relevant to buttons (phone calls, website(s), coupon code) quickReply1-10 Any text goes here Full example 1 Here is an example of a full template request. The template is in English. The template contains: no header; a body with 6 variables; no footer; 2 websites and 1 call button; 5 buttons of \"quick reply\". { \"from\": \"972771234567\", \"name\": \"website welcome\", \"language\": 2, \"header\": 1, \"body\": \" Hello {{1}} and thank you for joining our exclusive website store!\\nOur company has many secrets to discover.\\nFor future connection, we received your phone number: {{2}} and your email address: {{3}}.\\nYou can find shirts, hats, shoes and gloves at discounted prices. Hold on, wait a minute, i found something interesting! just for this week we offer: {{4}} at discounted price: {{5}} only when you buy it online or in-store shop at: {{6}}.\\nWhat would you like to discover?\", \"buttons\": 4, \"callToAction\": 4, \"callToActionWebsiteText\": \"Our Website\", \"callToActionWebsiteType\": 1, \"callToActionWebsiteURL\": \"https://www.example.com\", \"callToActionWebsiteText2\": \"Our second website\", \"callToActionWebsiteType2\": 1, \"callToActionWebsiteURL2\": \"https://www.example-second-website.com\", \"callToActionCallText\": \"Click to call us\", \"callToActionCallNumber\": \"+972522222222\", \"quickReply1\": \"Shirts\", \"quickReply2\": \"Hats\", \"quickReply3\": \"Shoes\", \"quickReply4\": \"Gloves\", \"quickReply5\": \"Something else\" } The template submission will look like this: The template: the welcome text, two website buttons, a call button and five quick reply buttons When you send the template to your client, you need to fill {{1}} , {{2}} , {{3}} , {{4}} , {{5}} and {{6}} . Full example 2 Here is a sample of a full template request: an appointment update template, in English. The template contains: an image header; a body with 2 variables; a footer; buttons: call to action (one website + one call button). { \"from\": \"972771234567\", \"name\": \"friday appointment reminder\", \"language\": 2, \"header\": 2, \"body\": \" Hello {{1}} we would like to remind you of the appointment you have with us on {{2}}.\\nPlease arrive with your ID card.\", \"footer\": \"Our address: 51D street.\", \"buttons\": 2, \"callToAction\": 3, \"callToActionWebsiteText\": \"Click for navigation\", \"callToActionWebsiteType\": 1, \"callToActionWebsiteURL\": \"https://waze.com/ul\", \"callToActionCallText\": \"Call Us\", \"callToActionCallNumber\": \"+972779111111\" } The template submission will look like this: The template: an image, the reminder text, the footer, and \"Click for navigation\" and \"Call Us\" buttons Full example 3 Here is a sample of a full template request: a payment update template, in English. The template contains: a document header; a body with 2 variables; no footer; buttons: call to action (dynamic website). { \"from\": \"972771234567\", \"name\": \"payment reminder 1\", \"language\": 2, \"header\": 4, \"body\": \" Dear {{1}} \\nYour invoice for December 2021 is attached. Total amount is {{2}} USD.\\nPlease pay as soon as you can.\\nThe invoice is due in a week. 💳\", \"buttons\": 2, \"callToAction\": 1, \"callToActionWebsiteText\": \"Click to pay\", \"callToActionWebsiteType\": 2, \"callToActionWebsiteURL\": \"https://paypal.com/\" } The template submission will look like this: The template: a document, the payment text, and a \"Click to pay\" button Full example 4 Here is a sample of a full template request: a transportation update template, in English. The template contains: no header; a body with no variables; a footer; no buttons. { \"from\": \"972771234567\", \"name\": \"the bus is coming\", \"language\": 2, \"header\": 1, \"body\": \" Dear NetBus user \\nYour bus is on its way.\\nStay sharp. 🚍🚍🚍🚍\", \"footer\": \"The wheels on the bus go round and round\", \"buttons\": 1 } The template submission will look like this: The template: a bold title, two lines of text with bus emoji, and a footer Full example 5 Here is a sample of a full template request in English: a weekend sale with a coupon code. The template contains: no header; a body with 2 variables; 1 website button (static website); 1 phone button; 1 coupon code button with an expiration time. { \"from\": \"972771234567\", \"name\": \"weekend sale\", \"language\": 2, \"header\": 1, \"body\": \" Hello {{1}} \\nWe value our VIP clients very much and would like to offer you {{2}} off for the weekend sale only!\", \"buttons\": 2, \"callToAction\": 3, \"callToActionWebsiteText\": \"Click here for more\", \"callToActionWebsiteType\": 1, \"callToActionWebsiteURL\": \"https://www.amazon.com/store/\", \"callToActionCallText\": \"Call Us\", \"callToActionCallNumber\": \"+972501122334\", \"useCoupon\": 1, \"couponTitle\": \"Weekend Sale!\", \"couponExpiration\": 1 } The template submission will look like this: The template: the sale text, the \"Weekend Sale!\" offer with a timer, and \"Copy offer code\", website and call buttons (The \"Copy offer code\" text is fixed and can't be changed; each template language shows the relevant translation. When the user clicks on it, it copies the code. When you send the template, the expiration shows the relevant timer.) Response { \"status\": \"OK\", \"name\": \"template name\", \"timestamp\": 1710861707, \"body\": \"The body text you wrote\", \"category\": 1, \"reason\": 1 } Full example 6 Here is a sample of a full carousel template, in English: image cards; 3 cards; each card has 1 static website button and 1 quick reply button. This is how it will look like; the client can switch between the 3 cards provided: A carousel template: the message, then image cards side by side, each with a website and a quick reply button { \"from\": \"972771234567\", \"name\": \"carousel 1\", \"language\": 2, \"header\": 5, \"carouselMedia\": 1, \"carouselButtons\": 4, \"body\": \"Hello! See all my cards below\", \"carouselCard1 body\": \"Card 1 body text\", \"carouselCard1 websiteText\": \"My website\", \"carouselCard1 websiteType\": 1, \"carouselCard1 websiteURL\": \"https://www.amazon.com\", \"carouselCard1 quickReply1\": \"Contact us\", \"carouselCard2 body\": \"Card 2 body text\", \"carouselCard2 websiteText\": \"My website 2\", \"carouselCard2 websiteType\": 1, \"carouselCard2 websiteURL\": \"https://www.google.com\", \"carouselCard2 quickReply1\": \"Contact us 2\", \"carouselCard3 body\": \"Card 3 body text\", \"carouselCard3 websiteText\": \"My website 3\", \"carouselCard3 websiteType\": 1, \"carouselCard3 websiteURL\": \"https://www.wikipedia.com\", \"carouselCard3 quickReply1\": \"Contact us 3\" } Response { \"status\": \"OK\", \"name\": \"carousel 1\", \"timestamp\": 1788784106, \"body\": \"Hello! See all my cards below\", \"category\": 2, \"reason\": 1 } Response-Explain Parameter Description status OK (template submitted to Meta) or FAIL (template error) name The template name you submitted timestamp The timestamp (Unix time, in seconds) body The body message you submitted category The category of the template, temporarily — see the values below reason The status explanation — see the table below Value Meaning 1 Utility template 2 Marketing template The reason it's \"temporarily\" is that until the template is approved, the category can be changed by Meta. The final and actual category is determined when the template is approved, and can be obtained with the Get Templates API. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 name is either empty / too long / invalid / already exists in your account 5 language code is incorrect 6 header code is incorrect (with a coupon code button, the header can't be a document) 7 The body has one of the following issues: - it has more than 10 variables; - the text is too long; - the same variable appears more than once; - there are only parameters and no regular text; - the body can't have more than two consecutive new lines ( \\n\\n\\n ) together. 8 footer is too long or incorrect (a coupon code template can't have a footer) 9 buttons is missing or not 1/2/3/4 (2 or 4 with a coupon code button) 10 You used call to action / quick reply buttons, but didn't provide a correct callToAction code or a quick reply button 11 callToActionWebsiteText is invalid / too long 12 callToActionWebsiteType must be 1/2 13 callToActionWebsiteURL is invalid / too long (write it without the variable: it is added for you) 14 callToActionCallText is invalid / too long 15 callToActionCallNumber is invalid / too long 16 You used quick reply buttons, but did not provide any buttons 17 You used more than 10 buttons 18 The number of bodyVariableSample fields you provided does not match the number of variables in body ; the body variables must be numbered in order, from {{1}} and without gaps 19 WhatsApp rejected the header's sample file. Please try again or contact support. 20 A dynamic website button ( callToActionWebsiteType or callToActionWebsiteType2 set to 2) needs its callToActionWebsiteURL / callToActionWebsiteURL2 21 The quick reply button(s) are too long 22 The template contains too many variables compared to the length of the rest of the text. Decrease the number of variables or increase the body length. 23 callToActionWebsiteText2 is invalid / too long, or two buttons are the same 24 callToActionWebsiteType2 must be 1/2 25 callToActionWebsiteURL2 is invalid / too long 26 couponTitle is required / too long / wrong 27 couponExpiration is invalid (it must be the number 0 or 1) 30 Unknown error, please check your syntax 31 Quick reply buttons must not contain any emoji 32 The template content is an authentication template; please change your syntax to match 33 Unable to create this kind of template, please contact support for more information 35 Permission denied to create templates, please contact our support 36 carouselMedia is missing or invalid 37 Wrong number of cards for carouselCardX (a carousel has 2 to 10 cards, numbered from 1 without gaps) 38 carouselCardX body is invalid (X can be 1 to 10) 39 carouselButtons is missing or invalid 40 A card variable is invalid: a card body can have one variable, {{1}} , on all the cards or none, and its sample ( carouselCardX var ) can be up to 160 characters 41 carouselCardX websiteText / websiteType / websiteURL is invalid or wrong 42 carouselCardX quickReply1 / quickReply2 is invalid or wrong 43 carouselCardX callText / callNumber is invalid or wrong Create an Authentication template An authentication code template is a different kind of template you can create. It is still a template, but it is different from the regular template creation, and it doesn't contain the normal structure: header, body, footer, buttons. An authentication code template is an OTP — a one-time password code that you can send to your clients over WhatsApp. It looks like this: An authentication template: the code, the security text, the expiration notice and a Copy code button Remarks The template text is fixed and can't be changed (per language). The \"Copy code\" button is fixed and can't be changed (per language). The template will have \"copy code\", which copies the code from WhatsApp for easy usage. You can only create an authentication template if your daily limit is 1000 or more. When you send it, the authentication template can only be seen on a mobile phone. If your client uses WhatsApp Web, the template message with the code will not be visible to them. You send the code itself with each message, with Send a Template, in its otp field. Endpoint (same as regular template creation) Setting Value URL https://api.99digital.co.il/whatsapp/v2/createTemplate Method JSON via POST Key Value apiKey Your API key for the service Body Each template needs to have a name and a language. Content Explanation Mandatory Example Limit (characters) Explanation from Your WhatsApp account number. International number without + . yes 972771234567 name Name for your template, without spaces (use an underscore instead), lower case, English only. The template name must be unique. yes login code 512 language The language of the template: the code to use, from the table below. yes 1 The fixed text of the template is in this language. authentication 1 (fixed, always) yes 1 1 This is for our system to know you are building an authentication template add security text 0 - no security message 1 - with security message (default is 0) no 1 1 This is a fixed text along with your code. As in the above screenshot, the text \"For your security, do not share this code.\" will be added (based on your template language). code expiration 0-90 minutes for code expiration (default is 0 - no expiration) no 5 2 If you wish your code to expire, you can provide the code expiration in minutes, between 1 and 90. When the time is up, the \"Copy code\" button will not be available, and the text \"the code has expired\" will be shown instead. Language name Code to use Hebrew 1 English 2 Arabic 3 Russian 4 Spanish 5 Chinese 6 Hindi 7 Thai 8 French 9 Response { \"status\": \"OK\", \"name\": \"template name\", \"timestamp\": 1710861707, \"category\": 3, \"reason\": 1 } Response-Explain Parameter Description status OK (template submitted to Meta) or FAIL (template error) name The template name you submitted timestamp The timestamp (Unix time, in seconds) category The category of the template — see the values below reason The status explanation — see the table below Value Meaning 3 Authentication template reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 name is either empty / too long / invalid / already exists in your account 5 language code is incorrect 30 Unknown error, please check your syntax 33 add security text is wrong or invalid, or WhatsApp is unable to create this kind of template (please contact support) 34 code expiration is wrong, invalid or not in range (0 to 90) 35 Permission denied to create templates, please contact our support Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes (one of: Utility or marketing) Your WhatsApp account. International number without + . Example: 972771234567 . name string Yes (one of: Utility or marketing) Name for your template, without spaces (use an underscore instead), lower case, English only. The template name must be unique. Max length: 512. Example: website login new client . language integer Yes (one of: Utility or marketing) The language of the template — the code to use. One of: 1 — Hebrew; 2 — English; 3 — Arabic; 4 — Russian; 5 — Spanish; 6 — Chinese; 7 — Hindi; 8 — Thai; 9 — French. Example: 2 . header integer Yes (one of: Utility or marketing) Header allows you to choose media to be sent as part of the template. WhatsApp reviews it with a sample file we provide; you send the real file with each template. One of: 1 — No media; 2 — Image; 3 — Video; 4 — Document; 5 — Carousel — set carouselMedia , carouselButtons and the cards. Example: 1 . body string Yes (one of: Utility or marketing) Your template message goes here. Use \\n for a new line, text for bold, text for italic, text for strikethrough, and {{1}} to {{10}} for variables. The limit of 1024 characters is for the total body, including the variables' data when sending the template (600 with a coupon code). Max length: 1024. Example: Hello {{1}}, and welcome to our website! Thank you for buying {{2}}. Your order will be shipped on {{3}}. . bodyVariableSample1 string No (one of: Utility or marketing) For any variable you used in body , you can provide a sample text: bodyVariableSample1 for {{1}} , bodyVariableSample2 for {{2}} and so on. WhatsApp reviews the template with the samples. If not provided, a sample is generated for you. Max length: 500. Example: This is a sample text . footer string No (one of: Utility or marketing) Any footer you want to add. No emoji, no variables. Not for a carousel or a coupon code template. Max length: 60. Example: This is footer, optional . buttons integer No (one of: Utility or marketing) The buttons of the template. If you wish to use buttons, choose between \"call to action\" or \"quick reply\", or use both (a total of 10 buttons is allowed from the two kinds). You must select 1, 2, 3 or 4 — except for a carousel ( header 5), whose buttons are set with carouselButtons . One of: 1 — No buttons; 2 — Call to action only — set callToAction ; 3 — Quick reply only — set quickReply1 and on; 4 — Both call to action and quick reply. Example: 1 . callToAction integer No (one of: Utility or marketing) Required if buttons is 2 or 4: how you want to set up the call to action buttons. One of: 1 — One website button only; 2 — Call button only; 3 — One website + call button; 4 — Two websites + call button; 5 — Two websites only. Example: 3 . callToActionWebsiteText string No (one of: Utility or marketing) The text of the first website button — the text to show for the link. No variables. Required with callToAction 1, 3, 4 and 5. Max length: 20. Example: Click here for my website . callToActionWebsiteType integer No (one of: Utility or marketing) The first website link type. Required with callToAction 1, 3, 4 and 5. One of: 1 — Static URL (no variable); 2 — Dynamic — one variable is automatically added at the end of the URL. Example: 1 . callToActionWebsiteURL string No (one of: Utility or marketing) The link of the first website button — the link to your website. Required with callToAction 1, 3, 4 and 5. You can't use WhatsApp groups, WhatsApp links for opening a conversation, or short URL services such as bitly. For a dynamic link ( callToActionWebsiteType 2), write it without the variable: it is added at the end automatically — https://www.amazon.com/ becomes https://www.amazon.com/{{1}} , and you provide the {{1}} when you send the template. Max length: 2000. Example: https://www.google.com/ . callToActionWebsiteText2 string No (one of: Utility or marketing) The text of the second website button, in case you want to use a second website button. No variables. Required with callToAction 4 and 5. Max length: 20. Example: Click here for my second website . callToActionWebsiteType2 integer No (one of: Utility or marketing) The second website link type. Required with callToAction 4 and 5. One of: 1 — Static URL (no variable); 2 — Dynamic — one variable is automatically added at the end of the URL. Example: 1 . callToActionWebsiteURL2 string No (one of: Utility or marketing) The link of the second website button. Required with callToAction 4 and 5. The same rules as callToActionWebsiteURL : no WhatsApp groups, WhatsApp links for opening a conversation or short URL services such as bitly. For a dynamic link ( callToActionWebsiteType2 2), write it without the variable: it is added at the end automatically ( https://www.amazon.com/{{1}} ), and you provide the {{1}} when you send the template. Max length: 2000. Example: https://www.amazon.com/ . callToActionCallText string No (one of: Utility or marketing) The text of the call button — the text to show for the dial button. No variables. Required with callToAction 2, 3 and 4. Max length: 20. Example: Click here to call me . callToActionCallNumber string No (one of: Utility or marketing) The number the call button dials — a fixed number, with the country code and + . Required with callToAction 2, 3 and 4. Max length: 20. Example: +972501234567 . useCoupon integer No (one of: Utility or marketing) Adds a coupon code button — another type of call to action — to the callToAction options 1, 3, 4 or 5. The client gets a \"copy code\" coupon message, and the code can have an expiration time. If a coupon code button is used: the body can only have 600 characters; the header can only be none, image or video, not a document; at least one website URL is required; a footer can't be used; and only mobile phones using WhatsApp can see this template, not WhatsApp Web. Send it as the number 1 , not the text \"1\" . One of: 0 — No coupon button; 1 — A coupon code button. Default: 0 . couponTitle string No (one of: Utility or marketing) Required with useCoupon 1: the title of the coupon code, shown next to the code in the template. No variables. Max length: 16. Example: Special offer! . couponExpiration integer No (one of: Utility or marketing) With useCoupon 1: whether the coupon has a time limit. If it does, you provide the expiration time when sending the template, and the template shows the timer. Send it as a number. One of: 0 — A coupon without a time limit; 1 — A coupon with a time limit. quickReply1 string No (one of: Utility or marketing) The quick reply buttons, up to 10: quickReply1 , quickReply2 and so on. Required if buttons is 3 or 4. When the client clicks one, your webhook gets the button's text and ID. A quick reply must not contain variables, new lines, emoji or any design symbols. Max length: 25. Example: Customer service . carouselMedia integer No (one of: Utility or marketing) Required if header is 5: the media of the cards — images for all cards, or videos for all cards. One of: 1 — Image cards; 2 — Video cards. carouselButtons integer No (one of: Utility or marketing) Required if header is 5 — the buttons of every card. One of: 1 — One website only; 2 — One quick reply only; 3 — Two quick replies only; 4 — Website + quick reply; 5 — Phone + website; 6 — Phone + quick reply. carouselCard1 body string No (one of: Utility or marketing) In case the header is a carousel ( header 5): the text of card 1, with up to 2 new lines and one variable, {{1}} . Optional, but all or none: if one card has a text, all of them must. Max length: 160. Example: Here is my first product, named: {{1}}. Click to buy . carouselCard1 var string No (one of: Utility or marketing) A sample for the {{1}} of card 1's text, for WhatsApp's review. If not provided, a sample is generated for you. Max length: 160. Example: Leather wallet . carouselCard1 websiteText string No (one of: Utility or marketing) With carouselButtons 1, 4 or 5 — the text of card 1's website button. No variables. Max length: 25. Example: Click here . carouselCard1 websiteType integer No (one of: Utility or marketing) With carouselButtons 1, 4 or 5 — the website link type, the same for all cards. One of: 1 — Static URL; 2 — Dynamic — a variable is added at the end. carouselCard1 websiteURL string No (one of: Utility or marketing) With carouselButtons 1, 4 or 5 — the website URL of card 1. For a dynamic link the variable is added at the end automatically ( https://www.amazon.com/{{1}} ), and you provide it when you send the template. Max length: 2000. Example: https://www.amazon.com/ . carouselCard1 quickReply1 string No (one of: Utility or marketing) With carouselButtons 2, 3, 4 or 6 — the first quick reply button of card 1. No variables. Max length: 25. Example: Click here . carouselCard1 quickReply2 string No (one of: Utility or marketing) With carouselButtons 3 — the second quick reply button of card 1. No variables. Max length: 25. Example: Click here 2 . carouselCard1 callText string No (one of: Utility or marketing) With carouselButtons 5 or 6 — the text of card 1's call button. No variables. Max length: 25. Example: Call now . carouselCard1 callNumber string No (one of: Utility or marketing) With carouselButtons 5 or 6, and carouselCard1 callText provided — the phone number card 1's call button dials, with the country code and + . Max length: 20. Example: +972501234567 . from string Yes (one of: Authentication) Your WhatsApp account. International number without + . Example: 972771234567 . name string Yes (one of: Authentication) Name for your template, without spaces (use an underscore instead), lower case, English only. The template name must be unique. Max length: 512. Example: login code . language integer Yes (one of: Authentication) The language of the template — the code to use. The fixed text of the authentication template is in this language. One of: 1 — Hebrew; 2 — English; 3 — Arabic; 4 — Russian; 5 — Spanish; 6 — Chinese; 7 — Hindi; 8 — Thai; 9 — French. Example: 2 . authentication integer Yes (one of: Authentication) Always 1. This is how our system knows you are building an authentication template. Always 1 . add security text integer No (one of: Authentication) A fixed text added to your code: \"For your security, do not share this code.\" (in your template's language), as in the picture above. One of: 0 — No security message; 1 — With the security message. Default: 0 . code expiration integer No (one of: Authentication) If you wish your code to expire: the code expiration in minutes, between 1 and 90 (0 — no expiration). When the time is up, the \"Copy code\" button is no longer available, and the text \"the code has expired\" is shown instead. Default: 0 . Minimum: 0. Maximum: 90. Example: 5 . Example: Text only A transportation update template, in English. The template contains: no header; a body with no variables; a footer; no buttons. The template submission will look like this: The template: a bold title, two lines of text with bus emoji, and a footer { \"from\": \"972771234567\", \"name\": \"the bus is coming\", \"language\": 2, \"header\": 1, \"body\": \" Dear NetBus user \\nYour bus is on its way.\\nStay sharp. 🚍🚍🚍🚍\", \"footer\": \"The wheels on the bus go round and round\", \"buttons\": 1 } Example: Variables with samples An order update with 2 variables, each with a sample for WhatsApp's review. bodyVariableSample1 is a sample for {{1}} and bodyVariableSample2 for {{2}} . WhatsApp reviews the template with these samples; without them, samples are generated for you. You provide the real values when you send the template ( bodyVariable1 , bodyVariable2 ). { \"from\": \"972771234567\", \"name\": \"order received\", \"language\": 2, \"header\": 1, \"body\": \"Hi {{1}}, your order {{2}} was received. We will let you know when it ships.\", \"bodyVariableSample1\": \"Dana\", \"bodyVariableSample2\": \"4711\", \"footer\": \"Thank you for shopping with us\", \"buttons\": 1 } Example: Quick replies (Hebrew) A Hebrew template ( language 1) with two quick reply buttons. buttons 3 means quick reply buttons only. When the client clicks one, your webhook gets the button's text (and the id you give it when you send the template). { \"from\": \"972771234567\", \"name\": \"hebrew order received\", \"language\": 1, \"header\": 1, \"body\": \"שלום {{1}}, ההזמנה שלך מספר {{2}} התקבלה בהצלחה. נעדכן אותך כשהיא תישלח.\", \"bodyVariableSample1\": \"דנה\", \"bodyVariableSample2\": \"4711\", \"footer\": \"תודה שקניתם אצלנו\", \"buttons\": 3, \"quickReply1\": \"מעקב משלוח\", \"quickReply2\": \"דברו איתי\" } Example: Image header An appointment reminder, in English. The template contains: an image header; a body with 2 variables; a footer; call to action buttons: one website button and one call button ( callToAction 3). The template submission will look like this: The template: an image, the reminder text, the footer, and \"Click for navigation\" and \"Call Us\" buttons { \"from\": \"972771234567\", \"name\": \"friday appointment reminder\", \"language\": 2, \"header\": 2, \"body\": \" Hello {{1}} we would like to remind you of the appointment you have with us on {{2}}.\\nPlease arrive with your ID card.\", \"footer\": \"Our address: 51D street.\", \"buttons\": 2, \"callToAction\": 3, \"callToActionWebsiteText\": \"Click for navigation\", \"callToActionWebsiteType\": 1, \"callToActionWebsiteURL\": \"https://waze.com/ul\", \"callToActionCallText\": \"Call Us\", \"callToActionCallNumber\": \"+972779111111\" } Example: Video header A product video with three quick reply buttons. header 3 is a video. When you send the template, you provide the video itself ( headerType 4 and headerLink in Send a Template). { \"from\": \"972771234567\", \"name\": \"promo video\", \"language\": 2, \"header\": 3, \"body\": \"Hi {{1}}, watch our new {{2}} in action. Interested? Pick an option below.\", \"bodyVariableSample1\": \"Dana\", \"bodyVariableSample2\": \"espresso machine\", \"buttons\": 3, \"quickReply1\": \"Tell me more\", \"quickReply2\": \"Book a demo\", \"quickReply3\": \"Not interested\" } Example: Document header A payment reminder, in English, with the invoice attached. The template contains: a document header; a body with 2 variables; no footer; a call to action button: a dynamic website ( callToAction 1, callToActionWebsiteType 2). The variable is added at the end of https://paypal.com/ ; you provide it when you send the template ( websiteVariable ). The template submission will look like this: The template: a document, the payment text, and a \"Click to pay\" button { \"from\": \"972771234567\", \"name\": \"payment reminder 1\", \"language\": 2, \"header\": 4, \"body\": \" Dear {{1}} \\nYour invoice for December 2021 is attached. Total amount is {{2}} USD.\\nPlease pay as soon as you can.\\nThe invoice is due in a week. 💳\", \"buttons\": 2, \"callToAction\": 1, \"callToActionWebsiteText\": \"Click to pay\", \"callToActionWebsiteType\": 2, \"callToActionWebsiteURL\": \"https://paypal.com/\" } Example: Call button A single call button ( callToAction 2). { \"from\": \"972771234567\", \"name\": \"delivery call us\", \"language\": 2, \"header\": 1, \"body\": \"Hi {{1}}, your delivery is on its way. Questions about it? Give us a call.\", \"bodyVariableSample1\": \"Dana\", \"buttons\": 2, \"callToAction\": 2, \"callToActionCallText\": \"Call us\", \"callToActionCallNumber\": \"+97231234567\" } Example: Two websites Two website buttons ( callToAction 5); the second one is dynamic. { \"from\": \"972771234567\", \"name\": \"booking links\", \"language\": 2, \"header\": 1, \"body\": \"Hi {{1}}, your table for {{2}} is booked. You can view the menu or manage your booking below.\", \"bodyVariableSample1\": \"Dana\", \"bodyVariableSample2\": \"Friday 20:00\", \"buttons\": 2, \"callToAction\": 5, \"callToActionWebsiteText\": \"View menu\", \"callToActionWebsiteType\": 1, \"callToActionWebsiteURL\": \"https://www.example.com/menu\", \"callToActionWebsiteText2\": \"My booking\", \"callToActionWebsiteType2\": 2, \"callToActionWebsiteURL2\": \"https://www.example.com/booking/\" } Example: All button kinds A welcome template, in English, with every kind of button. The template contains: no header; a body with 6 variables; no footer; 2 website buttons and 1 call button ( callToAction 4); 5 quick reply buttons ( buttons 4 — both kinds). The template submission will look like this: The template: the welcome text, two website buttons, a call button and five quick reply buttons When you send the template to your client, you need to fill {{1}} , {{2}} , {{3}} , {{4}} , {{5}} and {{6}} . { \"from\": \"972771234567\", \"name\": \"website welcome\", \"language\": 2, \"header\": 1, \"body\": \" Hello {{1}} and thank you for joining our exclusive website store!\\nOur company has many secrets to discover.\\nFor future connection, we received your phone number: {{2}} and your email address: {{3}}.\\nYou can find shirts, hats, shoes and gloves at discounted prices. Hold on, wait a minute, i found something interesting! just for this week we offer: {{4}} at discounted price: {{5}} only when you buy it online or in-store shop at: {{6}}.\\nWhat would you like to discover?\", \"buttons\": 4, \"callToAction\": 4, \"callToActionWebsiteText\": \"Our Website\", \"callToActionWebsiteType\": 1, \"callToActionWebsiteURL\": \"https://www.example.com\", \"callToActionWebsiteText2\": \"Our second website\", \"callToActionWebsiteType2\": 1, \"callToActionWebsiteURL2\": \"https://www.example-second-website.com\", \"callToActionCallText\": \"Click to call us\", \"callToActionCallNumber\": \"+972522222222\", \"quickReply1\": \"Shirts\", \"quickReply2\": \"Hats\", \"quickReply3\": \"Shoes\", \"quickReply4\": \"Gloves\", \"quickReply5\": \"Something else\" } Example: Coupon code A weekend sale, in English, with a coupon code that expires. The template contains: no header; a body with 2 variables; 1 website button (static website); 1 call button; 1 coupon code button with an expiration time. The template submission will look like this: The template: the sale text, the \"Weekend Sale!\" offer with a timer, and \"Copy offer code\", website and call buttons The \"Copy offer code\" text is fixed and can't be changed; each template language shows its translation. When the client clicks it, the code is copied. When you send the template, you provide the code and its expiration time, and the template shows the timer. { \"from\": \"972771234567\", \"name\": \"weekend sale\", \"language\": 2, \"header\": 1, \"body\": \" Hello {{1}} \\nWe value our VIP clients very much and would like to offer you {{2}} off for the weekend sale only!\", \"buttons\": 2, \"callToAction\": 3, \"callToActionWebsiteText\": \"Click here for more\", \"callToActionWebsiteType\": 1, \"callToActionWebsiteURL\": \"https://www.amazon.com/store/\", \"callToActionCallText\": \"Call Us\", \"callToActionCallNumber\": \"+972501122334\", \"useCoupon\": 1, \"couponTitle\": \"Weekend Sale!\", \"couponExpiration\": 1 } Example: Carousel A carousel template, in English, with 3 image cards. image cards ( carouselMedia 1); 3 cards; each card has 1 static website button and 1 quick reply button ( carouselButtons 4). This is how it will look like — the client can switch between the 3 cards: A carousel template: the message, then image cards side by side, each with a website and a quick reply button { \"from\": \"972771234567\", \"name\": \"carousel 1\", \"language\": 2, \"header\": 5, \"carouselMedia\": 1, \"carouselButtons\": 4, \"body\": \"Hello! See all my cards below\", \"carouselCard1 body\": \"Card 1 body text\", \"carouselCard1 websiteText\": \"My website\", \"carouselCard1 websiteType\": 1, \"carouselCard1 websiteURL\": \"https://www.amazon.com\", \"carouselCard1 quickReply1\": \"Contact us\", \"carouselCard2 body\": \"Card 2 body text\", \"carouselCard2 websiteText\": \"My website 2\", \"carouselCard2 websiteType\": 1, \"carouselCard2 websiteURL\": \"https://www.google.com\", \"carouselCard2 quickReply1\": \"Contact us 2\", \"carouselCard3 body\": \"Card 3 body text\", \"carouselCard3 websiteText\": \"My website 3\", \"carouselCard3 websiteType\": 1, \"carouselCard3 websiteURL\": \"https://www.wikipedia.com\", \"carouselCard3 quickReply1\": \"Contact us 3\" } Example: Carousel with variables A carousel whose cards each have a variable and a dynamic website button. Each card text has one variable, {{1}} , with its sample in carouselCardX var . The website buttons are dynamic ( carouselCardX websiteType 2): when you send the template, you provide each card's variable and website variable. { \"from\": \"972771234567\", \"name\": \"products carousel\", \"language\": 2, \"header\": 5, \"carouselMedia\": 1, \"carouselButtons\": 4, \"body\": \"Hi {{1}}, here are this week's picks for you - swipe to see them all.\", \"bodyVariableSample1\": \"Dana\", \"carouselCard1 body\": \"Our {{1}} - premium quality, in stock now.\", \"carouselCard1 var\": \"Leather wallet\", \"carouselCard1 websiteText\": \"View product\", \"carouselCard1 websiteType\": 2, \"carouselCard1 websiteURL\": \"https://www.example.com/p/\", \"carouselCard1 quickReply1\": \"I want this\", \"carouselCard2 body\": \"Our {{1}} - our best seller this month.\", \"carouselCard2 var\": \"Canvas backpack\", \"carouselCard2 websiteText\": \"View product\", \"carouselCard2 websiteType\": 2, \"carouselCard2 websiteURL\": \"https://www.example.com/p/\", \"carouselCard2 quickReply1\": \"I want this\", \"carouselCard3 body\": \"Our {{1}} - limited edition, few left.\", \"carouselCard3 var\": \"Travel mug\", \"carouselCard3 websiteText\": \"View product\", \"carouselCard3 websiteType\": 2, \"carouselCard3 websiteURL\": \"https://www.example.com/p/\", \"carouselCard3 quickReply1\": \"I want this\" } Example: Carousel (video) Video cards ( carouselMedia 2) with two quick replies each and no card text. { \"from\": \"972771234567\", \"name\": \"workshop video carousel\", \"language\": 2, \"header\": 5, \"carouselMedia\": 2, \"carouselButtons\": 3, \"body\": \"Hi {{1}}, two short clips from our workshop - which one would you like to join?\", \"bodyVariableSample1\": \"Dana\", \"carouselCard1 quickReply1\": \"Join Sunday\", \"carouselCard1 quickReply2\": \"Send details\", \"carouselCard2 quickReply1\": \"Join Tuesday\", \"carouselCard2 quickReply2\": \"Send details\" } Example: Carousel (call + website) Each card has a call button and a website button ( carouselButtons 5). { \"from\": \"972771234567\", \"name\": \"branches carousel\", \"language\": 2, \"header\": 5, \"carouselMedia\": 1, \"carouselButtons\": 5, \"body\": \"Find the branch nearest to you.\", \"carouselCard1 body\": \"Tel Aviv - Herzl 1\", \"carouselCard1 callText\": \"Call the branch\", \"carouselCard1 callNumber\": \"+97231234567\", \"carouselCard1 websiteText\": \"Directions\", \"carouselCard1 websiteType\": 1, \"carouselCard1 websiteURL\": \"https://www.example.com/branches/tel-aviv\", \"carouselCard2 body\": \"Haifa - Hanamal 10\", \"carouselCard2 callText\": \"Call the branch\", \"carouselCard2 callNumber\": \"+97241234567\", \"carouselCard2 websiteText\": \"Directions\", \"carouselCard2 websiteType\": 1, \"carouselCard2 websiteURL\": \"https://www.example.com/branches/haifa\" } Example: Authentication An authentication (OTP) template, with the security text and a code that expires after 5 minutes. The text and the \"Copy code\" button are fixed per language; you choose only whether to add the security text ( add security text ) and when the code expires ( code expiration , in minutes). You send the code itself with each message, in Send a Template's otp . An authentication template: \"123456 is your verification code\", the security text, the expiration notice and a Copy code button { \"from\": \"972771234567\", \"name\": \"login code\", \"language\": 2, \"authentication\": 1, \"add security text\": 1, \"code expiration\": 5 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the template was submitted to WhatsApp (Meta) for approval. Always OK . name string (one of: OK) The template name you submitted. timestamp integer (one of: OK) The timestamp (Unix time, in seconds). Example: 1710861707 . body string (one of: OK) The body message you submitted (not for an authentication template). category integer (one of: OK) The template category, temporarily: until the template is approved, Meta can change the category. The final, actual category is set when the template is approved, and you can get it with Get Templates. One of: 1 — Utility template; 2 — Marketing template; 3 — Authentication template. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out (template error): the template was not submitted. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'name' is either empty, too long, invalid, or already exists in your account; 5 — 'language' code is incorrect; 6 — 'header' code is incorrect (with a coupon code, the header can't be a document); 7 — The 'body' has one of the following issues: it has more than 10 variables; the text is too long; the same variable appears more than once; there are only parameters and no regular text; it has more than two consecutive new lines (\\n\\n\\n); 8 — 'footer' is too long or incorrect (a coupon code template can't have a footer); 9 — 'buttons' is missing or not 1, 2, 3 or 4 (2 or 4 with a coupon code); 10 — You used call to action or quick reply buttons, but didn't provide a correct callToAction code or a quick reply button; 11 — callToActionWebsiteText is invalid or too long; 12 — callToActionWebsiteType must be 1 or 2; 13 — callToActionWebsiteURL is invalid or too long (write it without the variable — it is added for you); 14 — callToActionCallText is invalid or too long; 15 — callToActionCallNumber is invalid or too long; 16 — You used quick reply buttons, but did not provide any buttons; 17 — You used more than 10 buttons; 18 — The body variables must be numbered in order, from {{1}} and without gaps, and the number of bodyVariableSample fields must match the variables in 'body'; 19 — WhatsApp rejected the header's sample file. Please try again or contact support; 20 — A dynamic website button (callToActionWebsiteType 2) needs its callToActionWebsiteURL; 21 — The quick reply buttons are too long; 22 — The template contains too many variables compared to the length of the rest of the text. Decrease the number of variables or increase the body length; 23 — callToActionWebsiteText2 is invalid or too long, or two buttons are the same; 24 — callToActionWebsiteType2 must be 1 or 2; 25 — callToActionWebsiteURL2 is invalid or too long; 26 — couponTitle is required, too long or wrong; 27 — couponExpiration is invalid (it must be the number 0 or 1); 30 — Unknown error, please check your syntax; 31 — Quick reply buttons must not contain any emoji; 32 — The template content is an authentication template; please change your syntax to match; 33 — add security text is wrong or invalid (authentication template), or WhatsApp is unable to create this kind of template — please contact support; 34 — code expiration is wrong, invalid or not between 0 and 90 (authentication template); 35 — Permission denied to create templates, please contact our support; 36 — carouselMedia is missing or invalid; 37 — Wrong number of cards: a carousel has 2 to 10 cards, numbered from 1 without gaps; 38 — carouselCardX body is invalid (X can be 1 to 10); 39 — carouselButtons is missing or invalid; 40 — A card variable is invalid: a card text can have one variable, {{1}} , on all the cards or none, and its sample (carouselCardX var) can be up to 160 characters; 41 — carouselCardX websiteText, websiteType or websiteURL is invalid or wrong; 42 — carouselCardX quickReply1 or quickReply2 is invalid or wrong; 43 — carouselCardX callText or callNumber is invalid or wrong. Example: OK The template was submitted to WhatsApp for approval. { \"status\": \"OK\", \"name\": \"website welcome\", \"timestamp\": 1710861707, \"body\": \" Hello {{1}} and thank you for joining our exclusive website store!\", \"category\": 1, \"reason\": 1 } Example: OK — carousel A carousel template is a marketing template. { \"status\": \"OK\", \"name\": \"carousel 1\", \"timestamp\": 1788784106, \"body\": \"Hello! See all my cards below\", \"category\": 2, \"reason\": 1 } Example: OK — authentication An authentication template has no body in the response. { \"status\": \"OK\", \"name\": \"login code\", \"timestamp\": 1710861707, \"category\": 3, \"reason\": 1 } Example: Reason 4 The name is empty, invalid or already exists. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 34 The code expiration is not between 0 and 90 minutes. { \"status\": \"FAIL\", \"reason\": 34 }"
    },
    {
      "id": "whatsapp-api/send-template",
      "title": "Send a Template",
      "url": "https://docs.99digital.co.il/whatsapp-api/templates/send-a-template",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/templates/send-a-template.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Templates"
      ],
      "language": "en",
      "description": "Send a template message that you created with Create a Template, and fill in its variables, media and buttons.",
      "endpoint": {
        "method": "POST",
        "path": "/sendTemplate",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendTemplate"
      },
      "headings": [
        "More Remarks",
        "Settings",
        "Body",
        "Body example",
        "Another body example",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Body variables",
        "Example: Image header (Hebrew)",
        "Example: No variables",
        "Example: Video + quick reply ids",
        "Example: Document + dynamic website",
        "Example: Two websites",
        "Example: Coupon code",
        "Example: Authentication code",
        "Example: Carousel",
        "Example: Carousel (video)",
        "Example: Text header",
        "Example: To user id",
        "Example: localStorage",
        "Example: showRequest",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK + showRequest",
        "Example: Reason 12",
        "Example: Reason 17",
        "Example: Reason 23"
      ],
      "keywords": [
        "sendTemplate",
        "from",
        "to",
        "name",
        "headerType",
        "headerVariable",
        "headerLink",
        "pdfFilename",
        "bodyVariable1",
        "websiteVariable",
        "websiteVariable2",
        "couponCode",
        "couponExpiration",
        "otp",
        "quickReply1_id",
        "carouselCard1_headerLink",
        "carouselCard1_bodyVariable",
        "carouselCard1_websiteVariable",
        "carouselCard1_quickReply1_id",
        "carouselCard1_quickReply2_id",
        "localStorage",
        "showRequest",
        "status",
        "unique",
        "timestamp",
        "body",
        "templateTimeLeft",
        "conversationTimeLeft",
        "originalRequest",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendTemplate Send a template message that you created with Create a Template, and fill in its variables, media and buttons. You can use the \"Send Template\" API anytime you want to send a message to a client if it is more than 24 hours since the client's last message, or if you send a message to a new client. You can even send the template during the 24-hour session time if you wish. More Remarks You can only send template messages to private people, not groups. If you send a template message to the client, and the client did not reply yet, and you want to send another message to them, you must use the template message again. The billing is per \"conversation\". A conversation means a 24-hour session between you and the client (this 24-hour conversation session is unrelated to the 24-hour timer for template messages). You can send unlimited template messages within the 24-hour session time of a conversation. The 24-hour conversation session starts when you send a message to the client. Every time the user replies, the template message session resets, which means that you don't have to use a template message during this 24-hour template message session. If your template has variables, you must provide all the variables' data (inside the bodyVariable parameters). The entire template body + variables should not exceed 1024 characters. For a carousel template, headerType should be 1. The template must be approved first — see Create a Template and Get Templates. Fill in only what your template has: its variables, its header media, its dynamic website buttons, its coupon code or its authentication code. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendTemplate Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes to The number you want to send the message to. For example: 972501234567 or The user id you want to send the message to. For example: IL.1605856887361213 — for a client who hides their number behind a WhatsApp username; it arrives as from id in your webhook. yes name The template name yes headerType 1 for none 2 for text with a variable 3 for image 4 for video 5 for document yes headerVariable In case your template has a text header with a variable ( headerType 2), this is the value of that variable, without special characters such as . only if you used 2 as headerType headerLink In case you used an image/video/document header, this is the link to the image, video or document. Limits: image - 5 MB document - 100 MB video - 16 MB only if you used 3 / 4 / 5 as headerType bodyVariable1-10 In case you used variables {{1}} to {{10}} in your body when submitting the template, this is where you provide them. Each item as a variable (1 to 10), not an array. Two important rules: 1. You can't use \\n (a new line) inside a variable. 2. You can't use 4 or more consecutive spaces inside a variable. only if you used variables in the 'body' websiteVariable In case you used a call to action button, and you chose a dynamic \"website\" with the variable {{1}} , this is where you use it. You should put the variable information, not the full website address. no websiteVariable2 In case you used a second website for the call to action button, and you used a dynamic variable, this is where you provide the {{1}} for the second website. You should put the variable information, not the full website address. no couponCode In case you used a coupon code in the template, here you put the code. 15 characters maximum. no couponExpiration In case you used a coupon code in the template, and set 'true' for code expiration, here you put the Unix timestamp (seconds) of the date and time that the code will no longer be available. A Unix timestamp is the same in every time zone, so convert your local time (for example Israel time, GMT+2 or GMT+3) to it. no pdfFilename In case you used headerType as document, and provided a document link in headerLink , here you can put the file name that will show for the end user when receiving the PDF file. Priority: 1. If pdfFilename is provided, it will be used. 2. If pdfFilename is not provided by you, we will use the PDF file name from the headerLink URL directly. 3. If the headerLink file name is not available for any reason, we will put the default text: \"קובץ מצורף - לחץ כאן\" no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 - enable no otp If your template is an authentication template, here is where you provide the code. Maximum 15 characters (can be a combination of numbers, letters, special characters etc.) Note: an authentication template is visible only on a mobile phone. If the end user is using WhatsApp Web, the code will not be available to them. Only if an authentication template is used localStorage Whenever you provide a headerLink URL or carousel card URLs, we deliver this URL to WhatsApp. They download the link in order to deliver it with your template. If for any reason your file link is not accessible by Meta and open to the internet, you can request our servers to download the file and upload it to WhatsApp, so WhatsApp doesn't need your own link. Default value is 0 (disable). 1 - enable. Please note that using this feature may delay the response from our server, due to the operation described above. no quickReplyX id If you used quickReply (1-10) buttons during the template creation, you can provide an ID for each button, which will be returned on the webhook if a client clicks it. Example: you created two quick reply buttons in the template, using quickReply1 = \"Yes\" and quickReply2 = \"No\". You can send quickReply1 id and quickReply2 id as strings; the id and the template name together can be up to 252 characters. This will return as the caption when the incoming message arrives, if the end user clicked that button. no carouselCardX headerLink X represents the card number (for example carouselCard1 headerLink ). You must provide the full URL of either the image (up to 5 MB) or the video (up to 16 MB) to send for the card. You must provide this URL for every card you used when creating the template. Only if you send a carousel template carouselCardX bodyVariable X represents the card number (for example carouselCard1 bodyVariable ). The card text, with the variable in it, must be up to 160 characters. You must provide this for each of the cards. Only if you send a carousel template, and you added a variable in the card carouselCardX websiteVariable X represents the card number (for example carouselCard1 websiteVariable ). Provide only the variable, not the full website. You must provide this for each of the cards. Only if you send a carousel template, and you added a dynamic website button carouselCardX quickReply1 id X represents the card number (for example carouselCard1 quickReply1 id ). If a client clicks a quick reply button in a carousel, you can provide the button id and get it back on the webhook. no carouselCardX quickReply2 id X represents the card number (for example carouselCard1 quickReply2 id ). If a client clicks a quick reply button in a carousel, you can provide the button id and get it back on the webhook. no Body example On the Create a Template page, in the first example, we created a template named \"website welcome\", in English, without a header, and with 6 variables in the body, which looks like this: Hello {{1}} and thank you for joining our exclusive website store!\\nOur company has many secrets to discover.\\nFor future connection, we received your phone number: {{2}} and your email address: {{3}}.\\nYou can find shirts, hats, shoes and gloves at discounted prices. Hold on, wait a minute, i found something interesting! just for this week we offer: {{4}} at discounted price: {{5}} only when you buy it online or in-store shop at: {{6}}.\\nWhat would you like to discover? This is how you should send the template to your customer: { \"from\": \"972771234567\", \"to\": \"972509876543\", \"name\": \"website welcome\", \"headerType\": 1, \"bodyVariable1\": \"John\", \"bodyVariable2\": \"0509876543\", \"bodyVariable3\": \"john@example.com\", \"bodyVariable4\": \"Shoes and Hats\", \"bodyVariable5\": \"50% off\", \"bodyVariable6\": \"Israel\", \"showRequest\": 0 } Another body example For a template named \"website signup image logo\", in Hebrew, with an image header, and 2 variables in the body, which looks like this: תודה שהצטרפת אלינו. קוד הכניסה שלך הוא: {{1}} אנחנו רוצים להודות לך ולברך אותך בברכת התחלה חדשה. בברכה, צוות {{2}} the request will look like this: { \"from\": \"972771234567\", \"to\": \"972509876543\", \"name\": \"website signup image logo\", \"headerType\": 3, \"headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"bodyVariable1\": \"43143\", \"bodyVariable2\": \"קידום אתרים\" } Response { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972509876543\", \"body\": \"Hello John Thank you for joining our exclusive website\", \"templateTimeLeft\": 400, \"conversationTimeLeft\": 0, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL . Note: an OK status doesn't mean the message arrived to the end user. It only means that the system received your request. You should listen to webhooks to see the status of your message. unique Unique ID for any message. The webhooks about this message carry the same ID. timestamp Time stamp (Unix time, in seconds) from Your WhatsApp account to The number or the user id that the message was sent to body The body of the template, including the variables templateTimeLeft Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Even though you sent a template now, if the templateTimeLeft value is more than 0, it means that you don't have to use a template. conversationTimeLeft No longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0 . originalRequest Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 to is either empty or in a wrong number format 6 WhatsApp error or template rejected 12 The template name does not exist 14 headerType is missing or not 1 , 2 , 3 , 4 or 5 15 You must provide headerVariable for this template, without special characters such as 17 The number of bodyVariable fields must be equal to the number of variables used when creating the template, and they must not be empty 18 You must provide websiteVariable for this template 19 A body variable is too long: the template body with its variables must not exceed 1024 characters 20 The coupon code is too long (more than 15 characters) or invalid 21 WhatsApp has rejected the sending of the template due to high-volume sending. Please try to send again. 22 Rate limit error, try again 23 otp is required for an authentication template and must not exceed 15 characters 24 When localStorage is used, the headerLink provided is incorrect or access is denied 28 A quickReplyX id is invalid or too long 29 The cards you provided in carouselCardX don't match the cards of the template — for example, a card number higher than the number of cards the template was created with 30 carouselCardX bodyVariable is missing or invalid (relevant for any of the cards) 31 carouselCardX headerLink is missing, invalid or wrong 32 carouselCardX websiteVariable is missing, invalid or wrong 33 carouselCardX quickReply1 id or carouselCardX quickReply2 id is invalid or wrong 34 When localStorage is used, a carouselCardX headerLink provided is incorrect or access is denied Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . to string Yes The number you want to send the message to, in international format, digits only — or the user id you want to send the message to, for a client who hides their number behind a WhatsApp username (it arrives as from id in your webhook). Example: 972501234567 . name string Yes The template name. Example: website welcome . headerType integer Yes The template's header. One of: 1 — None — also for a carousel template; 2 — Text, with a variable — provide headerVariable ; 3 — Image — provide headerLink ; 4 — Video — provide headerLink ; 5 — Document — provide headerLink . Example: 1 . headerVariable string No For a template with a text header that has a variable ( headerType 2): the value of that variable, without special characters such as . Example: Order 4711 . headerLink string (uri) No In case your template has an image, video or document header, this is the link to the image, video or document. Limits: image — 5 MB; document — 100 MB; video — 16 MB. Required only when headerType is 3, 4 or 5. Example: https://storage.99digital.online/samples/hello.png . pdfFilename string No In case you used headerType 5 (document) and provided a document link in headerLink , here you can put the file name that the client sees when receiving the PDF file. Priority: 1. if pdfFilename is provided, it is used; 2. if you don't provide it, the PDF file name from the headerLink URL is used; 3. if the headerLink file name is not available for any reason, the default text \"קובץ מצורף - לחץ כאן\" is used. Example: Invoice 4711 - August 2026 . bodyVariable1 string No In case you used variables {{1}} to {{10}} in your body when submitting the template, this is where you provide them — one field per variable, bodyVariable1 to bodyVariable10 , not an array. Two important rules: you can't use \\n (a new line) inside a variable, and you can't use 4 or more consecutive spaces inside a variable. Example: John . websiteVariable string No In case your template has a dynamic website button (with the variable {{1}} ), this is where you provide it. Put the variable information, not the full website address. Example: inv-4711 . websiteVariable2 string No In case your template has a second website button that is dynamic (with the variable {{1}} ), this is where you provide the {{1}} of the second website. Put the variable information, not the full website address. Example: bk-88213 . couponCode string No In case your template has a coupon code button, here you put the code. Up to 15 characters. Max length: 15. Example: SAVE20 . couponExpiration integer No In case your template has a coupon code button with an expiration time: the moment the code is no longer available, as a Unix timestamp in seconds. A Unix timestamp is the same in every time zone — convert your local time (for example Israel time, GMT+2 or GMT+3) to it. Example: 1790500000 . otp string No If your template is an authentication template, here is where you provide the code — up to 15 characters (any combination of numbers, letters, special characters etc.). Note: an authentication template is visible only on a mobile phone; if the client uses WhatsApp Web, the code will not be available to them. Max length: 15. Example: 482913 . quickReply1 id string No If your template has quick reply buttons ( quickReply1 to quickReply10 when you created it), you can give each button an id that is returned on the webhook, as the caption , when the client clicks it: quickReply1 id to quickReply10 id . For example, for the buttons \"Yes\" and \"No\", send quickReply1 id and quickReply2 id . The id and the template name together can be up to 252 characters. Example: CONFIRM . carouselCard1 headerLink string (uri) No For a carousel template: the full link to the image (up to 5 MB) or video (up to 16 MB) of card 1. You must provide it for every card of the template: carouselCard1 headerLink , carouselCard2 headerLink and so on. Example: https://storage.99digital.online/samples/hello.png . carouselCard1 bodyVariable string No For a carousel template whose cards have a variable: the variable of card 1. The card text with it can be up to 160 characters. You must provide it for each of the cards. Example: Leather wallet . carouselCard1 websiteVariable string No For a carousel template with a dynamic website button: the variable of card 1 — only the variable, not the full website. You must provide it for each of the cards. Example: wallet-01 . carouselCard1 quickReply1 id string No For a carousel template with quick reply buttons: an id for the first quick reply button of card 1, returned on the webhook when the client clicks it. Example: WANT WALLET . carouselCard1 quickReply2 id string No For a carousel template with quick reply buttons: an id for the second quick reply button of card 1, returned on the webhook when the client clicks it. Example: MORE WALLET . localStorage integer No We deliver your headerLink (or carousel card links) to WhatsApp, and WhatsApp downloads the file in order to deliver it with your template. If your link is not accessible to WhatsApp or not open to the internet, enable this: we download the file ourselves and upload it to WhatsApp, so WhatsApp doesn't need your link. Please note that using this feature may delay the response from our server. One of: 0 — Off — WhatsApp downloads the file from your link; 1 — Enable — we upload the file to WhatsApp for you. Default: 0 . showRequest integer No You can get back in the response an object with the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example: Body variables A template with 6 variables in the body, and no header. The Create a Template example website welcome is a template in English, without a header, and with 6 variables in the body: \\ Hello {{1}}\\ and thank you for joining our exclusive website store! Our company has many secrets to discover. For future connection, we received your phone number: {{2}} and your email address: {{3}}. You can find shirts, hats, shoes and gloves at discounted prices. Hold on, wait a minute, i found something interesting! just for this week we offer: {{4}} at discounted price: {{5}} only when you buy it online or in-store shop at: {{6}}. What would you like to discover? This is how you send it to your customer: { \"from\": \"972771234567\", \"to\": \"972509876543\", \"name\": \"website welcome\", \"headerType\": 1, \"bodyVariable1\": \"John\", \"bodyVariable2\": \"0509876543\", \"bodyVariable3\": \"john@example.com\", \"bodyVariable4\": \"Shoes and Hats\", \"bodyVariable5\": \"50% off\", \"bodyVariable6\": \"Israel\", \"showRequest\": 0 } Example: Image header (Hebrew) A Hebrew template with an image header and 2 variables. A template named website signup image logo , in Hebrew, with an image header and 2 variables in the body: תודה שהצטרפת אלינו. קוד הכניסה שלך הוא: {{1}} אנחנו רוצים להודות לך ולברך אותך בברכת התחלה חדשה. בברכה, צוות {{2}} The request looks like this: { \"from\": \"972771234567\", \"to\": \"972509876543\", \"name\": \"website signup image logo\", \"headerType\": 3, \"headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"bodyVariable1\": \"43143\", \"bodyVariable2\": \"קידום אתרים\" } Example: No variables A text template without variables. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"store open today\", \"headerType\": 1 } Example: Video + quick reply ids A video header, and an id for each quick reply button — the id of the button the client clicks comes back in the webhook. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"promo video\", \"headerType\": 4, \"headerLink\": \"https://storage.99digital.online/samples/meditation.mp4\", \"bodyVariable1\": \"Dana\", \"bodyVariable2\": \"espresso machine\", \"quickReply1 id\": \"MORE INFO\", \"quickReply2 id\": \"BOOK DEMO\", \"quickReply3 id\": \"NOT INTERESTED\" } Example: Document + dynamic website A PDF header with the file name the client sees, and the variable of a dynamic website button. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"invoice pdf\", \"headerType\": 5, \"headerLink\": \"https://storage.99digital.online/samples/headerSample.pdf\", \"pdfFilename\": \"Invoice 4711 - August 2026\", \"bodyVariable1\": \"Dana Levi\", \"bodyVariable2\": \"August 2026\", \"bodyVariable3\": \"350 USD\", \"websiteVariable\": \"inv-4711\" } Example: Two websites A template with two website buttons, where only the second one is dynamic — so only websiteVariable2 is sent. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"booking links\", \"headerType\": 1, \"bodyVariable1\": \"Dana\", \"bodyVariable2\": \"Friday 20:00\", \"websiteVariable2\": \"bk-88213\" } Example: Coupon code A coupon code button, with the time the code expires. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"weekend coupon\", \"headerType\": 3, \"headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"bodyVariable1\": \"Dana\", \"bodyVariable2\": \"20%\", \"couponCode\": \"SAVE20\", \"couponExpiration\": 1790500000 } Example: Authentication code An authentication template — the code goes in otp . { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"login code\", \"headerType\": 1, \"otp\": \"482913\" } Example: Carousel A carousel template with 3 image cards: a link, a variable, a website variable and a quick reply id for every card. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"products carousel\", \"headerType\": 1, \"bodyVariable1\": \"Dana\", \"carouselCard1 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"carouselCard1 bodyVariable\": \"Leather wallet\", \"carouselCard1 websiteVariable\": \"wallet-01\", \"carouselCard1 quickReply1 id\": \"WANT WALLET\", \"carouselCard2 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"carouselCard2 bodyVariable\": \"Canvas backpack\", \"carouselCard2 websiteVariable\": \"backpack-02\", \"carouselCard2 quickReply1 id\": \"WANT BACKPACK\", \"carouselCard3 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"carouselCard3 bodyVariable\": \"Travel mug\", \"carouselCard3 websiteVariable\": \"mug-03\", \"carouselCard3 quickReply1 id\": \"WANT MUG\" } Example: Carousel (video) A carousel template with 2 video cards and two quick reply buttons on each card, with localStorage . { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"workshop video carousel\", \"headerType\": 1, \"localStorage\": 1, \"bodyVariable1\": \"Dana\", \"carouselCard1 headerLink\": \"https://storage.99digital.online/samples/meditation.mp4\", \"carouselCard1 quickReply1 id\": \"JOIN SUN\", \"carouselCard1 quickReply2 id\": \"DETAILS SUN\", \"carouselCard2 headerLink\": \"https://storage.99digital.online/samples/meditation.mp4\", \"carouselCard2 quickReply1 id\": \"JOIN TUE\", \"carouselCard2 quickReply2 id\": \"DETAILS TUE\" } Example: Text header A template with a text header that has a variable (a template created in WhatsApp Manager). { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"your template with text header\", \"headerType\": 2, \"headerVariable\": \"Order 4711\", \"bodyVariable1\": \"Dana\" } Example: To user id For a client who hides their number behind a WhatsApp username: send to the user id from your webhook. { \"from\": \"972771234567\", \"to\": \"IL.1605856887361213\", \"name\": \"order received\", \"headerType\": 1, \"bodyVariable1\": \"Dana\", \"bodyVariable2\": \"4711\" } Example: localStorage We upload the header image to WhatsApp for you, for a link that WhatsApp can't reach. { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"summer offer image\", \"headerType\": 3, \"headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"localStorage\": 1, \"bodyVariable1\": \"Dana\", \"bodyVariable2\": \"20%\" } Example: showRequest Get the request back in the response, as originalRequest . { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"order received\", \"headerType\": 1, \"bodyVariable1\": \"Dana\", \"bodyVariable2\": \"4711\", \"showRequest\": 1 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the message arrived to the end user, it only means that the system received your request. You should listen to webhooks to see the status of your message. Always OK . unique string (one of: OK) Unique ID for any message. The webhooks about this message carry the same ID. Example: 19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . to string (one of: OK) The number or the user id that the message was sent to. Example: 972501234567 . body string (one of: OK) The body of the template, including the variables. templateTimeLeft integer (one of: OK) Amount of minutes left since the client's last message. If passed, you must use a template message. This value resets every time the client sends you a message. Even though you sent a template now, if templateTimeLeft is more than 0, you don't have to use a template. Example: 0 . conversationTimeLeft integer (one of: OK) Deprecated. This value is no longer in use: the conversation time left is part of the webhook instead. Until it is removed in a future update, it is always 0. Example: 0 . originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. Empty fields are left out. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'to' is either empty or wrong number format; 6 — WhatsApp error or template rejected; 12 — The template name does not exist; 14 — 'headerType' is missing or not 1, 2, 3, 4 or 5; 15 — You must provide headerVariable for this template, without special characters such as ; 17 — The number of bodyVariable fields must be equal to the number of variables used when creating the template, and they must not be empty; 18 — You must provide websiteVariable for this template; 19 — A body variable is too long — the template body with its variables must not exceed 1024 characters; 20 — The coupon code is too long or invalid; 21 — WhatsApp has rejected the sending of the template due to high volume sending. Please try to send again; 22 — Rate limit error, try again; 23 — otp is required for an authentication template and must not exceed 15 characters; 24 — When localStorage is used: the headerLink provided is incorrect or access is denied; 28 — A quickReplyX id is invalid or too long; 29 — The cards you provided in carouselCardX don't match the cards of the template — for example, a card number higher than the number of cards the template was created with; 30 — carouselCardX bodyVariable is missing or invalid (for any of the cards); 31 — carouselCardX headerLink is missing, invalid or wrong; 32 — carouselCardX websiteVariable is missing, invalid or wrong; 33 — carouselCardX quickReply1 id or quickReply2 id is invalid or wrong; 34 — When localStorage is used: a carouselCardX headerLink provided is incorrect or access is denied. Example: OK The system received your request. body is the template text with your variables. { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972509876543\", \"body\": \" Hello John and thank you for joining our exclusive website store!\\nOur company has many secrets to discover.\\nFor future connection, we received your phone number: 0509876543 and your email address: john@example.com.\\nYou can find shirts, hats, shoes and gloves at discounted prices. Hold on, wait a minute, i found something interesting! just for this week we offer: Shoes and Hats at discounted price: 50% off only when you buy it online or in-store shop at: Israel.\\nWhat would you like to discover?\", \"templateTimeLeft\": 0, \"conversationTimeLeft\": 0, \"reason\": 1 } Example: OK + showRequest With showRequest set to 1, the response includes originalRequest . { \"status\": \"OK\", \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"timestamp\": 1600115719, \"from\": \"972771234567\", \"to\": \"972501234567\", \"body\": \"Hi Dana, your order 4711 was received. We will let you know when it ships.\", \"templateTimeLeft\": 0, \"conversationTimeLeft\": 0, \"originalRequest\": { \"from\": \"972771234567\", \"to\": \"972501234567\", \"name\": \"order received\", \"headerType\": 1, \"bodyVariable1\": \"Dana\", \"bodyVariable2\": \"4711\" }, \"reason\": 1 } Example: Reason 12 The template name does not exist. { \"status\": \"FAIL\", \"reason\": 12 } Example: Reason 17 The number of variables doesn't match the template. { \"status\": \"FAIL\", \"reason\": 17 } Example: Reason 23 The authentication template needs its code in otp . { \"status\": \"FAIL\", \"reason\": 23 }"
    },
    {
      "id": "whatsapp-api/send-multi-template",
      "title": "Send Multi Template",
      "url": "https://docs.99digital.co.il/whatsapp-api/templates/send-multi-template",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/templates/send-multi-template.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Templates"
      ],
      "language": "en",
      "description": "Send the same template to many clients in one request, with the personal variables of each client.",
      "endpoint": {
        "method": "POST",
        "path": "/sendMultiTemplate",
        "url": "https://api.99digital.co.il/whatsapp/v2/sendMultiTemplate"
      },
      "headings": [
        "More Remarks",
        "Settings",
        "Body",
        "Body example",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Body variables",
        "Example: Video + quick reply ids",
        "Example: Document + personal website",
        "Example: Coupon codes",
        "Example: Carousel",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — one rejected",
        "Example: Reason 23",
        "Example: Reason 26"
      ],
      "keywords": [
        "sendMultiTemplate",
        "from",
        "name",
        "destinations",
        "to",
        "bodyVariable1",
        "websiteVariable",
        "websiteVariable2",
        "couponCode",
        "quickReply1_id",
        "headerType",
        "headerVariable",
        "headerLink",
        "pdfFilename",
        "couponExpiration",
        "carouselCard1_headerLink",
        "carouselCard1_bodyVariable",
        "carouselCard1_websiteVariable",
        "carouselCard1_quickReply1_id",
        "carouselCard1_quickReply2_id",
        "localStorage",
        "showBody",
        "showRequest",
        "status",
        "timestamp",
        "accepted",
        "rejected",
        "failed",
        "unique",
        "body",
        "reason",
        "originalRequest"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/sendMultiTemplate Send the same template to many clients in one request, with the personal variables of each client. The Send Multi Template endpoint allows you to send the same template to multiple destinations in a single request. This endpoint is very similar to Send a Template; the only difference is that some body parameters are now part of an array, allowing you to send them all at once. What is the same for everyone — the template, its header and its carousel cards — is sent once; what is personal — the number, the body variables, the website variables, the coupon code and the quick reply ids — goes in each destination. This page assumes you know how to handle bodyVariable1 - 10 , websiteVariable / 2 and couponCode and what they mean. For more reference, see the Send a Template endpoint first. More Remarks You can only send template messages to private people, not groups. If you send a template message to the client, and the client did not reply yet, and you want to send another message to them, you must use the template message again. If your template has variables, you must provide all the variables' data (inside the bodyVariable parameters inside the destinations). The entire template body + variables should not exceed 1024 characters. The sendMultiTemplate endpoint doesn't allow you to send an authentication code template. For a carousel template, headerType should be 1. A destination with a mistake (a wrong number, a too long coupon code) is rejected on its own, with its reason ; the other destinations are sent. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/sendMultiTemplate Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes name The template name yes destinations An array of objects that contain: to , bodyVariable1 - 10 , websiteVariable , websiteVariable2 , couponCode and quickReplyX id . It should be sent as in the example below, depending on the variables you used when you created the template. to is required (the number in international format, digits only, or the user id of a client who hides their number behind a WhatsApp username). yes headerType 1 for none 2 for text with a variable 3 for image 4 for video 5 for document yes headerVariable In case your template has a text header with a variable ( headerType 2), this is the value of that variable — the same for every destination — without special characters such as . only if you used 2 as headerType headerLink In case you used an image/video/document header, this is the link to the image, video or document. Limits: image - 5 MB document - 100 MB video - 16 MB only if you used 3 / 4 / 5 as headerType couponExpiration In case you used a coupon code in the template, and set 'true' for code expiration, here you put the Unix timestamp (seconds) of the date and time that the code will no longer be available. A Unix timestamp is the same in every time zone, so convert your local time (for example Israel time, GMT+2 or GMT+3) to it. no pdfFilename In case you used headerType as document, and provided a document link in headerLink , here you can put the file name that will show for the end user when receiving the PDF file. Priority: 1. If pdfFilename is provided, it will be used. 2. If pdfFilename is not provided by you, we will use the PDF file name from the headerLink URL directly. 3. If the headerLink file name is not available for any reason, we will put the default text: \"קובץ מצורף - לחץ כאן\" no showRequest You can get back in the response an object with all the request you sent (without the apiKey ). Default is off ( 0 ). 1 - enable no localStorage Whenever you provide a headerLink URL (or carousel card URLs), we deliver this URL to WhatsApp. They download the link in order to deliver it with your template. If for any reason your file link is not accessible by Meta and open to the internet, you can request us to download the file and upload it to WhatsApp, so WhatsApp doesn't need your own link. The file is uploaded once and used for every destination; if the upload fails, your link is used. Default value is 0 (disable). 1 - enable. Please note that using this feature may delay the response from our server, due to the operation described above. no showBody Whether or not to show the body in every item of the destinations array of the response. 1 = show 0 = don't show Default is 0 . For a long list, the entire body in the response can be long, and the full response might reach a very high size in MB. So consider carefully whether to enable the body in your response or not. no carouselCardX headerLink X represents the card number (for example carouselCard1 headerLink ). You must provide the full URL of either the image (up to 5 MB) or the video (up to 16 MB) to send for the card. You must provide this URL for every card you used when creating the template. Only if you send a carousel template carouselCardX bodyVariable X represents the card number (for example carouselCard1 bodyVariable ). The card text, with the variable in it, must be up to 160 characters. You must provide this for each of the cards. Only if you send a carousel template, and you added a variable in the card carouselCardX websiteVariable X represents the card number (for example carouselCard1 websiteVariable ). Provide only the variable, not the full website. You must provide this for each of the cards. Only if you send a carousel template, and you added a dynamic website button carouselCardX quickReply1 id X represents the card number (for example carouselCard1 quickReply1 id ). If a client clicks a quick reply button in a carousel, you can provide the button id and get it back on the webhook. no carouselCardX quickReply2 id X represents the card number (for example carouselCard1 quickReply2 id ). If a client clicks a quick reply button in a carousel, you can provide the button id and get it back on the webhook. no The destinations array should be sent like this, depending on the variables you used when you created the template ( to is required): [ { \"to\": \"972501234567\", \"bodyVariable1\": \"Hello John\", \"bodyVariable2\": \"Special offer\", \"websiteVariable\": \"value1\", \"websiteVariable2\": \"value2\", \"couponCode\": \"SAVE20\", \"quickReply1 id\": \"button-id\" }, { \"to\": \"972501234568\", \"bodyVariable1\": \"Hello Jane\", \"bodyVariable2\": \"Different offer\", \"websiteVariable\": \"param1=value2\", \"websiteVariable2\": \"param1=value2\", \"couponCode\": \"SAVE30\", \"quickReply1 id\": \"button-id\" } ] Body example A sample request to send a multi template, with 3 body variables, to 2 numbers: { \"from\": \"972771234567\", \"name\": \"welcome to the jungle\", \"headerType\": 1, \"destinations\": [ { \"to\": \"972501234567\", \"bodyVariable1\": \"one\", \"bodyVariable2\": \"two\", \"bodyVariable3\": \"three\", \"quickReply1 id\": \"button-1-id\" }, { \"to\": \"972509875654\", \"bodyVariable1\": \"four\", \"bodyVariable2\": \"five\", \"bodyVariable3\": \"six\" } ], \"showRequest\": 0, \"showBody\": 1 } Response { \"status\": \"OK\", \"timestamp\": 1757610296, \"from\": \"972771234567\", \"accepted\": 2, \"rejected\": 0, \"failed\": 0, \"destinations\": [ { \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"to\": \"972501234567\", \"body\": \"שלום one! מבצע חדש על המוצרים שבחרת.\\nבדקו two מחיר, דברו איתנו, או בחרו three אפשרות מהירה.\" }, { \"unique\": \"5ec46920d615aa3-x3c15a2dff350a1-3SIZZq8h9JVdA53\", \"to\": \"972509875654\", \"body\": \"שלום four! מבצע חדש על המוצרים שבחרת.\\nבדקו five מחיר, דברו איתנו, או בחרו six אפשרות מהירה.\" } ], \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL . Note: an OK status doesn't mean the messages arrived to the end users. It only means that the system received your request. You should listen to webhooks to see the status of your messages. from Your WhatsApp account accepted How many destinations the request was processed for successfully. Integer. rejected How many destinations the request was rejected for (wrong number, wrong to , wrong variables). Fix them and try again. Integer. failed How many destinations the request failed for (system error, WhatsApp error). Try again. Integer. timestamp Timestamp of the sending (Unix time, in seconds) destinations An array, one item per destination in the order you sent them, that contains 3 keys: unique - the unique ID of the message sent to - the number that the message was sent to body - the body of the template, including the variables (only with showBody set to 1 ) A destination that was rejected or failed has to and a reason instead (no unique ). originalRequest Original request object, if you enabled this in showRequest when sending the request. reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 6 WhatsApp error or template rejected 12 The template name does not exist 14 headerType is missing or not 1 , 2 , 3 , 4 or 5 15 You must provide headerVariable for this template, without special characters such as 21 WhatsApp has rejected the sending of the template due to high-volume sending. Please try to send again. 22 The message to this destination could not be sent — try again. This error is per destination, in destinations . 23 The destinations array is required and must be a non-empty array 24 At least one destination is required 25 One of the destinations is not an object. This error is per destination. 26 One of the destinations is missing the to field, or to is empty or in a wrong format. This error is per destination, not for the entire list — unless all the destinations have it: then the whole request fails with reason 26, and the response also carries timestamp , from and destinations (every destination with its to and reason ). 27 You provided a couponCode in the destination, but it's too long (15 characters maximum). This error is per destination. 28 A quickReplyX id of the destination is invalid or too long. This error is per destination. 29 The carousel cards don't match the template created 30 carouselCardX bodyVariable is missing or invalid (relevant for any of the cards) 31 carouselCardX headerLink is missing, invalid or wrong 32 carouselCardX websiteVariable is missing, invalid or wrong 33 carouselCardX quickReply1 id or carouselCardX quickReply2 id is invalid or wrong Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . name string Yes The template name. Example: welcome to the jungle . destinations array of object Yes An array of objects, one per client, that contain to , bodyVariable1 - 10 , websiteVariable , websiteVariable2 , couponCode and the quickReplyX id fields — depending on the variables you used when you created the template. to is required. Min items: 1. destinations[].to string Yes The number you want to send the template to, in international format, digits only — or the user id, for a client who hides their number behind a WhatsApp username. Example: 972501234567 . destinations[].bodyVariable1 string No The body variables of this destination, bodyVariable1 to bodyVariable10 — as in Send a Template. Example: Hello John . destinations[].websiteVariable string No In case your template has a dynamic website button (with the variable {{1}} ): the variable for this destination. Put the variable information, not the full website address. Example: value1 . destinations[].websiteVariable2 string No In case your template has a second website button that is dynamic: the {{1}} of the second website for this destination. Put the variable information, not the full website address. Example: value2 . destinations[].couponCode string No The coupon code for this destination — up to 15 characters. Max length: 15. Example: SAVE20 . destinations[].quickReply1 id string No The quick reply button ids for this destination, quickReply1 id to quickReply10 id — as in Send a Template. Example: button-id . headerType integer Yes The template's header, the same for every destination. One of: 1 — None — also for a carousel template; 2 — Text, with a variable — provide headerVariable ; 3 — Image — provide headerLink ; 4 — Video — provide headerLink ; 5 — Document — provide headerLink . Example: 1 . headerVariable string No For a template with a text header that has a variable ( headerType 2): the value of that variable, the same for every destination, without special characters such as . Example: Order 4711 . headerLink string (uri) No In case your template has an image, video or document header, this is the link to the image, video or document, the same for every destination. Limits: image — 5 MB; document — 100 MB; video — 16 MB. Required only when headerType is 3, 4 or 5. Example: https://storage.99digital.online/samples/hello.png . pdfFilename string No In case you used headerType 5 (document) and provided a document link in headerLink , here you can put the file name that the client sees when receiving the PDF file. Priority: 1. if pdfFilename is provided, it is used; 2. if you don't provide it, the PDF file name from the headerLink URL is used; 3. if the headerLink file name is not available for any reason, the default text \"קובץ מצורף - לחץ כאן\" is used. Example: Invoice August 2026 . couponExpiration integer No In case your template has a coupon code button with an expiration time: the moment the codes are no longer available, as a Unix timestamp in seconds — the same for every destination. A Unix timestamp is the same in every time zone — convert your local time (for example Israel time, GMT+2 or GMT+3) to it. Example: 1790500000 . carouselCard1 headerLink string (uri) No For a carousel template: the full link to the image (up to 5 MB) or video (up to 16 MB) of card 1, the same for every destination. You must provide it for every card of the template: carouselCard1 headerLink , carouselCard2 headerLink and so on. Example: https://storage.99digital.online/samples/hello.png . carouselCard1 bodyVariable string No For a carousel template whose cards have a variable: the variable of card 1, the same for every destination. The card text with it can be up to 160 characters. You must provide it for each of the cards. Example: Leather wallet . carouselCard1 websiteVariable string No For a carousel template with a dynamic website button: the variable of card 1 — only the variable, not the full website. You must provide it for each of the cards. Example: wallet-01 . carouselCard1 quickReply1 id string No For a carousel template with quick reply buttons: an id for the first quick reply button of card 1, returned on the webhook when the client clicks it. Example: WANT WALLET . carouselCard1 quickReply2 id string No For a carousel template with quick reply buttons: an id for the second quick reply button of card 1, returned on the webhook when the client clicks it. Example: MORE WALLET . localStorage integer No We deliver your headerLink to WhatsApp, and WhatsApp downloads the file in order to deliver it with your template. If your link is not accessible to WhatsApp or not open to the internet, enable this: we download the file ourselves and upload it to WhatsApp, so WhatsApp doesn't need your link. Please note that using this feature may delay the response from our server. If the upload fails, your link is used. One of: 0 — Off — WhatsApp downloads the file from your link; 1 — Enable — we upload the file to WhatsApp for you. Default: 0 . showBody integer No Whether or not to show the body in every item of the destinations array of the response. For a long list, the entire body of every destination can make the full response very large (it might reach many MB), so consider carefully whether to enable it. One of: 0 — Don't show; 1 — Show. Default: 0 . showRequest integer No You can get back in the response an object with the request you sent (without the apiKey ). One of: 0 — Off; 1 — Enable — the response includes originalRequest . Default: 0 . Example: Body variables A template with 3 body variables, sent to 2 numbers. { \"from\": \"972771234567\", \"name\": \"welcome to the jungle\", \"headerType\": 1, \"destinations\": [ { \"to\": \"972501234567\", \"bodyVariable1\": \"one\", \"bodyVariable2\": \"two\", \"bodyVariable3\": \"three\", \"quickReply1 id\": \"button-1-id\" }, { \"to\": \"972509875654\", \"bodyVariable1\": \"four\", \"bodyVariable2\": \"five\", \"bodyVariable3\": \"six\" } ], \"showRequest\": 0, \"showBody\": 1 } Example: Video + quick reply ids The same video header for everyone, with localStorage , and quick reply ids per destination. { \"from\": \"972771234567\", \"name\": \"promo video\", \"headerType\": 4, \"headerLink\": \"https://storage.99digital.online/samples/meditation.mp4\", \"localStorage\": 1, \"destinations\": [ { \"to\": \"972501234567\", \"bodyVariable1\": \"Dana\", \"bodyVariable2\": \"espresso machine\", \"quickReply1 id\": \"MORE INFO\", \"quickReply2 id\": \"BOOK DEMO\", \"quickReply3 id\": \"NOT INTERESTED\" }, { \"to\": \"IL.1605856887361213\", \"bodyVariable1\": \"Yossi\", \"bodyVariable2\": \"espresso machine\", \"quickReply1 id\": \"MORE INFO\", \"quickReply2 id\": \"BOOK DEMO\", \"quickReply3 id\": \"NOT INTERESTED\" } ] } Example: Document + personal website The same PDF for everyone, with a personal dynamic website variable per destination. { \"from\": \"972771234567\", \"name\": \"invoice pdf\", \"headerType\": 5, \"headerLink\": \"https://storage.99digital.online/samples/headerSample.pdf\", \"pdfFilename\": \"Invoice August 2026\", \"destinations\": [ { \"to\": \"972501234567\", \"bodyVariable1\": \"Dana Levi\", \"bodyVariable2\": \"August 2026\", \"bodyVariable3\": \"350 USD\", \"websiteVariable\": \"inv-4711\" }, { \"to\": \"IL.1605856887361213\", \"bodyVariable1\": \"Yossi Cohen\", \"bodyVariable2\": \"August 2026\", \"bodyVariable3\": \"120 USD\", \"websiteVariable\": \"inv-4712\" } ] } Example: Coupon codes A personal coupon code per destination, with the same expiration for all. { \"from\": \"972771234567\", \"name\": \"weekend coupon\", \"headerType\": 3, \"headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"couponExpiration\": 1790500000, \"destinations\": [ { \"to\": \"972501234567\", \"bodyVariable1\": \"Dana\", \"bodyVariable2\": \"20%\", \"couponCode\": \"DANA20\" }, { \"to\": \"IL.1605856887361213\", \"bodyVariable1\": \"Yossi\", \"bodyVariable2\": \"15%\", \"couponCode\": \"YOSSI15\" } ] } Example: Carousel The same carousel cards for everyone, with a personal body variable per destination. { \"from\": \"972771234567\", \"name\": \"products carousel\", \"headerType\": 1, \"carouselCard1 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"carouselCard1 bodyVariable\": \"Leather wallet\", \"carouselCard1 websiteVariable\": \"wallet-01\", \"carouselCard1 quickReply1 id\": \"WANT WALLET\", \"carouselCard2 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"carouselCard2 bodyVariable\": \"Canvas backpack\", \"carouselCard2 websiteVariable\": \"backpack-02\", \"carouselCard2 quickReply1 id\": \"WANT BACKPACK\", \"carouselCard3 headerLink\": \"https://storage.99digital.online/samples/hello.png\", \"carouselCard3 bodyVariable\": \"Travel mug\", \"carouselCard3 websiteVariable\": \"mug-03\", \"carouselCard3 quickReply1 id\": \"WANT MUG\", \"destinations\": [ { \"to\": \"972501234567\", \"bodyVariable1\": \"Dana\" }, { \"to\": \"IL.1605856887361213\", \"bodyVariable1\": \"Yossi\" } ] } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK status doesn't mean the messages arrived to the end users, it only means that the system received your request. You should listen to webhooks to see the status of your messages. Always OK . timestamp integer (one of: OK) Timestamp of the sending (Unix time, in seconds). Example: 1757610296 . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . accepted integer (one of: OK) How many destinations were processed successfully. rejected integer (one of: OK) How many destinations were rejected (wrong number, wrong to , wrong variables). Fix them and try again. failed integer (one of: OK) How many destinations failed (system error, WhatsApp error). Try again. destinations array of object (one of: OK) One item per destination, in the order you sent them: unique and to for each one that was sent (and its body , if you enabled showBody ), or to and a reason for each one that was rejected or failed. destinations[].unique string (one of: OK) The unique ID of the message to this destination. destinations[].to string (one of: OK) The number or user id the message was sent to. destinations[].body string (one of: OK) The body of the template, including the variables (with showBody set to 1). destinations[].reason integer (one of: OK) For a destination that was rejected or failed: why (25, 26, 27, 28 or 22 — see the reasons below). originalRequest object (one of: OK) Original request object, if you enabled this in showRequest when sending the request. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. Reasons 22 and 25–28 are given per destination, in destinations ; when every destination is rejected, the whole request fails with reason 26. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 6 — WhatsApp error or template rejected; 12 — The template name does not exist; 14 — 'headerType' is missing or not 1, 2, 3, 4 or 5; 15 — You must provide headerVariable for this template, without special characters such as ; 21 — WhatsApp has rejected the sending of the template due to high volume sending. Please try to send again; 22 — The message to this destination could not be sent — try again (per destination); 23 — The destinations array is required and must be a non-empty array; 24 — At least one destination is required; 25 — One of the destinations is not an object (per destination); 26 — One of the destinations is missing the 'to' field, or 'to' is empty or in a wrong format. This error is per destination, not for the entire list — unless all the destinations have it; 27 — You provided a couponCode in the destination, but it's too long (15 characters maximum); 28 — A quickReplyX id of the destination is invalid or too long (per destination); 29 — The carousel cards don't match the template created; 30 — carouselCardX bodyVariable is missing or invalid (for any of the cards); 31 — carouselCardX headerLink is missing, invalid or wrong; 32 — carouselCardX websiteVariable is missing, invalid or wrong; 33 — carouselCardX quickReply1 id or quickReply2 id is invalid or wrong. timestamp integer (one of: FAIL) With reason 26 — the time of the request. from string (one of: FAIL) With reason 26 — your WhatsApp account. destinations array of object (one of: FAIL) With reason 26 — every destination, with its to and reason . destinations[].to string (one of: FAIL) The to of this destination, as you sent it. destinations[].reason integer (one of: FAIL) Why this destination was rejected (25, 26, 27 or 28 — see the reasons above). Example: OK Both destinations were sent; showBody is 1, so each has its body. { \"status\": \"OK\", \"timestamp\": 1757610296, \"from\": \"972771234567\", \"accepted\": 2, \"rejected\": 0, \"failed\": 0, \"destinations\": [ { \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"to\": \"972501234567\", \"body\": \"Welcome to the jungle! Your picks today are one, two and three.\" }, { \"unique\": \"5ec46920d615aa3-x3c15a2dff350a1-3SIZZq8h9JVdA53\", \"to\": \"972509875654\", \"body\": \"Welcome to the jungle! Your picks today are four, five and six.\" } ], \"reason\": 1 } Example: OK — one rejected Two destinations were sent; the third has a local number and was rejected with reason 26. { \"status\": \"OK\", \"timestamp\": 1757610296, \"from\": \"972771234567\", \"accepted\": 2, \"rejected\": 1, \"failed\": 0, \"destinations\": [ { \"unique\": \"19545c3deca25da-0a504082ac7ad12-oiksAeQWvDMRtBQ\", \"to\": \"972501234567\" }, { \"unique\": \"5ec46920d615aa3-x3c15a2dff350a1-3SIZZq8h9JVdA53\", \"to\": \"IL.1605856887361213\" }, { \"to\": \"0501234\", \"reason\": 26 } ], \"reason\": 1 } Example: Reason 23 destinations is missing or empty. { \"status\": \"FAIL\", \"reason\": 23 } Example: Reason 26 Every destination was rejected, so nothing was sent. { \"status\": \"FAIL\", \"reason\": 26, \"timestamp\": 1757610296, \"from\": \"972771234567\", \"destinations\": [ { \"to\": \"0501234\", \"reason\": 26 }, { \"to\": \"05099\", \"reason\": 26 } ] }"
    },
    {
      "id": "whatsapp-api/delete-template",
      "title": "Delete a Template",
      "url": "https://docs.99digital.co.il/whatsapp-api/templates/delete-a-template",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/templates/delete-a-template.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Templates"
      ],
      "language": "en",
      "description": "Delete a template from your WhatsApp account, by its name.",
      "endpoint": {
        "method": "POST",
        "path": "/deleteTemplate",
        "url": "https://api.99digital.co.il/whatsapp/v2/deleteTemplate"
      },
      "headings": [
        "More Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 4",
        "Example: Reason 7"
      ],
      "keywords": [
        "deleteTemplate",
        "from",
        "name",
        "status",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/deleteTemplate Delete a template from your WhatsApp account, by its name. Delete a Template allows you to delete a template from your account. Editing a template is not possible, so in order to change a template, you need to create a new one (and delete the old one if you wish). More Remarks You can't use the name of a deleted template again for 30 days (when creating a template). The template is deleted in every language you created it in. A template whose name starts with reserved can't be deleted (reason 7). See Create a Template. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/deleteTemplate Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Mandatory from Your WhatsApp account. International number without + . For example: 972771234567 yes name The template name you want to delete yes Response { \"status\": \"OK\", \"name\": \"template name\", \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL name The name of the template you deleted reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or JSON syntax error 3 Wrong apiKey, or the \"from\" number is not registered with us 4 The template name is missing or does not exist 6 WhatsApp error 7 This template can't be deleted — its name starts with reserved Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . name string Yes The template name you want to delete. Example: website welcome . Example (generated from the schema) { \"from\": \"972771234567\", \"name\": \"website welcome\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the template is deleted from your account. Always OK . name string (one of: OK) The name of the template you deleted. Example: website welcome . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or JSON syntax error; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — The template name is missing or does not exist; 6 — WhatsApp error; 7 — This template can't be deleted — its name starts with reserved . Example: OK The template is deleted. { \"status\": \"OK\", \"name\": \"website welcome\", \"reason\": 1 } Example: Reason 4 The template name does not exist. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 7 A reserved template can't be deleted. { \"status\": \"FAIL\", \"reason\": 7 }"
    },
    {
      "id": "whatsapp-api/get-profile",
      "title": "Get Profile",
      "url": "https://docs.99digital.co.il/whatsapp-api/profile/get-profile",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/profile/get-profile.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Profile"
      ],
      "language": "en",
      "description": "Get Profile allows you to see all the settings within your WhatsApp account.",
      "endpoint": {
        "method": "POST",
        "path": "/getProfile",
        "url": "https://api.99digital.co.il/whatsapp/v2/getProfile"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 2",
        "Example: Reason 3"
      ],
      "keywords": [
        "getProfile",
        "from",
        "status",
        "displayName",
        "address",
        "description",
        "email",
        "type",
        "website",
        "about",
        "conversations",
        "dailyLimit",
        "profilePic",
        "isVerifiedBusiness",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/getProfile Get Profile allows you to see all the settings within your WhatsApp account. You can change these settings with Set Profile. A new display name sent with Set Profile shows in displayName only after it has been approved. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/getProfile Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example from Your WhatsApp account. International number without + . For example: 972771234567 Response { \"status\": \"OK\", \"from\": \"972771234567\", \"displayName\": \"WhatsApp Display Name\", \"address\": \"business address\", \"description\": \"business description and the things we do\", \"email\": \"info@example.com\", \"type\": 13, \"website\": \"https://www.example.com\", \"about\": \"Hey there! I am using WhatsApp.\", \"conversations\": 180, \"dailyLimit\": 1000, \"profilePic\": \"https://storage.99digital.online/files/1789900000aB3dE9fGh1.jpg\", \"isVerifiedBusiness\": 1, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL from Your WhatsApp number displayName WhatsApp display name that users see address Business address. Empty when not set. description Business description. Empty when not set. email Company email address. Empty when not set. type Business type number: 1 - Automotive 2 - Beauty, Spa and Salon 3 - Clothing and Apparel 4 - Education 5 - Entertainment 6 - Event Planning and Service 7 - Finance and Banking 8 - Food and Grocery 9 - Public Service / Government 10 - Hotel and Lodging 11 - Medical and Health 12 - Non-profit Organization 13 - Professional Services 14 - Shopping and Retail 15 - Travel and Transportation 16 - Restaurant 17 - Other (also when no business type is set) website Website address (URL). Empty when not set. about The 'about' info from the WhatsApp profile conversations Total count of all conversations for the current month. The number of conversations resets on the first day of every month at 4am Israel time. dailyLimit The daily limit for new conversations in a rolling 24 hours: 250 , 1000 , 2000 , 10000 or 100000 ; 1000000 means unlimited. profilePic WhatsApp profile picture: a link to a copy of the current profile picture. Empty when there is no profile picture. isVerifiedBusiness Shows if the business manager (from Meta) that manages this WhatsApp account is verified or not. Values: 0 - Business status is unknown 1 - The business is verified 2 - The business is not verified 3 - More information is needed to verify the business 4 - Business is under review 5 - Business verification has not been submitted yet 6 - Business verification was rejected reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, JSON syntax error, or the profile could not be read (try again) 3 Wrong apiKey, or the \"from\" number is not registered with us Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . Example (generated from the schema) { \"from\": \"972771234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the response holds the settings of your WhatsApp account. Always OK . from string (one of: OK) Your WhatsApp number. Example: 972771234567 . displayName string (one of: OK) WhatsApp display name that users see. Example: My Business Ltd . address string (one of: OK) Business address. Empty when not set. Example: Herzl 1, Tel Aviv . description string (one of: OK) Business description. Empty when not set. Example: Online store for gadgets . email string (one of: OK) Company email address. Empty when not set. Example: info@example.com . type integer (one of: OK) Business type number. One of: 1 — Automotive; 2 — Beauty, Spa and Salon; 3 — Clothing and Apparel; 4 — Education; 5 — Entertainment; 6 — Event Planning and Service; 7 — Finance and Banking; 8 — Food and Grocery; 9 — Public Service / Government; 10 — Hotel and Lodging; 11 — Medical and Health; 12 — Non-profit Organization; 13 — Professional Services; 14 — Shopping and Retail; 15 — Travel and Transportation; 16 — Restaurant; 17 — Other (also when no business type is set). Example: 14 . website string (one of: OK) Website address (URL). Empty when not set. Example: https://www.example.com . about string (one of: OK) The 'about' info from the WhatsApp profile. Example: Hey there! I am using WhatsApp. . conversations integer (one of: OK) Total count of all conversations for the current month. The number of conversations resets on the first day of every month at 4am Israel time. Example: 180 . dailyLimit integer (one of: OK) The daily limit for new conversations in a rolling 24 hours: 250, 1000, 2000, 10000 or 100000; 1000000 means unlimited. Example: 1000 . profilePic string (one of: OK) WhatsApp profile picture: a link to a copy of the current profile picture. Empty when there is no profile picture. Example: https://storage.99digital.online/files/1789900000aB3dE9fGh1.jpg . isVerifiedBusiness integer (one of: OK) Shows if the business manager (from Meta) that manages this WhatsApp account is verified or not. One of: 0 — Business status is unknown; 1 — The business is verified; 2 — The business is not verified; 3 — More information is needed to verify the business; 4 — Business is under review; 5 — Business verification has not been submitted yet; 6 — Business verification was rejected. Example: 1 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, JSON syntax error, or the profile could not be read (try again); 3 — Wrong apiKey, or the \"from\" number is not registered with us. Example: OK All the settings of your WhatsApp account. { \"status\": \"OK\", \"from\": \"972771234567\", \"displayName\": \"My Business Ltd\", \"address\": \"Herzl 1, Tel Aviv\", \"description\": \"Online store for gadgets\", \"email\": \"info@example.com\", \"type\": 14, \"website\": \"https://www.example.com\", \"about\": \"Hey there! I am using WhatsApp.\", \"conversations\": 180, \"dailyLimit\": 1000, \"profilePic\": \"https://storage.99digital.online/files/1789900000aB3dE9fGh1.jpg\", \"isVerifiedBusiness\": 1, \"reason\": 1 } Example: Reason 2 The profile could not be read — try again. { \"status\": \"FAIL\", \"reason\": 2 } Example: Reason 3 Wrong apiKey, or the \"from\" number is not registered with us. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "whatsapp-api/set-profile",
      "title": "Set Profile",
      "url": "https://docs.99digital.co.il/whatsapp-api/profile/set-profile",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/profile/set-profile.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Profile"
      ],
      "language": "en",
      "description": "Set Profile allows you to change one or multiple settings within your WhatsApp account.",
      "endpoint": {
        "method": "POST",
        "path": "/setProfile",
        "url": "https://api.99digital.co.il/whatsapp/v2/setProfile"
      },
      "headings": [
        "More Remarks",
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Profile texts",
        "Example: Business type",
        "Example: Display name",
        "Example: Profile picture",
        "Example: Clear fields",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Display name",
        "Example: Clear fields",
        "Example: Reason 6",
        "Example: Reason 10",
        "Example: Reason 14"
      ],
      "keywords": [
        "setProfile",
        "from",
        "address",
        "description",
        "email",
        "type",
        "website",
        "profilePic",
        "about",
        "displayName",
        "status",
        "reason",
        "returnedData"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/setProfile Set Profile allows you to change one or multiple settings within your WhatsApp account. More Remarks None of the parameters (except from ) is mandatory: you can set only the ones you need. Everything you leave out stays as it is. You can't change or set the profile settings for Coexistence WhatsApp accounts: the profile can only be changed directly by the client in the mobile app. You can see the current settings with Get Profile. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/setProfile Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Maximum length Remarks from Your WhatsApp account. International number without + . For example: 972771234567 address The address of your business. \\n for a new line text for bold text for italic text for strikethrough 256 If you need to clear this data, you can send \" \" (a space). description Description of your business. \\n for a new line text for bold text for italic text for strikethrough 256 If you need to clear this data, you can send \" \" (a space). email info@example.com 128 Must be a valid email format. If you need to clear this data, you can send \" \" (a space). type You must choose a business category type: 1 - Automotive 2 - Beauty, Spa and Salon 3 - Clothing and Apparel 4 - Education 5 - Entertainment 6 - Event Planning and Service 7 - Finance and Banking 8 - Food and Grocery 9 - Public Service / Government 10 - Hotel and Lodging 11 - Medical and Health 12 - Non-profit Organization 13 - Professional Services 14 - Shopping and Retail 15 - Travel and Transportation 16 - Restaurant 17 - Other 2 This parameter can be changed, but cannot be empty. website https://www.example.com 256 Must be a valid website format. If you need to clear this data, you can send \" \" (a space). Must include http or https . The value can be a business website, Facebook page, Instagram, YouTube link etc. profilePic https://storage.99digital.online/samples/hello.png - Must be a jpeg / jpg / png image link; the URL must be https. The image needs to be square, with a max edge of 640px and a maximum file size of 5MB. It is recommended to use 640x640; images smaller than 192px will not be approved. about Hi There, I'm using WhatsApp 139 About section in the business profile. Can't be empty. displayName My New WhatsApp Name 75 This is the WhatsApp number display name change. A few points for you to know: • Minimum 3 characters, maximum 75 characters. • The name will be sent to Meta for approval: an OK response means the name was submitted, not changed yet. You can check with Get Profile whether the name has been approved (or you can see it in WhatsApp directly). It can take around 2-4 days. • The name must be as similar as possible to your business name, or Meta will reject it. • You can request a name change 10 times during 30 days. • If your WhatsApp number has the green/blue official checkmark, this will not work, and you must contact support to change the name. • This will not work for coexistence WhatsApp accounts, as they can change the displayName directly on the mobile phone. • Don't include this parameter if you don't wish to change it. Sending your current name again does nothing (no new request to Meta, and no displayName in returnedData ). • If a request is sent, you can't request again until the new name is either approved or rejected. Wait a few days between requests. • You can send displayName together with the other parameters. They are saved first, so if the name gets reason 14, the other settings were already saved. Response { \"status\": \"OK\", \"reason\": 1, \"returnedData\": { \"address\": \"The address you provided\" } } Response-Explain Parameter Description status OK or FAIL returnedData An object that will show all the parameters you sent ( address , description , email , type , website , about , profilePic , and displayName when a new name was submitted). A field you cleared shows as an empty string. Left out when you sent no parameter to change. reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or invalid JSON 3 Wrong apiKey, or the \"from\" number is not registered with us 4 address is too long 5 description is too long 6 email is too long, or invalid email address 7 type must be an integer from 1 to 17 8 website is too long, or invalid website address 10 profilePic URL is invalid, or the image could not be downloaded from it 11 about is invalid or too long 12 Unknown error - please contact support 13 displayName value is invalid or wrong 14 displayName received an error on Meta's side; the other profile settings (if sent) were saved successfully Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . address string No The address of your business. Use \\n for a new line, text for bold, text for italic and text for strikethrough. If you need to clear this data, you can send \" \" (a space). Max length: 256. Example: Herzl 1, Tel Aviv . description string No Description of your business. Use \\n for a new line, text for bold, text for italic and text for strikethrough. If you need to clear this data, you can send \" \" (a space). Max length: 256. Example: Online store for gadgets. Free delivery over 200 NIS. . email string (email) No Company email address. Must be a valid email format. If you need to clear this data, you can send \" \" (a space). Max length: 128. Example: info@example.com . type integer No The business category type. This parameter can be changed, but it can't be cleared. One of: 1 — Automotive; 2 — Beauty, Spa and Salon; 3 — Clothing and Apparel; 4 — Education; 5 — Entertainment; 6 — Event Planning and Service; 7 — Finance and Banking; 8 — Food and Grocery; 9 — Public Service / Government; 10 — Hotel and Lodging; 11 — Medical and Health; 12 — Non-profit Organization; 13 — Professional Services; 14 — Shopping and Retail; 15 — Travel and Transportation; 16 — Restaurant; 17 — Other. Example: 14 . website string (uri) No Must be a valid website address, including http:// or https:// . The value can be a business website, Facebook page, Instagram, YouTube link etc. If you need to clear this data, you can send \" \" (a space). Max length: 256. Example: https://www.example.com . profilePic string (uri) No A link to a jpeg / jpg / png image; the URL must be https. The image needs to be square, with a max edge of 640px and a maximum file size of 5MB. It is recommended to use 640x640; images smaller than 192px will not be approved. Example: https://storage.99digital.online/samples/hello.png . about string No About section in the business profile. Can't be empty. Max length: 139. Example: Available Sun-Thu 09:00-17:00 . displayName string No This is the WhatsApp number display name change. A few points for you to know: - Minimum 3 characters, maximum 75 characters. - The name will be sent to Meta for approval: an OK response means the name was submitted, not changed yet. You can check with Get Profile whether the name has been approved (or you can see it in WhatsApp directly). It can take around 2-4 days. - The name must be as similar as possible to your business name, or Meta will reject it. - You can request a name change 10 times during 30 days. - If your WhatsApp number has the green/blue official checkmark, this will not work, and you must contact support to change the name. - This will not work for coexistence WhatsApp accounts, as they can change the display name directly on the mobile phone. - Don't include this parameter if you don't wish to change it. Sending your current name again does nothing. - If a request is sent, you can't request again until the new name is either approved or rejected. Wait a few days between requests. Min length: 3. Max length: 75. Example: My Business Store . Example: Profile texts Update the texts of the profile — send only the ones you want to change. { \"from\": \"972771234567\", \"address\": \"Herzl 1, Tel Aviv\", \"description\": \"Online store for gadgets. Free delivery over 200 NIS.\", \"email\": \"info@example.com\", \"website\": \"https://www.example.com\", \"about\": \"Available Sun-Thu 09:00-17:00\" } Example: Business type Only the business category, a number from 1 to 17. { \"from\": \"972771234567\", \"type\": 14 } Example: Display name Submit a new display name to Meta for approval. { \"from\": \"972771234567\", \"displayName\": \"My Business Store\" } Example: Profile picture A new profile picture: a link to a square jpg / png image, up to 640x640 and 5MB. { \"from\": \"972771234567\", \"profilePic\": \"https://storage.99digital.online/samples/hello.png\" } Example: Clear fields A single space clears address , description , email or website . { \"from\": \"972771234567\", \"address\": \" \", \"website\": \" \" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the settings you sent were saved (a new displayName was submitted to Meta for approval). Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . returnedData object (one of: OK) An object that shows all the parameters you sent ( address , description , email , type , website , about , profilePic , and displayName when a new name was submitted). A field you cleared shows as an empty string. Left out when you sent no parameter to change. returnedData.address string (one of: OK) The business address you sent. An empty string when you cleared it. returnedData.description string (one of: OK) The business description you sent. An empty string when you cleared it. returnedData.email string (one of: OK) The company email address you sent. An empty string when you cleared it. returnedData.type integer (one of: OK) The business category type you sent (1 to 17). returnedData.website string (one of: OK) The website address you sent. An empty string when you cleared it. returnedData.profilePic string (one of: OK) The link to the profile picture image you sent. returnedData.about string (one of: OK) The 'about' text you sent. returnedData.displayName string (one of: OK) The name submitted to Meta for approval — not changed yet. status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or invalid JSON; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'address' is too long; 5 — 'description' is too long; 6 — 'email' is too long, or invalid email address; 7 — 'type' must be an integer from 1 to 17; 8 — 'website' is too long, or invalid website address; 10 — 'profilePic' URL is invalid, or the image could not be downloaded from it; 11 — 'about' is invalid or too long; 12 — Unknown error — please contact support; 13 — 'displayName' value is invalid or wrong; 14 — 'displayName' received an error on Meta's side; the other profile settings (if sent) were saved successfully. Example: OK The profile texts were updated. { \"status\": \"OK\", \"reason\": 1, \"returnedData\": { \"address\": \"Herzl 1, Tel Aviv\", \"description\": \"Online store for gadgets. Free delivery over 200 NIS.\", \"email\": \"info@example.com\", \"website\": \"https://www.example.com\", \"about\": \"Available Sun-Thu 09:00-17:00\" } } Example: Display name The new display name was submitted to Meta for approval. { \"status\": \"OK\", \"reason\": 1, \"returnedData\": { \"displayName\": \"My Business Store\" } } Example: Clear fields The cleared fields show as empty strings. { \"status\": \"OK\", \"reason\": 1, \"returnedData\": { \"address\": \"\", \"website\": \"\" } } Example: Reason 6 'email' is too long, or invalid email address. { \"status\": \"FAIL\", \"reason\": 6 } Example: Reason 10 'profilePic' URL is invalid, or the image could not be downloaded. { \"status\": \"FAIL\", \"reason\": 10 } Example: Reason 14 Meta refused the display name request; the other settings you sent were saved. { \"status\": \"FAIL\", \"reason\": 14 }"
    },
    {
      "id": "whatsapp-api/whatsapp-calls/explanation-start-here",
      "title": "Explanation - Start here",
      "url": "https://docs.99digital.co.il/whatsapp-api/whatsapp-calls/explanation-start-here",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/whatsapp-calls/explanation-start-here.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "WhatsApp Calls"
      ],
      "language": "en",
      "description": "WhatsApp Calling lets end users call your WhatsApp API line from WhatsApp, and routes each call to your own SIP server or PBX.",
      "headings": [
        "How a call reaches you"
      ],
      "keywords": [
        "WhatsApp calling",
        "WhatsApp calls",
        "voice calls",
        "incoming calls",
        "SIP trunk",
        "SIP server",
        "PBX",
        "call center"
      ],
      "content": "WhatsApp Calling lets your WhatsApp API line receive incoming voice calls from end users, directly through WhatsApp. This feature is not available for Coexistence accounts — for those, incoming calls go to the linked personal WhatsApp app instead, so this feature doesn't apply. Once enabled, a call icon appears at the top of the chat for end users on that WhatsApp line. When they tap it, the call is routed to the SIP trunk address you provide — connecting directly to your own call center system or PBX, where you can implement IVR, call forwarding, or any routing logic you choose. To enable this feature for your WhatsApp account, please contact support first. Once enabled, you can configure and manage your line through the /setCall endpoint. Endpoint What it does Set Call Configuration Set your SIP server, turn calling on or off, and set the hours when customers can call you. Get Call Settings See your current calling settings. How a call reaches you The call is sent to your SIP server as sip: @ : ;transport= — your WhatsApp number without + , for example sip:972771234567@sip.your-company.com:5060;transport=udp . Calls are forwarded only once sip host , sip port and sip transport are all set with Set Call Configuration. All incoming calls (SIP signaling and RTP media) come from IP 34.165.246.158 , so don't forget to whitelist it. Calling is only available for numbers whose daily limit is at least 2000 conversations (see Rate Limit). By default, you can have 1 concurrent call; calls above your limit are rejected. If you need to upgrade your plan, please contact support."
    },
    {
      "id": "whatsapp-api/set-call",
      "title": "Set Call Configuration",
      "url": "https://docs.99digital.co.il/whatsapp-api/whatsapp-calls/set-call-configuration",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/whatsapp-calls/set-call-configuration.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "WhatsApp Calls"
      ],
      "language": "en",
      "description": "Set your SIP server, turn WhatsApp calling on or off, and set the hours when customers can call you.",
      "endpoint": {
        "method": "POST",
        "path": "/setCall",
        "url": "https://api.99digital.co.il/whatsapp/v2/setCall"
      },
      "headings": [
        "Important information",
        "Settings",
        "Body",
        "Call hours",
        "callhours explained",
        "Full setCall example request",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example: Enable calling",
        "Example: Digest auth",
        "Example: Call hours",
        "Example: Split shifts",
        "Example: Keep hours, accept 24/7",
        "Example: Remove call hours",
        "Example: Disable calling",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK + digest auth",
        "Example: OK + call hours",
        "Example: Reason 5",
        "Example: Reason 13",
        "Example: Reason 14",
        "Example: Reason 16"
      ],
      "keywords": [
        "setCall",
        "from",
        "status",
        "sip_host",
        "sip_port",
        "sip_transport",
        "client_auth",
        "username",
        "password",
        "codec_pref",
        "call_hours",
        "timezone_id",
        "weekly_operating_hours",
        "day_of_week",
        "open_time",
        "close_time",
        "holiday_schedule",
        "date",
        "start_time",
        "end_time",
        "calling",
        "concurrency_limit",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/setCall Set your SIP server, turn WhatsApp calling on or off, and set the hours when customers can call you. Set Call allows you to set the SIP trunk information where you wish to get the incoming calls. This can only work once our support team has enabled the WhatsApp calling feature for your account (see Explanation - Start here). Important information In this endpoint you need to provide the SIP server information and enable the calling feature. The WhatsApp calling feature is only available for numbers whose daily limit is at least 2000 conversations ( dailyLimit in Get Profile). Your SIP server must be reachable from the internet at the public hostname or public IPv4. All incoming calls (SIP signaling and RTP media) will be coming from IP 34.165.246.158 , so don't forget to whitelist it. Calls are forwarded to your SIP server only once sip host , sip port and sip transport are all set. Default codecs are PCMU and PCMA (G.711). You can change them with the codec pref parameter. By default, you can have 1 concurrent call. If you need to upgrade your plan, please contact support. Calls above your limit are rejected. Only the from in the body is mandatory. Send only what you want to change: everything you leave out stays as it is. You can see your current settings with Get Call Settings. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/setCall Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example Maximum length Remarks from Your WhatsApp account. International number without + . For example: 972771234567 Mandatory status Boolean. true to enable calling (show the calling icon) false to disable calling Your settings are kept. This is purely the call icon at the top of the chat. sip host Public hostname or IPv4 of your SIP server. Can't be empty. Private / internal addresses (and IPv6) are refused. 253 Hostname or IP. For example: sip.your-company.com or 153.65.210.52 sip port The port number of your SIP host. 5 Must be between 1-65535. Usually the default is 5060 (UDP/TCP) or 5061 (TLS). Can't be empty. sip transport The SIP transport value. Available values: udp / tcp / tls 3 Can't be empty. client auth {\"username\": \"some-username\", \"password\": \"some-password\"} This is the username and password for digest authentication. Letters, digits and . - @ ! # % + = : / ? 128 each This value is in case your server requires authentication. It is not mandatory, but if username is provided, password must be provided too (and the other way around). Send {} to remove them. codec pref Comma-separated codecs in order of preference. Default is PCMU,PCMA . Letters, digits and @ . - 50 per codec, 200 in total Can't be empty. For example: PCMU,PCMA,OPUS call hours See \"Call hours\" below See below See below Call hours The call hours parameter controls when customers can call you. Without call hours, customers will see the call icon 24/7 and will be able to call you. Call hours allow you to hide this icon at specific times when you can't take those calls in your call center. WhatsApp will show that you are not available and show your call availability in the app. The default is call hours off, so the call button is available 24/7. A day you leave out is closed all day. In the example below, Saturday is closed. Every call hours you send in a new request replaces the entire object you previously provided, including the holidays. Always send the complete object if you wish to update this parameter. To remove the hours so customers can call you 24/7, you can simply send \"call hours\": {} . To keep the hours saved but not enforce them, send the complete call hours object with \"status\": \"DISABLED\" . Common mistakes: write the times as HHMM , e.g. \"0900\" ( \"09:00\" is accepted too, and saved as \"0900\" ). Don't write \"2400\" , write \"2359\" . Don't write \"SUN\" , write \"SUNDAY\" (capitals). Don't write holiday dates in the past, otherwise you will get an error with reason 13. The call hours is an object that contains the status, time zone, working hours and holidays. When you enable it, the call button shows only during the provided hours. Example of the call hours object: \"call hours\": { \"status\": \"ENABLED\", \"timezone id\": \"Asia/Jerusalem\", \"weekly operating hours\": [ { \"day of week\": \"SUNDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"MONDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"TUESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"WEDNESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"THURSDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"FRIDAY\", \"open time\": \"0900\", \"close time\": \"1300\" } ], \"holiday schedule\": [ { \"date\": \"2027-04-22\", \"start time\": \"0000\", \"end time\": \"2359\" } ] } call hours explained Parameter Description / Example What to provide Example status ENABLED (default) or DISABLED (this keeps the saved data but accepts calls 24/7) Optional — when left out, the status is ENABLED . ENABLED timezone id IANA format time zone. The time zone you wish the hours to take effect in. Required when status is ENABLED . Asia/Jerusalem weekly operating hours Array of hours and days 1–14 entries. day of week = MONDAY … SUNDAY . open time / close time = 24-hour HHMM with no colon ( 0900 , 1730 ; the end of the day is 2359 ). Open must be before close. Up to 2 non-overlapping entries per day for split shifts, e.g. 0800 – 1200 and 1600 – 2000 . Required when status is ENABLED . { \"day of week\": \"SUNDAY\", \"open time\": \"0900\", \"close time\": \"1700\" } , { \"day of week\": \"MONDAY\", \"open time\": \"0900\", \"close time\": \"1700\" } , { \"day of week\": \"TUESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" } , { \"day of week\": \"WEDNESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" } , { \"day of week\": \"THURSDAY\", \"open time\": \"0900\", \"close time\": \"1700\" } , { \"day of week\": \"FRIDAY\", \"open time\": \"0900\", \"close time\": \"1300\" } holiday schedule Array of selected dates that will be closed Optional, up to 20 dates that override the weekly hours. date = YYYY-MM-DD , today or later; start time / end time in HHMM (start before end). 0000 – 2359 closes the whole day. { \"date\": \"2027-04-22\", \"start time\": \"0000\", \"end time\": \"2359\" } Full setCall example request { \"from\": \"972771234567\", \"sip host\": \"sip.your-company.com\", \"sip port\": 5060, \"sip transport\": \"udp\", \"codec pref\": \"PCMU,PCMA\", \"client auth\": { \"username\": \"whatsapp\", \"password\": \"Str0ng-Pass!\" } } Response { \"status\": \"OK\", \"from\": \"972771234567\", \"calling\": { \"status\": true, \"sip host\": \"sip.your-company.com\", \"sip port\": 5060, \"sip transport\": \"udp\", \"client auth\": null, \"codec pref\": \"PCMU,PCMA\", \"call hours\": null, \"concurrency limit\": 1 }, \"reason\": 1 } The response always carries the complete current settings, also when nothing needed to change. When the status is FAIL, nothing was saved. Response-Explain Parameter Description status OK or FAIL from Your WhatsApp account calling Your returned settings: always the complete current settings, not only what you sent. Anything never set is null . The fields are the same as in Get Call Settings, including the read-only concurrency limit . reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, invalid JSON, or a temporary error — try again 3 Wrong apiKey, or the \"from\" number is not registered with us 4 status must be true / false 5 sip host is empty, invalid, or a private / internal address 6 sip port is empty, invalid, or not between 1 and 65535 7 sip transport must be udp / tcp / tls 8 client auth is missing the username / password, or has characters that are not allowed 9 codec pref is empty or invalid 10 call hours is not an object, or its status is not ENABLED / DISABLED 11 timezone id is missing for call hours , or is not a valid IANA time zone 12 weekly operating hours is missing or empty, or one of its entries is invalid (day, time, open not before close, more than 2 or overlapping entries in a day, more than 14 entries) 13 holiday schedule is invalid (or a date is in the past) 14 Calling can't be enabled: the daily limit of the number must be at least 2000 conversations 15 Calling is temporarily disabled for this number (call quality or spam) 16 The support team did not enable calling for your number, please contact support 17 Settings rejected, please contact support Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . status boolean No true to enable calling (show the calling icon), false to disable calling. Your settings are kept: this is purely the call icon at the top of the chat. Example: true . sip host string No Public hostname or IPv4 of your SIP server, for example sip.your-company.com or 153.65.210.52 . Can't be empty. Private / internal addresses and IPv6 are refused. Max length: 253. Example: sip.your-company.com . sip port integer No The port number of your SIP host, between 1 and 65535. Usually 5060 (UDP / TCP) or 5061 (TLS). Can't be empty. Minimum: 1. Maximum: 65535. Example: 5060 . sip transport string No The SIP transport value — udp , tcp or tls . Can't be empty. One of: udp — SIP over UDP (the usual port is 5060); tcp — SIP over TCP (the usual port is 5060); tls — SIP over TLS (the usual port is 5061). Example: udp . client auth object No {\"username\": \"some-username\", \"password\": \"some-password\"} — the username and password for digest authentication. This value is in case your SIP server requires authentication. It is not mandatory, but if username is provided, password must be provided too (and the other way around). Send {} to remove them. client auth.username string No The username for digest authentication. Letters, digits and . - @ ! # % + = : / ? , up to 128 characters. Max length: 128. Pattern: ^[A-Za-z0-9. @!#% += :/?-]{1,128}$ . Example: whatsapp . client auth.password string No The password for digest authentication. Letters, digits and . - @ ! # % + = : / ? , up to 128 characters. Max length: 128. Pattern: ^[A-Za-z0-9. @!#% += :/?-]{1,128}$ . Example: Str0ng-Pass! . codec pref string No Comma-separated codecs in order of preference, for example PCMU,PCMA,OPUS . Default is PCMU,PCMA . Letters, digits and @ . - , up to 50 characters per codec. Can't be empty. Default: PCMU,PCMA . Max length: 200. Example: PCMU,PCMA . call hours object No When customers can call you: an object that contains the status, time zone, working hours and holidays — see \"Call hours\" above. Every call hours you send replaces the entire object you previously provided, including the holidays. Send {} to remove the hours, so customers can call you 24/7. call hours.status string No ENABLED (default) shows the call button only during the hours. DISABLED keeps the saved data but accepts calls 24/7. Optional — when left out, the status is ENABLED . One of: ENABLED — The call button shows only during the provided hours (default); DISABLED — The hours stay saved, but customers can call you 24/7. Send the complete object with this status to keep the hours. Default: ENABLED . Example: ENABLED . call hours.timezone id string No IANA format time zone: the time zone you wish the hours to take effect in. Required when status is ENABLED . Example: Asia/Jerusalem . call hours.weekly operating hours array of object No Array of days and hours, 1–14 entries. Required when status is ENABLED . Up to 2 non-overlapping entries per day for split shifts, e.g. 0800 – 1200 and 1600 – 2000 . A day you leave out is closed all day. Min items: 1. Max items: 14. call hours.weekly operating hours[].day of week string Yes The day of the week, in capitals ( SUNDAY , not SUN ). A day you leave out is closed all day. One of: MONDAY — Monday; TUESDAY — Tuesday; WEDNESDAY — Wednesday; THURSDAY — Thursday; FRIDAY — Friday; SATURDAY — Saturday; SUNDAY — Sunday. Example: SUNDAY . call hours.weekly operating hours[].open time string Yes 24-hour HHMM with no colon ( 0900 , 1730 ). Open must be before close. Example: 0900 . call hours.weekly operating hours[].close time string Yes 24-hour HHMM with no colon; the end of the day is 2359 . Example: 1700 . call hours.holiday schedule array of object No Array of selected dates that will be closed. Optional, up to 20 dates that override the weekly hours. 0000 – 2359 closes the whole day. Max items: 20. call hours.holiday schedule[].date string (date) Yes YYYY-MM-DD , today or later. Example: 2027-04-22 . call hours.holiday schedule[].start time string Yes The time the closing starts, HHMM . Start must be before end. Example: 0000 . call hours.holiday schedule[].end time string Yes The time the closing ends, HHMM ( 2359 for the end of the day). Example: 2359 . Example: Enable calling Turn calling on and forward the calls to your SIP server. { \"from\": \"972771234567\", \"status\": true, \"sip host\": \"sip.your-company.com\", \"sip port\": 5060, \"sip transport\": \"udp\", \"codec pref\": \"PCMU,PCMA\" } Example: Digest auth Your SIP server, with the username and password your server asks for (digest authentication). { \"from\": \"972771234567\", \"sip host\": \"sip.your-company.com\", \"sip port\": 5060, \"sip transport\": \"udp\", \"codec pref\": \"PCMU,PCMA\", \"client auth\": { \"username\": \"whatsapp\", \"password\": \"Str0ng-Pass!\" } } Example: Call hours Sunday to Thursday 09:00–17:00 and Friday 09:00–13:00; Saturday (left out) and the holiday are closed. { \"from\": \"972771234567\", \"call hours\": { \"status\": \"ENABLED\", \"timezone id\": \"Asia/Jerusalem\", \"weekly operating hours\": [ { \"day of week\": \"SUNDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"MONDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"TUESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"WEDNESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"THURSDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"FRIDAY\", \"open time\": \"0900\", \"close time\": \"1300\" } ], \"holiday schedule\": [ { \"date\": \"2027-04-22\", \"start time\": \"0000\", \"end time\": \"2359\" } ] } } Example: Split shifts Two entries a day: 08:00–12:00 and 16:00–20:00, Sunday to Thursday. No holidays are sent, so the holidays saved before are removed. { \"from\": \"972771234567\", \"call hours\": { \"status\": \"ENABLED\", \"timezone id\": \"Asia/Jerusalem\", \"weekly operating hours\": [ { \"day of week\": \"SUNDAY\", \"open time\": \"0800\", \"close time\": \"1200\" }, { \"day of week\": \"SUNDAY\", \"open time\": \"1600\", \"close time\": \"2000\" }, { \"day of week\": \"MONDAY\", \"open time\": \"0800\", \"close time\": \"1200\" }, { \"day of week\": \"MONDAY\", \"open time\": \"1600\", \"close time\": \"2000\" }, { \"day of week\": \"TUESDAY\", \"open time\": \"0800\", \"close time\": \"1200\" }, { \"day of week\": \"TUESDAY\", \"open time\": \"1600\", \"close time\": \"2000\" }, { \"day of week\": \"WEDNESDAY\", \"open time\": \"0800\", \"close time\": \"1200\" }, { \"day of week\": \"WEDNESDAY\", \"open time\": \"1600\", \"close time\": \"2000\" }, { \"day of week\": \"THURSDAY\", \"open time\": \"0800\", \"close time\": \"1200\" }, { \"day of week\": \"THURSDAY\", \"open time\": \"1600\", \"close time\": \"2000\" } ] } } Example: Keep hours, accept 24/7 The complete call hours object with status DISABLED : the hours stay saved, but customers can call you 24/7. { \"from\": \"972771234567\", \"call hours\": { \"status\": \"DISABLED\", \"timezone id\": \"Asia/Jerusalem\", \"weekly operating hours\": [ { \"day of week\": \"SUNDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"MONDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"TUESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"WEDNESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"THURSDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"FRIDAY\", \"open time\": \"0900\", \"close time\": \"1300\" } ] } } Example: Remove call hours An empty call hours removes the hours — customers can call you 24/7. { \"from\": \"972771234567\", \"call hours\": {} } Example: Disable calling Remove the call icon. Your SIP settings and call hours stay saved; status: true turns calling back on with them. { \"from\": \"972771234567\", \"status\": false } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — your settings were saved; calling shows them. Always OK . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . calling object (one of: OK) Your returned settings: always the complete current settings, not only what you sent. Anything never set is null . calling.status boolean (one of: OK) true when calling is enabled (the call icon is shown); false when it is disabled or was never enabled. Example: true . calling.sip host string \\ null (one of: OK) The SIP host you provided (SIP trunk). Example: sip.your-company.com . calling.sip port integer \\ null (one of: OK) The SIP port you provided. Example: 5060 . calling.sip transport string \\ null (one of: OK) The transport you provided. Example: udp . calling.client auth object \\ null (one of: OK) The username / password you provided, if any; null when there is no authentication. calling.client auth.username string (one of: OK) The username for digest authentication, as you set it. calling.client auth.password string (one of: OK) The password for digest authentication, as you set it. calling.codec pref string (one of: OK) The codecs in use — PCMU,PCMA until you set your own. Example: PCMU,PCMA . calling.call hours object \\ null (one of: OK) The call hours you provided, as saved (times as HHMM , days in capitals); null when there are no call hours. calling.concurrency limit integer (one of: OK) The number of concurrent calls allowed for your account (1 by default). Read-only: contact support if you need more. Example: 1 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out and nothing was saved. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, invalid JSON, or a temporary error — try again; 3 — Wrong apiKey, or the \"from\" number is not registered with us; 4 — 'status' must be true / false; 5 — 'sip host' is empty, invalid, or a private / internal address; 6 — 'sip port' is empty, invalid, or not between 1 and 65535; 7 — 'sip transport' must be udp / tcp / tls; 8 — 'client auth' is missing the username / password, or has characters that are not allowed; 9 — 'codec pref' is empty or invalid; 10 — 'call hours' is not an object, or its status is not ENABLED / DISABLED; 11 — 'timezone id' is missing for call hours, or is not a valid IANA time zone; 12 — 'weekly operating hours' is missing or empty, or one of its entries is invalid (day, time, open not before close, more than 2 or overlapping entries in a day, more than 14 entries); 13 — 'holiday schedule' is invalid (or a date is in the past); 14 — Calling can't be enabled: the daily limit of the number must be at least 2000 conversations; 15 — Calling is temporarily disabled for this number (call quality or spam); 16 — The support team did not enable calling for your number, please contact support; 17 — Settings rejected, please contact support. Example: OK Calling is on, and the calls are forwarded to your SIP server. { \"status\": \"OK\", \"from\": \"972771234567\", \"calling\": { \"status\": true, \"sip host\": \"sip.your-company.com\", \"sip port\": 5060, \"sip transport\": \"udp\", \"client auth\": null, \"codec pref\": \"PCMU,PCMA\", \"call hours\": null, \"concurrency limit\": 1 }, \"reason\": 1 } Example: OK + digest auth The response to the \"Digest auth\" request, on a number where calling was enabled before. { \"status\": \"OK\", \"from\": \"972771234567\", \"calling\": { \"status\": true, \"sip host\": \"sip.your-company.com\", \"sip port\": 5060, \"sip transport\": \"udp\", \"client auth\": { \"username\": \"whatsapp\", \"password\": \"Str0ng-Pass!\" }, \"codec pref\": \"PCMU,PCMA\", \"call hours\": null, \"concurrency limit\": 1 }, \"reason\": 1 } Example: OK + call hours The response to the \"Call hours\" request, on a number whose SIP server was set before. { \"status\": \"OK\", \"from\": \"972771234567\", \"calling\": { \"status\": true, \"sip host\": \"sip.your-company.com\", \"sip port\": 5060, \"sip transport\": \"udp\", \"client auth\": null, \"codec pref\": \"PCMU,PCMA\", \"call hours\": { \"status\": \"ENABLED\", \"timezone id\": \"Asia/Jerusalem\", \"weekly operating hours\": [ { \"day of week\": \"SUNDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"MONDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"TUESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"WEDNESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"THURSDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"FRIDAY\", \"open time\": \"0900\", \"close time\": \"1300\" } ], \"holiday schedule\": [ { \"date\": \"2027-04-22\", \"start time\": \"0000\", \"end time\": \"2359\" } ] }, \"concurrency limit\": 1 }, \"reason\": 1 } Example: Reason 5 'sip host' is empty, invalid, or a private / internal address. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 13 'holiday schedule' is invalid — for example, a date in the past. { \"status\": \"FAIL\", \"reason\": 13 } Example: Reason 14 The daily limit of the number is below 2000 conversations. { \"status\": \"FAIL\", \"reason\": 14 } Example: Reason 16 Calling was not enabled for your number yet — contact support. { \"status\": \"FAIL\", \"reason\": 16 }"
    },
    {
      "id": "whatsapp-api/get-call",
      "title": "Get Call Settings",
      "url": "https://docs.99digital.co.il/whatsapp-api/whatsapp-calls/get-call-settings",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/whatsapp-calls/get-call-settings.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "WhatsApp Calls"
      ],
      "language": "en",
      "description": "See your current WhatsApp calling settings: your SIP server, call hours and concurrent call limit.",
      "endpoint": {
        "method": "POST",
        "path": "/getCall",
        "url": "https://api.99digital.co.il/whatsapp/v2/getCall"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response-Explain",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: All settings",
        "Example: Not set yet",
        "Example: Reason 3"
      ],
      "keywords": [
        "getCall",
        "from",
        "status",
        "calling",
        "sip_host",
        "sip_port",
        "sip_transport",
        "client_auth",
        "username",
        "password",
        "codec_pref",
        "call_hours",
        "concurrency_limit",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/whatsapp/v2/getCall See your current WhatsApp calling settings: your SIP server, call hours and concurrent call limit. The Get Call endpoint allows you to see the settings you provided on /setCall , plus the number of concurrent calls allowed for your account. Anything you never set is null , status is false until you enable calling, and codec pref shows the default PCMU,PCMA until you set your own. Settings Setting Value URL https://api.99digital.co.il/whatsapp/v2/getCall Method JSON via POST Key Value apiKey Your API key for the service Body Parameter Description / Example from Your WhatsApp account. International number without + . For example: 972771234567 Response { \"status\": \"OK\", \"from\": \"972771234567\", \"calling\": { \"status\": true, \"sip host\": \"sip.your-company.com\", \"sip port\": 5060, \"sip transport\": \"udp\", \"client auth\": null, \"codec pref\": \"PCMU,PCMA\", \"call hours\": null, \"concurrency limit\": 1 }, \"reason\": 1 } Response-Explain Parameter Description status OK or FAIL from Your WhatsApp account calling->status true or false : true when calling is enabled (the call icon is shown) calling->sip host The SIP host you provided (SIP trunk) calling->sip port The SIP port you provided calling->sip transport The transport you provided calling->client auth The username / password , if provided; null when there is no authentication calling->codec pref The codecs in use — PCMU,PCMA until you set your own calling->call hours The call hours you provided, as saved; null when there are no call hours calling->concurrency limit The number of concurrent calls allowed for your account (1 by default). Contact support if you need more. reason The status explanation — see the table below. reason Description 1 Not FAIL. The status is OK. 2 from is missing, or invalid JSON 3 Wrong apiKey, or the \"from\" number is not registered with us Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes Your WhatsApp account. International number without + . Example: 972771234567 . Example (generated from the schema) { \"from\": \"972771234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the response carries your calling settings. Always OK . from string (one of: OK) Your WhatsApp account. Example: 972771234567 . calling object (one of: OK) Your calling settings. calling.status boolean (one of: OK) true or false : true when calling is enabled (the call icon is shown). Example: true . calling.sip host string \\ null (one of: OK) The SIP host you provided (SIP trunk). Example: sip.your-company.com . calling.sip port integer \\ null (one of: OK) The SIP port you provided. Example: 5060 . calling.sip transport string \\ null (one of: OK) The transport you provided. Example: udp . calling.client auth object \\ null (one of: OK) The username / password , if provided; null when there is no authentication. calling.client auth.username string (one of: OK) The username your SIP server accepts for digest authentication, as you set it with Set Call. calling.client auth.password string (one of: OK) The password your SIP server accepts for digest authentication, as you set it with Set Call. calling.codec pref string (one of: OK) The codecs in use — PCMU,PCMA until you set your own. Example: PCMU,PCMA . calling.call hours object \\ null (one of: OK) The call hours you provided, as saved; null when there are no call hours. calling.concurrency limit integer (one of: OK) The number of concurrent calls allowed for your account (1 by default). Contact support if you need more. Example: 1 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — 'from' is missing, or invalid JSON; 3 — Wrong apiKey, or the \"from\" number is not registered with us. Example: OK Calling is on, and the calls are forwarded to your SIP server. { \"status\": \"OK\", \"from\": \"972771234567\", \"calling\": { \"status\": true, \"sip host\": \"sip.your-company.com\", \"sip port\": 5060, \"sip transport\": \"udp\", \"client auth\": null, \"codec pref\": \"PCMU,PCMA\", \"call hours\": null, \"concurrency limit\": 1 }, \"reason\": 1 } Example: All settings With digest authentication and call hours. { \"status\": \"OK\", \"from\": \"972771234567\", \"calling\": { \"status\": true, \"sip host\": \"sip.your-company.com\", \"sip port\": 5061, \"sip transport\": \"tls\", \"client auth\": { \"username\": \"whatsapp\", \"password\": \"Str0ng-Pass!\" }, \"codec pref\": \"PCMU,PCMA\", \"call hours\": { \"status\": \"ENABLED\", \"timezone id\": \"Asia/Jerusalem\", \"weekly operating hours\": [ { \"day of week\": \"SUNDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"MONDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"TUESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"WEDNESDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"THURSDAY\", \"open time\": \"0900\", \"close time\": \"1700\" }, { \"day of week\": \"FRIDAY\", \"open time\": \"0900\", \"close time\": \"1300\" } ], \"holiday schedule\": [ { \"date\": \"2027-04-22\", \"start time\": \"0000\", \"end time\": \"2359\" } ] }, \"concurrency limit\": 1 }, \"reason\": 1 } Example: Not set yet Nothing was set yet — calling is off. { \"status\": \"OK\", \"from\": \"972771234567\", \"calling\": { \"status\": false, \"sip host\": null, \"sip port\": null, \"sip transport\": null, \"client auth\": null, \"codec pref\": \"PCMU,PCMA\", \"call hours\": null, \"concurrency limit\": 1 }, \"reason\": 1 } Example: Reason 3 Wrong apiKey, or the \"from\" number is not registered with us. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "whatsapp-api/information/template-conversation-and-message",
      "title": "Template, Conversation and Message",
      "url": "https://docs.99digital.co.il/whatsapp-api/information/template-conversation-and-message",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/information/template-conversation-and-message.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Information"
      ],
      "language": "en",
      "description": "The difference between regular messages, templates and incoming message sessions, and which of them are counted and billed.",
      "headings": [
        "Outgoing",
        "Incoming",
        "Counted vs. billed",
        "Easy examples for incoming messages and business messages"
      ],
      "keywords": [
        "template",
        "conversation",
        "session",
        "24-hour session",
        "billing",
        "marketing template",
        "utility template",
        "authentication template"
      ],
      "content": "This page is here to explain the difference between template session time, conversation session time and regular messages, just in case you are still confused. Template and messages explanation Outgoing Message type When you can use it Opens a 24-hour session? Counted? Billed? Regular message (sendMessage, sendFile, sendButtons, etc.) Only if the client sent a message in the last 24 hours No No No Marketing template Anytime you want. Better not to use it if a 24-hour incoming session is already open. No Yes, every template message Yes Utility template Anytime you want No If a 24-hour session is open between you and the client (meaning that the client sent you a message), we don't count. If the 24-hour session is closed, we count every template message. A utility template is billed only if there is no 24-hour session open between you and the client Authentication template Anytime you want No Yes, every template message Yes Incoming Message type Opens a 24-hour session? Counted? Billed? Incoming message for the first time in 24 hours (no session is open) Yes Yes Depends on your contract terms with 99 Digital Incoming message within 24 hours of the message that opened the session No, the session is still open No No Counted vs. billed \"Counted\" means that our system counts the session or the template and shows it to you on the webhook ( isNewConversation on an incoming message, isBilledTemplate on a status update). The counting makes it easier for you to know when there is a new interaction between the business and the client. This is mostly for statistics and usage transparency. \"Billed\" means that our system is billing your business for this event. This is what we charge you on the monthly usage invoice. The counting for an incoming message happens when the client sends a message (and this is unrelated to any template messages you sent to the client prior to that). This opens an incoming message conversation session. The session lasts 24 hours from that message; the client's first message after that opens, and is counted as, a new session. The counting for the templates only happens when the business sends a billed template to the user and the status of the template is either \"read\" or \"delivered\". There is no billing or counting if the status remains \"sent\" or changes to \"failed\". Easy examples for incoming messages and business messages Scenario Counted as Billed? Client sends a new message to the business, and the business replies with a utility template right away Incoming message session Depends on your contract Client sends a new message to the business, and the business replies with a marketing template (not recommended) 1 incoming message session + 1 marketing template Yes Client sends a new message to the business, and the business replies with a regular message Incoming message session Depends on your contract Client sends a new message to the business, and the business replies back after more than 24 hours with a utility template 1 incoming message session + 1 utility template Yes Client sends 1 new message to the business, and then sends another 100 different messages to the business within 24 hours 1 incoming session Depends on your contract Client sends a message to the business (a 24-hour session is open), and the business replies with either a utility template or a regular message No count No Business sends a utility template, the client replies back, and the business sends another utility template message 1 utility template + 1 incoming session Yes Business sends a utility template, the client did not reply back, and the business sends another utility template message 2 utility templates Yes Business sends a utility template, the client replies back, and the business sends a marketing template 1 utility template + 1 incoming session + 1 marketing template Yes Business sends an authentication template 1 authentication template Yes \\ \\ \"Client sends a new message\" means a new message after 24 hours: a message sent when no session is open, more than 24 hours after the message that opened the previous session. A client message starts a 24-hour session. Inside the session, regular messages (text, file, buttons) and utility templates are free to send. After 24 hours the session is closed: regular messages are not allowed, and marketing and utility templates are billed. If you have more questions regarding this, please contact support."
    },
    {
      "id": "whatsapp-api/information/rate-limit",
      "title": "Rate Limit",
      "url": "https://docs.99digital.co.il/whatsapp-api/information/rate-limit",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/information/rate-limit.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Information"
      ],
      "language": "en",
      "description": "The daily, messaging and phone number limits Meta sets on WhatsApp API numbers, and how a number moves up to higher limits.",
      "headings": [
        "Daily rate limit rules",
        "Messaging rate limit rules",
        "Phone number limit rules"
      ],
      "keywords": [
        "rate limit",
        "messaging limit",
        "daily limit",
        "tier",
        "messages per second",
        "throughput",
        "business verification"
      ],
      "content": "The WhatsApp API (v2) has rate limits (from Meta/Facebook's side). Please read the following information carefully so you can better prepare your code while building the solution for your customers. Daily rate limit rules Every new phone number starts with a daily limit of 250 business-initiated conversations. This means that you can start up to 250 new conversations with WhatsApp numbers in 24 hours. If a customer starts the conversation, and not your business, you can reply to unlimited conversations. The 250 per 24 hours only applies when you start the conversation with your customers (in other words, it's 250 conversations per 24 hours that started with a template message). You can move from 250 per day to 2,000 per day if one of the following happens: You verify your business on Facebook. If your business is already verified, you will move to 2,000 automatically. You can send the link for business verification if you wish to help your client verify their business, but this process must be done by the business itself. Go to the business verification page. You start 1,000 business-initiated conversations with unique customers over 7 consecutive days, without getting spam reports. Once you meet one of them, you will be switched to 2,000 conversations per 24 hours. You can move from 2,000 / 24 hours to 10,000 / 24 hours if you open at least 1,000 new business-initiated conversations in 7 consecutive days. After reaching this limit, wait 6 hours and 10,000 will be opened for you (assuming, of course, that you keep high-quality templates without spam reports). You can move from 10,000 / 24 hours to 100,000 / 24 hours if you open at least 5,000 new business-initiated conversations in 7 consecutive days. After reaching this limit, wait 6 hours and 100,000 will be opened for you (assuming, of course, that you keep high-quality templates without spam reports). You can move from 100,000 / 24 hours to UNLIMITED / 24 hours if you open at least 50,000 new business-initiated conversations in 7 consecutive days. After reaching this limit, wait 6 hours and unlimited will be opened for you (assuming, of course, that you keep high-quality templates without spam reports). Moving forward in the daily rate limit is done automatically 24 hours after reaching the threshold. Your number's current daily limit is the dailyLimit field of Get Profile. Starting November 2025, Meta counts the limit per business and not per phone number . What does it mean for you? All your phone numbers under the same business manager are counted together to reach the daily limit that moves you to the next tier (250 → 2,000 → 10,000 → 100,000 → unlimited), so once you reach it, all of the phone numbers in that business manager are upgraded. As a result, the daily limit is also shared between all the phone numbers in the business. If your business has two phone numbers, the business capability is 250 per day, and one phone number reached 250 in a given day, the other phone number won't be able to send new business templates until 24 hours have passed. To conclude: all phone numbers under the same business share the same limit, for the good and for the bad. Messaging rate limit rules Every WhatsApp API number has a default sending rate limit of 80 messages (of any kind: templates, messages, files) per second . This means that every WhatsApp number can send up to 80 messages per second in total (incoming messages don't count toward this limit). You can move from 80 messages per second to 1,000 messages per second if all of the following happen: You reach the UNLIMITED daily rate limit (as explained in item 5 of the daily rate limit rules above). You did not receive any spam reports in the last 7 days. You will get the 1,000 per second automatically when both of the above happen. You can send up to 10 messages (of any kind: templates, messages, files) per minute to the same phone number . This is to avoid sending too many messages to the same WhatsApp client. There is a small exception: you can \"borrow\" capacity from the next minutes, for up to 45 messages . For example, in normal scenarios you can send 10 messages in 1 minute to the same phone number. Let's assume you want to send 45 messages now: you will be able to do that, but after those 45 messages you will have to wait 4.5 minutes to send the next message. For easy calculations, you can consider the rate limit to be 0.17 messages per second to the same phone number. The rate limit error will be received as a webhook later on ( messageUpdate 16). You can send up to 2 marketing templates to the same phone number in 24 hours. Meta also counts all the marketing templates that an end user's WhatsApp number received recently (not only from you, but from anyone), and might even lower the 2 marketing templates for that end user, to keep WhatsApp users from receiving too much marketing on the WhatsApp platform. A webhook with an error will be received when this happens ( messageUpdate 14). This doesn't apply to utility templates or to normal messages within the 24-hour session. Error webhooks reach you only when system messages are turned on ( system: 1 in Set Webhook). Phone number limit rules A verified business is allowed up to 20 phone numbers (20 WhatsApp API accounts). Most businesses don't need more than 3, so you have more than enough here. If you need more than 20, contact our support. A non-verified business can only have 2 phone numbers under its business manager. If the business reaches 2,000 messages per day, it has the same limit as a verified business: up to 20 numbers. If you have more questions regarding this, please contact support."
    },
    {
      "id": "whatsapp-api/information/coexistence",
      "title": "Coexistence",
      "url": "https://docs.99digital.co.il/whatsapp-api/information/coexistence",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/information/coexistence.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Information"
      ],
      "language": "en",
      "description": "How coexistence lets your client keep using the WhatsApp Business app on the number they connect to the WhatsApp API, and how to onboard them.",
      "headings": [
        "Important remarks",
        "How to use and how to onboard a coexistence client"
      ],
      "keywords": [
        "coexistence",
        "WhatsApp Business app",
        "onboarding",
        "history sync",
        "contact sync",
        "outgoing webhook"
      ],
      "content": "This feature allows your client to connect to the WhatsApp API with their own number and keep using their WhatsApp Business app together with it. Partners can create an onboarding link with this feature, which enables coexistence while the client completes the onboarding process. Important remarks Make sure you read and understand them all: The client can only onboard numbers that are present in the WhatsApp Business app, not the regular WhatsApp app. If the client uses the regular WhatsApp app and wants to use the API, it is possible to migrate the number from one app to the other: just let the client download the official WhatsApp Business app and register the same number. WhatsApp will migrate everything, and then they can onboard. The WhatsApp Business app version must be 2.24.17 or higher. While onboarding, the client will be asked if they want to share their chat history with the API. If they accept, the system will extract 6 months of history, allowing you to get it (using Get History) so you can show it in your system for a complete, user-friendly experience. It's completely up to you whether you want the history or not (after the client approves it). Media is not supported, only written messages. Every incoming message (from end users) will arrive in the client's app (as it did before) and also to the API, so both of you get the same message. Every outgoing message from the API will be visible inside the client's WhatsApp mobile app. Every outgoing message that the client sends themselves from the WhatsApp app will trigger a webhook to tell you that the client sent an outgoing message from the app. Groups are not supported. Incoming and outgoing group messages will only work in the mobile app and will not be visible in the API. In order to create a better user experience, you are limited to 20 messages per second (outgoing) and not 80 messages per second as in an API-only account (see Rate Limit). Regarding pricing: everything that happens in the mobile app is free, as it was before the connection. Incoming and outgoing messages are all the same as they were (outgoing messages from the mobile app don't need a template). Everything that is done from the API keeps the same pricing as before: marketing and utility templates as they were. Example use case, so you better understand item 9: a client completed the coexistence onboarding, and their mobile app and the API are now synced. If you want to send a message to an end user from the API, you must send a template if there was no open session in the last 24 hours. The client, however, can send a message freely to new numbers: they don't \"feel\" the 24-hour session limitation in the WhatsApp app. If an end user sends a message to your client, you will get it through the API (as explained in item 4 above), and because of that it opens a 24-hour session, as it does today, so you can send free messages without templates from the API. Disappearing messages (messages that disappear after some time) will be disabled in the mobile app (only groups can still use this feature). \"View once\" messages (messages that can be opened only once) will be disabled in the mobile app (only groups can still use this feature). All other special WhatsApp features will remain in the app only (such as channels, status, greeting messages, away messages, voice and video calls, broadcasts, live location messages, etc.). Once the coexistence onboarding is completed, all linked devices (WhatsApp Web, the WhatsApp desktop app for Mac or Windows) will be disconnected, and they can be re-linked if needed. WhatsApp for Windows and Wear OS are currently not supported as linked devices for triggering the outgoing message webhook, so for Windows users it is better to re-link with WhatsApp Web instead. The client can use the Windows app as a linked device, but the API will not see any outgoing message that was sent from the Windows app or Wear OS. During onboarding, the client will be required to scan a QR code or enter a code sent to their WhatsApp, to confirm the connection. The client can stop using coexistence (on their side) directly from their app at any time. The client must open the WhatsApp Business app (on their phone) at least once every 20 days to keep the connection active. These are similar rules to using WhatsApp Web. The display name, profile picture and profile settings (website, email, description) can only be changed or set by the client from the WhatsApp Business app, not from the API. How to use and how to onboard a coexistence client From the partners platform, create a new onboarding, setting the whatsapp parameter to 1 . This tells the system not to use an existing verified number. The system will generate a temporary WhatsApp number starting with 97257 until a real number is connected. The client opens the onboarding link and selects \"Connect a WhatsApp Business App\" when asked to create a WhatsApp account. The client will be asked for their WhatsApp phone number, and then they will get a WhatsApp message (on their WhatsApp number) from the system to accept the connection. Tell them to check their WhatsApp messages. Clicking the WhatsApp message opens the camera on their phone, and a QR code will be shown for them to scan. They can either scan the QR code on the onboarding page, or enter a code instead (if the camera is not working for any reason). Once they do it, they can choose whether to share 6 months of chat history (no files) or not. After the client finishes the onboarding, the partner will get the same webhooks as for setting up any account, with the WhatsApp number (the real number) and the apiKey . Once the onboarding finishes, tell the client to open the WhatsApp app on their phone (in case it's not open in the foreground) to allow a quick history sync (if they accepted it). 10 minutes after the onboarding is completed, you can use Get History to see the 6 months of history that was extracted. If no history is there, it means that the client did not give permission to extract it: a clean slate. Before you start onboarding coexistence clients, make sure you listen to 2 new webhooks: outgoing messages ( hook: outgoing ) and contact messages ( hook: contact ). They are described on the Outgoing Messages and Contacts Update pages. When the client sends a message directly from their mobile phone, you will get an outgoing webhook so you know this event happened. When the recipient receives the message, you will also get read status webhooks for that outgoing message (when readStatus is on in Set Webhook). So you not only get notified about outgoing messages, you also get webhooks about their read status. During onboarding (or right after it) you might start getting contact webhooks updating you about all the contacts the client added to their phone book. Alternatively, you can always use the Get Contacts endpoint to see all contacts. Remember: the client is in control. The client decides the display name, the profile settings, if and when to disconnect, and so on. If you have more questions regarding this, please contact support."
    },
    {
      "id": "whatsapp-api/information/username",
      "title": "Username",
      "url": "https://docs.99digital.co.il/whatsapp-api/information/username",
      "markdown_url": "https://docs.99digital.co.il/markdown/whatsapp-api/information/username.md",
      "section": "WhatsApp API",
      "section_path": [
        "WhatsApp API",
        "Information"
      ],
      "language": "en",
      "description": "How WhatsApp usernames hide a user's phone number, what the user id in your webhooks is, and how to message users who hide their number.",
      "headings": [
        "Overview",
        "What is this feature?",
        "What changes in your webhooks?",
        "Understanding the user id",
        "Format",
        "Key characteristics",
        "Sending messages",
        "Frequently asked questions",
        "Can I send a message to a username (e.g. @john.smith)?",
        "If I already know a user's phone number and they enable usernames, can I still message them?",
        "Will I still see the phone number for users who previously chatted with me?",
        "Can I use the same user id across different WhatsApp API lines?",
        "Can a user hide their phone number without setting a username?",
        "What happens to the user's display name (profile name)?",
        "Updates"
      ],
      "keywords": [
        "username",
        "user id",
        "from_id",
        "hidden phone number",
        "hidden identity",
        "business-scoped user id"
      ],
      "content": "Overview WhatsApp is introducing usernames: an optional feature that allows users to hide their phone number and communicate using a username instead (similar to Telegram). This is being rolled out gradually, starting late 2026. This is a critical update. If your system relies on phone numbers as the primary identifier for incoming messages, you must adapt your integration to support the new user id field. What is this feature? Meta is allowing WhatsApp users who opt in to hide their phone number by choosing a username (e.g. @john.smith ). Once a user enables this, their communication with new contacts and businesses will use this hidden identity. Key point: this is an opt-in feature. Users who don't adopt a username will continue to work exactly as they do today — no changes to your integration are required for those users. What changes in your webhooks? Currently, when you receive an incoming message via webhook, the sender's phone number is included in the payload (in the from field). Once a user enables usernames, their phone number may be hidden, and you will get a user id instead, which is a two-letter country code + dot + 16 digits. The user id arrives in the from id field. When the phone number is hidden, from holds the user id as well, and phone is null . The phone number will still appear in your webhooks if you sent or received a message with this user's phone number within the last 30 days (evaluated per business phone number). Understanding the user id The user id is the new primary identifier for WhatsApp users. Think of it as the replacement for the phone number as your \"primary key\". Format The id consists of an ISO country code, a period, and a long numeric string. For example: IL.1605856887361213 . The country code prefix lets you identify the user's country of origin (e.g. IL = Israel, US = United States). You can also use the country field that arrives in the webhook. Key characteristics Automatically generated by Meta — you don't create or manage them. Always present in webhooks, for every user, regardless of username adoption. Permanent and stable — it will not change. Scoped to your business portfolio: the same end user will have a different user id for each business portfolio they interact with. You cannot use the user id from one portfolio to message the user from a line in another portfolio. The user id is tied to your business portfolio, not to a single WhatsApp API line. All your lines in the same portfolio see the same user id for a user. If you have lines in different portfolios and the same user contacts both, they will have a different user id on each. Sending messages You use the to field the same way as before: you can now send either the international phone number or the user id. If you already know the user's phone number, you can still send messages using the phone number — even if the user has enabled usernames. The username feature does not block outbound messages to known phone numbers. To ask a user who hides their phone number to share it with you, use Request Phone. Frequently asked questions Can I send a message to a username (e.g. @john.smith )? No. Via the API, you can only send messages using a phone number or a user id. Usernames are for display and for person-to-person communication within the WhatsApp app. Users can search for each other by username in the app, but the API does not support addressing messages to a username. If I already know a user's phone number and they enable usernames, can I still message them? Yes. The username feature does not block messages sent to a known phone number. If you have the user's phone number from any source (a call, a form, a previous conversation), you can continue messaging them exactly as you do today. Will I still see the phone number for users who previously chatted with me? If the user interacted with your line after April 1, 2026, their phone number will be present permanently. You will continue to see their phone number in all webhooks, even if they later enable usernames. The phone number is also included if you had any interaction within the last 30 days. Can I use the same user id across different WhatsApp API lines? Only between lines in the same business portfolio: the user id is scoped to the portfolio level. If you have lines in different portfolios, the same user will have a different user id on each. Note: the user id is permanent and will never change (unlike the username, which the user can modify). The user cannot see or control their user id. Can a user hide their phone number without setting a username? No. Based on the current implementation, a user must adopt a username to hide their phone number. There is no standalone \"hide phone number\" toggle without a username. However, having a username does not automatically hide the phone number from your webhooks — the 30-day and previous interaction rules still apply. What happens to the user's display name (profile name)? The profile name is always present in webhooks ( senderName ), regardless of username adoption. It is not affected by this feature. Updates This document will be updated when more information is available. Sending messages using a user id in the to field may not be supported on all WhatsApp accounts yet, as this feature is currently undergoing updates by Meta."
    },
    {
      "id": "partners-api/overview",
      "title": "Partners API",
      "url": "https://docs.99digital.co.il/partners-api",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api.md",
      "section": "Partners API",
      "section_path": [
        "Partners API"
      ],
      "language": "en",
      "description": "For 99 Digital partners — register and onboard WhatsApp numbers, create Facebook onboarding links, and manage Builder and Online accounts.",
      "headings": [
        "Base URL",
        "Authentication",
        "Where to start"
      ],
      "keywords": [
        "Partners API",
        "reseller API",
        "WhatsApp onboarding",
        "partner access token"
      ],
      "content": "For 99 Digital partners: register and onboard WhatsApp numbers for your customers, create Facebook onboarding links, and manage Builder and Online accounts. Base URL https://partners.99digital.co.il/api Authentication Exchange the client id and client secret from your partners dashboard for an access token with Access Token, then send the token as a bearer token on every request: Authorization: Bearer An access token is valid for one hour. Where to start New to the partners program: Become a Partner. WhatsApp numbers for your customers: Start Here!. Facebook and Instagram onboarding: Start Here!. Events about your customers' accounts sent to your server: Webhook."
    },
    {
      "id": "partners-api/become-a-partner",
      "title": "Become a Partner",
      "url": "https://docs.99digital.co.il/partners-api/become-a-partner",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/become-a-partner.md",
      "section": "Partners API",
      "section_path": [
        "Partners API"
      ],
      "language": "en",
      "description": "Join the 99 Digital partners program to create, sell and distribute 99 Digital products to your customers.",
      "headings": [],
      "keywords": [
        "become a partner",
        "partners program",
        "reseller",
        "99 Digital partner"
      ],
      "content": "Becoming a partner of 99 Digital allows you to create, sell and distribute any of the 99 Digital products to your customers. If you would like to join our partners program, please contact a 99 Digital employee at www.99digital.co.il."
    },
    {
      "id": "partners-api/whatsapp/start-here",
      "title": "Start Here!",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/start-here",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/start-here.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp"
      ],
      "language": "en",
      "description": "How creating a WhatsApp account for your client works — register and verify a number, create an onboarding link, and get a webhook when the client finishes.",
      "headings": [
        "The steps",
        "Managing your numbers and accounts"
      ],
      "keywords": [
        "WhatsApp onboarding",
        "create WhatsApp account",
        "register a number",
        "onboarding link",
        "partners",
        "coexistence"
      ],
      "content": "Creating a new WhatsApp account: an explanation page. Please read carefully the following steps on how the onboarding works. Creating a WhatsApp account is an easy 3-step process. By the end of this process, the WhatsApp account will usually be available immediately to start receiving incoming messages. A few minutes later, you will also be able to send out outgoing messages and templates. The steps Register a new number. This step will verify a phone number, to be a potential WhatsApp account, and store it under your account. You must first verify the number, and then you can create an account with that number. This is the Step 1: Register a number API. You create a new WhatsApp account using the Step 2: Onboarding API ( createAccount ). It creates an onboarding link that you share with your client, who completes the onboarding through it. Once the client finishes the onboarding, you will get a webhook notification about it. You can set and see the webhook information with the Webhook API (Settings → Webhook). To onboard a number as coexistence — the client keeps using the WhatsApp Business app on their phone, so the number is not registered as a new number — skip step 1 and go straight to Step 2: Onboarding. Managing your numbers and accounts Endpoint What it does Get Registered numbers The verified numbers that are still waiting to be connected to an account. Get Onboarding List The onboarding links you created, and whether the client finished each one. Delete Onboarding account Remove an onboarding link that the client didn't finish. Get WhatsApp Numbers The WhatsApp accounts you manage, with their API keys and this month's conversations. Get Conversations Statistics Your WhatsApp numbers' conversations, month by month. Delete WhatsApp Account Cancel a WhatsApp account and remove it immediately. Get Stores list The WhatsApp stores you created."
    },
    {
      "id": "partners-api/whatsapp/step-1-register-a-number",
      "title": "Step 1: Register a number",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/step-1-register-a-number",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/step-1-register-a-number.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp",
        "Step 1: Register a number"
      ],
      "language": "en",
      "description": "Register a new phone number under your partner account and verify it with a code sent by SMS or a phone call, before you create its WhatsApp account.",
      "headings": [
        "Important remarks",
        "Part 1: Register a number",
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Part 2: Verify a number",
        "Settings",
        "Body",
        "Response",
        "Response explained"
      ],
      "keywords": [
        "register number",
        "verify number",
        "verification code",
        "registerNumber",
        "verifyNumber",
        "WhatsApp onboarding"
      ],
      "content": "This API allows you to add a number to your account, in order to use the Step 2: Onboarding API. In order to use the number, we must verify the number. You can request the verification code by SMS or by a phone call. Endpoint What it does Register a number Part 1: request a verification code for the number, by SMS or a phone call. Verify a number Part 2: send the code you received. The number is verified and belongs to you. Important remarks The number you wish to register must not be installed on any WhatsApp phone: it must be a new number. If you wish to onboard a number as coexistence (meaning you want to keep using the WhatsApp mobile app, and not register it as a new number), jump to Step 2: Onboarding. Do not attempt to request a code more than 3 times, or Facebook might block the request for 1 hour to avoid abuse. If you want to use a phone call, please make sure you are able to dial the number yourself and that the number does not have an IVR operator. Make sure that a call can go through smoothly and that you are able to answer the phone call. The phone call will be received from a foreign country code or an unknown number: make sure those numbers are not blocked on your phone. Registered phone numbers will wait in your account for 90 days. During this time you must create an account with that number. If you did not create an account with that phone number, after 90 days you will have to register the number again. You can register and keep up to 500 numbers in your account waiting to be connected. This process is a two-part process: Part 1: you register the number by asking for the verification code. After submitting the registerNumber API, you will get an SMS or a phone call with a 6-digit verification code. Part 2: you verify the code you received with the verifyNumber API. Now the number is verified and belongs to you. Then create the WhatsApp account with Step 2: Onboarding. Get Registered numbers lists your verified numbers that are still waiting to be connected to an account. Part 1: Register a number Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/registerNumber Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Add new number permission (Verified Numbers). Body Parameter Description / Example Maximum length Remarks Mandatory whatsapp The WhatsApp number you wish to register 20 Use the country code and the number, digits only, without + . For example: 972501234567 Yes method 1 for SMS; 2 for a phone call (a number, not a string) 1 If both options are available for your number, we recommend using SMS, as it is a more stable way and not based on answering a phone call. Yes language The language code — see the language table below (a number, not a string) 1 The language of the SMS / voice call that brings the verification code. (For SMS, in some cases, the code will be sent in English regardless of what was selected in language .) Yes comment A free text for you to use along with the number registration. You get it back as comment in Get Registered numbers. 100 Numbers and letters only (spaces, hyphens, underscores and parentheses are accepted too). No language values: Language name Code to use Hebrew 1 English 2 Arabic 3 Russian 4 Spanish 5 Chinese 6 Hindi 7 Thai 8 French 9 Response { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the SMS or phone call has been sent. \"FAIL\" means error. whatsapp The WhatsApp number. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 The WhatsApp number is empty or wrong (digits only, up to 20). 5 method is empty or wrong (1 or 2). 6 language is empty or wrong (1 to 9). 7 The number you are trying to verify has already been verified by you. 8 The number you are trying to verify is not a new WhatsApp number. The number might be used by another WhatsApp API business or by the WhatsApp app, or the number you provided is not a valid phone number. 9 Error trying to send the verification code, please try again later. 15 Unknown error, please contact support. Also returned when the request body is not valid JSON. 24 You requested the code too many times. Please try again in 1 hour. 27 The comment length is too long, or the comment is invalid. Part 2: Verify a number Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/verifyNumber Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Add new number permission (Verified Numbers). Body Parameter Description / Example Maximum length Remarks Mandatory whatsapp The same WhatsApp number you used to request the code with the registerNumber API 20 Use the country code and the number, digits only, without + . For example: 972501234567 Yes code The 6-digit code 6 6 digits, numbers only. Remove any hyphens if the code received by SMS contains any. You can try up to 3 times. Yes Response { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"expiration\": 1737109621, \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the verification was successful. \"FAIL\" means error. whatsapp The WhatsApp number. expiration The expiration timestamp (Unix time, in seconds), 90 days from now. Create the WhatsApp account with this number before then. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 The WhatsApp number is empty or wrong (digits only, up to 20). 7 The number you are trying to verify has already been verified by you. 10 code is empty or not a 6-digit number. 11 The WhatsApp number you are trying to verify is not a number that is waiting to be verified (in your account). Please use the registerNumber API (Part 1) first. 12 The code is wrong, please try again. You can try up to 3 times. 15 Unknown error, please contact support. Also returned when the request body is not valid JSON."
    },
    {
      "id": "partners-api/register-number",
      "title": "Register a number",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/step-1-register-a-number/register-number",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/step-1-register-a-number/register-number.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp",
        "Step 1: Register a number"
      ],
      "language": "en",
      "description": "This API allows you to add a number to your account, in order to use the Step 2: Onboarding API.",
      "endpoint": {
        "method": "POST",
        "path": "/whatsapp/registerNumber",
        "url": "https://partners.99digital.co.il/api/whatsapp/registerNumber"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example: SMS",
        "Example: Phone call",
        "Example: With comment",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 7",
        "Example: Reason 8",
        "Example: Reason 24",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "registerNumber",
        "whatsapp",
        "method",
        "language",
        "comment",
        "status",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/whatsapp/registerNumber This API allows you to add a number to your account, in order to use the Step 2: Onboarding API. In order to use the number, we must verify the number. You can request the verification code by SMS or by a phone call. This is part 1 of Step 1: Register a number; part 2 is Verify a number. Important remarks The number you wish to register must not be installed on any WhatsApp phone: it must be a new number. If you wish to onboard a number as coexistence (meaning you want to keep using the WhatsApp mobile app, and not register it as a new number), jump to Step 2: Onboarding. Do not attempt to request a code more than 3 times, or Facebook might block the request for 1 hour to avoid abuse (reason 24). If you want to use a phone call, please make sure you are able to dial the number yourself and that the number does not have an IVR operator. Make sure that a call can go through smoothly and that you are able to answer the phone call. The phone call will be received from a foreign country code or an unknown number: make sure those numbers are not blocked on your phone. Registered phone numbers will wait in your account for 90 days. During this time you must create an account with that number. If you did not create an account with that phone number, after 90 days you will have to register the number again. You can register and keep up to 500 numbers in your account waiting to be connected. This process is a two-part process: Part 1: you register the number by asking for the verification code. After submitting the registerNumber API (this page), you will get an SMS or a phone call with a 6-digit verification code. Part 2: you verify the code you received with Verify a number. Now the number is verified and belongs to you. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/registerNumber Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Add new number permission (Verified Numbers). Body Parameter Description / Example Maximum length Remarks Mandatory whatsapp The WhatsApp number you wish to register 20 Use the country code and the number, digits only, without + . For example: 972501234567 Yes method 1 for SMS; 2 for a phone call (a number, not a string) 1 If both options are available for your number, we recommend using SMS, as it is a more stable way and not based on answering a phone call. Yes language The language code — see the language table below (a number, not a string) 1 The language of the SMS / voice call that brings the verification code. (For SMS, in some cases, the code will be sent in English regardless of what was selected in language .) Yes comment A free text for you to use along with the number registration. You get it back as comment in Get Registered numbers. 100 Numbers and letters only (spaces, hyphens, underscores and parentheses are accepted too). No language values: Language name Code to use Hebrew 1 English 2 Arabic 3 Russian 4 Spanish 5 Chinese 6 Hindi 7 Thai 8 French 9 Response { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the SMS or phone call has been sent. \"FAIL\" means error. whatsapp The WhatsApp number. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 The WhatsApp number is empty or wrong (digits only, up to 20). 5 method is empty or wrong (1 or 2). 6 language is empty or wrong (1 to 9). 7 The number you are trying to verify has already been verified by you. 8 The number you are trying to verify is not a new WhatsApp number. The number might be used by another WhatsApp API business or by the WhatsApp app, or the number you provided is not a valid phone number. 9 Error trying to send the verification code, please try again later. 15 Unknown error, please contact support. Also returned when the request body is not valid JSON. 24 You requested the code too many times. Please try again in 1 hour. 27 The comment length is too long, or the comment is invalid. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description whatsapp string Yes The WhatsApp number you wish to register. Use the country code and the number, digits only (up to 20), without + . For example: 972501234567 . The number must be a new number, not installed on any WhatsApp phone. Max length: 20. Pattern: ^[0-9]{1,20}$ . Example: 972501234567 . method integer Yes How to send the verification code: 1 for SMS, 2 for a phone call — a number, not a string. If both options are available for your number, we recommend using SMS, as it is a more stable way and not based on answering a phone call. For a phone call, make sure you can dial the number yourself, that it has no IVR operator, and that calls from a foreign country code or an unknown number are not blocked. One of: 1 — SMS — the 6-digit code is sent by SMS (recommended); 2 — Phone call — the 6-digit code is read in a phone call. Make sure you are able to answer it. Example: 1 . language integer Yes The language of the SMS / voice call that brings the verification code — a number, not a string. (For SMS, in some cases, the code will be sent in English regardless of what was selected in language .) One of: 1 — Hebrew; 2 — English; 3 — Arabic; 4 — Russian; 5 — Spanish; 6 — Chinese; 7 — Hindi; 8 — Thai; 9 — French. Example: 1 . comment string No A free text for you to use along with the number registration, up to 100 characters. Numbers and letters only (spaces, hyphens, underscores and parentheses are accepted too). You get it back as comment in Get Registered numbers. Max length: 100. Example: Reserved number for client A . Example: SMS Send the code by SMS, in Hebrew. { \"whatsapp\": \"972501234567\", \"method\": 1, \"language\": 1 } Example: Phone call Send the code by a phone call, in English. Make sure you can answer the call. { \"whatsapp\": \"972501234567\", \"method\": 2, \"language\": 2 } Example: With comment Add a comment of your own to the registered number. { \"whatsapp\": \"972501234567\", \"method\": 1, \"language\": 2, \"comment\": \"Reserved number for client A\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the SMS or the phone call with the verification code has been sent. Always OK . whatsapp string (one of: OK) The WhatsApp number. Example: 972501234567 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL means error — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token does not exist or has expired. Please generate another one with the Access Token API; 4 — The WhatsApp number is empty or wrong: digits only, up to 20; 5 — method is empty or wrong: 1 or 2; 6 — language is empty or wrong: 1 to 9; 7 — The number you are trying to verify has already been verified by you; 8 — The number you are trying to verify is not a new WhatsApp number: it might be used by another WhatsApp API business or by the WhatsApp app, or the number you provided is not a valid phone number; 9 — Error trying to send the verification code, please try again later; 15 — Unknown error, please contact support. Also returned when the request body is not valid JSON; 24 — You requested the code too many times. Please try again in 1 hour; 27 — The comment length is too long, or the comment is invalid. Example: OK The verification code has been sent. { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"reason\": 1 } Example: Reason 7 You have already verified this number. { \"status\": \"FAIL\", \"reason\": 7 } Example: Reason 8 The number is not a new WhatsApp number, or not a valid phone number. { \"status\": \"FAIL\", \"reason\": 8 } Example: Reason 24 You requested the code too many times. Try again in 1 hour. { \"status\": \"FAIL\", \"reason\": 24 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/verify-number",
      "title": "Verify a number",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/step-1-register-a-number/verify-number",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/step-1-register-a-number/verify-number.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp",
        "Step 1: Register a number"
      ],
      "language": "en",
      "description": "Part 2: you verify the code you received, and now the number is verified and belongs to you.",
      "endpoint": {
        "method": "POST",
        "path": "/whatsapp/verifyNumber",
        "url": "https://partners.99digital.co.il/api/whatsapp/verifyNumber"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 11",
        "Example: Reason 12",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "verifyNumber",
        "whatsapp",
        "code",
        "status",
        "expiration",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/whatsapp/verifyNumber Part 2: you verify the code you received, and now the number is verified and belongs to you. This API allows you to add a number to your account, in order to use the Step 2: Onboarding API. In order to use the number, we must verify the number. You can request the verification code by SMS or by a phone call. This is part 2 of Step 1: Register a number. This process is a two-part process: Part 1: you register the number by asking for the verification code. After submitting the registerNumber API, you will get an SMS or a phone call with a 6-digit verification code. Part 2: you verify the code you received (this page). Now the number is verified and belongs to you. Registered phone numbers will wait in your account for 90 days, until expiration . During this time you must create an account with that number (Step 2: Onboarding). If you did not create an account with that phone number, after 90 days you will have to register the number again. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/verifyNumber Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Add new number permission (Verified Numbers). Body Parameter Description / Example Maximum length Remarks Mandatory whatsapp The same WhatsApp number you used to request the code with the registerNumber API 20 Use the country code and the number, digits only, without + . For example: 972501234567 Yes code The 6-digit code 6 6 digits, numbers only. Remove any hyphens if the code received by SMS contains any. You can try up to 3 times. Yes Response { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"expiration\": 1737109621, \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the verification was successful. \"FAIL\" means error. whatsapp The WhatsApp number. expiration The expiration timestamp (Unix time, in seconds), 90 days from now. Create the WhatsApp account with this number before then. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 The WhatsApp number is empty or wrong (digits only, up to 20). 7 The number you are trying to verify has already been verified by you. 10 code is empty or not a 6-digit number. 11 The WhatsApp number you are trying to verify is not a number that is waiting to be verified (in your account). Please use the registerNumber API (part 1) first. 12 The code is wrong, please try again. You can try up to 3 times. 15 Unknown error, please contact support. Also returned when the request body is not valid JSON. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description whatsapp string Yes The same WhatsApp number you used to request the code with Register a number (the registerNumber API). Use the country code and the number, digits only (up to 20), without + . For example: 972501234567 . Max length: 20. Pattern: ^[0-9]{1,20}$ . Example: 972501234567 . code string Yes The 6-digit code you received by SMS or phone call. 6 digits, numbers only: remove any hyphens if the code received by SMS contains any. You can try up to 3 times. Min length: 6. Max length: 6. Pattern: ^[0-9]{6}$ . Example: 123456 . Example (generated from the schema) { \"whatsapp\": \"972501234567\", \"code\": \"123456\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the verification was successful: the number is verified and belongs to you. Always OK . whatsapp string (one of: OK) The WhatsApp number. Example: 972501234567 . expiration integer (one of: OK) The expiration timestamp (Unix time, in seconds), 90 days from now. Create the WhatsApp account with this number before then; after it, you will have to register the number again. Example: 1737109621 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL means error — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token does not exist or has expired. Please generate another one with the Access Token API; 4 — The WhatsApp number is empty or wrong: digits only, up to 20; 7 — The number you are trying to verify has already been verified by you; 10 — code is empty or not a 6-digit number; 11 — The WhatsApp number you are trying to verify is not a number that is waiting to be verified in your account. Please use the registerNumber API (Register a number, part 1) first; 12 — The code is wrong, please try again. You can try up to 3 times; 15 — Unknown error, please contact support. Also returned when the request body is not valid JSON. Example: OK The number is verified and waits in your account for 90 days. { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"expiration\": 1737109621, \"reason\": 1 } Example: Reason 11 The number is not waiting to be verified in your account — use Register a number first. { \"status\": \"FAIL\", \"reason\": 11 } Example: Reason 12 The code is wrong, please try again. { \"status\": \"FAIL\", \"reason\": 12 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/whatsapp-create-account",
      "title": "Step 2: Onboarding",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/step-2-onboarding",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/step-2-onboarding.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp"
      ],
      "language": "en",
      "description": "Create a WhatsApp onboarding link account: a link your client opens to create their WhatsApp account.",
      "endpoint": {
        "method": "POST",
        "path": "/whatsapp/createAccount",
        "url": "https://partners.99digital.co.il/api/whatsapp/createAccount"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example: Registered number",
        "Example: With business details",
        "Example: Coexistence",
        "Example: Custom logo and message",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK + coexistence",
        "Example: Reason 4",
        "Example: Reason 14",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "whatsappCreateAccount",
        "whatsapp",
        "createAccount",
        "business_name",
        "business_email",
        "business_id",
        "business_address",
        "display_name",
        "onboarding_logo",
        "onboarding_message",
        "reference",
        "basic_templates",
        "status",
        "onboarding_link",
        "landing_page",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/whatsapp/createAccount Create a WhatsApp onboarding link account: a link your client opens to create their WhatsApp account. Please read carefully the following steps on how the onboarding works. This API allows you to create a WhatsApp account from a registered number (Step 1: Register a number). You will provide the registered number you want to onboard, and this number should be verified in your account first. Once you add and verify the number, you can create an account. To onboard a number as coexistence instead, send 1 as whatsapp : no registered number is needed. Next, the system will generate an onboarding link. The onboarding link should be shared with your client / customer: the link should be shared with the business owner. Once the client opens the onboarding link and follows the Facebook onboarding process, this will create a WhatsApp account for them. After the client opens the link, this is what they will be facing: The client is asked to log in to their Facebook account. If their browser is already logged in, it will recognize it automatically. If the client doesn't have a Facebook account, the onboarding will create an account for them. The client is asked to provide their business details (business name, business email). If the client already has a business on Facebook, they can select the business. If the client doesn't have a business, the onboarding will create one for them. If you know details about your customer's business, such as its name and email address, you can inject this data into the onboarding screen. This can dramatically reduce the amount of input and interaction required by your customers. The client might be asked to create a \"WhatsApp\" account. They can choose the name for their WhatsApp (for reference purposes only) and the time zone. (This page only shows if the client already had a business on Facebook.) Submit: the client clicks the \"Confirm\" button and the page closes itself. The process is completed and the client can start using WhatsApp right away. You will get a webhook (a whatsapp event) once the client completed the process, and the WhatsApp account will usually be active immediately to receive messages. It might take a few hours on Facebook's side to confirm the account (verify its authenticity). Once it is confirmed, you will be able to send templates and messages. You can generate only 1 onboarding link per registered number. You can't change the onboarding information once the link has been created. If you wish to change the information, you must delete the onboarding link first (Delete Onboarding account) and then create a new one. Once the onboarding link is completed by the client, you can't change the information or delete the onboarding link anymore. Important notice: when creating a business profile on Facebook using the onboarding link, Facebook also asks for a landing page of the business (business website). Our system will automatically generate a landing page for you if you provide business name , business address and business id . Facebook has very strict rules on how the company website should be, and the landing page we generate fits their rules. This landing page is not visible to end users; it is only for Facebook's reference purposes. The above notice isn't relevant if the client already has a business on Facebook. Get Onboarding List shows the onboarding links you created and whether the client finished each one. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/createAccount Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Create new onboarding link permission (Onboarding Links). Body Parameter Description / Example Maximum length Mandatory whatsapp For a new WhatsApp, here is where you put the registered and verified number from your account (from Step 1), with the country code, digits only, without + . The number must be within its 90 days and must not have an onboarding link yet (reason 4). If you want to use the coexistence feature, put 1 here as the whatsapp parameter — read more about coexistence here. 20 Yes business name This is the official business name of your client. Letters, numbers and hyphens are allowed (spaces and underscores too). 100 Yes business email This is the business email address. Provide this value if you wish to help your client create a business profile on Facebook in case they don't have one. 200 No business id This is the ID of the business. Provide this value if you wish to help your client create a business profile on Facebook in case they don't have one. Numbers only. 20 No business address This is the home/office address of the business. Provide this value if you wish to help your client create a business profile on Facebook in case they don't have one. Provide here the full address of the business, in free text: letters, numbers, spaces, commas, dots and slashes only (no hyphens); quotes are removed. 300 No display name The WhatsApp display name that your client's customers will see on WhatsApp. It is very important to choose the right name, one that matches the business brand name. For example, for the business name \"Pizza Hut\", the display name should be something similar to \"Pizza Hut\" / \"Pizza Hut - Customer Service\" / \"Pizza Hut - support\", etc. This value can't be changed later, only via our support. Letters, numbers and hyphens are allowed (spaces, underscores and parentheses too). 50 Yes onboarding logo The onboarding link contains a logo image. In the Business settings API you can set the default logo of your onboarding links. Here, you can set a specific HTTPS URL of a different logo for this link: it overrides the account's onboarding logo from Business settings. The image size should be 200x60 px, in PNG/JPG format. The URL must start with https:// (or http:// ) and end with .png , .jpg , .jpeg , .gif , .bmp or .webp . 1000 No onboarding message The onboarding link contains a welcome text before the client starts the onboarding. In the Business settings API you can set your default onboarding message text. Here, you can set a specific welcome text for this link: it overrides the account's onboarding text from Business settings. Any letters, numbers and dashes are acceptable (also spaces, underscores, dots, commas, ! and ? ). 200 No reference Any reference value (text/numbers only) you wish to receive back on the webhook (as whatsapp reference ). This is for your use only, so you can recognize your client. Letters, numbers, spaces, hyphens and underscores are allowed. 50 No basic templates After your client finishes the onboarding, we can submit for approval 3 default basic Hebrew templates for you: a start a conversation template, a welcome template and a send a file template, so it will be easier to start sending templates later on. The default is off. 1 — create the 3 basic Hebrew templates; 0 — don't create. 1 No Response { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"onboarding link\": \"https://onboarding.direct/123456\", \"landing page\": \"https://landing.example.com/123456\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the onboarding link has been created. \"FAIL\" means error. whatsapp The WhatsApp number you provided. If this is a \"coexistence\" onboarding, you will see the temporary number we allocated to this onboarding (it starts with 97257 ) until the client finishes the onboarding process and gets a final WhatsApp number. onboarding link The onboarding link to share with your client to connect the WhatsApp. landing page The landing page we created for your customer. You can share it with them. Empty unless you provided business name , business address and business id . reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 The WhatsApp number is invalid, or it is not registered (verified) under your account, or its 90 days have passed, or you already created an onboarding link with that number. 14 display name is invalid. 15 Unknown error, please contact support. Also returned when the request body is not valid JSON. 16 business name is invalid. 17 business email is invalid. 18 onboarding logo is invalid. 19 onboarding message is invalid. 20 reference is invalid. 21 business id is invalid. 22 business address is invalid. Use letters, numbers, commas and dots only (spaces and slashes are accepted too). 23 basic templates is invalid. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description whatsapp string Yes For a new WhatsApp, here is where you put the registered and verified number from your account (from Step 1), with the country code, digits only (up to 20), without + . The number must be within its 90 days and must not have an onboarding link yet (reason 4). To use the coexistence feature, send 1 here — read more about coexistence. Example: 972501234567 . business name string Yes This is the official business name of your client, up to 100 characters. Letters, numbers and hyphens are allowed (spaces and underscores too). Min length: 1. Max length: 100. Example: Acme Inc . business email string (email) No This is the business email address, up to 200 characters. Provide this value if you wish to help your client create a business profile on Facebook, in case they don't have one. Example: info@example.com . business id string No This is the ID of the business, up to 20 digits. Provide this value if you wish to help your client create a business profile on Facebook, in case they don't have one. Numbers only. With business name and business address , it lets us generate a landing page for the business. Max length: 20. Pattern: ^[0-9]{1,20}$ . Example: 515123456 . business address string No This is the home/office address of the business, up to 300 characters. Provide this value if you wish to help your client create a business profile on Facebook, in case they don't have one. Provide here the full address of the business, in free text: letters, numbers, spaces, commas, dots and slashes only (no hyphens); quotes are removed. Example: Grove Street 12, San Andreas . display name string Yes The WhatsApp display name that your client's customers will see on WhatsApp, up to 50 characters. It is very important to choose the right name, one that matches the business brand name. For example, for the business name \"Pizza Hut\", the display name should be something similar to \"Pizza Hut\", \"Pizza Hut - Customer Service\" or \"Pizza Hut - support\". This value can't be changed later, only via our support. Letters, numbers and hyphens are allowed (spaces, underscores and parentheses too). Min length: 1. Max length: 50. Example: Acme - Customer Service . onboarding logo string (uri) No The onboarding link contains a logo image. In the Business settings API you can set the default logo of your onboarding links. Here, you can set a specific HTTPS URL of a different logo for this link: it overrides the account's onboarding logo from Business settings. The image size should be 200x60 px, in PNG/JPG format. Up to 1000 characters. The URL must start with https:// (or http:// ) and end with .png , .jpg , .jpeg , .gif , .bmp or .webp . Example: https://www.example.com/images/onboarding-logo.png . onboarding message string No The onboarding link contains a welcome text before the client starts the onboarding. In the Business settings API you can set your default onboarding message text. Here, you can set a specific welcome text for this link: it overrides the account's onboarding text from Business settings. Up to 200 characters. Any letters, numbers and dashes are acceptable (also spaces, underscores, dots, commas, ! and ? ). Max length: 200. Example: Welcome! Connect your WhatsApp to Acme in a few clicks. . reference string No Any reference value (text/numbers only) you wish to receive back on the webhook (as whatsapp reference ), up to 50 characters. This is for your use only, so you can recognize your client. Letters, numbers, spaces, hyphens and underscores are allowed. Max length: 50. Example: client-4711 . basic templates integer No After your client finishes the onboarding, we can submit for approval 3 default basic Hebrew templates for you: a start a conversation template, a welcome template and a send a file template, so it will be easier to start sending templates later on. The default is off (0). One of: 0 — Don't create the templates (the default); 1 — Create the 3 basic Hebrew templates (start a conversation, welcome, send a file) and submit them for approval after the onboarding. Default: 0 . Example: 1 . Example: Registered number The simplest request: a number you registered and verified in Step 1, the business name and the display name. { \"whatsapp\": \"972501234567\", \"business name\": \"Acme Inc\", \"display name\": \"Acme - Customer Service\" } Example: With business details Help a client who has no business on Facebook yet: their details are filled in for them, and a landing page is generated. business email , business id and business address help the client create their business profile on Facebook. With business name , business address and business id , the response includes the landing page we generated. reference comes back on the webhook, and basic templates submits the 3 basic Hebrew templates after the onboarding. { \"whatsapp\": \"972501234567\", \"business name\": \"Acme Inc\", \"business email\": \"info@example.com\", \"business id\": \"515123456\", \"business address\": \"Grove Street 12, San Andreas\", \"display name\": \"Acme - Customer Service\", \"reference\": \"client-4711\", \"basic templates\": 1 } Example: Coexistence Onboard a number that stays on the WhatsApp Business app: send 1 as whatsapp . No registered number is needed. { \"whatsapp\": \"1\", \"business name\": \"Acme Inc\", \"display name\": \"Acme\", \"reference\": \"client-4711\" } Example: Custom logo and message Override your default onboarding logo and welcome text for this link only. { \"whatsapp\": \"972501234567\", \"business name\": \"Acme Inc\", \"display name\": \"Acme - Customer Service\", \"onboarding logo\": \"https://www.example.com/images/onboarding-logo.png\", \"onboarding message\": \"Welcome! Connect your WhatsApp to Acme in a few clicks.\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the onboarding link has been created. Always OK . whatsapp string (one of: OK) The WhatsApp number you provided. If this is a \"coexistence\" onboarding, you will see the temporary number (starting with 97257 ) that we allocated to this onboarding until the client finishes the onboarding process and gets a final WhatsApp number. Example: 972501234567 . onboarding link string (one of: OK) The onboarding link to share with your client (the business owner), to connect the WhatsApp. Example: https://onboarding.direct/123456 . landing page string (one of: OK) The landing page we created for your customer; you can share it with them. Empty unless you provided business name , business address and business id . Example: https://landing.example.com/123456 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL means error — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token does not exist or has expired. Please generate another one with the Access Token API; 4 — The WhatsApp number is invalid, or it is not registered (verified) under your account, or its 90 days have passed, or you already created an onboarding link with that number; 14 — display name is invalid; 15 — Unknown error, please contact support. Also returned when the request body is not valid JSON; 16 — business name is invalid; 17 — business email is invalid; 18 — onboarding logo is invalid; 19 — onboarding message is invalid; 20 — reference is invalid; 21 — business id is invalid; 22 — business address is invalid. Use letters, numbers, commas and dots only (spaces and slashes are accepted too); 23 — basic templates is invalid. Example: OK The onboarding link is ready to share with your client, with the landing page we generated. { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"onboarding link\": \"https://onboarding.direct/123456\", \"landing page\": \"https://landing.example.com/123456\", \"reason\": 1 } Example: OK + coexistence A coexistence onboarding: whatsapp is a temporary number until the client finishes the onboarding. { \"status\": \"OK\", \"whatsapp\": \"972571234567\", \"onboarding link\": \"https://onboarding.direct/123457\", \"landing page\": \"\", \"reason\": 1 } Example: Reason 4 The number is not verified under your account, or it already has an onboarding link. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 14 'display name' is invalid. { \"status\": \"FAIL\", \"reason\": 14 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/get-registered-numbers",
      "title": "Get Registered numbers",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/get-registered-numbers",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/get-registered-numbers.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp"
      ],
      "language": "en",
      "description": "This API allows you to see all the available registered numbers that are waiting to be connected to an account.",
      "endpoint": {
        "method": "GET",
        "path": "/whatsapp/getRegisteredNumbers",
        "url": "https://partners.99digital.co.il/api/whatsapp/getRegisteredNumbers"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "getRegisteredNumbers",
        "whatsapp",
        "status",
        "reason",
        "list",
        "expiration",
        "onboarding_link",
        "comment",
        "error"
      ],
      "content": "GET https://partners.99digital.co.il/api/whatsapp/getRegisteredNumbers This API allows you to see all the available registered numbers that are waiting to be connected to an account. These are the numbers you registered under the Step 1: Register a number page. Once you create an account with a WhatsApp number, the number is removed from this list. This list only shows the available registered numbers that you verified with a code and that are still waiting to be connected to an account, within the 90 days. A number whose 90 days have passed is not listed: register it again. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/getRegisteredNumbers Method JSON via GET Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the View verified numbers page permission (Verified Numbers). Body Nothing — leave it empty. Response { \"status\": \"OK\", \"reason\": 1, \"list\": [ { \"whatsapp\": \"972501234567\", \"expiration\": 1739874663, \"onboarding link\": \"https://onboarding.direct/123456\", \"comment\": \"Reserved number for client A\" }, { \"whatsapp\": \"972551122334\", \"expiration\": 1739874664, \"onboarding link\": null, \"comment\": \"\" } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. list An array of the registered numbers — see the table below. Empty when there are none. reason The status explanation — see the table below. Each item of list : Name Explanation whatsapp The registered WhatsApp number. expiration The expiration time (Unix time, in seconds): create the WhatsApp account with this number before then. onboarding link If there is an onboarding link connected to this number (created with Step 2: Onboarding), it shows here. Otherwise, it shows null . comment The comment you wrote when registering the number. Empty if you didn't write one. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Unknown error, please try again later. 13 You need to use the GET method. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . list array of object (one of: OK) The registered numbers. Empty when there are none. list[].whatsapp string (one of: OK) The registered WhatsApp number. Example: 972501234567 . list[].expiration integer (one of: OK) The expiration time (Unix time, in seconds): create the WhatsApp account with this number before then. Example: 1739874663 . list[].onboarding link string \\ null (one of: OK) If there is an onboarding link connected to this number (created with Step 2: Onboarding), it shows here. Otherwise, null. Example: https://onboarding.direct/123456 . list[].comment string (one of: OK) The comment you wrote when registering the number. Empty if you didn't write one. Example: Reserved number for client A . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Unknown error, please try again later; 13 — You need to use the GET method. Example: OK Two registered numbers — the first already has an onboarding link. { \"status\": \"OK\", \"reason\": 1, \"list\": [ { \"whatsapp\": \"972501234567\", \"expiration\": 1739874663, \"onboarding link\": \"https://onboarding.direct/123456\", \"comment\": \"Reserved number for client A\" }, { \"whatsapp\": \"972551122334\", \"expiration\": 1739874664, \"onboarding link\": null, \"comment\": \"\" } ] } Example: Reason 3 The access token is wrong or expired. { \"status\": \"FAIL\", \"reason\": 3 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/get-whats-app",
      "title": "Get WhatsApp Numbers",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/get-whatsapp-numbers",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/get-whatsapp-numbers.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp"
      ],
      "language": "en",
      "description": "Get WhatsApp Numbers allows you to view all the WhatsApp numbers you have added to the system that finished the onboarding process.",
      "endpoint": {
        "method": "GET",
        "path": "/whatsapp/getWhatsApp",
        "url": "https://partners.99digital.co.il/api/whatsapp/getWhatsApp"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "getWhatsApp",
        "whatsapp",
        "status",
        "reason",
        "totalWhatsApp",
        "totalConversationsThisMonth",
        "totalMarketingThisMonth",
        "totalServiceThisMonth",
        "totalIncomingThisMonth",
        "totalOutgoingThisMonth",
        "list",
        "create_time",
        "apiKey",
        "display_name",
        "business_name",
        "isOnline",
        "onlineAccount",
        "onlineInbox",
        "onlineServer",
        "coexistence",
        "conversationsThisMonth",
        "marketingThisMonth",
        "serviceThisMonth",
        "incomingThisMonth",
        "outgoingThisMonth",
        "error"
      ],
      "content": "GET https://partners.99digital.co.il/api/whatsapp/getWhatsApp Get WhatsApp Numbers allows you to view all the WhatsApp numbers you have added to the system that finished the onboarding process. For each number you get its API key for the WhatsApp API, its connection to our online omnichannel platform, and the conversations it generated in the current month; the totals sum the conversations of all your numbers. For earlier months, use Get Conversations Statistics. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/getWhatsApp Method JSON via GET Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the See the WhatsApp accounts page permission (WhatsApp Accounts). Body Nothing — leave it empty. Response { \"status\": \"OK\", \"reason\": 1, \"totalWhatsApp\": 2, \"totalConversationsThisMonth\": 10, \"totalMarketingThisMonth\": 4, \"totalServiceThisMonth\": 5, \"totalIncomingThisMonth\": 1, \"totalOutgoingThisMonth\": 120, \"list\": [ { \"create time\": 1735811185, \"whatsapp\": \"972501234567\", \"apiKey\": \"a1b2c3-d4e5f6-a7b8c9-d0e1f2-a3b4c5\", \"display name\": \"Acme - Customer Service\", \"business name\": \"Acme Inc\", \"status\": 3, \"isOnline\": 1, \"onlineAccount\": 1, \"onlineInbox\": 2, \"onlineServer\": \"online\", \"coexistence\": 0, \"conversationsThisMonth\": 6, \"marketingThisMonth\": 3, \"serviceThisMonth\": 3, \"incomingThisMonth\": 0, \"outgoingThisMonth\": 80 }, { \"create time\": 1735811185, \"whatsapp\": \"972507654321\", \"apiKey\": \"f6e5d4-c3b2a1-f0e9d8-c7b6a5-f4e3d2\", \"display name\": \"Pizza Place\", \"business name\": \"Pizza Place Ltd\", \"status\": 3, \"isOnline\": 0, \"onlineAccount\": 0, \"onlineInbox\": 0, \"onlineServer\": \"noonline\", \"coexistence\": 1, \"conversationsThisMonth\": 4, \"marketingThisMonth\": 1, \"serviceThisMonth\": 2, \"incomingThisMonth\": 1, \"outgoingThisMonth\": 40 } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. totalWhatsApp The total number of WhatsApp accounts you manage. totalConversationsThisMonth The total number of conversations that all your WhatsApp numbers generated in the current month. totalMarketingThisMonth The total number of marketing conversations that all your WhatsApp numbers generated in the current month. totalServiceThisMonth The total number of service conversations that all your WhatsApp numbers generated in the current month. totalIncomingThisMonth The total number of incoming conversations that all your WhatsApp numbers generated in the current month. totalOutgoingThisMonth The total number of outgoing messages that all your WhatsApp numbers sent in the current month. list Your WhatsApp numbers — see the table below. Empty when there are none. reason The status explanation — see the table below. Each item of list : Name Explanation create time The Unix time (in seconds) when this account was created. whatsapp The WhatsApp number. apiKey The API key of the service, to use on the WhatsApp API (WhatsApp V2) endpoints. display name The display name of the WhatsApp number. business name The business name that owns the WhatsApp number. status The account's status, as the partners dashboard shows it: 3 — Active, 8 — Waiting, 1 — Onboarding, 0 — Inactive, 10 — Blocked, 11 — Limited, 12 — Spam. Any other value shows as Unknown. isOnline If the WhatsApp number is connected to our online omnichannel platform, this is 1. Otherwise, it is 0. onlineAccount If isOnline is 1, here you see the account number that the WhatsApp is connected to. Otherwise, 0. onlineInbox If isOnline is 1, here you see the inbox number that the WhatsApp is connected to. Otherwise, 0. onlineServer If isOnline is 1, here you see the server subdomain where this WhatsApp inbox is located. Otherwise, it is empty or noonline . coexistence If this account is connected with the coexistence feature, it shows 1. For a regular account, it shows 0. conversationsThisMonth The total number of conversations that this WhatsApp number generated in the current month. marketingThisMonth The total number of marketing conversations that this WhatsApp number generated in the current month. serviceThisMonth The total number of service conversations that this WhatsApp number generated in the current month. incomingThisMonth The total number of incoming conversations that this WhatsApp number generated in the current month. outgoingThisMonth The total number of outgoing messages that this WhatsApp number sent in the current month. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Unknown error, please try again later. 13 You need to use the GET method. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . totalWhatsApp integer (one of: OK) The total number of WhatsApp accounts you manage. Example: 2 . totalConversationsThisMonth integer (one of: OK) The total number of conversations that all your WhatsApp numbers generated in the current month. Example: 10 . totalMarketingThisMonth integer (one of: OK) The total number of marketing conversations that all your WhatsApp numbers generated in the current month. Example: 4 . totalServiceThisMonth integer (one of: OK) The total number of service conversations that all your WhatsApp numbers generated in the current month. Example: 5 . totalIncomingThisMonth integer (one of: OK) The total number of incoming conversations that all your WhatsApp numbers generated in the current month. Example: 1 . totalOutgoingThisMonth integer (one of: OK) The total number of outgoing messages that all your WhatsApp numbers sent in the current month. Example: 120 . list array of object (one of: OK) Your WhatsApp numbers. Empty when there are none. list[].create time integer (one of: OK) The time this account was created (Unix time, in seconds). Example: 1735811185 . list[].whatsapp string (one of: OK) The WhatsApp number. Example: 972501234567 . list[].apiKey string (one of: OK) The API key of this number, to use with the WhatsApp API (WhatsApp V2 endpoints). Example: a1b2c3-d4e5f6-a7b8c9-d0e1f2-a3b4c5 . list[].display name string (one of: OK) The display name of the WhatsApp number. Example: Acme - Customer Service . list[].business name string (one of: OK) The business name that owns the WhatsApp number. Example: Acme Inc . list[].status integer (one of: OK) The account's status, as the partners dashboard shows it: 3 — Active, 8 — Waiting, 1 — Onboarding, 0 — Inactive, 10 — Blocked, 11 — Limited, 12 — Spam. Any other value shows as Unknown. Example: 3 . list[].isOnline integer (one of: OK) Whether the WhatsApp number is connected to our online omni-channel platform. One of: 0 — Not connected; 1 — Connected — see onlineAccount , onlineInbox and onlineServer . Example: 1 . list[].onlineAccount integer (one of: OK) If isOnline is 1, the account number that the WhatsApp is connected to. Otherwise, 0. Example: 1 . list[].onlineInbox integer (one of: OK) If isOnline is 1, the inbox number that the WhatsApp is connected to. Otherwise, 0. Example: 2 . list[].onlineServer string (one of: OK) If isOnline is 1, the server subdomain where this WhatsApp inbox is located. Otherwise, empty or noonline . Example: online . list[].coexistence integer (one of: OK) Whether this account is connected with the coexistence feature. One of: 0 — A regular account; 1 — A coexistence account. Example: 0 . list[].conversationsThisMonth integer (one of: OK) The total number of conversations that this WhatsApp number generated in the current month. Example: 6 . list[].marketingThisMonth integer (one of: OK) The total number of marketing conversations that this WhatsApp number generated in the current month. Example: 3 . list[].serviceThisMonth integer (one of: OK) The total number of service conversations that this WhatsApp number generated in the current month. Example: 3 . list[].incomingThisMonth integer (one of: OK) The total number of incoming conversations that this WhatsApp number generated in the current month. Example: 0 . list[].outgoingThisMonth integer (one of: OK) The total number of outgoing messages that this WhatsApp number sent in the current month. Example: 80 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Unknown error, please try again later; 13 — You need to use the GET method. Example: OK Two WhatsApp numbers — the first is connected to the online platform, the second is a coexistence account. { \"status\": \"OK\", \"reason\": 1, \"totalWhatsApp\": 2, \"totalConversationsThisMonth\": 10, \"totalMarketingThisMonth\": 4, \"totalServiceThisMonth\": 5, \"totalIncomingThisMonth\": 1, \"totalOutgoingThisMonth\": 120, \"list\": [ { \"create time\": 1735811185, \"whatsapp\": \"972501234567\", \"apiKey\": \"a1b2c3-d4e5f6-a7b8c9-d0e1f2-a3b4c5\", \"display name\": \"Acme - Customer Service\", \"business name\": \"Acme Inc\", \"status\": 3, \"isOnline\": 1, \"onlineAccount\": 1, \"onlineInbox\": 2, \"onlineServer\": \"online\", \"coexistence\": 0, \"conversationsThisMonth\": 6, \"marketingThisMonth\": 3, \"serviceThisMonth\": 3, \"incomingThisMonth\": 0, \"outgoingThisMonth\": 80 }, { \"create time\": 1735811185, \"whatsapp\": \"972507654321\", \"apiKey\": \"f6e5d4-c3b2a1-f0e9d8-c7b6a5-f4e3d2\", \"display name\": \"Pizza Place\", \"business name\": \"Pizza Place Ltd\", \"status\": 3, \"isOnline\": 0, \"onlineAccount\": 0, \"onlineInbox\": 0, \"onlineServer\": \"noonline\", \"coexistence\": 1, \"conversationsThisMonth\": 4, \"marketingThisMonth\": 1, \"serviceThisMonth\": 2, \"incomingThisMonth\": 1, \"outgoingThisMonth\": 40 } ] } Example: Reason 3 The access token is wrong or expired. { \"status\": \"FAIL\", \"reason\": 3 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/delete-whats-app",
      "title": "Delete WhatsApp Account",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/delete-whatsapp-account",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/delete-whatsapp-account.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp"
      ],
      "language": "en",
      "description": "Delete WhatsApp Account allows you to send a cancellation request for the WhatsApp numbers you have added through the Partner program.",
      "endpoint": {
        "method": "DELETE",
        "path": "/whatsapp/deleteWhatsApp",
        "url": "https://partners.99digital.co.il/api/whatsapp/deleteWhatsApp"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 27",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "deleteWhatsApp",
        "whatsapp",
        "status",
        "reason",
        "error"
      ],
      "content": "DELETE https://partners.99digital.co.il/api/whatsapp/deleteWhatsApp Delete WhatsApp Account allows you to send a cancellation request for the WhatsApp numbers you have added through the Partner program. This operation is automatic. Here is what happens once you send this request: The WhatsApp number will be canceled and removed immediately. You won't receive any incoming messages, and won't be able to send outgoing messages from it. You will lose all the message history, files, contacts and statistics about this number, including the conversations counter. The number will be free to register again, either by API or with the WhatsApp mobile app. This operation is irreversible! Make sure this is really what you want. Your webhook also gets a whatsapp event with whatsapp extra info 4: the WhatsApp account has been deleted. To remove an onboarding link that the client hasn't finished, use Delete Onboarding account instead. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/deleteWhatsApp Method JSON via DELETE Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Delete WhatsApp account permission (WhatsApp Accounts). Body Parameter Description / Example Remarks whatsapp The WhatsApp number you wish to delete. Use the country code and the number, digits only, without + . For example: 972501234567 Response { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the WhatsApp account has been deleted. \"FAIL\" means error. whatsapp The WhatsApp number you provided. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 The WhatsApp number is empty or wrong. Also returned when the request body is not valid JSON, and on an unknown error — please try again later. 13 You need to use the DELETE method. 27 The WhatsApp number does not exist under your account. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description whatsapp string Yes The WhatsApp number you wish to delete. Use the country code and the number, digits only, without + . For example: 972501234567 . The number must exist under your account (reason 27). This operation is irreversible. Max length: 20. Pattern: ^[0-9]{1,20}$ . Example: 972501234567 . Example (generated from the schema) { \"whatsapp\": \"972501234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The WhatsApp account has been deleted. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . whatsapp string (one of: OK) The WhatsApp number you provided. Example: 972501234567 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — The WhatsApp number is empty or wrong. Also returned when the request body is not valid JSON, and on an unknown error — please try again later; 13 — You need to use the DELETE method; 27 — The WhatsApp number does not exist under your account. Example: OK The WhatsApp account has been deleted. { \"status\": \"OK\", \"reason\": 1, \"whatsapp\": \"972501234567\" } Example: Reason 27 The WhatsApp number does not exist under your account. { \"status\": \"FAIL\", \"reason\": 27 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/whatsapp-get-accounts",
      "title": "Get Onboarding List",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/get-onboarding-list",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/get-onboarding-list.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp"
      ],
      "language": "en",
      "description": "This API allows you to see all the onboarding accounts that you have created and their status.",
      "endpoint": {
        "method": "GET",
        "path": "/whatsapp/getAccounts",
        "url": "https://partners.99digital.co.il/api/whatsapp/getAccounts"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "whatsappGetAccounts",
        "whatsapp",
        "getAccounts",
        "status",
        "reason",
        "list",
        "create_time",
        "coexistence",
        "business_name",
        "business_email",
        "business_id",
        "business_address",
        "landing_page",
        "onboarding_link",
        "display_name",
        "reference",
        "error"
      ],
      "content": "GET https://partners.99digital.co.il/api/whatsapp/getAccounts This API allows you to see all the onboarding accounts that you have created and their status. These are the onboarding links you created with Step 2: Onboarding, newest first. You can remove a link that wasn't finished with Delete Onboarding account. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/getAccounts Method JSON via GET Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the View onboarding links page permission (Onboarding Links). Body Nothing — leave it empty. Response { \"status\": \"OK\", \"reason\": 1, \"list\": [ { \"create time\": 1739874663, \"whatsapp\": \"972501234567\", \"coexistence\": 0, \"business name\": \"Acme Inc\", \"business email\": \"john@example.com\", \"business id\": \"1234567\", \"business address\": \"Grove Street, San Andreas\", \"landing page\": \"https://landing.example.com/44124\", \"onboarding link\": \"https://onboarding.direct/6235\", \"display name\": \"Acme\", \"reference\": \"123123\", \"status\": 1 } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. list Your onboarding accounts, newest first — see the table below. Empty when there are none. reason The status explanation — see the table below. Each item of list : Name Explanation create time The Unix timestamp (in seconds) when the account was created. whatsapp The WhatsApp number related to this onboarding account. In case the status value is 0 and the coexistence value is 1, this whatsapp parameter shows a temporary number until the client finishes the onboarding. The number you see starts with 97257… . Once the client finishes the onboarding ( status 1), it shows the real number. coexistence 0 — this onboarding link is not coexistence. 1 — this onboarding link is coexistence. business name The business name that was provided by you. business email The business email that was provided by you. Empty if you didn't provide one. business id The business ID that was provided by you. Empty if you didn't provide one. business address The business address that was provided by you. Empty if you didn't provide one. landing page The landing page we generated for your client. It can be used inside Facebook to create the WhatsApp onboarding, in case your client does not have any website or landing page for their business. Empty if no landing page was generated. onboarding link The onboarding link you should share with your client, for them to set up their WhatsApp account. display name The display name that will be used once your client finishes the onboarding process. reference The reference that was provided by you. Empty if you didn't provide one. status 0 — the client did not finish the onboarding process. 1 — the onboarding process was finished. Important note: you can't remove accounts whose status is 1. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Unknown error, please try again later. 13 You need to use the GET method. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . list array of object (one of: OK) Your onboarding accounts, newest first. Empty when there are none. list[].create time integer (one of: OK) The time the onboarding account was created (Unix time, in seconds). Example: 1739874663 . list[].whatsapp string (one of: OK) The WhatsApp number related to this onboarding account. If status is 0 and coexistence is 1, this is a temporary number (starting with 97257 ) until the client finishes the onboarding. Once the client finishes the onboarding ( status 1), it shows the real number. Example: 972501234567 . list[].coexistence integer (one of: OK) Whether this onboarding link is a coexistence onboarding. One of: 0 — This onboarding link is not coexistence; 1 — This onboarding link is coexistence. Example: 0 . list[].business name string (one of: OK) The business name that you provided. Example: Acme Inc . list[].business email string (one of: OK) The business email that you provided. Empty if you didn't provide one. Example: john@example.com . list[].business id string (one of: OK) The business ID that you provided. Empty if you didn't provide one. Example: 1234567 . list[].business address string (one of: OK) The business address that you provided. Empty if you didn't provide one. Example: Grove Street, San Andreas . list[].landing page string (one of: OK) The landing page we generated for your client. It can be used inside Facebook to create the WhatsApp onboarding, in case your client doesn't have any website or landing page for their business. Empty if no landing page was generated. Example: https://landing.example.com/44124 . list[].onboarding link string (one of: OK) The onboarding link you should share with your client, for them to set up their WhatsApp account. Example: https://onboarding.direct/6235 . list[].display name string (one of: OK) The display name that will be used once your client finishes the onboarding process. Example: Acme . list[].reference string (one of: OK) The reference that you provided. Empty if you didn't provide one. Example: 123123 . list[].status integer (one of: OK) Whether the client has finished the onboarding. Important: you can't remove an onboarding account whose status is 1. One of: 0 — The client did not finish the onboarding process; 1 — The onboarding process was finished. Example: 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Unknown error, please try again later; 13 — You need to use the GET method. Example: OK Two onboarding accounts — a coexistence link the client hasn't finished yet, and a finished one. { \"status\": \"OK\", \"reason\": 1, \"list\": [ { \"create time\": 1739874700, \"whatsapp\": \"972571234567\", \"coexistence\": 1, \"business name\": \"Pizza Place Ltd\", \"business email\": \"\", \"business id\": \"\", \"business address\": \"\", \"landing page\": \"\", \"onboarding link\": \"https://onboarding.direct/6236\", \"display name\": \"Pizza Place\", \"reference\": \"123124\", \"status\": 0 }, { \"create time\": 1739874663, \"whatsapp\": \"972501234567\", \"coexistence\": 0, \"business name\": \"Acme Inc\", \"business email\": \"john@example.com\", \"business id\": \"1234567\", \"business address\": \"Grove Street, San Andreas\", \"landing page\": \"https://landing.example.com/44124\", \"onboarding link\": \"https://onboarding.direct/6235\", \"display name\": \"Acme\", \"reference\": \"123123\", \"status\": 1 } ] } Example: Reason 3 The access token is wrong or expired. { \"status\": \"FAIL\", \"reason\": 3 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/whatsapp-delete-account",
      "title": "Delete Onboarding account",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/delete-onboarding-account",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/delete-onboarding-account.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp"
      ],
      "language": "en",
      "description": "Delete onboarding account allows you to remove an onboarding link that you don't need anymore.",
      "endpoint": {
        "method": "DELETE",
        "path": "/whatsapp/deleteAccount",
        "url": "https://partners.99digital.co.il/api/whatsapp/deleteAccount"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 25",
        "Example: Reason 26",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "whatsappDeleteAccount",
        "whatsapp",
        "deleteAccount",
        "status",
        "reason",
        "error"
      ],
      "content": "DELETE https://partners.99digital.co.il/api/whatsapp/deleteAccount Delete onboarding account allows you to remove an onboarding link that you don't need anymore. Important remarks After sending a request to delete the account, the link will be removed and won't be available anymore. This step is irreversible. You can only remove a link that has not finished the onboarding process (in the Get Onboarding List API, the link's status must be 0). After deleting an account, the WhatsApp number will be released for you to create a new onboarding link with that number (Step 2: Onboarding). To delete a WhatsApp account that finished the onboarding, use Delete WhatsApp Account instead. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/deleteAccount Method JSON via DELETE Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Delete pending onboarding link permission (Onboarding Links). Body Parameter Description / Example Remarks whatsapp The WhatsApp number that was associated with this onboarding link, as whatsapp shows it in Get Onboarding List (for a coexistence link, the temporary number). Use the country code and the number, without + . For example: 972501234567 Response { \"status\": \"OK\", \"whatsapp\": \"972501234567\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the onboarding link has been deleted. \"FAIL\" means error. whatsapp The WhatsApp number you provided. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 The WhatsApp number is empty or wrong. Also returned when the request body is not valid JSON, and on an unknown error — please try again later. 13 You need to use the DELETE method. 25 You can't remove an onboarding account that already finished the onboarding. 26 The onboarding account was not found (under your account). Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description whatsapp string Yes The WhatsApp number that was associated with this onboarding link, as whatsapp shows it in Get Onboarding List (for a coexistence link, the temporary number). Country code and number, digits only, without + . For example: 972501234567 . Max length: 20. Pattern: ^[0-9]{1,20}$ . Example: 972501234567 . Example (generated from the schema) { \"whatsapp\": \"972501234567\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The onboarding link has been deleted. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . whatsapp string (one of: OK) The WhatsApp number you provided. Example: 972501234567 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — The WhatsApp number is empty or wrong. Also returned when the request body is not valid JSON, and on an unknown error — please try again later; 13 — You need to use the DELETE method; 25 — You can't remove an onboarding account that already finished the onboarding; 26 — The onboarding account was not found under your account. Example: OK The onboarding link has been deleted. { \"status\": \"OK\", \"reason\": 1, \"whatsapp\": \"972501234567\" } Example: Reason 25 The client already finished this onboarding, so it can't be removed. { \"status\": \"FAIL\", \"reason\": 25 } Example: Reason 26 The onboarding account was not found. { \"status\": \"FAIL\", \"reason\": 26 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/get-conversations-statistics",
      "title": "Get Conversations Statistics",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/get-conversations-statistics",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/get-conversations-statistics.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp"
      ],
      "language": "en",
      "description": "Get Conversations Statistics allows you to see all the conversations your WhatsApp numbers had during a period of months.",
      "endpoint": {
        "method": "GET",
        "path": "/whatsapp/getConversationsStatistics",
        "url": "https://partners.99digital.co.il/api/whatsapp/getConversationsStatistics"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK + whatsapp",
        "Example: Reason 28",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "getConversationsStatistics",
        "whatsapp",
        "start_date",
        "end_date",
        "status",
        "reason",
        "totalWhatsApp",
        "list",
        "monthYear",
        "totalConversations",
        "totalMarketing",
        "totalService",
        "totalIncoming",
        "totalOutgoing",
        "error"
      ],
      "content": "GET https://partners.99digital.co.il/api/whatsapp/getConversationsStatistics Get Conversations Statistics allows you to see all the conversations your WhatsApp numbers had during a period of months. You get one entry per month, newest first, with the conversations of all your WhatsApp numbers together — or of one number, with whatsapp . The current month is included when it is in the range, with its conversations so far. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/getConversationsStatistics Method JSON via GET Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Access WhatsApp usage page permission (WhatsApp Accounts). Body With GET, send the parameters as query parameters: GET /whatsapp/getConversationsStatistics?start date=032025&end date=052025 . The endpoint also accepts POST with the same fields in a JSON body, for example {\"start date\": \"032025\", \"end date\": \"052025\"} . Parameter Description / Example Remarks start date The starting time to get the data, in mmyyyy format. For example, 032025 for all the conversations from March 2025. This is not mandatory. If you leave it empty, no starting date is considered. end date The ending time to get the data, in mmyyyy format. For example, 052025 for all the conversations until May 2025. This is not mandatory. If you leave it empty, no ending date is considered. whatsapp Filter by WhatsApp number: the country code and the number, digits only. This is not mandatory. If you leave it empty, you get all of your WhatsApp numbers. A number that isn't yours returns an empty list. We started collecting data in December 2024 ( 122024 ), so there is no data before this month. Response { \"status\": \"OK\", \"reason\": 1, \"totalWhatsApp\": 2, \"whatsapp\": null, \"list\": [ { \"monthYear\": \"012025\", \"totalConversations\": 12530, \"totalMarketing\": 10200, \"totalService\": 1000, \"totalIncoming\": 1330, \"totalOutgoing\": 900 }, { \"monthYear\": \"122024\", \"totalConversations\": 154320, \"totalMarketing\": 72063, \"totalService\": 12650, \"totalIncoming\": 69607, \"totalOutgoing\": 15400 } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. totalWhatsApp The total number of WhatsApp accounts you manage. This shows 1 in case you filter by WhatsApp number (or 0 if the number isn't yours). whatsapp In case you filter by WhatsApp number, this shows the number. In case you don't filter by WhatsApp number, this shows null . list One entry per month, newest first — see the table below. Empty when there is no data. reason The status explanation — see the table below. Each item of list : Name Explanation monthYear The month, in mmyyyy format. totalConversations The total number of conversations in that month (this includes marketing, service and incoming, all together). totalMarketing The total number of marketing conversations in that month. totalService The total number of service conversations in that month. totalIncoming The total number of incoming conversations in that month. totalOutgoing The total number of outgoing messages in that month. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). Also returned when whatsapp is not digits only. 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Unknown error, please try again later. 28 Either start date or end date is in the wrong format: it must be mmyyyy , with a month from 01 to 12 and a year from 2020 to 2100. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Parameters Name In Type Required Description start date query string No The starting time to get the data, in mmyyyy format: for example 032025 for all the conversations from March 2025. This is not mandatory: if you leave it empty, no starting date is considered. We started collecting data in December 2024 ( 122024 ), so there is no data before this month. Pattern: ^(0[1-9]\\ 1[0-2])[0-9]{4}$ . Example: 032025 . end date query string No The ending time to get the data, in mmyyyy format: for example 052025 for all the conversations until May 2025. This is not mandatory: if you leave it empty, no ending date is considered. Pattern: ^(0[1-9]\\ 1[0-2])[0-9]{4}$ . Example: 052025 . whatsapp query string No Filter by WhatsApp number: the country code and the number, digits only. This is not mandatory: if you leave it empty, you get all of your WhatsApp numbers. A number that isn't yours returns an empty list. Pattern: ^[0-9]+$ . Example: 972501234567 . Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . totalWhatsApp integer (one of: OK) The total number of WhatsApp accounts you manage. When you filter by WhatsApp number, 1 (or 0 if the number isn't yours). Example: 2 . whatsapp string \\ null (one of: OK) When you filter by WhatsApp number, the number. When you don't, null. Example: null . list array of object (one of: OK) One entry per month, newest first. Empty when there is no data. list[].monthYear string (one of: OK) The month, in mmyyyy format. Example: 012025 . list[].totalConversations integer (one of: OK) The total number of conversations in that month (marketing, service and incoming all together). Example: 12530 . list[].totalMarketing integer (one of: OK) The total number of marketing conversations in that month. Example: 10200 . list[].totalService integer (one of: OK) The total number of service conversations in that month. Example: 1000 . list[].totalIncoming integer (one of: OK) The total number of incoming conversations in that month. Example: 1330 . list[].totalOutgoing integer (one of: OK) The total number of outgoing messages in that month. Example: 900 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). Also returned when whatsapp is not digits only; 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Unknown error, please try again later; 28 — Either 'start date' or 'end date' is in the wrong format: it must be mmyyyy , with a month from 01 to 12 and a year from 2020 to 2100. Example: OK All your WhatsApp numbers, month by month. { \"status\": \"OK\", \"reason\": 1, \"totalWhatsApp\": 2, \"whatsapp\": null, \"list\": [ { \"monthYear\": \"012025\", \"totalConversations\": 12530, \"totalMarketing\": 10200, \"totalService\": 1000, \"totalIncoming\": 1330, \"totalOutgoing\": 900 }, { \"monthYear\": \"122024\", \"totalConversations\": 154320, \"totalMarketing\": 72063, \"totalService\": 12650, \"totalIncoming\": 69607, \"totalOutgoing\": 15400 } ] } Example: OK + whatsapp Filtered by one WhatsApp number. { \"status\": \"OK\", \"reason\": 1, \"totalWhatsApp\": 1, \"whatsapp\": \"972501234567\", \"list\": [ { \"monthYear\": \"012025\", \"totalConversations\": 230, \"totalMarketing\": 150, \"totalService\": 40, \"totalIncoming\": 40, \"totalOutgoing\": 310 } ] } Example: Reason 28 'start date' or 'end date' is in the wrong format. { \"status\": \"FAIL\", \"reason\": 28 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/get-stores",
      "title": "Get Stores list",
      "url": "https://docs.99digital.co.il/partners-api/whatsapp/get-stores-list",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/whatsapp/get-stores-list.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "WhatsApp"
      ],
      "language": "en",
      "description": "This API allows you to see all the WhatsApp stores you created.",
      "endpoint": {
        "method": "GET",
        "path": "/whatsapp/getStores",
        "url": "https://partners.99digital.co.il/api/whatsapp/getStores"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "getStores",
        "whatsapp",
        "status",
        "reason",
        "totalStores",
        "list",
        "business_name",
        "token",
        "reference",
        "onboarding_link",
        "site_url",
        "created_at",
        "error"
      ],
      "content": "GET https://partners.99digital.co.il/api/whatsapp/getStores This API allows you to see all the WhatsApp stores you created. The stores are listed newest first, each with its onboarding status. Settings Setting Value URL https://partners.99digital.co.il/api/whatsapp/getStores Method JSON via GET Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the View stores page permission (WhatsApp Stores). Body Nothing — leave it empty. Response { \"status\": \"OK\", \"reason\": 1, \"totalStores\": 1, \"list\": [ { \"whatsapp\": \"972501234567\", \"business name\": \"My Store\", \"token\": \"aB3dE5fG7hJ9kL2mN4pQ6rS8tU0vW1\", \"reference\": \"ref123\", \"status\": 1, \"onboarding link\": \"https://onboarding.direct/abc123\", \"site url\": \"https://mystore.example.com\", \"created at\": \"1699999999\" } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. totalStores The number of stores in list . list Your WhatsApp stores, newest first — see the table below. Empty when there are none. reason The status explanation — see the table below. Each item of list : Name Explanation created at The Unix timestamp (in seconds) when the store was created — as a string. whatsapp The WhatsApp number related to this store. token The store token to share with the client. onboarding link The onboarding link you should share with your client, for them to set up their WhatsApp account. site url The store website of the client. Empty when there is none. business name The client's business name. reference The reference that was provided by you. Empty if you didn't provide one. status 0 — the client did not finish the store onboarding process. 1 — the store onboarding process was finished. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Unknown error, please try again later. 13 You need to use the GET method. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . totalStores integer (one of: OK) The number of stores in list . Example: 1 . list array of object (one of: OK) Your WhatsApp stores, newest first. Empty when there are none. list[].whatsapp string (one of: OK) The WhatsApp number related to this store. Example: 972501234567 . list[].business name string (one of: OK) The client's business name. Example: My Store . list[].token string (one of: OK) The store token to share with the client. Example: aB3dE5fG7hJ9kL2mN4pQ6rS8tU0vW1 . list[].reference string (one of: OK) The reference that you provided. Empty if you didn't provide one. Example: ref123 . list[].status integer (one of: OK) Whether the client has finished the store onboarding. One of: 0 — The client did not finish the store onboarding process; 1 — The store onboarding process was finished. Example: 1 . list[].onboarding link string (one of: OK) The onboarding link you should share with your client, for them to set up their WhatsApp account. Example: https://onboarding.direct/abc123 . list[].site url string (one of: OK) The store website of the client. Empty when there is none. Example: https://mystore.example.com . list[].created at string (one of: OK) The time the store was created (Unix time, in seconds) — as a string. Example: 1699999999 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Unknown error, please try again later; 13 — You need to use the GET method. Example: OK One store, whose onboarding the client has finished. { \"status\": \"OK\", \"reason\": 1, \"totalStores\": 1, \"list\": [ { \"whatsapp\": \"972501234567\", \"business name\": \"My Store\", \"token\": \"aB3dE5fG7hJ9kL2mN4pQ6rS8tU0vW1\", \"reference\": \"ref123\", \"status\": 1, \"onboarding link\": \"https://onboarding.direct/abc123\", \"site url\": \"https://mystore.example.com\", \"created at\": \"1699999999\" } ] } Example: Reason 3 The access token is wrong or expired. { \"status\": \"FAIL\", \"reason\": 3 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/facebook/start-here",
      "title": "Start Here!",
      "url": "https://docs.99digital.co.il/partners-api/facebook/start-here",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/facebook/start-here.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Facebook"
      ],
      "language": "en",
      "description": "How Facebook and Instagram onboarding works for partners — the four connection types, and the steps from an onboarding link to the webhook.",
      "headings": [
        "What is the Facebook integration?",
        "Creating onboarding",
        "The steps"
      ],
      "keywords": [
        "Facebook onboarding",
        "Instagram onboarding",
        "Facebook Messenger",
        "Instagram Messenger",
        "Facebook posts and comments",
        "Instagram comments",
        "onboarding link"
      ],
      "content": "Creating a new Facebook integration starts here. Please read carefully the following steps on how the onboarding works. Endpoint What it does Create onboarding Link Create an onboarding link that connects one Facebook or Instagram type. What is the Facebook integration? The Facebook integration allows you to connect 4 types of inboxes, to use with our API or with an online omnichannel connection. The number of each type is the type you send to Create onboarding Link: Facebook Messenger — allows people to contact you through Messenger with your business page. Instagram Messenger — allows people to contact you through Instagram Messenger with your Instagram page. Facebook Post & Comment — allows you to write new posts, and to read and write new comments on your posts. Instagram Post & Comment — allows you to create Instagram posts, and to read and write comments and mentions. Those 4 types of API connections are similar, but they are separated in order to allow you an easy connection to the real usage you need. Creating onboarding Onboarding to any type of this API is done separately, for your needs. After the client finishes the onboarding, you can start using it: getting webhooks for incoming data, and using the API to send out data. The steps Create the onboarding link using our API (Create onboarding Link), or from the partners UI directly ( Facebook & Instagram → Onboarding in the partners dashboard). Open the onboarding link yourself (or send it to your customer who owns the Facebook page, and the Instagram account), so they can finish the onboarding. Once the client finishes the onboarding, you will get a webhook notification about it. You can set and see the webhook information with the Settings → Webhook API."
    },
    {
      "id": "partners-api/create-onboarding",
      "title": "Create onboarding Link",
      "url": "https://docs.99digital.co.il/partners-api/facebook/create-onboarding-link",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/facebook/create-onboarding-link.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Facebook"
      ],
      "language": "en",
      "description": "Create a Facebook onboarding link.",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/createOnboarding",
        "url": "https://partners.99digital.co.il/api/facebook/createOnboarding"
      },
      "headings": [
        "Remarks",
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example: Facebook Messenger",
        "Example: With reference",
        "Example: Online inbox",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "Example: Reason 40",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "createOnboarding",
        "facebook",
        "type",
        "reference",
        "server",
        "account_id",
        "inbox_id",
        "status",
        "param",
        "onboarding_link",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/facebook/createOnboarding Create a Facebook onboarding link. Please read carefully the following steps on how the onboarding works (see also Start Here!): This API allows you to create a Facebook onboarding link. You can then send the link to your customer, or use it for your own Facebook page. Once the client opens the onboarding link and follows the Facebook onboarding process, this will create a connection to the relevant type product. After the client opens the link, this is what they will be facing: The client is asked to log in to their Facebook account. If their browser is already logged in, it will recognize it automatically. If the client doesn't have a Facebook account, the onboarding will create an account for them. The client will be asked to choose which Facebook page or Instagram page they want to connect (either to the messenger, or to manage the page directly). The client will be asked to allow the permissions to be shared. Submit: the client clicks the \"Confirm\" button and the page closes itself. The process is completed, and you can start using the API to send information, or the webhook to receive information. You will get a webhook once the client completes the process, using the partners webhook (the facebook event in Event: Facebook). You can create as many onboarding links as you need. If you need to connect all 4 types, you must create 4 onboarding links (even if the process looks similar). You don't need an Instagram account to connect a Facebook (page or Messenger). But you can't connect Instagram without having a Facebook page too. This means that the Instagram account must also have a Facebook page on hand: you don't necessarily have to connect the Facebook page during the onboarding, but you must have one, because an Instagram page is linked to a Facebook page in order to exist. Remarks Each link is https://onboarding.direct/f/ followed by its param , a unique 10-character code of letters and digits. Send your partner access token. A token created with an Online account's Account API Credentials is rejected with reason 2. Settings Setting Value URL https://partners.99digital.co.il/api/facebook/createOnboarding Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Create Facebook/Instagram onboarding links permission. Body Parameter Description / Example Maximum length Mandatory type 1 — to connect Facebook Messenger; 2 — to connect Instagram Messenger; 3 — to connect Facebook page management (posts and comments + ads leads); 4 — to connect an Instagram page (posts and comments). Must be an int (a string of digits, such as \"1\" , is accepted too). 1 Yes reference Any reference you wish to get back on the webhook. This is for your own usage. Letters, digits, underscores, spaces and hyphens ( - ) only. 50 No server Server URL (relevant for omnichannel users only). Letters, digits, underscores and . - : / only. 200 No account id Account id (relevant for Online omnichannel users only). Must be an int (a string of digits is accepted too). 18 digits No inbox id Inbox id (relevant for Online omnichannel users only). Must be an int (a string of digits is accepted too). 18 digits No Response { \"status\": \"OK\", \"param\": \"Xk7pQ2mRtA\", \"onboarding link\": \"https://onboarding.direct/f/Xk7pQ2mRtA\", \"type\": 1, \"reason\": 1 } type can be 1, 2, 3 or 4, depending on the type you chose. Response explained Parameter Description status OK or FAIL. \"OK\" means the onboarding link was created (the connection is made once the client completes the onboarding). \"FAIL\" means error. param The onboarding link's param value — the last part of onboarding link . onboarding link The onboarding link to share with your client to connect to Facebook. type The type you chose. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, try again. 20 reference is invalid — longer than 50 characters, or has characters other than letters, digits, underscores, spaces and hyphens. 40 Missing or invalid type — it must be 1, 2, 3 or 4. Also returned when the request body isn't valid JSON. 41 Invalid server name. 42 Invalid account id — digits only, up to 18 digits. 43 Invalid inbox id — digits only, up to 18 digits. 44 Contact support, wrong credentials. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description type integer Yes The type of connection the onboarding link creates. Must be an int (a string of digits, such as \"1\" , is accepted too). One of: 1 — Facebook Messenger — connect Facebook Messenger; 2 — Instagram Messenger — connect Instagram Messenger; 3 — Facebook Post & Comment — connect Facebook page management (posts and comments + ads leads); 4 — Instagram Post & Comment — connect an Instagram page (posts and comments). Example: 1 . reference string No Any reference you wish to get back on the webhook, for your own use. Letters, digits, underscores, spaces and hyphens ( - ) only. Max length: 50. Example: client-4711 . server string No Server URL — relevant for Online omnichannel users only. Letters, digits, underscores and . - : / only. Max length: 200. Example: online.99digital.co.il . account id integer No Account id — relevant for Online omnichannel users only. Must be an int: digits only, up to 18 digits (a string of digits is accepted too). Example: 1234 . inbox id integer No Inbox id — relevant for Online omnichannel users only. Must be an int: digits only, up to 18 digits (a string of digits is accepted too). Example: 5678 . Example: Facebook Messenger The simplest request — a link that connects Facebook Messenger ( type 1). { \"type\": 1 } Example: With reference An Instagram Messenger link ( type 2), with a reference you get back on the webhook. { \"type\": 2, \"reference\": \"client-4711\" } Example: Online inbox For Online omnichannel users: a Facebook Post & Comment link ( type 3) for an inbox of an Online account. { \"type\": 3, \"reference\": \"client-4711\", \"server\": \"online.99digital.co.il\", \"account id\": 1234, \"inbox id\": 5678 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the onboarding link was created. The connection is made once the client completes the onboarding. Always OK . param string (one of: OK) The onboarding link's param value — the last part of onboarding link . Example: Xk7pQ2mRtA . onboarding link string (one of: OK) The onboarding link to share with your client to connect to Facebook. Example: https://onboarding.direct/f/Xk7pQ2mRtA . type integer (one of: OK) The type you chose (1, 2, 3 or 4). Example: 1 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, try again; 20 — reference is invalid — longer than 50 characters, or has characters other than letters, digits, underscores, spaces and hyphens; 40 — Missing or invalid type — it must be 1, 2, 3 or 4. Also returned when the request body isn't valid JSON; 41 — Invalid server ; 42 — Invalid account id — digits only, up to 18 digits; 43 — Invalid inbox id — digits only, up to 18 digits; 44 — Contact support, wrong credentials. Example: OK The onboarding link was created. { \"status\": \"OK\", \"reason\": 1, \"param\": \"Xk7pQ2mRtA\", \"onboarding link\": \"https://onboarding.direct/f/Xk7pQ2mRtA\", \"type\": 1 } Example: Reason 3 The access token is wrong or expired. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 40 type is missing, or not 1, 2, 3 or 4. { \"status\": \"FAIL\", \"reason\": 40 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/create-builder",
      "title": "Create a new Builder",
      "url": "https://docs.99digital.co.il/partners-api/builder/create-a-new-builder",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/builder/create-a-new-builder.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Builder"
      ],
      "language": "en",
      "description": "Create a new builder for your customers.",
      "endpoint": {
        "method": "POST",
        "path": "/builder/createBuilder",
        "url": "https://partners.99digital.co.il/api/builder/createBuilder"
      },
      "headings": [
        "Remarks",
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example: Client name",
        "Example: With reference",
        "Example: Hebrew name",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 30",
        "Example: Reason 31",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "createBuilder",
        "builder",
        "client_name",
        "reference",
        "status",
        "builderID",
        "url",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/builder/createBuilder Create a new builder for your customers. After creating a builder, you will get the URL link for that builder. This URL can be used by your customers to log in, if you wish to share the access with them. You can always log in to that builder using the Login to a Builder API endpoint. Remarks The builderID is assigned automatically. Keep it: every other Builder endpoint takes it, and Get Builders list returns it too. When the builder is created, your partners webhook gets a builder event with builder extra info 1 and your reference (see Event: Builder). Settings Setting Value URL https://partners.99digital.co.il/api/builder/createBuilder Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Create new builder permission. Body Parameter Description / Example Maximum length Mandatory client name A client name for your reference. Letters (English, Hebrew or Arabic), digits, spaces and hyphens ( - ) only. 100 Yes reference Any reference value (text/numbers only) you wish to receive back on the webhook. This is for your use only, so you can recognize your client. Letters (English, Hebrew or Arabic), digits, spaces and hyphens ( - ) only. 50 No Response { \"status\": \"OK\", \"builderID\": 432, \"client name\": \"Mr James\", \"url\": \"https://builder5.99digital.co.il/432-xY7kQ2pLmN4rT8vWb3sZcA/\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the builder was created. \"FAIL\" means error. builderID The builderID that was automatically assigned to the builder. client name The client name you provided. url The builder URL. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the request body isn't valid JSON — try again. 13 You need to use the POST method. 20 reference is invalid — longer than 50 characters, or has characters other than letters, digits, spaces and hyphens. 30 client name is invalid — empty, longer than 100 characters, or has characters other than letters, digits, spaces and hyphens. 31 Error on creating a builder, please try again or contact support. 32 No builder ID is available for a new builder, please contact support. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description client name string Yes A client name for your reference. Letters (English, Hebrew or Arabic), digits, spaces and hyphens ( - ) only. Max length: 100. Example: Mr James . reference string No Any reference value you wish to receive back on the webhook. This is for your use only, so you can recognize your client. Letters (English, Hebrew or Arabic), digits, spaces and hyphens ( - ) only. Max length: 50. Example: client-4711 . Example: Client name The simplest request — only the client name. { \"client name\": \"Mr James\" } Example: With reference With a reference you get back on the webhook and in Get Builders list. { \"client name\": \"Mr James\", \"reference\": \"client-4711\" } Example: Hebrew name The client name can be in Hebrew or Arabic too. { \"client name\": \"המספרה של דנה\", \"reference\": \"4711\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the builder was created. Always OK . builderID integer (one of: OK) The builderID that was automatically assigned to the builder. Example: 432 . client name string (one of: OK) The client name you provided. Example: Mr James . url string (one of: OK) The builder URL. Example: https://builder5.99digital.co.il/432-xY7kQ2pLmN4rT8vWb3sZcA/ . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the request body isn't valid JSON — try again; 13 — You need to use the POST method; 20 — reference is invalid — longer than 50 characters, or has characters other than letters, digits, spaces and hyphens; 30 — client name is invalid — empty, longer than 100 characters, or has characters other than letters, digits, spaces and hyphens; 31 — Error on creating a builder, please try again or contact support; 32 — No builder ID is available for a new builder, please contact support. Example: OK The builder was created. { \"status\": \"OK\", \"reason\": 1, \"builderID\": 432, \"client name\": \"Mr James\", \"url\": \"https://builder5.99digital.co.il/432-xY7kQ2pLmN4rT8vWb3sZcA/\" } Example: Reason 30 client name is empty, too long, or has characters that aren't allowed. { \"status\": \"FAIL\", \"reason\": 30 } Example: Reason 31 Error on creating a builder, please try again or contact support. { \"status\": \"FAIL\", \"reason\": 31 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/get-builders",
      "title": "Get Builders list",
      "url": "https://docs.99digital.co.il/partners-api/builder/get-builders-list",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/builder/get-builders-list.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Builder"
      ],
      "language": "en",
      "description": "Get all Builders list.",
      "endpoint": {
        "method": "GET",
        "path": "/builder/getBuilders",
        "url": "https://partners.99digital.co.il/api/builder/getBuilders"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "getBuilders",
        "builder",
        "status",
        "totalBuilders",
        "list",
        "create_time",
        "client",
        "builderID",
        "url",
        "reference",
        "reason",
        "error"
      ],
      "content": "GET https://partners.99digital.co.il/api/builder/getBuilders Get all Builders list. The list holds all the builders you manage, ordered by creation time, newest first. Settings Setting Value URL https://partners.99digital.co.il/api/builder/getBuilders Method JSON via GET Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Access builders page permission. Body Nothing — leave it empty. The request has no parameters either. Response { \"status\": \"OK\", \"reason\": 1, \"totalBuilders\": 2, \"list\": [ { \"create time\": 1735897585, \"client\": \"My Client B\", \"builderID\": 1874, \"url\": \"https://builder5.99digital.co.il/1874-pR4tLm8QwZ2xNc7vKb5sYd/\", \"reference\": \"client-4711\" }, { \"create time\": 1735811185, \"client\": \"My Client A\", \"builderID\": 432, \"url\": \"https://builder5.99digital.co.il/432-xY7kQ2pLmN4rT8vWb3sZcA/\", \"reference\": \"\" } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. totalBuilders The total number of builder accounts you manage. list Your builders, newest first — each item is explained in the table below. reason The status explanation — see the reason table below. Each item of list : Name Explanation create time The UNIX time (in seconds) when this builder was created. client The client name you provided. builderID The builder ID that was assigned to the builder when it was created. url The URL to access the builder. reference Your reference value, from when you created the builder. Empty if you didn't set one. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, try again. 13 You need to use the GET method. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the request was successful. Always OK . totalBuilders integer (one of: OK) The total number of builder accounts you manage. Example: 2 . list array of object (one of: OK) Your builders, newest first. list[].create time integer (one of: OK) The Unix time (in seconds) when this builder was created. Example: 1735811185 . list[].client string (one of: OK) The client name you provided. Example: My Client B . list[].builderID integer (one of: OK) The builderID that was assigned to the builder when it was created. Example: 1874 . list[].url string (one of: OK) The URL to access the builder. Example: https://builder5.99digital.co.il/1874-pR4tLm8QwZ2xNc7vKb5sYd/ . list[].reference string (one of: OK) Your reference value, from when you created the builder. Empty if you didn't set one. Example: client-4711 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, try again; 13 — You need to use the GET method. Example: OK Your builders, newest first. { \"status\": \"OK\", \"reason\": 1, \"totalBuilders\": 2, \"list\": [ { \"create time\": 1735897585, \"client\": \"My Client B\", \"builderID\": 1874, \"url\": \"https://builder5.99digital.co.il/1874-pR4tLm8QwZ2xNc7vKb5sYd/\", \"reference\": \"client-4711\" }, { \"create time\": 1735811185, \"client\": \"My Client A\", \"builderID\": 432, \"url\": \"https://builder5.99digital.co.il/432-xY7kQ2pLmN4rT8vWb3sZcA/\", \"reference\": \"\" } ] } Example: Reason 3 The access token is wrong or expired. { \"status\": \"FAIL\", \"reason\": 3 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/login-builder",
      "title": "Login to a Builder",
      "url": "https://docs.99digital.co.il/partners-api/builder/login-to-a-builder",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/builder/login-to-a-builder.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Builder"
      ],
      "language": "en",
      "description": "After you create a builder, you get the builder URL to access it.",
      "endpoint": {
        "method": "POST",
        "path": "/builder/loginBuilder",
        "url": "https://partners.99digital.co.il/api/builder/loginBuilder"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 29",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "loginBuilder",
        "builder",
        "builderID",
        "status",
        "login",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/builder/loginBuilder After you create a builder, you get the builder URL to access it. Accessing the builder directly from the URL is mostly meant for your end user client to do. This will create an account for them with email, password and 2FA, so only your end user is able to access it directly from the URL. Alternatively, with this Login to a Builder endpoint, you can access any builder under your account by bypassing the login screen. This will create a temporary login link you can access from your browser, or using an iFrame, to open the builder without the need for email, password and 2FA. Important remarks After creating a login link, you must access it within 5 minutes. You can access only one builder link at a time from the same browser. If you wish to log in to more than one builder simultaneously, you must use incognito mode, or a different iFrame browser session. If a login link can't be created for the builder, the response is still OK, and login is the builder's regular URL, which opens its login screen. Every login link you create sends a builder event with builder extra info 4 to your partners webhook (see Event: Builder). Whoever opens the login link gets into the builder without a password or 2FA. Treat it like a password: open it right away, and don't log it or share it. Settings Setting Value URL https://partners.99digital.co.il/api/builder/loginBuilder Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Enter builder permission. Body Parameter Description / Example builderID The builderID you wish to log in to — from Create a new Builder or Get Builders list. Digits only (a string of digits is accepted too). Response { \"status\": \"OK\", \"builderID\": 4142, \"login\": \"https://builder5.99digital.co.il/4142-hT6wQz3LpX9mKr2vNc8sBf/…\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the builder was found, and login holds the URL to open it. \"FAIL\" means error. builderID The builderID you log in to. login The login URL for that builder. Open it within 5 minutes. If a login link couldn't be created, this is the builder's regular URL. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the request body isn't valid JSON — try again. 13 You need to use the POST method. 29 builderID is empty or wrong — not a number, or not one of your builders. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description builderID integer Yes The builderID you wish to log in to — from Create a new Builder or Get Builders list. Digits only (a string of digits is accepted too). Example: 4142 . Example (generated from the schema) { \"builderID\": 4142 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the builder was found, and login holds the URL to open it. Always OK . builderID integer (one of: OK) The builderID you log in to. Example: 4142 . login string (one of: OK) The login URL for that builder. Open it within 5 minutes. If a login link couldn't be created, this is the builder's regular URL. Example: https://builder5.99digital.co.il/4142-hT6wQz3LpX9mKr2vNc8sBf/… . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the request body isn't valid JSON — try again; 13 — You need to use the POST method; 29 — builderID is empty or wrong — not a number, or not one of your builders. Example: OK The login link was created. Open it within 5 minutes. { \"status\": \"OK\", \"reason\": 1, \"builderID\": 4142, \"login\": \"https://builder5.99digital.co.il/4142-hT6wQz3LpX9mKr2vNc8sBf/…\" } Example: Reason 29 builderID is empty, not a number, or not one of your builders. { \"status\": \"FAIL\", \"reason\": 29 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/reset-access",
      "title": "Reset user access",
      "url": "https://docs.99digital.co.il/partners-api/builder/reset-user-access",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/builder/reset-user-access.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Builder"
      ],
      "language": "en",
      "description": "Reset user access endpoint allows you to reset access to the builder, in case your client forgot the email, password or 2FA.",
      "endpoint": {
        "method": "POST",
        "path": "/builder/resetAccess",
        "url": "https://partners.99digital.co.il/api/builder/resetAccess"
      },
      "headings": [
        "Remarks",
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 29",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "resetAccess",
        "builder",
        "builderID",
        "status",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/builder/resetAccess Reset user access endpoint allows you to reset access to the builder, in case your client forgot the email, password or 2FA. When you create a builder, you have two ways to access it: either with the Login to a Builder endpoint, or directly from the URL, using an email, password and 2FA access. This Reset user access endpoint only resets the access through the URL. This reset of the user access does not delete the builder or its content. It only resets the login access, allowing you to create new login details when you access the URL of the builder after the reset. Resetting the user access will revoke the old credentials of the builder, and will sign out the user who is logged in to that builder with the old credentials. Remarks status OK means the reset was requested from the builder. The response doesn't confirm that the builder completed it. Every reset sends a builder event with builder extra info 3 to your partners webhook (see Event: Builder). Settings Setting Value URL https://partners.99digital.co.il/api/builder/resetAccess Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Reset builder access permission. Body Parameter Description / Example builderID The builderID you wish to reset — from Create a new Builder or Get Builders list. Digits only (a string of digits is accepted too). Response { \"status\": \"OK\", \"builderID\": 1234, \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the reset was requested from the builder (it doesn't confirm that the builder completed it). \"FAIL\" means error. builderID The builder ID you provided. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the request body isn't valid JSON — try again. 13 You need to use the POST method. 29 builderID is empty or wrong — not a number, or not one of your builders. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description builderID integer Yes The builderID you wish to reset — from Create a new Builder or Get Builders list. Digits only (a string of digits is accepted too). Example: 1234 . Example (generated from the schema) { \"builderID\": 1234 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the reset was requested from the builder. It doesn't confirm that the builder completed it. Always OK . builderID integer (one of: OK) The builderID you provided. Example: 1234 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the request body isn't valid JSON — try again; 13 — You need to use the POST method; 29 — builderID is empty or wrong — not a number, or not one of your builders. Example: OK The reset was requested from the builder. { \"status\": \"OK\", \"reason\": 1, \"builderID\": 1234 } Example: Reason 29 builderID is empty, not a number, or not one of your builders. { \"status\": \"FAIL\", \"reason\": 29 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/delete-builder",
      "title": "Delete a Builder",
      "url": "https://docs.99digital.co.il/partners-api/builder/delete-a-builder",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/builder/delete-a-builder.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Builder"
      ],
      "language": "en",
      "description": "Delete a builder allows you to remove a builder instance from your account and delete it completely.",
      "endpoint": {
        "method": "DELETE",
        "path": "/builder/deleteBuilder",
        "url": "https://partners.99digital.co.il/api/builder/deleteBuilder"
      },
      "headings": [
        "Remarks",
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 29",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "deleteBuilder",
        "builder",
        "builderID",
        "status",
        "client_name",
        "reference",
        "url",
        "reason",
        "error"
      ],
      "content": "DELETE https://partners.99digital.co.il/api/builder/deleteBuilder Delete a builder allows you to remove a builder instance from your account and delete it completely. The builder ID URL will be canceled and removed immediately. Any builder connections, webhooks and nodes will be removed and will stop working. All workflows, data and saved information within this builder will be removed. Make sure you back up all the JSON workflows from within the builder if you need them. Make sure there aren't any WhatsApp number webhooks or other systems that send webhooks to this builder. This operation is irreversible! Make sure this is really what you want. Remarks The request is a DELETE with a JSON body. When the builder is deleted, your partners webhook gets a builder event with builder extra info 2 (see Event: Builder). If the builder no longer exists on the builder server, it is removed from your builders list and the response is reason 29. Settings Setting Value URL https://partners.99digital.co.il/api/builder/deleteBuilder Method JSON via DELETE Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Delete builder permission. Body Parameter Description / Example Remarks builderID The builderID you wish to delete. Digits only (a string of digits is accepted too). The builderID is the ID that was assigned to you when creating the builder, and it can also be found with the Get Builders list endpoint. Response { \"status\": \"OK\", \"builderID\": 512, \"client name\": \"Mr James\", \"reference\": \"client-4711\", \"url\": \"https://builder5.99digital.co.il/512-Gm3kRt7YqW2pLx9cNv4sHd/\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the builder was deleted. \"FAIL\" means error. builderID The builderID you provided. client name The client name of the deleted builder. reference The reference of the deleted builder. Empty if you didn't set one. url The URL of the deleted builder. It no longer works. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the request body isn't valid JSON — try again. 13 You need to use the DELETE method. 29 builderID is empty or wrong — not a number, or not one of your builders — or the builder couldn't be deleted; try again or contact support. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description builderID integer Yes The builderID you wish to delete. It is the ID that was assigned to you when creating the builder, and it can also be found with the Get Builders list endpoint. Digits only (a string of digits is accepted too). Example: 512 . Example (generated from the schema) { \"builderID\": 512 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the builder was deleted. Always OK . builderID integer (one of: OK) The builderID you provided. Example: 512 . client name string (one of: OK) The client name of the deleted builder. Example: Mr James . reference string (one of: OK) The reference of the deleted builder. Empty if you didn't set one. Example: client-4711 . url string (one of: OK) The URL of the deleted builder. It no longer works. Example: https://builder5.99digital.co.il/512-Gm3kRt7YqW2pLx9cNv4sHd/ . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the request body isn't valid JSON — try again; 13 — You need to use the DELETE method; 29 — builderID is empty or wrong — not a number, or not one of your builders — or the builder couldn't be deleted; try again or contact support. Example: OK The builder was deleted. { \"status\": \"OK\", \"reason\": 1, \"builderID\": 512, \"client name\": \"Mr James\", \"reference\": \"client-4711\", \"url\": \"https://builder5.99digital.co.il/512-Gm3kRt7YqW2pLx9cNv4sHd/\" } Example: Reason 29 builderID is empty, not a number or not one of your builders, or the builder couldn't be deleted. { \"status\": \"FAIL\", \"reason\": 29 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/online-create-account",
      "title": "Create a new online account",
      "url": "https://docs.99digital.co.il/partners-api/online/create-a-new-online-account",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/create-a-new-online-account.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Create a new online omnichannel account for your customers.",
      "endpoint": {
        "method": "POST",
        "path": "/online/createAccount",
        "url": "https://partners.99digital.co.il/api/online/createAccount"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example: Basic",
        "Example: Email 2FA",
        "Example: SMS 2FA",
        "Example: Server and reference",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "Example: Reason 34",
        "Example: Reason 40",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "onlineCreateAccount",
        "online",
        "createAccount",
        "account_name",
        "agents",
        "inboxes",
        "admin_email",
        "admin_name",
        "admin_displayName",
        "admin_password",
        "admin_2fa",
        "admin_2fa_value",
        "server",
        "reference",
        "status",
        "reason",
        "account_id",
        "agent_id",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/createAccount Create a new online omnichannel account for your customers. After creating an online account, we also create your first admin account, and you can access it immediately — for example with Login to an agent and the agent id from the response. Settings Setting Value URL https://partners.99digital.co.il/api/online/createAccount Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Create new account permission. An account-scoped access token (created from the Account API Credentials of one account in your partners dashboard) can't use this endpoint: it gets reason 2. Body Parameter Description / Example Maximum length Mandatory Example account name The account (business) name that will be created. Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. 100 Yes Acme inc agents The total number of agents you allow this account to create, 1 to 9999. If you don't send it, 10 is used. 4 No (default 10) 10 inboxes The total number of inboxes you allow this account to create, 1 to 999. If you don't send it, 5 is used. 3 No (default 5) 10 admin email The admin access email that will be created as agent number 1 for this account. If it already exists under one of your accounts, see the important notice below. 50 Yes admin@example.com admin name The name of agent number 1. Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. 50 Yes Test Name admin displayName The display name of agent number 1 (the name that will appear in the online account). Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. 50 Yes Name admin password The password to create for logging in to the new admin account: a minimum length of 6 characters; at least 1 upper case letter (A-Z); at least 1 lower case letter (a-z); at least 1 special character — one of ! @ # $ % ^ & ( ) \\ + - = [ ] { } \" / . , : ; ? ' or the vertical bar. Spaces at the start or the end are removed. 50 Yes Acme!2026pass admin 2fa Whether to allow logging in to the admin account with 2FA or not. Values: 0 — no 2FA; 1 — email 2FA; 2 — SMS 2FA. The default, in case you don't send anything, is 0. 1 No 1 admin 2fa value In case you used 1 or 2 in admin 2fa , here you provide the email address (for 1) or the phone number (for 2) that gets the 2FA code before you can log in with that new agent. The phone number is an international number, digits only, without + , at least 9 digits — for example 972501234567 . Ignored when admin 2fa is 0. 50 No (yes if admin 2fa is 1 or 2) admin@example.com server If you wish to install the account on a server other than the main server (online.99digital.co.il), provide the subdomain of that server here. This feature is only available for selected partners: a server that isn't enabled for your partner account is rejected with reason 34. If you don't send it, online is used. 30 No online reference Any reference value you wish to receive back on the webhook. This is for your use only, so you can recognize your client. Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. 50 No client-1234 Important notice: if you create admin email with an email that already exists under any of your accounts, we will not try to re-create this email or change any of its parameters ( admin name , admin displayName and admin password won't be used). Instead, we will just allow this email address to also have access to the new account you are creating. This will not override its existing permissions; it will just add this existing agent email to the new account. When the account is created, an online event with online extra info 1 and your reference is sent to your webhook. Response { \"status\": \"OK\", \"reason\": 1, \"account id\": 8, \"agent id\": 100, \"server\": \"online\" } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. account id The newly created account ID. agent id The newly created agent ID (agent number 1, the admin). This agent can now log in to the platform. server The server subdomain that this account was created on: https://{server}.99digital.co.il . reason The status explanation — see the table below. error Only with reason 0 — a short technical description of the error. Reason Explanation 0 The settings of the server couldn't be loaded — try again later or contact support. The error field has the details. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support. 13 You need to use the POST method. 20 reference is invalid — longer than 50 characters, or characters other than letters, digits, spaces and hyphens. 31 Error on creating an account, please try again or contact support. 34 server is invalid or wrong, or it isn't enabled for your partner account. 36 account name is invalid or wrong — empty, longer than 100 characters, or characters other than letters, digits, spaces and hyphens. 37 The agents / inboxes number is invalid or wrong (agents 1–9999, inboxes 1–999). 38 The admin email address is invalid or wrong. 39 admin name or admin displayName is invalid or wrong. 40 admin password is invalid or wrong, or doesn't meet the minimum required. 41 admin 2fa is invalid or wrong — it must be 0, 1 or 2. 42 admin 2fa value is wrong — it must be a valid email when admin 2fa is 1, or a phone number of at least 9 digits when it is 2. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description account name string Yes The account (business) name that will be created. Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. Max length: 100. Example: Acme inc . agents integer No The total number of agents you allow this account to create, 1 to 9999. If you don't send it, 10 is used. Default: 10 . Minimum: 1. Maximum: 9999. Example: 10 . inboxes integer No The total number of inboxes you allow this account to create, 1 to 999. If you don't send it, 5 is used. Default: 5 . Minimum: 1. Maximum: 999. Example: 10 . admin email string Yes The admin access email that will be created as agent number 1 for this account. Maximum length: 50. If it already exists under one of your accounts, we don't re-create it or change its details ( admin name , admin displayName and admin password are not used): the existing agent email just gets access to the new account as well, without overriding its existing permissions — see the important notice above. Example: admin@example.com . admin name string Yes The name of agent number 1. Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. Max length: 50. Example: Test Name . admin displayName string Yes The display name of agent number 1 (the name that will appear in the online account). Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. Max length: 50. Example: Name . admin password string Yes The password to create for logging in to the new admin account: at least 6 characters, with at least 1 upper case letter (A-Z), at least 1 lower case letter (a-z) and at least 1 special character — one of ! @ # $ % ^ & ( ) \\ + - = [ ] { } \\ \" / . , : ; ? ' . Spaces at the start or the end are removed. Maximum length: 50. Min length: 6. Example: Acme!2026pass . admin 2fa integer No Whether to allow logging in to the admin account with 2FA or not. The default, in case you don't send anything, is 0. One of: 0 — No 2FA; 1 — Email 2FA — the code is sent to the email in admin 2fa value ; 2 — SMS 2FA — the code is sent to the phone number in admin 2fa value . Default: 0 . Example: 1 . admin 2fa value string No Required if admin 2fa is 1 or 2: the email address (for 1) or the phone number (for 2) that gets the 2FA code before you can log in with the new agent. A phone number is in international format, digits only, without + — at least 9 digits, for example 972501234567 . Ignored when admin 2fa is 0. Maximum length: 50. Example: admin@example.com . server string No If you wish to install the account on a server other than the main server (online.99digital.co.il), provide the subdomain of that server here. This feature is only available to selected partners: a server that isn't enabled for your partner account is rejected with reason 34. If you don't send it, online is used. Default: online . Max length: 30. Example: online . reference string No Any reference value you wish to receive back on the webhook. It is for your use only, so you can recognize your client. Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. Max length: 50. Example: client-1234 . Example: Basic A new account and its admin, without 2FA. { \"account name\": \"Acme inc\", \"agents\": 10, \"inboxes\": 10, \"admin email\": \"admin@example.com\", \"admin name\": \"Test Name\", \"admin displayName\": \"Name\", \"admin password\": \"Acme!2026pass\" } Example: Email 2FA The admin gets a 2FA code by email before logging in. { \"account name\": \"Acme inc\", \"agents\": 10, \"inboxes\": 10, \"admin email\": \"admin@example.com\", \"admin name\": \"Test Name\", \"admin displayName\": \"Name\", \"admin password\": \"Acme!2026pass\", \"admin 2fa\": 1, \"admin 2fa value\": \"admin@example.com\" } Example: SMS 2FA The admin gets a 2FA code by SMS before logging in — an international number, digits only. { \"account name\": \"Acme inc\", \"agents\": 10, \"inboxes\": 10, \"admin email\": \"admin@example.com\", \"admin name\": \"Test Name\", \"admin displayName\": \"Name\", \"admin password\": \"Acme!2026pass\", \"admin 2fa\": 2, \"admin 2fa value\": \"972501234567\" } Example: Server and reference Install the account on another server enabled for you, and get your reference back on the webhook. { \"account name\": \"חנות הפרחים\", \"agents\": 5, \"inboxes\": 2, \"admin email\": \"owner@example.com\", \"admin name\": \"Dana Levi\", \"admin displayName\": \"Dana\", \"admin password\": \"Flowers#2026\", \"server\": \"online2\", \"reference\": \"client-1234\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . account id integer (one of: OK) The newly created account ID. Example: 8 . agent id integer (one of: OK) The newly created agent ID (agent number 1, the admin). This agent can now log in to the platform. Example: 100 . server string (one of: OK) The server subdomain this account was created on: https://{server}.99digital.co.il . Example: online . status string (one of: FAIL) Error — see reason . Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the server couldn't be loaded — try again later or contact support. The error field has the details; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support; 13 — You need to use the POST method; 20 — reference is invalid — longer than 50 characters, or characters other than letters, digits, spaces and hyphens; 31 — Error on creating an account, please try again or contact support; 34 — server is invalid or wrong, or it isn't enabled for your partner account; 36 — account name is invalid or wrong — empty, longer than 100 characters, or characters other than letters, digits, spaces and hyphens; 37 — agents / inboxes number is invalid or wrong (agents 1–9999, inboxes 1–999); 38 — admin email address is invalid or wrong; 39 — admin name or admin displayName is invalid or wrong; 40 — admin password is invalid or wrong, or doesn't meet the minimum required; 41 — admin 2fa is invalid or wrong — it must be 0, 1 or 2; 42 — admin 2fa value is wrong — it must be a valid email when admin 2fa is 1, or a phone number of at least 9 digits when it is 2. error string (one of: FAIL) Only with reason 0 — a short technical description of the error. Example: OK The account and its admin agent were created. { \"status\": \"OK\", \"reason\": 1, \"account id\": 8, \"agent id\": 100, \"server\": \"online\" } Example: Reason 3 Access token does not exist or expired. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 34 The server is invalid, or it isn't enabled for your partner account. { \"status\": \"FAIL\", \"reason\": 34 } Example: Reason 40 The admin password doesn't meet the minimum required. { \"status\": \"FAIL\", \"reason\": 40 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/online-get-accounts",
      "title": "Get accounts list",
      "url": "https://docs.99digital.co.il/partners-api/online/get-accounts-list",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/get-accounts-list.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Get the online accounts list.",
      "endpoint": {
        "method": "GET",
        "path": "/online/getAccounts",
        "url": "https://partners.99digital.co.il/api/online/getAccounts"
      },
      "headings": [
        "Settings",
        "Account-scoped access tokens",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Account-scoped token",
        "Example: Reason 3",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "onlineGetAccounts",
        "online",
        "getAccounts",
        "status",
        "reason",
        "totalOnline",
        "list",
        "create_time",
        "account_name",
        "account_id",
        "server",
        "account_status",
        "reference",
        "error"
      ],
      "content": "GET https://partners.99digital.co.il/api/online/getAccounts Get the online accounts list. The list is sorted by creation time, newest first. Deleted accounts are not listed. Settings Setting Value URL https://partners.99digital.co.il/api/online/getAccounts Method JSON via GET Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Access OmniChannel accounts page permission. Account-scoped access tokens This endpoint also accepts an account-scoped access token — a token created from the Account API Credentials of one account (in your partners dashboard: OmniChannel Accounts → the key icon of the account). With such a token, the list holds only that account ( totalOnline is 1, or 0 if the account was deleted), and the permission above isn't needed. Body Nothing — leave it empty. The request has no body and no parameters: send only the Authorization header. Response { \"status\": \"OK\", \"reason\": 1, \"totalOnline\": 2, \"list\": [ { \"create time\": 1735811186, \"account name\": \"My Business B\", \"account id\": 2, \"server\": \"online\", \"account status\": \"suspended\", \"reference\": \"12346\" }, { \"create time\": 1735811185, \"account name\": \"My Business A\", \"account id\": 1, \"server\": \"online\", \"account status\": \"active\", \"reference\": \"12345\" } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. totalOnline The total number of online accounts you manage. list Your online accounts, newest first — see the table below. Empty when you have none. reason The status explanation — see the table below. error Only with reason 0 — a short technical description of the error. Each item in list : Name Explanation create time The Unix time when this account was created. account name The account name. account id The ID of the account (a number). server The server subdomain hosting the account. account status The account status: active or suspended . A suspended account can't be logged in to; reactivate it with Update account. reference Your reference value, from when you created the account. Empty if you didn't send one. Reason Explanation 0 Error getting the accounts list — try again or contact support. The error field has the details. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Internal error, please try again or contact support. 13 You need to use the GET method. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . totalOnline integer (one of: OK) The total number of online accounts you manage. Example: 2 . list array of object (one of: OK) Your online accounts, newest first. Empty when you have none. list[].create time integer (one of: OK) The time this account was created (Unix time, in seconds). Example: 1735811186 . list[].account name string (one of: OK) The account name. Example: My Business B . list[].account id integer (one of: OK) The ID of the account. Example: 2 . list[].server string (one of: OK) The server subdomain hosting the account. Example: online . list[].account status string (one of: OK) The account status. One of: active — The account is active; suspended — The account is suspended — no one can log in to it. Reactivate it with Update account. list[].reference string (one of: OK) Your reference value, from when you created the account. Empty if you didn't send one. Example: 12345 . status string (one of: FAIL) Error — see reason . Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — Error getting the accounts list — try again or contact support. The error field has the details; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Internal error, please try again or contact support; 13 — You need to use the GET method. error string (one of: FAIL) Only with reason 0 — a short technical description of the error. Example: OK Two accounts, newest first. { \"status\": \"OK\", \"reason\": 1, \"totalOnline\": 2, \"list\": [ { \"create time\": 1735811186, \"account name\": \"My Business B\", \"account id\": 2, \"server\": \"online\", \"account status\": \"suspended\", \"reference\": \"12346\" }, { \"create time\": 1735811185, \"account name\": \"My Business A\", \"account id\": 1, \"server\": \"online\", \"account status\": \"active\", \"reference\": \"12345\" } ] } Example: Account-scoped token With an account-scoped access token, the list holds only that account. { \"status\": \"OK\", \"reason\": 1, \"totalOnline\": 1, \"list\": [ { \"create time\": 1735811185, \"account name\": \"My Business A\", \"account id\": 1, \"server\": \"online\", \"account status\": \"active\", \"reference\": \"12345\" } ] } Example: Reason 3 Access token does not exist or expired. { \"status\": \"FAIL\", \"reason\": 3 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/update-account",
      "title": "Update account",
      "url": "https://docs.99digital.co.il/partners-api/online/update-account",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/update-account.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Update account allows you to change and set a few things for your online omnichannel account.",
      "endpoint": {
        "method": "POST",
        "path": "/online/updateAccount",
        "url": "https://partners.99digital.co.il/api/online/updateAccount"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example: Account name",
        "Example: Suspend",
        "Example: Activate",
        "Example: Builder URL",
        "Example: All fields",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 33",
        "Example: Reason 47",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "updateAccount",
        "online",
        "account_id",
        "server",
        "account_name",
        "account_status",
        "builder_url",
        "status",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/updateAccount Update account allows you to change and set a few things for your online omnichannel account. You can set and change only the relevant values that you want: send account id , server , and only the fields you want to change. The response shows the account's values after the update. Settings Setting Value URL https://partners.99digital.co.il/api/online/updateAccount Method JSON via POST (PATCH is accepted too, with the same body) Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Change account details permission. An account-scoped access token (created from the Account API Credentials of one account in your partners dashboard) can't use this endpoint: it gets reason 2. Body Parameter Description / Example Maximum length Mandatory Example account id The account ID you wish to update — one of your accounts on server . Digits only. 20 Yes 8 server The server subdomain of the account ID. If you don't send it, online is used. 30 No (default online ) online account name You can change the account name. Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. 100 No My Account account status 0 — disabled (suspended); 1 — active. You can enable or disable access to your account: if you set this to 0, no one can log in to the account. 1 No 0 builder url If you have a builder, here is the place to put its link, so it will be available from the \"Workflow Builder\" section in the online. You must provide a valid builder URL (the builder login URL): it must start with https://builder . 150 No https://builder2.99digital.co.il/1234-aBcDeFgHiJkLmNoP/ Important notice: any other settings of the account can be changed from within the account settings inside the online. This updateAccount endpoint allows you to update builder url , the account status and the account name, which are not available to you inside the online account directly; hence this API endpoint is the only way to update those parameters (besides your partners dashboard). When you send account status , an online event is sent to your webhook: online extra info 2 when the account is set to active, 3 when it is suspended. Response { \"status\": \"OK\", \"reason\": 1, \"account id\": 8, \"server\": \"online\", \"account name\": \"My Account\", \"account status\": 1, \"builder url\": \"https://builder2.99digital.co.il/1234-aBcDeFgHiJkLmNoP/\" } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. account id The account ID you used. server The server subdomain of the account: https://{server}.99digital.co.il . account name The account name. This shows the new account name if you chose to update it, or the current account name if you didn't change this value. account status The account status: 1 for active, 0 for suspended. This shows the new account status if you chose to update it, or the current account status if you didn't change this value. builder url The builder URL link. This shows the new builder URL if you chose to update it, or the current builder URL if you didn't change this value (null when there is none). reason The status explanation — see the table below. error Only with some reason 0 failures — a short technical description of the error. Reason Explanation 0 Error reaching the server of the account — try again later or contact support. When its settings couldn't be loaded, the error field has the details. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support. 13 You need to use the POST method. 20 reference is invalid. (This endpoint has no reference parameter, so it doesn't return this reason.) 31 Error on updating the account, please try again or contact support. 33 account id is invalid or wrong, or it isn't one of your accounts on this server . 34 server is invalid or wrong. 36 account name is invalid or wrong. 46 account status is invalid or wrong — it must be 0 or 1. 47 builder url is invalid or wrong — it must start with https://builder . Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description account id integer Yes The account ID you wish to update — one of your accounts on server . Digits only, up to 20 digits (a string of digits is accepted too). Example: 8 . server string No The server subdomain of the account ID. If you don't send it, online is used. Letters, digits, spaces and hyphens only. Default: online . Max length: 30. Example: online . account name string No You can change the account name. Letters (English, Hebrew or Arabic), digits, spaces and hyphens only. Max length: 100. Example: My Account . account status integer No You can enable or disable access to your account. If you set this to 0, no one can log into the account. One of: 0 — Disabled (suspended) — no one can log in to the account; 1 — Active. Example: 0 . builder url string No If you have a builder, here is the place to put its link, so it is available from the \"Workflow Builder\" section in the online. You must provide a valid builder URL (the builder login URL): it must start with https://builder . Maximum length: 150. Example: https://builder2.99digital.co.il/1234-aBcDeFgHiJkLmNoP/ . Example: Account name Change the account name only. { \"account id\": 8, \"server\": \"online\", \"account name\": \"My Account\" } Example: Suspend Disable access to the account — no one can log in to it. { \"account id\": 8, \"server\": \"online\", \"account status\": 0 } Example: Activate Enable access to a suspended account again. { \"account id\": 8, \"server\": \"online\", \"account status\": 1 } Example: Builder URL Make your builder available from the \"Workflow Builder\" section in the online. { \"account id\": 8, \"server\": \"online\", \"builder url\": \"https://builder2.99digital.co.il/1234-aBcDeFgHiJkLmNoP/\" } Example: All fields Change the name, the status and the builder URL together. { \"account id\": 8, \"server\": \"online\", \"account name\": \"חנות הפרחים\", \"account status\": 1, \"builder url\": \"https://builder2.99digital.co.il/1234-aBcDeFgHiJkLmNoP/\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . account id integer (one of: OK) The account ID you used. Example: 8 . server string (one of: OK) The server subdomain of the account: https://{server}.99digital.co.il . Example: online . account name string (one of: OK) The account name — the new account name if you chose to update it, or the current account name if you didn't change this value. Example: My Account . account status integer (one of: OK) The account status — the new account status if you chose to update it, or the current account status if you didn't change this value. One of: 0 — Suspended; 1 — Active. builder url string \\ null (one of: OK) The builder URL link — the new builder URL if you chose to update it, or the current builder URL if you didn't change this value. Example: https://builder2.99digital.co.il/1234-aBcDeFgHiJkLmNoP/ . status string (one of: FAIL) Error — see reason . Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — Error reaching the server of the account — try again later or contact support. When its settings couldn't be loaded, the error field has the details; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support; 13 — You need to use the POST method; 20 — reference is invalid. (This endpoint has no reference parameter, so it doesn't return this reason.); 31 — Error on updating account, please try again or contact support; 33 — account id is invalid or wrong, or it isn't one of your accounts on this server ; 34 — server is invalid or wrong; 36 — account name is invalid or wrong; 46 — account status is invalid or wrong — it must be 0 or 1; 47 — builder url is invalid or wrong — it must start with https://builder . error string (one of: FAIL) Only with some reason 0 failures — a short technical description of the error. Example: OK The account was updated. Fields you didn't send show their current values. { \"status\": \"OK\", \"reason\": 1, \"account id\": 8, \"server\": \"online\", \"account name\": \"My Account\", \"account status\": 1, \"builder url\": \"https://builder2.99digital.co.il/1234-aBcDeFgHiJkLmNoP/\" } Example: Reason 33 The account ID is invalid, or it isn't one of your accounts on this server. { \"status\": \"FAIL\", \"reason\": 33 } Example: Reason 47 The builder URL must start with https://builder. { \"status\": \"FAIL\", \"reason\": 47 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/get-inboxes",
      "title": "Get Inboxes List",
      "url": "https://docs.99digital.co.il/partners-api/online/get-inboxes-list",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/get-inboxes-list.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Get the inboxes list of an account.",
      "endpoint": {
        "method": "POST",
        "path": "/online/getInboxes",
        "url": "https://partners.99digital.co.il/api/online/getInboxes"
      },
      "headings": [
        "Settings",
        "Account-scoped access tokens",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 33",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "getInboxes",
        "online",
        "accountID",
        "server",
        "status",
        "reason",
        "totalInboxes",
        "list",
        "id",
        "name",
        "channel_type",
        "api_type",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/getInboxes Get the inboxes list of an account. Settings Setting Value URL https://partners.99digital.co.il/api/online/getInboxes Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the View inboxes list permission. Account-scoped access tokens This endpoint also accepts an account-scoped access token — a token created from the Account API Credentials of one account (in your partners dashboard: OmniChannel Accounts → the key icon of the account). Such a token works for its own account only: accountID and server must be that account's — send server when the account isn't on online — otherwise the response is reason 33. It doesn't need the permission above. Body Parameter Description / Example accountID The account ID you wish to get the inboxes list of. Digits only, up to 20 digits. server The server subdomain hosting the account (default: online ). If not set, online will be used. Response { \"status\": \"OK\", \"reason\": 1, \"accountID\": 1, \"server\": \"online\", \"totalInboxes\": 2, \"list\": [ { \"id\": 1, \"name\": \"Inbox name\", \"channel type\": \"Channel::Api\", \"api type\": \"wa v2\" }, { \"id\": 2, \"name\": \"Telegram posts\", \"channel type\": \"Channel::Api\", \"api type\": null } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. accountID The account ID you used. server The server subdomain hosting the account. totalInboxes The total number of inboxes in the selected account. list The inboxes of the account — see the table below. reason The status explanation — see the table below. Each item in list : Name Explanation id Inbox ID. name The inbox name. channel type The channel type, for example Channel::Api . api type If channel type is Channel::Api , here it shows the API type (for example wa v2 ). Otherwise — or when an API inbox has no API type — it is null. Reason Explanation 0 The settings of the account's server couldn't be loaded — try again later or contact support. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support. 13 You need to use the POST method. 31 Error getting the inboxes list, please try again or contact support. 33 accountID is invalid or wrong, or it isn't one of your accounts on this server — or, with an account-scoped access token, accountID and server aren't the token's own. 34 server is invalid or wrong. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description accountID integer Yes The account ID you wish to get the inboxes list of. Digits only, up to 20 digits (a string of digits is accepted too). Example: 1 . server string No The server subdomain hosting the account (default: online ). If not set, online will be used. Default: online . Example: online . Example (generated from the schema) { \"accountID\": 1, \"server\": \"online\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . accountID integer (one of: OK) The account ID you used. Example: 1 . server string (one of: OK) The server subdomain hosting the account. Example: online . totalInboxes integer (one of: OK) The total number of inboxes in the selected account. Example: 2 . list array of object (one of: OK) The inboxes of the account. list[].id integer (one of: OK) Inbox ID. Example: 1 . list[].name string (one of: OK) The inbox name. Example: Inbox name . list[].channel type string (one of: OK) The channel type, for example Channel::Api . Example: Channel::Api . list[].api type string \\ null (one of: OK) If channel type is Channel::Api , here it shows the API type (for example wa v2 ). Otherwise — or when an API inbox has no API type — it is null. Example: wa v2 . status string (one of: FAIL) Error — see reason . Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — try again later or contact support; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support; 13 — You need to use the POST method; 31 — Error getting the inboxes list, please try again or contact support; 33 — accountID is invalid or wrong, or it isn't one of your accounts on this server — or, with an account-scoped access token, accountID and server aren't the token's own; 34 — server is invalid or wrong. Example: OK An account with two inboxes. { \"status\": \"OK\", \"reason\": 1, \"accountID\": 1, \"server\": \"online\", \"totalInboxes\": 2, \"list\": [ { \"id\": 1, \"name\": \"Inbox name\", \"channel type\": \"Channel::Api\", \"api type\": \"wa v2\" }, { \"id\": 2, \"name\": \"Telegram posts\", \"channel type\": \"Channel::Api\", \"api type\": null } ] } Example: Reason 33 The account ID is invalid, or it isn't one of your accounts on this server. { \"status\": \"FAIL\", \"reason\": 33 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/get-agents",
      "title": "Get agents list",
      "url": "https://docs.99digital.co.il/partners-api/online/get-agents-list",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/get-agents-list.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Get the agents list of an account.",
      "endpoint": {
        "method": "POST",
        "path": "/online/getAgents",
        "url": "https://partners.99digital.co.il/api/online/getAgents"
      },
      "headings": [
        "Settings",
        "Account-scoped access tokens",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 33",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "getAgents",
        "online",
        "accountID",
        "server",
        "status",
        "reason",
        "totalAgents",
        "list",
        "id",
        "create_time",
        "email",
        "agent_name",
        "role",
        "two_factor_type",
        "two_factor_phone",
        "two_factor_email",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/getAgents Get the agents list of an account. Use an agent's id to log in as that agent with Login to an agent or Login to a Conversation. Settings Setting Value URL https://partners.99digital.co.il/api/online/getAgents Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the View agents list permission. Account-scoped access tokens This endpoint also accepts an account-scoped access token — a token created from the Account API Credentials of one account (in your partners dashboard: OmniChannel Accounts → the key icon of the account). Such a token works for its own account only: accountID and server must be that account's — send server when the account isn't on online — otherwise the response is reason 33. It doesn't need the permission above. Body Parameter Description / Example accountID The account ID you wish to get the agents list of. Digits only, up to 20 digits. server The server subdomain hosting the account (default: online ). If not set, online will be used. Response { \"status\": \"OK\", \"reason\": 1, \"totalAgents\": 2, \"list\": [ { \"id\": 1, \"create time\": 1748168139, \"email\": \"agent1@example.com\", \"agent name\": \"agent name\", \"role\": \"Admin\", \"two factor type\": \"sms\", \"two factor phone\": \"+972501234567\", \"two factor email\": null }, { \"id\": 2, \"create time\": 1748168139, \"email\": \"agent2@example.com\", \"agent name\": \"agent name 2\", \"role\": \"Marketing\", \"two factor type\": \"email\", \"two factor phone\": null, \"two factor email\": \"my@example.com\" } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. totalAgents The total number of agents in the selected account. It also counts the account's operation bots, which list leaves out, so it can be higher than the number of agents in list . list The agents of the account — see the table below. reason The status explanation — see the table below. error Only with reason 0 — a short technical description of the error. Each item in list : Name Explanation create time The Unix time when this agent was created. id Agent ID. email The email of the agent. agent name The agent name. role The agent role. two factor type If 2FA is enabled to log in to the account, it shows either sms or email . Otherwise, it shows null. two factor phone If two factor type is set to sms , here is the SMS phone number. two factor email If two factor type is set to email , here is the email address. Reason Explanation 0 The settings of the account's server couldn't be loaded — try again later or contact support. The error field has the details. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support. 13 You need to use the POST method. 31 Error getting the agents list, please try again or contact support. 33 accountID is invalid or wrong, or it isn't one of your accounts on this server — or, with an account-scoped access token, accountID and server aren't the token's own. 34 server is invalid or wrong. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description accountID integer Yes The account ID you wish to get the agents list of. Digits only, up to 20 digits (a string of digits is accepted too). Example: 1 . server string No The server subdomain hosting the account (default: online ). If not set, online will be used. Default: online . Example: online . Example (generated from the schema) { \"accountID\": 1, \"server\": \"online\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . totalAgents integer (one of: OK) The total number of agents in the selected account. It also counts the account's operation bots, which list leaves out, so it can be higher than the number of agents in list . Example: 2 . list array of object (one of: OK) The agents of the account. list[].id integer (one of: OK) Agent ID. Example: 1 . list[].create time integer (one of: OK) The Unix time (in seconds) when this agent was created. Example: 1748168139 . list[].email string (one of: OK) The email of the agent. Example: agent1@example.com . list[].agent name string (one of: OK) The agent name. Example: agent name . list[].role string (one of: OK) The agent role. Example: Admin . list[].two factor type string \\ null (one of: OK) If 2FA is enabled to log in to the account, it shows either sms or email . Otherwise, it shows null. Example: sms . list[].two factor phone string \\ null (one of: OK) If two factor type is set to sms , here is the SMS phone number. Example: +972501234567 . list[].two factor email string \\ null (one of: OK) If two factor type is set to email , here is the email address. Example: null . status string (one of: FAIL) Error — see reason . Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — try again later or contact support. The error field has the details; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support; 13 — You need to use the POST method; 31 — Error getting the agents list, please try again or contact support; 33 — accountID is invalid or wrong, or it isn't one of your accounts on this server — or, with an account-scoped access token, accountID and server aren't the token's own; 34 — server is invalid or wrong. error string (one of: FAIL) Only with reason 0 — a short technical description of the error. Example: OK An account with two agents — one with SMS 2FA, one with email 2FA. { \"status\": \"OK\", \"reason\": 1, \"totalAgents\": 2, \"list\": [ { \"id\": 1, \"create time\": 1748168139, \"email\": \"agent1@example.com\", \"agent name\": \"agent name\", \"role\": \"Admin\", \"two factor type\": \"sms\", \"two factor phone\": \"+972501234567\", \"two factor email\": null }, { \"id\": 2, \"create time\": 1748168139, \"email\": \"agent2@example.com\", \"agent name\": \"agent name 2\", \"role\": \"Marketing\", \"two factor type\": \"email\", \"two factor phone\": null, \"two factor email\": \"my@example.com\" } ] } Example: Reason 33 The account ID is invalid, or it isn't one of your accounts on this server. { \"status\": \"FAIL\", \"reason\": 33 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/login-agent",
      "title": "Login to an agent",
      "url": "https://docs.99digital.co.il/partners-api/online/login-to-an-agent",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/login-to-an-agent.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "You can log in to any agent of an account.",
      "endpoint": {
        "method": "POST",
        "path": "/online/loginAgent",
        "url": "https://partners.99digital.co.il/api/online/loginAgent"
      },
      "headings": [
        "Settings",
        "Account-scoped access tokens",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 29",
        "Example: Reason 33",
        "Example: Reason 35",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "loginAgent",
        "online",
        "accountID",
        "agentID",
        "server",
        "status",
        "reason",
        "login",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/loginAgent You can log in to any agent of an account. Accessing the account directly from this API endpoint is mostly meant for your end-user client to do: they can log in with the credentials you created for them, bypassing the username/password and 2FA of accessing the online account directly. This is SSO login. Moreover, you can build this solution over an iFrame inside your own platform, to allow accessing the system directly from your app. Important remarks After creating a login link, you must access it within 5 minutes, and you can only access it once. If you need to access the same URL again, you must create a new link. The URL you will get can be opened directly in your browser or in an iFrame solution, or implemented in your own application. Whoever opens the link is logged in as that agent: treat it like a password, and don't store, log or share it. You can't log in to a suspended account (reason 33). Get the agent IDs with Get agents list. To open a specific conversation right after the login, use Login to a Conversation. Every login link you create sends an online event with online extra info 7 to your webhook. Settings Setting Value URL https://partners.99digital.co.il/api/online/loginAgent Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Login as an agent permission. Account-scoped access tokens This endpoint also accepts an account-scoped access token — a token created from the Account API Credentials of one account (in your partners dashboard: OmniChannel Accounts → the key icon of the account). Such a token works for its own account only: accountID and server must be that account's — send server when the account isn't on online — otherwise the response is reason 29. It doesn't need the permission above, and it can log in to any agent of its account. Anyone who has the Account API Credentials of an account can log in to any agent of that account, including its admins, without a password or 2FA. Give them only to someone you trust with the whole account. These credentials are permanent and can't be changed. Body Parameter Description / Example accountID The account ID you wish to log in to. Digits only, up to 20 digits. agentID The agent ID you wish to log in to — the agent's id in Get agents list. Digits only, up to 20 digits. server The server subdomain hosting the account — letters and digits only. If you don't send it, online is used. Response { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"login\": \"https://online.99digital.co.il/…\" } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. accountID The account ID you log in to. agentID The agent ID you log in to. server The server subdomain you log in to. login The login URL for that account and agent (always https:// ). Open it within 5 minutes; it works only once. reason The status explanation — see the table below. error Only with reason 0 — a short technical description of the error. Reason Explanation 0 The settings of the account's server couldn't be loaded — try again later or contact support. The error field has the details. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support. 13 You need to use the POST method. 29 accountID is invalid or wrong, or it isn't one of your accounts on this server — or, with an account-scoped access token, accountID and server aren't the token's own. 32 You can't connect to a suspended account. (Not returned any more: a suspended account answers with reason 33.) 33 The account is suspended — you can't connect to a suspended account. 34 server is invalid or wrong — letters and digits only. 35 agentID is invalid or wrong, or the login link couldn't be created for it. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description accountID integer Yes The account ID you wish to log in to. Digits only, up to 20 digits (a string of digits is accepted too). Example: 4142 . agentID integer Yes The agent ID you wish to log in to — the agent's id in Get agents list. Digits only, up to 20 digits (a string of digits is accepted too). Example: 3142 . server string No The server subdomain hosting the account — letters and digits only. If you don't send it, online is used. Default: online . Example: online . Example (generated from the schema) { \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . accountID integer (one of: OK) The account ID you log in to. Example: 4142 . agentID integer (one of: OK) The agent ID you log in to. Example: 3142 . server string (one of: OK) The server subdomain you log in to. Example: online . login string (one of: OK) The login URL for that account and agent (always https:// ). Open it within 5 minutes; it works only once. Example: https://online.99digital.co.il/… . status string (one of: FAIL) Error — see reason . Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — try again later or contact support. The error field has the details; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support; 13 — You need to use the POST method; 29 — accountID is invalid or wrong, or it isn't one of your accounts on this server — or, with an account-scoped access token, accountID and server aren't the token's own; 32 — You can't connect to a suspended account. (Not returned any more: a suspended account answers with reason 33.); 33 — The account is suspended — you can't connect to a suspended account; 34 — server is invalid or wrong — letters and digits only; 35 — agentID is invalid or wrong, or the login link couldn't be created for it. error string (one of: FAIL) Only with reason 0 — a short technical description of the error. Example: OK The login link — open it within 5 minutes, once. { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"login\": \"https://online.99digital.co.il/…\" } Example: Reason 29 The account ID is invalid, or it isn't one of your accounts on this server. { \"status\": \"FAIL\", \"reason\": 29 } Example: Reason 33 The account is suspended. { \"status\": \"FAIL\", \"reason\": 33 } Example: Reason 35 The agent ID is invalid, or the login link couldn't be created for it. { \"status\": \"FAIL\", \"reason\": 35 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/login-conversation",
      "title": "Login to a Conversation",
      "url": "https://docs.99digital.co.il/partners-api/online/login-to-a-conversation",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/login-to-a-conversation.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "You can log in to any agent of an account, into a specific conversation inside a specific inbox.",
      "endpoint": {
        "method": "POST",
        "path": "/online/loginConversation",
        "url": "https://partners.99digital.co.il/api/online/loginConversation"
      },
      "headings": [
        "Settings",
        "Account-scoped access tokens",
        "Body",
        "Response",
        "Response explained",
        "Authentication",
        "Request body",
        "Example: Conversation",
        "Example: Inbox and phone",
        "Example: Inbox and email",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK by inbox",
        "Example: Reason 36",
        "Example: Reason 37",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "loginConversation",
        "online",
        "accountID",
        "agentID",
        "server",
        "inbox_id",
        "conversation_id",
        "phone_number",
        "email",
        "name",
        "status",
        "reason",
        "login",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/loginConversation You can log in to any agent of an account, into a specific conversation inside a specific inbox. Accessing the account directly from this API endpoint is mostly meant for your end-user clients to do: you can log in with the credentials you created for them, bypassing the username/password and 2FA of accessing the online account directly. This is SSO login. Moreover, you can build this solution over an iFrame inside your own platform, to allow accessing the system directly from your app. Important remarks After creating a login link, you must access it within 5 minutes, and you can only access it once. If you need to access the same URL again, you must create a new link. The URL you will get can be opened directly in your browser or in an iFrame solution, or implemented in your own application. Using this endpoint will not only open the account: it will take you to the specific conversation with the end user. Whoever opens the link is logged in as that agent: treat it like a password, and don't store, log or share it. You can't log in to a suspended account (reason 33). To log in without opening a conversation, use Login to an agent. Get the agent IDs with Get agents list, and the inbox IDs with Get Inboxes List. Settings Setting Value URL https://partners.99digital.co.il/api/online/loginConversation Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Requires the Login to a conversation permission. Account-scoped access tokens This endpoint also accepts an account-scoped access token — a token created from the Account API Credentials of one account (in your partners dashboard: OmniChannel Accounts → the key icon of the account). Such a token works for its own account only: accountID and server must be that account's — send server when the account isn't on online — otherwise the response is reason 29. It doesn't need the permission above, and it can log in to any agent of its account. Anyone who has the Account API Credentials of an account can log in to any agent of that account, including its admins, without a password or 2FA. Give them only to someone you trust with the whole account. These credentials are permanent and can't be changed. Body Parameter Description / Example accountID The account ID you wish to log in to. Digits only, up to 20 digits. agentID The agent ID you wish to log in to — the agent's id in Get agents list. Digits only, up to 20 digits. server The server subdomain hosting the account — letters and digits only. If you don't send it, online is used. inbox id The inbox ID to open. Either this or conversation id is mandatory. Sent without conversation id , it opens the conversation with the contact inside that inbox. Digits only. conversation id The conversation ID to open. Either this or inbox id is mandatory. If inbox id is provided along with conversation id , the inbox id will be ignored. Digits only. phone number The phone number of the contact, to open the conversation window with. Either this or email is mandatory. International format: 7 to 20 digits, with or without a leading + (it is added if missing). email The email of the contact. Either this or phone number is mandatory. Up to 254 characters; it is converted to lower case. name The name of the contact. Not mandatory. Up to 100 characters. Response { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"inbox id\": 12, \"conversation id\": 165, \"login\": \"https://online.99digital.co.il/…\" } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. accountID The account ID you log in to. agentID The agent ID you log in to. server The server subdomain you log in to. inbox id The inbox id provided (even when it was ignored because you sent conversation id ), or null if you didn't send one. conversation id The conversation id provided, or null if you didn't send one. login The login URL for that account, agent and conversation (always https:// ). Open it within 5 minutes; it works only once. reason The status explanation — see the table below. error Only with reason 0 — a short technical description of the error. Reason Explanation 0 The settings of the account's server couldn't be loaded — try again later or contact support. The error field has the details. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support. 13 You need to use the POST method. 29 accountID is invalid or wrong, or it isn't one of your accounts on this server — or, with an account-scoped access token, accountID and server aren't the token's own. 32 You can't connect to a suspended account. (Not returned any more: a suspended account answers with reason 33.) 33 The account is suspended — you can't connect to a suspended account. 34 server is invalid or wrong — letters and digits only. 35 agentID is invalid or wrong, or the login link couldn't be created for it. 36 inbox id or conversation id is invalid or wrong — send at least one of them, digits only. 37 phone number or email is invalid or wrong — send at least one of them — or name is longer than 100 characters. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description accountID integer Yes The account ID you wish to log in to. Digits only, up to 20 digits (a string of digits is accepted too). Example: 4142 . agentID integer Yes The agent ID you wish to log in to — the agent's id in Get agents list. Digits only, up to 20 digits (a string of digits is accepted too). Example: 3142 . server string No The server subdomain hosting the account — letters and digits only. If you don't send it, online is used. Default: online . Example: online . inbox id integer No The inbox ID to open. Either this or conversation id is mandatory. Sent without conversation id , it opens the conversation with the contact ( phone number or email ) inside that inbox. Digits only. Example: 12 . conversation id integer No The conversation ID to open. Either this or inbox id is mandatory. If inbox id is provided along with conversation id , the inbox id is ignored. Digits only. Example: 165 . phone number string No The phone number of the contact, to open the conversation window with, in international format: 7 to 20 digits, with or without a leading + (it is added if missing). Either this or email is mandatory. Example: 972501234567 . email string No The email of the contact. Either this or phone number is mandatory. It is converted to lower case. Max length: 254. Example: client@example.com . name string No The name of the contact. Not mandatory. Max length: 100. Example: ישראל ישראלי . Example: Conversation Open a specific conversation by its ID. { \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"conversation id\": 165, \"phone number\": \"972501234567\" } Example: Inbox and phone Open the conversation with the contact, by phone number, inside a specific inbox. { \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"inbox id\": 12, \"phone number\": \"972501234567\", \"name\": \"ישראל ישראלי\" } Example: Inbox and email Open the conversation with the contact, by email, inside a specific inbox. { \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"inbox id\": 12, \"email\": \"client@example.com\", \"name\": \"Israel Israeli\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . accountID integer (one of: OK) The account ID you log in to. Example: 4142 . agentID integer (one of: OK) The agent ID you log in to. Example: 3142 . server string (one of: OK) The server subdomain you log in to. Example: online . inbox id integer \\ null (one of: OK) The inbox id provided (even when it was ignored because you sent conversation id ), or null if you didn't send one. Example: null . conversation id integer \\ null (one of: OK) The conversation id provided, or null if you didn't send one. Example: 165 . login string (one of: OK) The login URL for that account, agent and conversation (always https:// ). Open it within 5 minutes; it works only once. Example: https://online.99digital.co.il/… . status string (one of: FAIL) Error — see reason . Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — try again later or contact support. The error field has the details; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Internal error, or the body isn't valid JSON (send it with Content-Type: application/json ) — please try again or contact support; 13 — You need to use the POST method; 29 — accountID is invalid or wrong, or it isn't one of your accounts on this server — or, with an account-scoped access token, accountID and server aren't the token's own; 32 — You can't connect to a suspended account. (Not returned any more: a suspended account answers with reason 33.); 33 — The account is suspended — you can't connect to a suspended account; 34 — server is invalid or wrong — letters and digits only; 35 — agentID is invalid or wrong, or the login link couldn't be created for it; 36 — inbox id or conversation id is invalid or wrong — send at least one of them, digits only; 37 — phone number or email is invalid or wrong — send at least one of them — or name is longer than 100 characters. error string (one of: FAIL) Only with reason 0 — a short technical description of the error. Example: OK The login link — open it within 5 minutes, once. { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"inbox id\": null, \"conversation id\": 165, \"login\": \"https://online.99digital.co.il/…\" } Example: OK by inbox The link for a login by inbox id — conversation id is null. { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"inbox id\": 12, \"conversation id\": null, \"login\": \"https://online.99digital.co.il/…\" } Example: Reason 36 Neither inbox id nor conversation id was sent, or one of them isn't a number. { \"status\": \"FAIL\", \"reason\": 36 } Example: Reason 37 Neither phone number nor email was sent, one of them is invalid, or name is longer than 100 characters. { \"status\": \"FAIL\", \"reason\": 37 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/online-delete-account",
      "title": "Delete an account",
      "url": "https://docs.99digital.co.il/partners-api/online/delete-an-account",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/delete-an-account.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Delete an account removes and deletes an account from the server.",
      "endpoint": {
        "method": "DELETE",
        "path": "/online/deleteAccount",
        "url": "https://partners.99digital.co.il/api/online/deleteAccount"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "What happens",
        "Access",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 33",
        "Example: Reason 2",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "onlineDeleteAccount",
        "online",
        "deleteAccount",
        "accountID",
        "server",
        "status",
        "reason",
        "error"
      ],
      "content": "DELETE https://partners.99digital.co.il/api/online/deleteAccount Delete an account removes and deletes an account from the server. The account ID will be canceled and removed immediately. All messages, conversations, contacts, files, webhooks, labels — everything will be deleted. All Studio data, reports, inbox data and saved information within this account will be removed. Make sure you back up all the data you need from within the account. All WhatsApp inboxes connected to this account will be released, in case you want to connect them to another account. This operation is irreversible! Make sure this is really what you want. Settings Setting Value URL https://partners.99digital.co.il/api/online/deleteAccount Method JSON via DELETE Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Body Parameter Description / Example accountID The account ID you wish to delete. Digits only, up to 20 digits (a string of digits is accepted too). server The server subdomain of the account ID. The default is online . Response { \"status\": \"OK\", \"reason\": 1, \"accountID\": 1234, \"server\": \"online\" } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful — the account is deleted. \"FAIL\" means error. accountID The account ID you provided. server The server subdomain where the account was hosted. reason The status explanation — see the table below. Reason Explanation 0 The settings of the account's server couldn't be loaded — contact support. The response also has an error text. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again. 13 You need to use the DELETE method. 33 accountID is empty or wrong: not a number, not one of your accounts on this server , or unknown to the server. 34 server is invalid or wrong. What happens The account is deleted on its server ( server ). If the server doesn't know the account, the response is reason 33 and nothing changes. Every WhatsApp number connected to one of the account's inboxes is released: in Get WhatsApp Numbers its isOnline goes back to 0, and you can connect it to an inbox in another account with Create a new WhatsApp Inbox. The WhatsApp number itself is not canceled or disabled. The account no longer appears in Get Accounts List, and the other Online endpoints no longer accept its ID. Its usage history is kept: Online Usage still returns the account for the months that were collected before the deletion. If you set a webhook, you get an online event with online extra info 4, \"account was deleted\" (see Event: Online). Access Requires the Delete online account permission. Account-scoped access tokens — created from an account's Account API Credentials in the partners dashboard — can't use this endpoint: they get reason 2. When the access token has expired (reason 3), create a new one with Access Token. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description accountID integer Yes The account ID you wish to delete. Digits only, up to 20 digits (a string of digits is accepted too). Example: 1234 . server string No The server subdomain of the account ID — the server the account is on. The default is online . Default: online . Example: online . Example (generated from the schema) { \"accountID\": 1234, \"server\": \"online\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful — the account is deleted. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . accountID integer (one of: OK) The account ID you provided. Example: 1234 . server string (one of: OK) The server subdomain where the account was hosted. Example: online . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — contact support. The response also has an error text; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again; 13 — You need to use the DELETE method; 33 — accountID is empty or wrong: not a number, not one of your accounts on this server , or unknown to the server; 34 — server is invalid or wrong. error string (one of: FAIL) Only with reason 0 — a short technical description of the problem. Example: OK The account is deleted. { \"status\": \"OK\", \"reason\": 1, \"accountID\": 1234, \"server\": \"online\" } Example: Reason 33 accountID is not one of your accounts on this server , or it was already deleted. { \"status\": \"FAIL\", \"reason\": 33 } Example: Reason 2 An account-scoped access token was used. { \"status\": \"FAIL\", \"reason\": 2 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/create-inbox",
      "title": "Create a new WhatsApp Inbox",
      "url": "https://docs.99digital.co.il/partners-api/online/create-a-new-whatsapp-inbox",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/create-a-new-whatsapp-inbox.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Create a new WhatsApp Inbox inside an account.",
      "endpoint": {
        "method": "POST",
        "path": "/online/createInbox",
        "url": "https://partners.99digital.co.il/api/online/createInbox"
      },
      "headings": [
        "Settings",
        "Body",
        "Import the history (coexistence)",
        "Response",
        "Response explained",
        "Webhook",
        "Access",
        "Authentication",
        "Request body",
        "Example: WhatsApp inbox",
        "Example: With history import",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK + history import",
        "Example: Reason 45",
        "Example: Reason 33",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "createInbox",
        "online",
        "inbox_type",
        "inbox_name",
        "whatsapp_number",
        "account_id",
        "server",
        "reference",
        "import_history",
        "status",
        "reason",
        "inbox_id",
        "whatsapp",
        "coexistence",
        "contacts_imported",
        "messages_imported",
        "success",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/createInbox Create a new WhatsApp Inbox inside an account. This endpoint allows you to add a WhatsApp inbox to your online account. This endpoint does not create a new WhatsApp number; it only assigns your existing WhatsApp number to a new inbox in your account. You can only use a WhatsApp number (the whatsapp number parameter) for numbers that are available to use as an inbox (meaning, there are no other inboxes created for this WhatsApp number). To see the available list, use the Partners API endpoint Get WhatsApp Numbers and look for the value of isOnline : 0 means the number is available. Settings Setting Value URL https://partners.99digital.co.il/api/online/createInbox Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Body Parameter Description / Example Maximum length Mandatory Example inbox type whatsapp — a fixed value: it is the only inbox type. 8 Yes whatsapp (fixed value) inbox name The name of the WhatsApp inbox. Letters (English, Hebrew or Arabic), digits, spaces and hyphens. 50 Yes My WhatsApp Inbox whatsapp number The WhatsApp number that you wish to connect to an inbox. This number must not be part of an inbox already. This number must be a working (active) WhatsApp V2 API number. This number must be in international format, without + (digits only, at least 9). This number must be a number under your partner account (see Get WhatsApp Numbers). 20 Yes 972501234567 account id The account ID you wish to add the new WhatsApp inbox to. Digits only (a string of digits is accepted too). 20 digits Yes 8 server The server subdomain of the account ID — the server the account is on. If you don't send it, online is used. 30 No (default online ) online reference Any reference value (letters, numbers, spaces and hyphens only) you wish to receive back on the webhook (as online reference ). This is for your use only, so you can recognize your inbox. 50 No crm-4711 import history If the whatsapp number you want to create the inbox with is a coexistence account, you can ask the system to import all its history (if available) into the newly created inbox. 1 — to move the history; 0 — not to move the history. The history will only move to the inbox if this is a coexistence onboarding and the end user allowed the history to be shared. The default is 0. 1 No 1 After you create a new inbox with this WhatsApp number, the inbox will be created inside the relevant online account and will be ready to use. You will not be able to create a new inbox with the same WhatsApp number unless you delete the inbox with the Delete a WhatsApp Inbox endpoint first. Import the history (coexistence) If the WhatsApp number was onboarded as a coexistence account ( coexistence is 1 in Get WhatsApp Numbers) and you set import history to 1, the contacts are created in the inbox, and the history messages — incoming and outgoing — are added to their conversations in chronological order. For a number that is not a coexistence account, import history is ignored and the inbox is created without history. The import runs before the response is sent, so with a long history the request can take a while. The response then includes coexistence , with the number of contacts and messages imported. Response { \"status\": \"OK\", \"reason\": 1, \"account id\": 8, \"inbox id\": 100, \"server\": \"online\", \"whatsapp\": \"972501234567\" } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful — the inbox is created and ready to use. \"FAIL\" means error. account id The account ID you used. inbox id The newly created inbox ID. The WhatsApp number is now connected to this inbox. server The server subdomain that this inbox was created on: https://{server}.99digital.co.il . whatsapp The WhatsApp number that belongs to the new inbox. coexistence Only when the history was imported ( import history 1 for a coexistence number): the result of the import — contacts imported (the number of contacts created in the inbox), messages imported (the number of history messages added to the inbox) and success ( false if the import stopped with an error, or the inbox's connection to the WhatsApp number couldn't be restored after the import — contact support). reason The status explanation — see the table below. Reason Explanation 0 The settings of the account's server couldn't be loaded — contact support. The response also has an error text. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the body isn't valid JSON (send it with Content-Type: application/json ), or import history isn't a number. Try again. 13 You need to use the POST method. 20 reference is invalid: longer than 50 characters, or has characters other than letters, digits, spaces and hyphens. 31 Error on creating an inbox (on the account's server), please try again or contact support. 33 account id is invalid or wrong: not a number, or not one of your accounts on this server . 34 server is invalid or wrong: empty, longer than 30 characters, or has characters other than letters, digits, spaces and hyphens. 43 inbox type is invalid or wrong — it must be whatsapp . 44 inbox name is invalid or wrong: empty, longer than 50 characters, or has characters other than letters, digits, spaces and hyphens. 45 whatsapp number is invalid or does not exist under your account: not digits only (at least 9), not one of your WhatsApp numbers, already connected to an inbox, or not active. Webhook If you set a webhook, you get an online event with online extra info 5, \"new WhatsApp inbox was created\", with your reference in online reference (see Event: Online). Access Requires the Access create WhatsApp inbox page permission. Account-scoped access tokens — created from an account's Account API Credentials in the partners dashboard — can't use this endpoint: they get reason 2. When the access token has expired (reason 3), create a new one with Access Token. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description inbox type string Yes The inbox type. A fixed value — whatsapp is the only type. One of: whatsapp — A WhatsApp inbox, connected to one of your WhatsApp numbers. Example: whatsapp . inbox name string Yes The name of the WhatsApp inbox. Letters (English, Hebrew or Arabic), digits, spaces and hyphens. Max length: 50. Example: My WhatsApp Inbox . whatsapp number string Yes The WhatsApp number that you wish to connect to the inbox, in international format without + (digits only, at least 9, up to 20). The number must not be part of an inbox already, must be a working WhatsApp V2 API number (active), and must be a number under your partner account — see Get WhatsApp Numbers, where isOnline 0 means the number is available. Min length: 9. Example: 972501234567 . account id integer Yes The account ID you wish to add the new WhatsApp inbox to. Digits only, up to 20 digits (a string of digits is accepted too). Example: 8 . server string No The server subdomain of the account ID — the server the account is on. The default is online . Default: online . Max length: 30. Example: online . reference string No Any reference value you wish to receive back on the webhook ( online reference ). This is for your use only, so you can recognize your inbox. Letters, digits, spaces and hyphens. Max length: 50. Example: crm-4711 . import history integer No If the whatsapp number you want to create the inbox with is a coexistence account, you can ask the system to import all its history (if available) into the newly created inbox. The history will only move to the inbox if this is a coexistence onboarding and the end user allowed the history to be shared. Ignored for any other number. The default is 0. One of: 0 — Not to move the history (default); 1 — To move the history — only if this is a coexistence onboarding and the end user allowed the history to be shared. Default: 0 . Example: 1 . Example: WhatsApp inbox Connect a WhatsApp number to a new inbox in account 8. { \"inbox type\": \"whatsapp\", \"inbox name\": \"My WhatsApp Inbox\", \"whatsapp number\": \"972501234567\", \"account id\": 8, \"server\": \"online\" } Example: With history import A coexistence number: import its history into the new inbox, and get crm-4711 back on the webhook. { \"inbox type\": \"whatsapp\", \"inbox name\": \"שירות לקוחות\", \"whatsapp number\": \"972501234567\", \"account id\": 8, \"server\": \"online\", \"reference\": \"crm-4711\", \"import history\": 1 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful — the inbox is created and ready to use. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . account id integer (one of: OK) The account ID you used. Example: 8 . inbox id integer (one of: OK) The newly created inbox ID. The WhatsApp number is now connected to this inbox. Example: 100 . server string (one of: OK) The server subdomain that this inbox was created on ( https:// .99digital.co.il ). Example: online . whatsapp string (one of: OK) The WhatsApp number that belongs to the new inbox. Example: 972501234567 . coexistence object (one of: OK) Only when the history was imported ( import history 1 for a coexistence number): the result of the import. coexistence.contacts imported integer (one of: OK) The number of contacts created in the inbox. Example: 120 . coexistence.messages imported integer (one of: OK) The number of history messages added to the inbox. Example: 3480 . coexistence.success boolean (one of: OK) false if the import stopped with an error, or the inbox's connection to the WhatsApp number couldn't be restored after the import — contact support. Single contacts or messages that fail to import don't change it. Example: true . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — contact support. The response also has an error text; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the body isn't valid JSON (send it with Content-Type: application/json ), or import history isn't a number. Try again; 13 — You need to use the POST method; 20 — reference is invalid: longer than 50 characters, or has characters other than letters, digits, spaces and hyphens; 31 — Error creating the inbox on the account's server — please try again or contact support; 33 — account id is invalid or wrong: not a number, or not one of your accounts on this server ; 34 — server is invalid or wrong: empty, longer than 30 characters, or has characters other than letters, digits, spaces and hyphens; 43 — inbox type is invalid or wrong — it must be whatsapp ; 44 — inbox name is invalid or wrong: empty, longer than 50 characters, or has characters other than letters, digits, spaces and hyphens; 45 — whatsapp number is invalid or does not exist under your account: not digits only (at least 9), not one of your WhatsApp numbers, already connected to an inbox, or not active. error string (one of: FAIL) Only with reason 0 — a short technical description of the problem. Example: OK The inbox is created, and the WhatsApp number is connected to it. { \"status\": \"OK\", \"reason\": 1, \"account id\": 8, \"inbox id\": 100, \"server\": \"online\", \"whatsapp\": \"972501234567\" } Example: OK + history import With import history 1 for a coexistence number, the response includes the result of the import. { \"status\": \"OK\", \"reason\": 1, \"account id\": 8, \"inbox id\": 100, \"server\": \"online\", \"whatsapp\": \"972501234567\", \"coexistence\": { \"contacts imported\": 120, \"messages imported\": 3480, \"success\": true } } Example: Reason 45 The WhatsApp number is not yours, is already connected to an inbox, or is not active. { \"status\": \"FAIL\", \"reason\": 45 } Example: Reason 33 account id is not one of your accounts on this server . { \"status\": \"FAIL\", \"reason\": 33 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/delete-inbox",
      "title": "Delete a WhatsApp Inbox",
      "url": "https://docs.99digital.co.il/partners-api/online/delete-a-whatsapp-inbox",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/delete-a-whatsapp-inbox.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Delete an inbox removes and deletes the inbox from your online account.",
      "endpoint": {
        "method": "DELETE",
        "path": "/online/deleteInbox",
        "url": "https://partners.99digital.co.il/api/online/deleteInbox"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "What happens",
        "Access",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 47",
        "Example: Reason 33",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "deleteInbox",
        "online",
        "accountID",
        "server",
        "inboxID",
        "status",
        "reason",
        "whatsapp_number",
        "error"
      ],
      "content": "DELETE https://partners.99digital.co.il/api/online/deleteInbox Delete an inbox removes and deletes the inbox from your online account. The inbox ID will be canceled and removed immediately. All messages, conversations, contacts, files, webhooks, labels — everything inside that inbox will be deleted. All Studio data, reports and saved information within this inbox will be removed. Make sure you back up all the data you need from within the inbox. The WhatsApp number connected to this inbox will be released, in case you want to connect it to another account. This operation does not cancel or disable the WhatsApp number; it only removes the WhatsApp inbox. This operation is irreversible! Make sure this is really what you want. Settings Setting Value URL https://partners.99digital.co.il/api/online/deleteInbox Method JSON via DELETE Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Body Parameter Description / Example accountID The account ID where the inbox is located. Digits only, up to 20 digits (a string of digits is accepted too). server The server subdomain of the account ID. The default is online . inboxID The WhatsApp inbox ID within the account. Digits only, up to 20 digits. You can get this value from the Partners API endpoint Get WhatsApp Numbers: it is the number's onlineInbox . Response { \"status\": \"OK\", \"reason\": 1, \"accountID\": 1234, \"server\": \"online\", \"inboxID\": 10, \"whatsapp number\": \"972501234567\" } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful — the inbox is deleted. \"FAIL\" means error. accountID The account ID you provided. server The server subdomain where the account is hosted. inboxID The inbox ID you requested to delete. whatsapp number The WhatsApp number that was connected to this inbox. It is now free to connect to a new inbox. reason The status explanation — see the table below. Reason Explanation 0 The settings of the account's server couldn't be loaded — contact support. The response also has an error text. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again. 13 You need to use the DELETE method. 33 accountID is empty or wrong: not a number, or not one of your accounts on this server . 34 server is invalid or wrong. 47 inboxID is invalid or wrong: not a number, not a WhatsApp inbox of this account (an inbox that a WhatsApp number is connected to), or unknown to the server. You can only remove a WhatsApp inbox using this endpoint — an inbox that a WhatsApp number is connected to. Any other inbox gets reason 47. What happens The inbox is deleted on the account's server. If the server doesn't know the inbox, the response is reason 47 and nothing changes. The WhatsApp number that was connected to the inbox is released: in Get WhatsApp Numbers its isOnline goes back to 0, and you can connect it to a new inbox — in this account or in another one — with Create a new WhatsApp Inbox. If you set a webhook, you get an online event with online extra info 6, \"WhatsApp inbox was deleted\" (see Event: Online). Access Requires the Access delete WhatsApp inbox page permission. Account-scoped access tokens — created from an account's Account API Credentials in the partners dashboard — can't use this endpoint: they get reason 2. When the access token has expired (reason 3), create a new one with Access Token. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description accountID integer Yes The account ID where the inbox is located. Digits only, up to 20 digits (a string of digits is accepted too). Example: 1234 . server string No The server subdomain of the account ID — the server the account is on. The default is online . Default: online . Example: online . inboxID integer Yes The WhatsApp inbox ID within the account. Digits only, up to 20 digits. You can get this value from Get WhatsApp Numbers: it is the number's onlineInbox . Example: 10 . Example (generated from the schema) { \"accountID\": 1234, \"server\": \"online\", \"inboxID\": 10 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful — the inbox is deleted. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . accountID integer (one of: OK) The account ID you provided. Example: 1234 . server string (one of: OK) The server subdomain where the account is hosted. Example: online . inboxID integer (one of: OK) The inbox ID you requested to delete. Example: 10 . whatsapp number string (one of: OK) The WhatsApp number that was connected to this inbox. It is now free to connect to a new inbox. Example: 972501234567 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — contact support. The response also has an error text; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again; 13 — You need to use the DELETE method; 33 — accountID is empty or wrong: not a number, or not one of your accounts on this server ; 34 — server is invalid or wrong; 47 — inboxID is invalid or wrong: not a number, not a WhatsApp inbox of this account (an inbox that a WhatsApp number is connected to), or unknown to the server. error string (one of: FAIL) Only with reason 0 — a short technical description of the problem. Example: OK The inbox is deleted and its WhatsApp number is released. { \"status\": \"OK\", \"reason\": 1, \"accountID\": 1234, \"server\": \"online\", \"inboxID\": 10, \"whatsapp number\": \"972501234567\" } Example: Reason 47 inboxID is not a WhatsApp inbox of this account (or it was already deleted). { \"status\": \"FAIL\", \"reason\": 47 } Example: Reason 33 accountID is not one of your accounts on this server . { \"status\": \"FAIL\", \"reason\": 33 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/get-notifications",
      "title": "Get Notifications for Agent",
      "url": "https://docs.99digital.co.il/partners-api/online/get-notifications-for-agent",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/get-notifications-for-agent.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "You can get a list of all the notifications for an agent.",
      "endpoint": {
        "method": "POST",
        "path": "/online/getNotifications",
        "url": "https://partners.99digital.co.il/api/online/getNotifications"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Access",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 33",
        "Example: Reason 37",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "getNotifications",
        "online",
        "accountID",
        "agentID",
        "server",
        "page",
        "status",
        "reason",
        "meta",
        "unread_count",
        "count",
        "current_page",
        "payload",
        "id",
        "notification_type",
        "push_message_title",
        "primary_actor_type",
        "primary_actor_id",
        "read_at",
        "created_at",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/getNotifications You can get a list of all the notifications for an agent. Every page contains 15 notifications: send page to get the next ones. The notifications in payload are passed on exactly as the account's server returns them, and meta tells you how many there are and how many are unread. To mark them as read, use Mark Notification (one notification, by its id ) or Mark All Notifications. Settings Setting Value URL https://partners.99digital.co.il/api/online/getNotifications Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Body Parameter Description / Example accountID The account ID you wish to do the action on. Digits only, up to 20 digits (a string of digits is accepted too). agentID The agent ID — the agent's id in Get Agents List. Digits only, up to 20 digits. server The server subdomain hosting the account. English letters and digits only, up to 30 characters. The default is online . page Every page contains 15 notifications. Provide a whole number (1 or more), for example 1 . The default is 1. Response { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"page\": 1, \"meta\": { \"unread count\": 38, \"count\": 41, \"current page\": \"1\" }, \"payload\": [ { \"id\": 67770133, \"notification type\": \"conversation mention\", \"push message title\": \"[#7404] @Dana can you check this order?\", \"primary actor type\": \"Conversation\", \"primary actor id\": 8743400, \"read at\": null, \"created at\": 1784613835 } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. accountID The account ID you provided. agentID The agent ID you provided. server The server you provided. page The page you asked for. meta The counters of the agent's notifications, as the account's server returns them: unread count (the notifications the agent hasn't read yet), count (all the agent's notifications) and current page (the page in this response, as a string). payload The full data of the notifications of this page, exactly as the account's server returns them. Each notification's id is the notification id to send to Mark Notification. reason The status explanation — see the table below. Reason Explanation 0 The settings of the account's server couldn't be loaded — contact support. The response also has an error text. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again. 13 You need to use the POST method. 29 accountID is invalid or wrong. 31 The account's server didn't return the notifications — try again or contact support. 32 You can't connect to a suspended account. 33 accountID is invalid or wrong: not a number, not one of your accounts on this server , or — with an account-scoped token — not the token's own account and server. 34 server is invalid or wrong: empty, longer than 30 characters, or not English letters and digits only. 35 agentID is invalid or wrong: missing or not a number. 37 Wrong page : not a whole number of 1 or more. Access With a partner access token, requires the View user notifications permission. An account-scoped access token — created from an account's Account API Credentials in the partners dashboard — works here too, but only for its own account: accountID and server must be the token's account and server ( server defaults to online ), otherwise the response is reason Permissions don't apply to an account-scoped token. When the access token has expired (reason 3), create a new one with Access Token. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description accountID integer Yes The account ID you wish to do the action on. Digits only, up to 20 digits (a string of digits is accepted too). Example: 4142 . agentID integer Yes The agent ID — the agent's id in Get Agents List. Digits only, up to 20 digits. Example: 3142 . server string No The server subdomain hosting the account. English letters and digits only. The default is online . Default: online . Max length: 30. Example: online . page integer No The page number. Every page contains 15 notifications; provide a whole number, for example 1. Default: 1 . Minimum: 1. Example: 1 . Example (generated from the schema) { \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"page\": 1 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . accountID integer (one of: OK) The account ID you provided. Example: 4142 . agentID integer (one of: OK) The agent ID you provided. Example: 3142 . server string (one of: OK) The server you provided. Example: online . page integer (one of: OK) The page you asked for. Example: 1 . meta object (one of: OK) The counters of the agent's notifications, as the account's server returns them. meta.unread count integer (one of: OK) The number of notifications the agent hasn't read yet. Example: 38 . meta.count integer (one of: OK) The number of notifications the agent has. Example: 41 . meta.current page string (one of: OK) The page in this response (a string). Example: 1 . payload array of object (one of: OK) The notifications of this page — the full notification objects, exactly as the account's server returns them. The main fields are listed here. payload[].id integer (one of: OK) The notification ID — the notification id to send to Mark Notification. Example: 67770133 . payload[].notification type string (one of: OK) The kind of notification, for example conversation mention . Example: conversation mention . payload[].push message title string (one of: OK) The notification text. Example: [#7404] @Dana can you check this order? . payload[].primary actor type string (one of: OK) What the notification is about, for example Conversation . Example: Conversation . payload[].primary actor id integer (one of: OK) The ID of what the notification is about (for a conversation, its ID). Example: 8743400 . payload[].read at any (one of: OK) When the agent read the notification; null while it is unread. Example: null . payload[].created at integer (one of: OK) When the notification was created (Unix time). Example: 1784613835 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — contact support. The response also has an error text; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again; 13 — You need to use the POST method; 29 — accountID is invalid or wrong; 31 — The account's server didn't return the notifications — try again or contact support; 32 — You can't connect to a suspended account; 33 — accountID is invalid or wrong: not a number, not one of your accounts on this server , or — with an account-scoped token — not the token's own account and server; 34 — server is invalid or wrong: empty, longer than 30 characters, or not English letters and digits only; 35 — agentID is invalid or wrong: missing or not a number; 37 — Wrong page : not a whole number of 1 or more. error string (one of: FAIL) Only with reason 0 — a short technical description of the problem. Example: OK The first page of the agent's notifications. { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"agentID\": 3142, \"server\": \"online\", \"page\": 1, \"meta\": { \"unread count\": 38, \"count\": 41, \"current page\": \"1\" }, \"payload\": [ { \"id\": 67770133, \"notification type\": \"conversation mention\", \"push message title\": \"[#7404] @Dana can you check this order?\", \"primary actor type\": \"Conversation\", \"primary actor id\": 8743400, \"read at\": null, \"created at\": 1784613835 }, { \"id\": 67770098, \"notification type\": \"conversation mention\", \"push message title\": \"[#7398] @Dana the client is waiting for a reply\", \"primary actor type\": \"Conversation\", \"primary actor id\": 8743391, \"read at\": null, \"created at\": 1784612950 } ] } Example: Reason 33 accountID is not one of your accounts on this server , or not the account of the account-scoped token. { \"status\": \"FAIL\", \"reason\": 33 } Example: Reason 37 page is not a whole number of 1 or more. { \"status\": \"FAIL\", \"reason\": 37 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/mark-notification-read",
      "title": "Mark Notification",
      "url": "https://docs.99digital.co.il/partners-api/online/mark-notification",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/mark-notification.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Mark a notification as read, by notification ID.",
      "endpoint": {
        "method": "POST",
        "path": "/online/markNotificationRead",
        "url": "https://partners.99digital.co.il/api/online/markNotificationRead"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Access",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 31",
        "Example: Reason 36",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "markNotificationRead",
        "online",
        "accountID",
        "notification_id",
        "server",
        "status",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/markNotificationRead Mark a notification as read, by notification ID. The notification ID is the id of a notification in Get Notifications for Agent. To mark all the notifications of an agent at once, use Mark All Notifications. Settings Setting Value URL https://partners.99digital.co.il/api/online/markNotificationRead Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Body Parameter Description / Example accountID The account ID you wish to do the action on. Digits only, up to 20 digits (a string of digits is accepted too). notification id The ID of the notification you want to mark as read — its id in Get Notifications for Agent. Digits only, up to 20 digits. server The server subdomain hosting the account. English letters and digits only, up to 30 characters. The default is online . Response { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"server\": \"online\", \"notification id\": 67770133 } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful — the notification is marked as read. \"FAIL\" means error. accountID The account ID you provided. server The server you provided. notification id The notification ID you provided. reason The status explanation — see the table below. Reason Explanation 0 The settings of the account's server couldn't be loaded — contact support. The response also has an error text. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again. 13 You need to use the POST method. 29 accountID is invalid or wrong. 31 The account's server didn't mark the notification as read (it answered with an error, or didn't confirm) — check notification id and try again, or contact support. 32 You can't connect to a suspended account. 33 accountID is invalid or wrong: not a number, not one of your accounts on this server , or — with an account-scoped token — not the token's own account and server. 34 server is invalid or wrong: empty, longer than 30 characters, or not English letters and digits only. 35 agentID is invalid or wrong. 36 Wrong notification id : missing or not a number. Access With a partner access token, requires the Mark notifications as read permission. An account-scoped access token — created from an account's Account API Credentials in the partners dashboard — works here too, but only for its own account: accountID and server must be the token's account and server ( server defaults to online ), otherwise the response is reason Permissions don't apply to an account-scoped token. When the access token has expired (reason 3), create a new one with Access Token. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description accountID integer Yes The account ID you wish to do the action on. Digits only, up to 20 digits (a string of digits is accepted too). Example: 4142 . notification id integer Yes The ID of the notification you want to mark as read — its id in Get Notifications for Agent. Digits only, up to 20 digits. Example: 67770133 . server string No The server subdomain hosting the account. English letters and digits only. The default is online . Default: online . Max length: 30. Example: online . Example (generated from the schema) { \"accountID\": 4142, \"notification id\": 67770133, \"server\": \"online\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful — the notification is marked as read. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . accountID integer (one of: OK) The account ID you provided. Example: 4142 . server string (one of: OK) The server you provided. Example: online . notification id integer (one of: OK) The notification ID you provided. Example: 67770133 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — contact support. The response also has an error text; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again; 13 — You need to use the POST method; 29 — accountID is invalid or wrong; 31 — The account's server didn't mark the notification as read (it answered with an error, or didn't confirm) — check notification id and try again, or contact support; 32 — You can't connect to a suspended account; 33 — accountID is invalid or wrong: not a number, not one of your accounts on this server , or — with an account-scoped token — not the token's own account and server; 34 — server is invalid or wrong: empty, longer than 30 characters, or not English letters and digits only; 35 — agentID is invalid or wrong; 36 — Wrong notification id : missing or not a number. error string (one of: FAIL) Only with reason 0 — a short technical description of the problem. Example: OK The notification is marked as read. { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"server\": \"online\", \"notification id\": 67770133 } Example: Reason 31 The account's server didn't mark the notification as read. { \"status\": \"FAIL\", \"reason\": 31 } Example: Reason 36 notification id is missing or not a number. { \"status\": \"FAIL\", \"reason\": 36 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/mark-all-notifications-read",
      "title": "Mark All Notifications",
      "url": "https://docs.99digital.co.il/partners-api/online/mark-all-notifications",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/mark-all-notifications.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "Mark all notifications as read for an agent ID.",
      "endpoint": {
        "method": "POST",
        "path": "/online/markAllNotificationsRead",
        "url": "https://partners.99digital.co.il/api/online/markAllNotificationsRead"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Access",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 35",
        "Example: Reason 33",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example"
      ],
      "keywords": [
        "markAllNotificationsRead",
        "online",
        "accountID",
        "agentID",
        "server",
        "status",
        "reason",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/markAllNotificationsRead Mark all notifications as read for an agent ID. To mark a single notification, use Mark Notification. To see the agent's notifications, use Get Notifications for Agent. Settings Setting Value URL https://partners.99digital.co.il/api/online/markAllNotificationsRead Method JSON via POST Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Body Parameter Description / Example accountID The account ID of the agent. Digits only, up to 20 digits (a string of digits is accepted too). agentID The agent ID whose notifications you wish to mark as read — the agent's id in Get Agents List. Digits only, up to 20 digits. server The server subdomain hosting the account. English letters and digits only, up to 30 characters. The default is online . Response { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"server\": \"online\", \"agentID\": 12 } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful — all the agent's notifications are marked as read. \"FAIL\" means error. accountID The account ID you provided. agentID The agent ID you provided. server The server address (subdomain) you provided. reason The status explanation — see the table below. Reason Explanation 0 The settings of the account's server couldn't be loaded — contact support. The response also has an error text. 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again. 13 You need to use the POST method. 29 accountID is invalid or wrong. 31 The account's server didn't mark the notifications as read (it answered with an error, or didn't confirm) — try again or contact support. 32 You can't connect to a suspended account. 33 accountID is invalid or wrong: not a number, not one of your accounts on this server , or — with an account-scoped token — not the token's own account and server. 34 server is invalid or wrong: empty, longer than 30 characters, or not English letters and digits only. 35 agentID is invalid or wrong: missing or not a number. Access With a partner access token, requires the Mark notifications as read permission. An account-scoped access token — created from an account's Account API Credentials in the partners dashboard — works here too, but only for its own account: accountID and server must be the token's account and server ( server defaults to online ), otherwise the response is reason Permissions don't apply to an account-scoped token. When the access token has expired (reason 3), create a new one with Access Token. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description accountID integer Yes The account ID of the agent. Digits only, up to 20 digits (a string of digits is accepted too). Example: 4142 . agentID integer Yes The agent ID whose notifications you wish to mark as read — the agent's id in Get Agents List. Digits only, up to 20 digits. Example: 12 . server string No The server subdomain hosting the account. English letters and digits only. The default is online . Default: online . Max length: 30. Example: online . Example (generated from the schema) { \"accountID\": 4142, \"agentID\": 12, \"server\": \"online\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful — all the agent's notifications are marked as read. Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . accountID integer (one of: OK) The account ID you provided. Example: 4142 . agentID integer (one of: OK) The agent ID you provided. Example: 12 . server string (one of: OK) The server you provided. Example: online . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 0 — The settings of the account's server couldn't be loaded — contact support. The response also has an error text; 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, or the body isn't valid JSON (send it with Content-Type: application/json ). Try again; 13 — You need to use the POST method; 29 — accountID is invalid or wrong; 31 — The account's server didn't mark the notifications as read (it answered with an error, or didn't confirm) — try again or contact support; 32 — You can't connect to a suspended account; 33 — accountID is invalid or wrong: not a number, not one of your accounts on this server , or — with an account-scoped token — not the token's own account and server; 34 — server is invalid or wrong: empty, longer than 30 characters, or not English letters and digits only; 35 — agentID is invalid or wrong: missing or not a number. error string (one of: FAIL) Only with reason 0 — a short technical description of the problem. Example: OK All the agent's notifications are marked as read. { \"status\": \"OK\", \"reason\": 1, \"accountID\": 4142, \"agentID\": 12, \"server\": \"online\" } Example: Reason 35 agentID is missing or not a number. { \"status\": \"FAIL\", \"reason\": 35 } Example: Reason 33 accountID is not one of your accounts on this server , or not the account of the account-scoped token. { \"status\": \"FAIL\", \"reason\": 33 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" }"
    },
    {
      "id": "partners-api/get-usage",
      "title": "Online Usage",
      "url": "https://docs.99digital.co.il/partners-api/online/online-usage",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/online/online-usage.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Online"
      ],
      "language": "en",
      "description": "This endpoint allows you to get your account's online usage data.",
      "endpoint": {
        "method": "POST",
        "path": "/online/getUsage",
        "url": "https://partners.99digital.co.il/api/online/getUsage"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "When the numbers update",
        "Rate limit",
        "Access",
        "Authentication",
        "Request body",
        "Example: One month",
        "Example: One account",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Current month",
        "Example: No data",
        "Example: Reason 48",
        "Example: Reason 49",
        "403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions.",
        "Example",
        "429 — Too many requests (HTTP 429): your partner account made more than 10 requests in this clock minute. Wait for the next minute and try again.",
        "Example"
      ],
      "keywords": [
        "getUsage",
        "online",
        "month",
        "server",
        "account_id",
        "status",
        "reason",
        "month_label",
        "is_current_month",
        "totalAccounts",
        "list",
        "year",
        "account_name",
        "online_name",
        "server_name",
        "total_agents",
        "data_amount",
        "data_amount_gb",
        "total_inboxes",
        "inboxes",
        "whatsapp",
        "sms",
        "facebook",
        "api",
        "website",
        "email",
        "line",
        "tiktok",
        "sms_packages",
        "chat_gpt",
        "builder",
        "mobile_app",
        "docal_enabled",
        "collected_at",
        "collected_at_israel",
        "error"
      ],
      "content": "POST https://partners.99digital.co.il/api/online/getUsage This endpoint allows you to get your account's online usage data. The data is always updated to yesterday. There is a rate limit of 10 requests per minute to avoid abuse. It is the same data as the Online Usage page of the partners dashboard. You get only the accounts that belong to your partner account, one item per account per server, sorted by server and then by account id . An account id or server that isn't yours is not an error: the list is simply empty. One month per request: to get several months, call the endpoint once per month. Settings Setting Value URL https://partners.99digital.co.il/api/online/getUsage Method JSON via POST. GET works too, with the same fields as query parameters: GET /online/getUsage?month=0926&server=online&account id=123 . With POST, the fields are read from the JSON body; a field that is not in the body is read from the query string. Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Body Parameter Description / Example Maximum length Mandatory Example month The month + year in mmyy format, for example 1026 for October 2026. Only the current month or an earlier month (Israel time). Send it as a string, so a leading zero is kept ( 0926 ). 4 Yes 1026 server The server name, if relevant: return only the accounts on this server. Letters, digits, spaces and hyphens. Empty or left out — all servers. 30 No online account id In case you want to get the data of a specific account ID (exact match). Digits only. Empty or left out — all accounts. 20 digits No 1 Response { \"status\": \"OK\", \"reason\": 1, \"month\": \"0926\", \"month label\": \"09/2026\", \"is current month\": false, \"server\": null, \"account id\": null, \"totalAccounts\": 1, \"list\": [ { \"month\": \"0926\", \"month label\": \"09/2026\", \"year\": 2026, \"account id\": 123, \"account name\": \"Client Name\", \"online name\": \"Client Name Ltd\", \"server\": \"online\", \"server name\": \"online\", \"total agents\": 5, \"data amount\": \"74.3GB\", \"data amount gb\": 74.3, \"total inboxes\": 6, \"inboxes\": { \"whatsapp\": 2, \"sms\": 1, \"facebook\": 1, \"api\": 1, \"website\": 1, \"email\": 0, \"line\": 0, \"tiktok\": 0 }, \"sms packages\": { \"1\": 1, \"2\": 0, \"3\": 0 }, \"chat gpt\": true, \"builder\": false, \"mobile app\": true, \"docal enabled\": false, \"collected at\": 1790805612, \"collected at israel\": \"01-10-2026 01:00:12\" } ] } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful (also when list is empty). \"FAIL\" means error. month String — the same as the request ( mmyy ). month label String — the requested month, in mm/yyyy format. is current month Boolean. true = the current month (still updated every night); false = an old month (its numbers are final). server String or null — the server filter you provided, or null for all servers. account id Number or null — the account filter you provided, or null for all accounts. totalAccounts Number — the total number of items inside list . list One item per account per server — see the table below. Empty when there is no data. reason The status explanation — see the reason table below. Each item in list : Field Type Description month / month label / year string / string / number The month of the record ( mmyy , mm/yyyy , yyyy ). account id number The online account ID. account name string The account name, as saved in the partners system. online name string The account name as it appears on the online server. server string The server the account is on. server name string The display name of the server. total agents number The number of agents in the account. data amount string The data used, as text, for example 74.2GB . data amount gb number The same value as data amount , just as a number in GB. total inboxes number The total number of inboxes this account has. inboxes → whatsapp / sms / facebook / api / website / email / line / tiktok number The number of inboxes of each type ( facebook counts Facebook and Instagram inboxes; website is live chat). sms packages object The number of SMS inboxes per SMS package. The keys are package numbers as strings, for example \"1\" / \"2\" / \"3\" ; these three are always present, 0 if unused. Any other package in use is added as an extra key. chat gpt boolean Whether ChatGPT is enabled in the account. builder boolean Whether a Builder is connected to the account. mobile app boolean Whether the mobile app is enabled for the account. docal enabled boolean Whether Docal is enabled for the account. collected at number The Unix timestamp of when the data was collected. collected at israel string The same time as collected at , just in Israel time ( dd-mm-yyyy HH:MM:SS ). Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, try again. 33 Invalid account id : not digits only (up to 20 digits). 34 Invalid server format: longer than 30 characters, or has characters other than letters, digits, spaces and hyphens. 48 month is missing or not in mmyy format (the month must be 01–12). 49 month can't be a future time — only the current month or an old month is accepted (Israel time). 403 Permission denied (HTTP 403): the user the access token was created for doesn't have the Access Online usage page permission. 429 Too many requests (HTTP 429): more than 10 requests in this clock minute. Wait for the next minute and try again. When the numbers update The usage is collected once a night (at about 01:00 Israel time) from every online server, and each collection saves the state of every account at that moment into the month of the previous day (Israel time): Current month ( is current month true): the numbers are replaced every night with the latest collection — they are not added up. collected at tells you when the record was last collected. A new month : the collection on the 1st (at about 01:00) still belongs to the last day of the previous month, so it closes the previous month. The new month's records first appear after the collection on the 2nd; until then, the current month returns an empty list . Previous months ( is current month false): the last collection of the month — normally the one on the 1st of the next month — is final. These numbers don't change any more. A deleted account keeps its usage: it is still returned for the months that were collected before it was deleted. Rate limit The rate limit of 10 requests per minute counts the requests of your partner account — all its access tokens together — per clock minute; a request over the limit gets HTTP 429 (reason 429). Access Requires the Access Online usage page permission. Account-scoped access tokens — created from an account's Account API Credentials in the partners dashboard — can't use this endpoint: they get reason 2. When the access token has expired (reason 3), create a new one with Access Token. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description month string Yes The month and year in mmyy format, for example 1026 for October 2026. Only the current month or an earlier month (Israel time). Send it as a string, so a leading zero is kept ( 0926 ). Pattern: ^[0-9]{4}$ . Example: 1026 . server string No The server name, if relevant: return only the accounts on this server. Letters, digits, spaces and hyphens. Empty or left out — all servers. Max length: 30. Example: online . account id integer No In case you want to get the data of a specific account ID (exact match). Digits only, up to 20 digits. Empty or left out — all accounts. Example: 1 . Example: One month All your accounts, on all servers, for September 2026. { \"month\": \"0926\" } Example: One account One account on the online server, for November 2026. { \"month\": \"1126\", \"server\": \"online\", \"account id\": 123 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) The request was successful (also when list is empty). Always OK . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . month string (one of: OK) The month you asked for, the same as the request ( mmyy ). Example: 0926 . month label string (one of: OK) The month you asked for, in mm/yyyy format. Example: 09/2026 . is current month boolean (one of: OK) true — the current month, still updated every night. false — an earlier month; its numbers are final. Example: false . server string \\ null (one of: OK) The server filter you provided, or null for all servers. Example: null . account id integer \\ null (one of: OK) The account filter you provided, or null for all accounts. Example: null . totalAccounts integer (one of: OK) The number of items in list . Example: 1 . list array of object (one of: OK) One item per account per server, sorted by server and then by account id . Empty when there is no data. list[].month string (one of: OK) The month of the record ( mmyy ). Example: 0926 . list[].month label string (one of: OK) The month of the record ( mm/yyyy ). Example: 09/2026 . list[].year integer (one of: OK) The year of the record ( yyyy ). Example: 2026 . list[].account id integer (one of: OK) The online account ID. Example: 123 . list[].account name string (one of: OK) The account name, as saved in the partners system. Example: Client Name . list[].online name string (one of: OK) The account name as it appears on the online server. Example: Client Name Ltd . list[].server string (one of: OK) The server the account is on. Example: online . list[].server name string (one of: OK) The display name of the server. Example: online . list[].total agents integer (one of: OK) The number of agents in the account. Example: 5 . list[].data amount string (one of: OK) The data used, as text, for example 74.3GB . Example: 74.3GB . list[].data amount gb number (one of: OK) The same value as data amount , as a number in GB. Example: 74.3 . list[].total inboxes integer (one of: OK) The total number of inboxes this account has. Example: 6 . list[].inboxes object (one of: OK) The number of inboxes of each type. list[].inboxes.whatsapp integer (one of: OK) WhatsApp inboxes. Example: 2 . list[].inboxes.sms integer (one of: OK) SMS inboxes. Example: 1 . list[].inboxes.facebook integer (one of: OK) Facebook and Instagram inboxes. Example: 1 . list[].inboxes.api integer (one of: OK) API inboxes. Example: 1 . list[].inboxes.website integer (one of: OK) Website (live chat) inboxes. Example: 1 . list[].inboxes.email integer (one of: OK) Email inboxes. Example: 0 . list[].inboxes.line integer (one of: OK) Line inboxes. Example: 0 . list[].inboxes.tiktok integer (one of: OK) TikTok inboxes. Example: 0 . list[].sms packages object (one of: OK) The number of SMS inboxes per SMS package. The keys are package numbers as strings: \"1\" , \"2\" and \"3\" are always present (0 if unused), and any other package in use is added as an extra key. list[].chat gpt boolean (one of: OK) Whether ChatGPT is enabled in the account. Example: true . list[].builder boolean (one of: OK) Whether a Builder is connected to the account. Example: false . list[].mobile app boolean (one of: OK) Whether the mobile app is enabled for the account. Example: true . list[].docal enabled boolean (one of: OK) Whether Docal is enabled for the account. Example: false . list[].collected at integer (one of: OK) When the data was collected (Unix time). Example: 1790805612 . list[].collected at israel string (one of: OK) The same time as collected at , in Israel time ( dd-mm-yyyy HH:MM:SS ). Example: 01-10-2026 01:00:12 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, try again; 33 — Invalid account id : not digits only (up to 20 digits); 34 — Invalid server format: longer than 30 characters, or has characters other than letters, digits, spaces and hyphens; 48 — month is missing or not in mmyy format (the month must be 01–12); 49 — month can't be a future time — only the current month or an earlier month is accepted (Israel time). Example: OK The usage of all your accounts for September 2026 — a closed month. { \"status\": \"OK\", \"reason\": 1, \"month\": \"0926\", \"month label\": \"09/2026\", \"is current month\": false, \"server\": null, \"account id\": null, \"totalAccounts\": 1, \"list\": [ { \"month\": \"0926\", \"month label\": \"09/2026\", \"year\": 2026, \"account id\": 123, \"account name\": \"Client Name\", \"online name\": \"Client Name Ltd\", \"server\": \"online\", \"server name\": \"online\", \"total agents\": 5, \"data amount\": \"74.3GB\", \"data amount gb\": 74.3, \"total inboxes\": 6, \"inboxes\": { \"whatsapp\": 2, \"sms\": 1, \"facebook\": 1, \"api\": 1, \"website\": 1, \"email\": 0, \"line\": 0, \"tiktok\": 0 }, \"sms packages\": { \"1\": 1, \"2\": 0, \"3\": 0 }, \"chat gpt\": true, \"builder\": false, \"mobile app\": true, \"docal enabled\": false, \"collected at\": 1790805612, \"collected at israel\": \"01-10-2026 01:00:12\" } ] } Example: Current month One account, in the current month: updated to yesterday, and replaced again in the next nightly collection. { \"status\": \"OK\", \"reason\": 1, \"month\": \"1126\", \"month label\": \"11/2026\", \"is current month\": true, \"server\": \"online\", \"account id\": 123, \"totalAccounts\": 1, \"list\": [ { \"month\": \"1126\", \"month label\": \"11/2026\", \"year\": 2026, \"account id\": 123, \"account name\": \"Client Name\", \"online name\": \"Client Name Ltd\", \"server\": \"online\", \"server name\": \"online\", \"total agents\": 6, \"data amount\": \"81.9GB\", \"data amount gb\": 81.9, \"total inboxes\": 6, \"inboxes\": { \"whatsapp\": 2, \"sms\": 1, \"facebook\": 1, \"api\": 1, \"website\": 1, \"email\": 0, \"line\": 0, \"tiktok\": 0 }, \"sms packages\": { \"1\": 1, \"2\": 0, \"3\": 0 }, \"chat gpt\": true, \"builder\": false, \"mobile app\": true, \"docal enabled\": false, \"collected at\": 1795647609, \"collected at israel\": \"26-11-2026 01:00:09\" } ] } Example: No data No records for the filter — for example an account id that isn't yours, or the current month on its 1st day. { \"status\": \"OK\", \"reason\": 1, \"month\": \"1126\", \"month label\": \"11/2026\", \"is current month\": true, \"server\": null, \"account id\": 9999, \"totalAccounts\": 0, \"list\": [] } Example: Reason 48 month is missing or not in mmyy format. { \"status\": \"FAIL\", \"reason\": 48 } Example: Reason 49 month is in the future. { \"status\": \"FAIL\", \"reason\": 49 } 403 — Permission denied (HTTP 403). The access token is valid, but the partners dashboard user it was created for doesn't have the permission this endpoint needs. An admin of your partner account can enable it in the user's permissions. Content type: application/json Field Type Description status string FAIL — the request was not carried out. Always FAIL . reason integer Always 403. Always 403 . error string \"Permission denied\" — the user of this access token lacks the permission this endpoint needs. Always Permission denied . Example { \"status\": \"FAIL\", \"reason\": 403, \"error\": \"Permission denied\" } 429 — Too many requests (HTTP 429): your partner account made more than 10 requests in this clock minute. Wait for the next minute and try again. Content type: application/json Field Type Description status string FAIL — the request was not carried out, because of the rate limit. Always FAIL . reason integer Always 429 — too many requests. Always 429 . error string Always Too many requests : more than 10 requests in this clock minute. Wait for the next minute and try again. Always Too many requests . Example { \"status\": \"FAIL\", \"reason\": 429, \"error\": \"Too many requests\" }"
    },
    {
      "id": "partners-api/access-token",
      "title": "Access Token",
      "url": "https://docs.99digital.co.il/partners-api/settings/access-token",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/access-token.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings"
      ],
      "language": "en",
      "description": "This endpoint allows you to create an access token from your client id and client secret.",
      "endpoint": {
        "method": "POST",
        "path": "/settings/accessToken",
        "url": "https://partners.99digital.co.il/api/settings/accessToken"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Client id and client secret",
        "Remarks",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — a successful answer has the token and reason 1; a failed one has status FAIL and the reason.",
        "Example: OK",
        "Example: Reason 2",
        "Example: Reason 4"
      ],
      "keywords": [
        "accessToken",
        "settings",
        "client_id",
        "client_secret",
        "access_token",
        "expiration_time",
        "token_type",
        "reason",
        "status"
      ],
      "content": "POST https://partners.99digital.co.il/api/settings/accessToken This endpoint allows you to create an access token from your client id and client secret. The client id and client secret can be obtained from your partners dashboard (see \"Client id and client secret\" below). The access token is valid for 1 hour, and should be sent with any request inside the Partners API, as the header: Authorization: Bearer XXXXXX Settings Setting Value URL https://partners.99digital.co.il/api/settings/accessToken Method JSON via POST This endpoint is called without an access token: it is the one that creates it. Body Parameter Description / Example Mandatory client id Your client id — 32 characters, English letters and digits only. Yes client secret Your client secret. Yes Response { \"access token\": \"pK7vQ2xR9mLwT4bZ8nC1sD6fG3hJ0aE5yU-iO qW2eR7tY4uI9oP1aS6dF3gH8jK…\", \"expiration time\": 1789903600, \"token type\": \"Bearer\", \"reason\": 1 } Response explained Parameter Description status Only in a failed answer: FAIL means error — see reason . A successful answer has no status : it has the access token, and reason 1. access token This is the access token you should use with any other call to the Partners API. Use this access token in the header of the call, as Authorization: Bearer XXXX (where XXXX is the access token). It is a random string of 171 characters: English letters, digits, - and . expiration time The access token is valid for 1 hour. Here is the time when it will expire (Unix time, in seconds). token type Bearer . reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK — the token was created. 2 The client id or client secret is incorrect: one of them is missing or empty, the client id isn't 32 English letters and digits, or the pair doesn't match. 3 You have tried too many times to get an access token with wrong information. Your IP is blocked, try again later. 4 Server error, try again. Also returned when the body isn't valid JSON, or isn't sent with Content-Type: application/json . Client id and client secret The client id and client secret can be obtained from your partners dashboard. There are two kinds: Your user's credentials. Every user of your partners dashboard has their own client id, shown on the Users page, and a client secret that is emailed to the user when the user is created. The secret can't be shown again, only replaced with Reset Client Secret (a new secret is emailed, and the previous one stops working immediately). A token created with these credentials acts as that user: it is accepted by every Partners API endpoint, and has the permissions the user has in the partners dashboard. An endpoint that needs a permission the user doesn't have answers with HTTP 403 (Permission denied). Account API Credentials of an Online account. Every Online account has its own permanent client id and client secret (the account's API Credentials button on the Online Systems page of the dashboard). A token created with them is limited to that one Online account, and only these endpoints accept it: Get accounts list, Get agents list, Get Inboxes List, Login to an agent, Login to a Conversation, Get Notifications for Agent, Mark Notification and Mark All Notifications. Every other endpoint rejects it with reason 2. Remarks The token expires 1 hour after it is created: expiration time is that moment, in Unix time. A token can't be extended or refreshed. Once it expires, every endpoint answers with reason 3, so create a new token before then. You can create as many tokens as you need. Creating a new token doesn't cancel the tokens you created before; each one stays valid until its own expiration time, also after the client secret is reset. The user's permissions are copied into the token when it is created. After a user's permissions are changed, create a new token for the change to apply. Keep the client secret on your server, never in a web page or a mobile app. Authentication None. Request body Content type: application/json (required) Field Type Required Description client id string Yes Your client id, from your partners dashboard — 32 characters, English letters and digits only. Mandatory. Min length: 32. Max length: 32. Example: 7f3a9c2e5b8d1f4a6c0e9b2d5a8f1c3e . client secret string Yes Your client secret, from your partners dashboard. Mandatory. Example: your-client-secret . Example (generated from the schema) { \"client id\": \"7f3a9c2e5b8d1f4a6c0e9b2d5a8f1c3e\", \"client secret\": \"your-client-secret\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — a successful answer has the token and reason 1; a failed one has status FAIL and the reason . Content type: application/json Field Type Description access token string (one of: OK) This is the access token you should use with any other call to the Partners API. Send it in the header of the call, as Authorization: Bearer XXXX (where XXXX is the access token). It is a random string of 171 characters: English letters, digits, - and . Example: pK7vQ2xR9mLwT4bZ8nC1sD6fG3hJ0aE5yU-iO qW2eR7tY4uI9oP1aS6dF3gH8jK… . expiration time integer (one of: OK) The access token is valid for 1 hour. This is the time when it expires (Unix time, in seconds). Example: 1789903600 . token type string (one of: OK) \"Bearer\" always. Always Bearer . reason integer (one of: OK) 1 — not FAIL, the token was created. Always 1 . status string (one of: FAIL) FAIL means error: the request was not carried out, and reason says why. A successful answer has no status field. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — The client id or client secret is incorrect: one of them is missing or empty, the client id isn't 32 English letters and digits, or the pair doesn't match; 3 — You have tried too many times to get an access token with wrong information. Your IP is blocked, try again later; 4 — Server error, try again. Also returned when the body isn't valid JSON, or isn't sent with Content-Type: application/json . Example: OK The token was created. It expires in 1 hour. { \"access token\": \"pK7vQ2xR9mLwT4bZ8nC1sD6fG3hJ0aE5yU-iO qW2eR7tY4uI9oP1aS6dF3gH8jK…\", \"expiration time\": 1789903600, \"token type\": \"Bearer\", \"reason\": 1 } Example: Reason 2 The client id or client secret is incorrect. { \"status\": \"FAIL\", \"reason\": 2 } Example: Reason 4 Server error, or the body isn't valid JSON. { \"status\": \"FAIL\", \"reason\": 4 }"
    },
    {
      "id": "partners-api/settings/webhook",
      "title": "Webhook",
      "url": "https://docs.99digital.co.il/partners-api/settings/webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/webhook.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Webhook"
      ],
      "language": "en",
      "description": "Receive notifications and updates about your partner account — WhatsApp onboarding, builders, Online accounts and Facebook onboarding — at your own URL.",
      "headings": [
        "When is a webhook sent?",
        "Delivery",
        "Security"
      ],
      "keywords": [
        "partner webhook",
        "webhook",
        "callback",
        "notifications",
        "setWebhook",
        "getWebhook",
        "whatsapp_extra_info",
        "onboarding completed"
      ],
      "content": "Partner Webhook API allows you to determine the webhook URL callback to receive notifications and updates about your partner account. Webhooks can arrive from the following IP address: 34.165.99.212 This API has 3 parts: Part Page What it does Part 1 Set Webhook How to set the partner webhook to get notifications. Part 2 Get Webhook How to see the webhook you set. Part 3 Event: WhatsApp, Event: Builder, Event: Online, Event: Facebook How the data is sent to you: one page per event, with every field explained. Part 3 settings: Setting Value URL Your URL Method JSON via POST Your partner account has one webhook URL, shared by all its users. Setting a new URL replaces the previous one, and the webhook can't be removed with the API. When is a webhook sent? For every event that happens in the partners system, you will get a webhook. event tells you what it is about, and a number tells you what happened: event When it is sent whatsapp For everything that is related to WhatsApp: during the onboarding of a WhatsApp number through an onboarding link — the client finished it, the account is ready, or the onboarding failed — and when a WhatsApp account is deleted. builder For everything that is related to our builder system: a builder is created or deleted, its user access is reset, or a builder login link is created. online For everything that is related to our Online omnichannel: an Online account is created, activated, suspended or deleted; a WhatsApp inbox is created or deleted; an agent login link is created. facebook Facebook and Instagram onboarding: a client completed a Facebook or Instagram onboarding link. It carries the details of the connected page and the credentials to use it. Future events, not sent yet: partners , for everything that is related to thresholds you set in our partners portal, and package , for everything that is related to a package purchased. Webhooks are sent for actions made with the Partners API, and for most of the same actions in the partners dashboard. The page of each event lists exactly what sends it, and every field. Check event and its number ( whatsapp extra info , builder extra info , online extra info ) before you act on a webhook: fields that don't belong to an event are empty. Delivery Every webhook is a POST request with a JSON body ( Content-Type: application/json ), one event per request. Webhooks arrive from the IP address 34.165.99.212 . Answer with a 2xx status (200 OK) within 10 seconds, and process the webhook afterwards. The body of your answer is ignored. Each webhook is sent once. There are no retries: if your server can't be reached, doesn't answer in time or answers with an error, that webhook is not sent again. To catch up, read the current state with the list endpoints, such as Get WhatsApp Numbers, Get Onboarding List, Get Builders list, Get accounts list and Get Inboxes List. For an action you make with the Partners API, the webhook is sent while your request is processed, before the API answers you. It can therefore arrive before the API response, and a slow webhook endpoint also slows these API calls down. Security The webhook has no signature or authentication header. Accept webhooks only from our IP address, and keep your webhook URL secret. Use an https:// URL: the whatsapp and facebook events carry API keys ( whatsapp apiKey and apiKey )."
    },
    {
      "id": "partners-api/set-webhook",
      "title": "Set Webhook",
      "url": "https://docs.99digital.co.il/partners-api/settings/webhook/set-webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/webhook/set-webhook.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Webhook"
      ],
      "language": "en",
      "description": "Part 1: set the webhook address. Set Webhook allows you to set the partner webhook URL, where you receive notifications and updates about your partner account.",
      "endpoint": {
        "method": "POST",
        "path": "/settings/setWebhook",
        "url": "https://partners.99digital.co.il/api/settings/setWebhook"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "Example: Reason 24"
      ],
      "keywords": [
        "setWebhook",
        "settings",
        "url",
        "status",
        "reason"
      ],
      "content": "POST https://partners.99digital.co.il/api/settings/setWebhook Part 1: set the webhook address. Set Webhook allows you to set the partner webhook URL, where you receive notifications and updates about your partner account. Every event of your partner account (WhatsApp onboarding, builders, Online accounts and Facebook onboarding) is sent to this URL — see Webhook for how it works, and the page of each event for its payload: Event: WhatsApp, Event: Builder, Event: Online and Event: Facebook. Webhooks arrive from the IP address 34.165.99.212 . Settings: Setting Value URL https://partners.99digital.co.il/api/settings/setWebhook Method JSON via POST Header Authorization: Bearer — the access token is received from Access Token. Body: Parameter Description / Example Maximum length Remarks url The webhook URL. It must start with https:// or http:// . 512 Full URL here: then a domain name or an IPv4 address, an optional port, and a path without spaces. Domain names whose last part is longer than 6 letters (such as .digital ) are not accepted. Response: { \"status\": \"OK\", \"url\": \"https://your-server.example.com/99digital/partners-webhook\", \"reason\": 1 } Response explained: Parameter Description status OK or FAIL. \"OK\" means the webhook URL is saved. \"FAIL\" means error. url The webhook url you provided. reason The status explanation — see below. Reason Explanation 1 Not FAIL. The status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 Access token does not exist or expired. Please generate another one with Access Token. 4 Server error, try again. Also returned when the body isn't valid JSON, or isn't sent with Content-Type: application/json . 24 The url is missing or invalid. Remarks Your partner account has one webhook URL. Setting a new URL replaces the previous one, for every user of your partner account. You can't remove the webhook with this endpoint: an empty url is rejected with reason 24. Some events carry API keys, so use an https:// URL. The change is recorded in the Audit Log of your partners dashboard. Send your partner access token. A token created with an Online account's Account API Credentials is rejected with reason 2. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description url string Yes The webhook URL — a full URL that must start with https:// or http:// , then a domain name or an IPv4 address, an optional port, and a path without spaces. Domain names whose last part is longer than 6 letters (such as .digital ) are not accepted. Example: https://your-server.example.com/99digital/partners-webhook . Example (generated from the schema) { \"url\": \"https://your-server.example.com/99digital/partners-webhook\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the webhook URL is saved. Always OK . url string (one of: OK) The webhook URL you provided. Example: https://your-server.example.com/99digital/partners-webhook . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL means error; reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, try again. Also returned when the body isn't valid JSON, or isn't sent with Content-Type: application/json ; 24 — url is missing or invalid. Example: OK The webhook URL is saved. { \"status\": \"OK\", \"url\": \"https://your-server.example.com/99digital/partners-webhook\", \"reason\": 1 } Example: Reason 3 The access token is wrong or expired. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 24 url is missing or invalid. { \"status\": \"FAIL\", \"reason\": 24 }"
    },
    {
      "id": "partners-api/get-webhook",
      "title": "Get Webhook",
      "url": "https://docs.99digital.co.il/partners-api/settings/webhook/get-webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/webhook/get-webhook.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Webhook"
      ],
      "language": "en",
      "description": "Part 2: get the webhook address. Get Webhook allows you to see the partner webhook URL you set.",
      "endpoint": {
        "method": "GET",
        "path": "/settings/getWebhook",
        "url": "https://partners.99digital.co.il/api/settings/getWebhook"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: No webhook",
        "Example: Reason 3"
      ],
      "keywords": [
        "getWebhook",
        "settings",
        "status",
        "url",
        "reason"
      ],
      "content": "GET https://partners.99digital.co.il/api/settings/getWebhook Part 2: get the webhook address. Get Webhook allows you to see the partner webhook URL you set. The URL is empty until you set one with Set Webhook. See Webhook for what is sent to it. Settings: Setting Value URL https://partners.99digital.co.il/api/settings/getWebhook Method GET Header Authorization: Bearer — the access token is received from Access Token. Body: nothing, leave it empty. There are no parameters either: the access token tells us your partner account. Response: { \"status\": \"OK\", \"url\": \"https://your-server.example.com/99digital/partners-webhook\", \"reason\": 1 } Response explained: Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. url The webhook URL. Empty when no webhook is set. reason The status explanation — see below. Reason Explanation 1 Not FAIL. The status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 Access token does not exist or expired. Please generate another one with Access Token. 4 Server error, try again. 13 You need to use the GET method. Remarks Call it with GET. Other methods answer with HTTP 405 (Method Not Allowed). Send your partner access token. A token created with an Online account's Account API Credentials is rejected with reason 2. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the request was successful. Always OK . url string (one of: OK) The webhook URL. Empty when no webhook is set. Example: https://your-server.example.com/99digital/partners-webhook . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL means error; reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, try again; 13 — You need to use the GET method. Example: OK Your webhook URL. { \"status\": \"OK\", \"url\": \"https://your-server.example.com/99digital/partners-webhook\", \"reason\": 1 } Example: No webhook No webhook is set yet — url is empty. { \"status\": \"OK\", \"url\": \"\", \"reason\": 1 } Example: Reason 3 The access token is wrong or expired. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "partners-api/whatsapp-event",
      "title": "Event: WhatsApp",
      "url": "https://docs.99digital.co.il/partners-api/settings/webhook/whatsapp-event",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/webhook/whatsapp-event.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Webhook"
      ],
      "language": "en",
      "description": "For every WhatsApp event that happens in the partners system, you will get a webhook (`event` 'whatsapp'): during the onboarding of a WhatsApp number through an onboarding link, and when a WhatsApp account is deleted.",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Response explained",
        "whatsappextrainfo",
        "dailylimit",
        "Webhook payload",
        "Example: WhatsApp",
        "Responses",
        "200 — Received. Answer with a 2xx status (200 OK) within 10 seconds, and process the webhook afterwards. The body of your answer is ignored.",
        "default — Any other answer, or no answer in time, is a failed delivery. There are no retries: a webhook that was not delivered is not sent again."
      ],
      "keywords": [
        "whatsappEvent",
        "status",
        "event",
        "whatsapp",
        "whatsapp_reference",
        "whatsapp_extra_info",
        "daily_limit",
        "whatsapp_apiKey"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. For every WhatsApp event that happens in the partners system, you will get a webhook ( event \"whatsapp\"): during the onboarding of a WhatsApp number through an onboarding link, and when a WhatsApp account is deleted. Settings: Setting Value URL Your URL — set it with Set Webhook Method JSON via POST whatsapp extra info tells you what happened: 1, 2 and 3 are sent during the onboarding of a number through the link you created with Step 2: Onboarding. They include daily limit and whatsapp apiKey . 4 is sent when the WhatsApp account is deleted, with Delete WhatsApp Account or in the partners dashboard. 5 is sent when there was an error in the client's onboarding process, also when the client cancels or closes the Facebook login window of the onboarding. The first webhook you will get after your client finishes the onboarding will be with whatsapp extra info 1 or 2, and it will include the whatsapp apiKey . We recommend that you use it with Set Webhook of the WhatsApp API (V2), in order to start getting webhook updates regarding this WhatsApp account. With every WhatsApp event, you will get some of the following: { \"status\": \"OK\", \"event\": \"whatsapp\", \"whatsapp\": \"972501234567\", \"whatsapp reference\": \"1234567\", \"whatsapp extra info\": 2, \"daily limit\": 250, \"whatsapp apiKey\": \"3f9a1c-7b2e4d-c8a05f-61d9e2-b47c3a\" } Response explained Parameter Description / Example status \"OK\" always. event \"whatsapp\" always. whatsapp The WhatsApp number that is relevant, in international format. whatsapp reference The reference value that was provided by you when creating the account ( reference in Step 2: Onboarding). Empty when you didn't provide one; when such an account is deleted ( whatsapp extra info 4), it is \"0\". whatsapp extra info A number related to the WhatsApp update — when will you get this webhook. See the values below. daily limit The daily business conversations limit this line can have right from the start. Sent only with whatsapp extra info 1, 2 or 3. See the values below. whatsapp apiKey The apiKey that was created for you, to use the WhatsApp API (V2) with this number. Sent only with whatsapp extra info 1, 2 or 3. whatsapp extra info Value Explanation 1 The client has finished the onboarding process through the link, but the account is not yet ready to start messaging at all. 2 The client has finished the onboarding process through the link, and the account is ready to start receiving and replying to messages only. 3 The WhatsApp account is ready to start sending templates and receiving messages. Onboarding completed. 4 The WhatsApp account has been deleted. 5 There was an error on the client's onboarding process (also sent when the client cancels or closes the Facebook login window). Please contact your client to provide support. daily limit Value Explanation 0 The daily messages limit was not determined yet. Please send your first outgoing message or template and you will get a webhook with an update. 50 50 daily conversations. 250 250 daily conversations (this is usually the default when the business is not verified). 1000 1,000 daily conversations. 2000 2,000 daily conversations (this is usually the default when the business is verified). 10000 10,000 daily conversations. 100000 100,000 daily conversations. 1000000 If you get this number, it means unlimited. Webhook payload Content type: application/json (required) Field Type Required Description status string Yes \"OK\" always. One of: OK . event string Yes \"whatsapp\" always. Always whatsapp . whatsapp string Yes The WhatsApp number that is relevant, in international format. Example: 972501234567 . whatsapp reference string Yes The reference value that was provided by you when creating the account ( reference in Step 2: Onboarding). Empty when you didn't provide one; when such an account is deleted ( whatsapp extra info 4), it is \"0\". Example: 1234567 . whatsapp extra info integer Yes A number related to the WhatsApp update — when will you get this webhook. One of: 1 — The client has finished the onboarding process through the link, but the account is not yet ready to start messaging at all; 2 — The client has finished the onboarding process through the link, and the account is ready to start receiving and replying to messages only; 3 — The WhatsApp account is ready to start sending templates and receiving messages. Onboarding completed; 4 — The WhatsApp account has been deleted; 5 — There was an error on the client's onboarding process (also sent when the client cancels or closes the Facebook login window). Please contact your client to provide support. Example: 2 . daily limit integer No The daily business conversations limit this line can have right from the start. Sent only with whatsapp extra info 1, 2 or 3. One of: 0 — The daily messages limit was not determined yet. Please send your first outgoing message or template and you will get a webhook with an update; 50 — 50 daily conversations; 250 — 250 daily conversations (this is usually the default when the business is not verified); 1000 — 1,000 daily conversations; 2000 — 2,000 daily conversations (this is usually the default when the business is verified); 10000 — 10,000 daily conversations; 100000 — 100,000 daily conversations; 1000000 — If you get this number, it means unlimited. Example: 250 . whatsapp apiKey string No The apiKey that was created for you, to use the WhatsApp API (V2) with this number. Sent only with whatsapp extra info 1, 2 or 3. Example: 3f9a1c-7b2e4d-c8a05f-61d9e2-b47c3a . Example: WhatsApp The client finished the onboarding, and the account is ready to receive and reply to messages ( whatsapp extra info 2). daily limit and whatsapp apiKey come only with whatsapp extra info 1, 2 and 3. When the account is deleted (4) or the onboarding failed (5), the webhook has only status , event , whatsapp , whatsapp reference and whatsapp extra info . { \"status\": \"OK\", \"event\": \"whatsapp\", \"whatsapp\": \"972501234567\", \"whatsapp reference\": \"1234567\", \"whatsapp extra info\": 2, \"daily limit\": 250, \"whatsapp apiKey\": \"3f9a1c-7b2e4d-c8a05f-61d9e2-b47c3a\" } Responses 200 — Received. Answer with a 2xx status (200 OK) within 10 seconds, and process the webhook afterwards. The body of your answer is ignored. default — Any other answer, or no answer in time, is a failed delivery. There are no retries: a webhook that was not delivered is not sent again."
    },
    {
      "id": "partners-api/builder-event",
      "title": "Event: Builder",
      "url": "https://docs.99digital.co.il/partners-api/settings/webhook/builder-event",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/webhook/builder-event.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Webhook"
      ],
      "language": "en",
      "description": "For every Builder event, you will get a webhook (`event` 'builder'). It is sent for the actions made with the Partners API — [Create a new Builder](/partners-api/builder/create-a-new-builder), [Delete a Builder](/partners-api/builder/delet…",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Response explained",
        "builderextrainfo",
        "Webhook payload",
        "Example: Builder",
        "Responses",
        "200 — Received. Answer with a 2xx status (200 OK) within 10 seconds, and process the webhook afterwards. The body of your answer is ignored.",
        "default — Any other answer, or no answer in time, is a failed delivery. There are no retries: a webhook that was not delivered is not sent again."
      ],
      "keywords": [
        "builderEvent",
        "status",
        "event",
        "builderID",
        "builder_url",
        "builder_reference",
        "builder_extra_info"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. For every Builder event, you will get a webhook ( event \"builder\"). It is sent for the actions made with the Partners API — Create a new Builder, Delete a Builder, Reset user access and Login to a Builder — and for the same actions in the partners dashboard. Settings: Setting Value URL Your URL — set it with Set Webhook Method JSON via POST With every Builder event, you will get the following: { \"status\": \"OK\", \"event\": \"builder\", \"builderID\": 432, \"builder url\": \"https://builder5.99digital.co.il/432-xY7kQ2pLmN4rT8vWb3sZcA/\", \"builder reference\": \"63f563\", \"builder extra info\": 1 } Response explained Parameter Description / Example status \"OK\" always. event \"builder\" always. builderID The builderID of the builder. builder url The builder URL. builder reference The reference value that was provided by you when creating the builder. Sent with builder extra info 1 and 2; empty with 3 and 4. builder extra info A number related to the builder update — when will you get this webhook. See the values below. builder extra info Value Explanation 1 A new builder was created. 2 The builder was deleted. 3 The builder's user access was reset. 4 A builder login request link was created. Webhook payload Content type: application/json (required) Field Type Required Description status string Yes \"OK\" always. One of: OK . event string Yes \"builder\" always. Always builder . builderID integer Yes The builderID of the builder. Example: 432 . builder url string Yes The builder URL. Example: https://builder5.99digital.co.il/432-xY7kQ2pLmN4rT8vWb3sZcA/ . builder reference string Yes The reference value that was provided by you when creating the builder. Sent with builder extra info 1 and 2; empty with 3 and 4. Example: 63f563 . builder extra info integer Yes A number related to the builder update — when will you get this webhook. One of: 1 — A new builder was created; 2 — The builder was deleted; 3 — The builder's user access was reset; 4 — A builder login request link was created. Example: 1 . Example: Builder A new builder was created ( builder extra info 1). { \"status\": \"OK\", \"event\": \"builder\", \"builderID\": 432, \"builder url\": \"https://builder5.99digital.co.il/432-xY7kQ2pLmN4rT8vWb3sZcA/\", \"builder reference\": \"63f563\", \"builder extra info\": 1 } Responses 200 — Received. Answer with a 2xx status (200 OK) within 10 seconds, and process the webhook afterwards. The body of your answer is ignored. default — Any other answer, or no answer in time, is a failed delivery. There are no retries: a webhook that was not delivered is not sent again."
    },
    {
      "id": "partners-api/online-event",
      "title": "Event: Online",
      "url": "https://docs.99digital.co.il/partners-api/settings/webhook/online-event",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/webhook/online-event.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Webhook"
      ],
      "language": "en",
      "description": "For every Online omnichannel event, you will get a webhook (`event` 'online'). Fields that don't belong to the event (for example `inboxID` when an account is created) are empty strings.",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Response explained",
        "onlineextrainfo",
        "Webhook payload",
        "Example: Online",
        "Responses",
        "200 — Received. Answer with a 2xx status (200 OK) within 10 seconds, and process the webhook afterwards. The body of your answer is ignored.",
        "default — Any other answer, or no answer in time, is a failed delivery. There are no retries: a webhook that was not delivered is not sent again."
      ],
      "keywords": [
        "onlineEvent",
        "status",
        "event",
        "accountID",
        "inboxID",
        "agentID",
        "server",
        "online_reference",
        "online_extra_info"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. For every Online omnichannel event, you will get a webhook ( event \"online\"). Fields that don't belong to the event (for example inboxID when an account is created) are empty strings. Settings: Setting Value URL Your URL — set it with Set Webhook Method JSON via POST online extra info Sent by 1 — new account Create a new online account, or the partners dashboard 2 — active, 3 — suspended Update account with account status 1 or 0 4 — account deleted Delete an account, or the partners dashboard 5 — new WhatsApp inbox Create a new WhatsApp Inbox, or the partners dashboard 6 — WhatsApp inbox deleted Delete a WhatsApp Inbox, or the partners dashboard 7 — agent login link Login to an agent With every Online omnichannel event, you will get some of the following: { \"status\": \"OK\", \"event\": \"online\", \"accountID\": 523, \"inboxID\": \"\", \"agentID\": 14, \"server\": \"online\", \"online reference\": \"5234-my-code\", \"online extra info\": 1 } Response explained Parameter Description / Example status \"OK\" always. event \"online\" always. accountID The account ID. inboxID The inbox ID — with online extra info 5 and 6. An empty string with the other events. agentID The agent ID — with online extra info 1 (the account's admin agent) and 7 (the agent of the login link). An empty string with the other events. server The server subdomain of the account. online reference The reference value that was provided by you when creating the Online account ( online extra info 1) or the WhatsApp inbox (5). An empty string with the other events. online extra info A number related to the Online update event — when will you get this webhook. See the values below. online extra info Value Explanation 1 A new account was created. 2 The account status changed to \"active\". 3 The account status changed to \"suspended\". 4 The account was deleted. 5 A new WhatsApp inbox was created. 6 A WhatsApp inbox was deleted. 7 A new agent login link was created. Webhook payload Content type: application/json (required) Field Type Required Description status string Yes \"OK\" always. One of: OK . event string Yes \"online\" always. Always online . accountID integer Yes The account ID. Example: 523 . inboxID integer \\ string Yes The inbox ID — with online extra info 5 and 6. An empty string with the other events. Example: 3 . agentID integer \\ string Yes The agent ID — with online extra info 1 (the account's admin agent) and 7 (the agent of the login link). An empty string with the other events. Example: 14 . server string Yes The server subdomain of the account. Example: online . online reference string Yes The reference value that was provided by you when creating the Online account ( online extra info 1) or the WhatsApp inbox (5). An empty string with the other events. Example: 5234-my-code . online extra info integer Yes A number related to the Online update event — when will you get this webhook. One of: 1 — A new account was created; 2 — The account status changed to \"active\"; 3 — The account status changed to \"suspended\"; 4 — The account was deleted; 5 — A new WhatsApp inbox was created; 6 — A WhatsApp inbox was deleted; 7 — A new agent login link was created. Example: 1 . Example: Online A new Online account was created ( online extra info 1): agentID is its admin agent, and inboxID is empty. { \"status\": \"OK\", \"event\": \"online\", \"accountID\": 523, \"inboxID\": \"\", \"agentID\": 14, \"server\": \"online\", \"online reference\": \"5234-my-code\", \"online extra info\": 1 } Responses 200 — Received. Answer with a 2xx status (200 OK) within 10 seconds, and process the webhook afterwards. The body of your answer is ignored. default — Any other answer, or no answer in time, is a failed delivery. There are no retries: a webhook that was not delivered is not sent again."
    },
    {
      "id": "partners-api/facebook-event",
      "title": "Event: Facebook",
      "url": "https://docs.99digital.co.il/partners-api/settings/webhook/facebook-event",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/webhook/facebook-event.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Webhook"
      ],
      "language": "en",
      "description": "For every Facebook event, you will get a webhook (`event` 'facebook'). It is sent once, when your client completes the onboarding of a link you created with [Create onboarding Link](/partners-api/facebook/create-onboarding-link) — see [Sta…",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Response explained",
        "facebooktype",
        "Webhook payload",
        "Example: Facebook",
        "Responses",
        "200 — Received. Answer with a 2xx status (200 OK) within 10 seconds, and process the webhook afterwards. The body of your answer is ignored.",
        "default — Any other answer, or no answer in time, is a failed delivery. There are no retries: a webhook that was not delivered is not sent again."
      ],
      "keywords": [
        "facebookEvent",
        "status",
        "event",
        "facebook_type",
        "facebook_type_name",
        "facebook_reference",
        "from",
        "apiKey",
        "server",
        "account_id",
        "inbox_id",
        "business_id",
        "business_name",
        "page_id",
        "page_name",
        "page_category",
        "page_link",
        "page_about",
        "page_fan_count",
        "page_picture",
        "admin_name",
        "admin_email",
        "instagram_id",
        "instagram_username",
        "instagram_name",
        "instagram_profile_picture",
        "instagram_followers_count",
        "instagram_media_count",
        "instagram_biography",
        "instagram_website"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. For every Facebook event, you will get a webhook ( event \"facebook\"). It is sent once, when your client completes the onboarding of a link you created with Create onboarding Link — see Start Here!. facebook type is the type that was onboarded. from and apiKey are the credentials to send outgoing messages and data of this connection with our Facebook API. If the same Facebook page or Instagram account is onboarded again with the same type, you get the same from and apiKey . The instagram … fields are sent only for facebook type 2 or 4. The page, Instagram and admin details are as they were at the onboarding time. A detail that Facebook didn't provide is empty (or 0). Settings: Setting Value URL Your URL — set it with Set Webhook Method JSON via POST With every Facebook event, you will get some of the following: { \"status\": \"OK\", \"event\": \"facebook\", \"facebook type\": 2, \"facebook type name\": \"Instagram Messenger\", \"facebook reference\": \"my-reference\", \"from\": \"623748845667358\", \"apiKey\": \"5e2b8d-a1c4f7-09d3e6-b8f2a5-c7e1d4\", \"server\": \"online.99digital.co.il\", \"account id\": 1, \"inbox id\": 2, \"business id\": \"184736291045832\", \"business name\": \"My Flowers Business Ltd\", \"page id\": \"123637468573457\", \"page name\": \"My Flowers Business\", \"page category\": \"Retail Company\", \"page link\": \"https://www.facebook.com/123637468573457\", \"page about\": \"Fresh flowers, delivered every day\", \"page fan count\": 400, \"page picture\": \"https://www.example.com/images/page-picture.jpg\", \"admin name\": \"George Levi\", \"admin email\": \"george@example.com\", \"instagram id\": \"17841463464574680\", \"instagram username\": \"george flowers\", \"instagram name\": \"My Flowers Business\", \"instagram profile picture\": \"https://www.example.com/images/instagram-profile.jpg\", \"instagram followers count\": 530, \"instagram media count\": 54, \"instagram biography\": \"This is my flowers shop\", \"instagram website\": \"https://www.flowersshop.example.com\" } Response explained Parameter Description / Example status \"OK\" always. event \"facebook\" always. facebook type The type that was onboarded. See the values below. facebook type name The same as facebook type , in text. facebook reference The reference value that was provided by you when creating the onboarding link. Empty when you didn't provide one. from The ID we generate for you, that comes together with the apiKey in order to send outgoing messages. It contains 15 digits. apiKey The apiKey for the service — this is how you initiate outgoing messages and data with our Facebook API, together with from . server The Online server, if provided when creating the onboarding link. Empty otherwise. account id The Online account id, if provided when creating the onboarding link. 0 otherwise. inbox id The Online inbox id, if provided when creating the onboarding link. 0 otherwise. business id The id of the client's business on Facebook (Meta Business Portfolio). Empty when it isn't available. business name The name of the client's business on Facebook (Meta Business Portfolio). Empty when it isn't available. page id The page id of the Facebook account (relevant for all 4 types of onboarding). Even when you connect an Instagram account only, there is still a Facebook page id, since an Instagram account is always connected to a Facebook page. page name The Facebook page name (of that page id ). page category The category of the page. page link The Facebook page link URL. page about The Facebook page about information. page fan count The number of fans (followers) of the Facebook page at the onboarding time. page picture The profile picture of the Facebook page. admin name The Facebook page admin name — the admin of the client's business on Facebook when it is available, otherwise the Facebook user who completed the onboarding. admin email The Facebook page admin email address — of the same admin as admin name . Empty when Facebook doesn't provide it. instagram id The Instagram page id. Sent only for facebook type 2 or 4. instagram username The Instagram username, without @ . Sent only for facebook type 2 or 4. instagram name The Instagram page name. Sent only for facebook type 2 or 4. instagram profile picture The Instagram page profile picture. Sent only for facebook type 2 or 4. instagram followers count The Instagram page total followers count at the onboarding time. Sent only for facebook type 2 or 4. instagram media count Total media uploaded to the Instagram page (total posts). Sent only for facebook type 2 or 4. instagram biography The biography written on the Instagram page. Sent only for facebook type 2 or 4. instagram website The website provided on the Instagram page. Sent only for facebook type 2 or 4. facebook type Value Explanation 1 Facebook Messenger. 2 Instagram Messenger. 3 Facebook Page (posts and comments). 4 Instagram Page (posts and comments). Webhook payload Content type: application/json (required) Field Type Required Description status string Yes \"OK\" always. One of: OK . event string Yes \"facebook\" always. Always facebook . facebook type integer Yes The type that was onboarded. One of: 1 — Facebook Messenger; 2 — Instagram Messenger; 3 — Facebook Page (posts and comments); 4 — Instagram Page (posts and comments). Example: 1 . facebook type name string Yes The same as facebook type , in text. One of: Facebook Messenger , Instagram Messenger , Facebook Page (posts & comments) , Instagram Page (posts & comments) . Example: Facebook Messenger . facebook reference string Yes The reference value that was provided by you when creating the onboarding link. Empty when you didn't provide one. Example: my-reference . from string Yes The ID we generate for you, that comes together with the apiKey in order to send outgoing messages. It contains 15 digits. Example: 623748845667358 . apiKey string Yes The apiKey for the service — this is how you initiate outgoing messages and data with our Facebook API, together with from . Example: 5e2b8d-a1c4f7-09d3e6-b8f2a5-c7e1d4 . server string Yes The Online server, if provided when creating the onboarding link. Empty otherwise. Example: online.99digital.co.il . account id integer Yes The Online account id, if provided when creating the onboarding link. 0 otherwise. Example: 1 . inbox id integer Yes The Online inbox id, if provided when creating the onboarding link. 0 otherwise. Example: 2 . business id string Yes The id of the client's business on Facebook (Meta Business Portfolio). Empty when it isn't available. Example: 184736291045832 . business name string Yes The name of the client's business on Facebook (Meta Business Portfolio). Empty when it isn't available. Example: My Business Ltd . page id string Yes The page id of the Facebook account (relevant for all 4 types of onboarding). Even when you connect an Instagram account only, there is still a Facebook page id, since an Instagram account is always connected to a Facebook page. Example: 123637468573457 . page name string Yes The Facebook page name (of that page id ). Example: My Business . page category string Yes The category of the page. Example: Retail Company . page link string Yes The Facebook page link URL. Example: https://www.facebook.com/123637468573457 . page about string Yes The Facebook page about information. Example: About my business . page fan count integer Yes The number of fans (followers) of the Facebook page at the onboarding time. Example: 400 . page picture string Yes The profile picture of the Facebook page. Example: https://www.example.com/images/page-picture.jpg . admin name string Yes The Facebook page admin name — the admin of the client's business on Facebook when it is available, otherwise the Facebook user who completed the onboarding. Example: George Levi . admin email string Yes The Facebook page admin email address — of the same admin as admin name . Empty when Facebook doesn't provide it. Example: george@example.com . instagram id string No The Instagram page id. Sent only for facebook type 2 or 4. Example: 17841463464574680 . instagram username string No The Instagram username, without @ . Sent only for facebook type 2 or 4. Example: george flowers . instagram name string No The Instagram page name. Sent only for facebook type 2 or 4. Example: My Flowers Business . instagram profile picture string No The Instagram page profile picture. Sent only for facebook type 2 or 4. Example: https://www.example.com/images/instagram-profile.jpg . instagram followers count integer No The Instagram page total followers count at the onboarding time. Sent only for facebook type 2 or 4. Example: 530 . instagram media count integer No Total media uploaded to the Instagram page (total posts). Sent only for facebook type 2 or 4. Example: 54 . instagram biography string No The biography written on the Instagram page. Sent only for facebook type 2 or 4. Example: This is my flowers shop . instagram website string No The website provided on the Instagram page. Sent only for facebook type 2 or 4. Example: https://www.flowersshop.example.com . Example: Facebook The client connected Instagram Messenger ( facebook type 2), so the instagram … fields are included. For Facebook Messenger (1) and Facebook Page (3), the instagram … fields are not sent. Here the onboarding link was created with the server , account id and inbox id of an Online inbox. { \"status\": \"OK\", \"event\": \"facebook\", \"facebook type\": 2, \"facebook type name\": \"Instagram Messenger\", \"facebook reference\": \"my-reference\", \"from\": \"623748845667358\", \"apiKey\": \"5e2b8d-a1c4f7-09d3e6-b8f2a5-c7e1d4\", \"server\": \"online.99digital.co.il\", \"account id\": 1, \"inbox id\": 2, \"business id\": \"184736291045832\", \"business name\": \"My Flowers Business Ltd\", \"page id\": \"123637468573457\", \"page name\": \"My Flowers Business\", \"page category\": \"Retail Company\", \"page link\": \"https://www.facebook.com/123637468573457\", \"page about\": \"Fresh flowers, delivered every day\", \"page fan count\": 400, \"page picture\": \"https://www.example.com/images/page-picture.jpg\", \"admin name\": \"George Levi\", \"admin email\": \"george@example.com\", \"instagram id\": \"17841463464574680\", \"instagram username\": \"george flowers\", \"instagram name\": \"My Flowers Business\", \"instagram profile picture\": \"https://www.example.com/images/instagram-profile.jpg\", \"instagram followers count\": 530, \"instagram media count\": 54, \"instagram biography\": \"This is my flowers shop\", \"instagram website\": \"https://www.flowersshop.example.com\" } Responses 200 — Received. Answer with a 2xx status (200 OK) within 10 seconds, and process the webhook afterwards. The body of your answer is ignored. default — Any other answer, or no answer in time, is a failed delivery. There are no retries: a webhook that was not delivered is not sent again."
    },
    {
      "id": "partners-api/settings/business-settings",
      "title": "Business settings",
      "url": "https://docs.99digital.co.il/partners-api/settings/business-settings",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/business-settings.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Business settings"
      ],
      "language": "en",
      "description": "Set the default logo and texts your clients see when they open your WhatsApp, Facebook and Instagram onboarding links.",
      "headings": [
        "Set the business settings",
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Get the business data",
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Built-in defaults",
        "Where they are shown",
        "Remarks"
      ],
      "keywords": [
        "business settings",
        "onboarding settings",
        "onboarding logo",
        "onboarding message",
        "onboarding button",
        "setBusiness",
        "getBusiness"
      ],
      "content": "You can modify some business settings using this API endpoint: the default logo and texts that your clients see when they open your onboarding links. You can edit any of the parameters you wish. Endpoint What it does Set business settings Change one or more of the settings. Get business settings Get the business data: your business name and the current settings. Set the business settings Settings Setting Value URL https://partners.99digital.co.il/api/settings/setBusiness Method JSON via PATCH Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Body Parameter Description / Example Maximum length Remarks onboarding logo HTTPS link for the onboarding logo, shown by default on any onboarding link that was not set a specific onboarding logo. The image size should be 200x60 px, in PNG or JPG format. 512 The full URL here: it must start with https:// ( http:// is accepted too), then a domain name or an IPv4 address, an optional port, and a path without spaces. Domain names whose last part is longer than 6 letters (such as .digital ) are not accepted. onboarding message Text to show by default on the WhatsApp onboarding link, above the onboarding button, in case you did not set any specific text for the onboarding link. 200 The full text here. Facebook and Instagram onboarding links don't use it. onboarding button The button text to show by default on the onboarding link. 50 The button text here. onboarding success After the client finished the onboarding process successfully, here you can set the default text to show them. 200 The text goes here. onboarding failed This text appears if the onboarding was not completed successfully: here you can set the default text to show them. 200 The text goes here. Response { \"status\": \"OK\", \"reason\": 1, \"onboarding message\": \"ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק.\", \"onboarding button\": \"לחץ כאן להתחלה\" } Response explained Parameter Description status OK or FAIL. \"OK\" means the settings are saved. \"FAIL\" means error. Any of the parameters The response returns the parameters you provided, with the values you provided. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, try again. Also returned when the body isn't valid JSON, or isn't sent with Content-Type: application/json . 27 You need to use the PATCH method. 28 onboarding logo is invalid. 29 onboarding message is invalid (longer than 200 characters). 30 onboarding button is invalid (longer than 50 characters). 31 onboarding success or onboarding failed is invalid (longer than 200 characters). Get the business data Settings Setting Value URL https://partners.99digital.co.il/api/settings/getBusiness Method JSON via GET Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Body Nothing — leave it empty. Response { \"status\": \"OK\", \"business name\": \"Your business name\", \"onboarding logo\": \"https://www.example.com/images/onboarding-logo.png\", \"onboarding message\": \"ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק.\", \"onboarding button\": \"לחץ כאן להתחלה\", \"onboarding success\": \"הפעלת הקו הושלמה בהצלחה\", \"onboarding failed\": \"תקלה. אנא נסה שנית\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. business name The business name. This value can't be changed with the setBusiness API. onboarding logo The onboarding logo HTTPS link that is used by default. onboarding message The onboarding message that shows by default. onboarding button The button text that shows by default. onboarding success The success message, when the onboarding completed successfully. onboarding failed The failed message, when the onboarding failed. reason The status explanation — see the table below. A setting that was never set is empty ( \"\" ), and the onboarding page shows its built-in default instead (see Built-in defaults). Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, try again. 13 You need to use the GET method. Built-in defaults Setting Built-in default onboarding logo None onboarding message None onboarding button לחץ כאן להתחלה onboarding success הפעלת הקו הושלמה בהצלחה — on Facebook and Instagram links: החיבור הושלם בהצלחה onboarding failed תקלה. אנא נסה שנית Where they are shown WhatsApp onboarding links — Step 2: Onboarding — show all five settings. Store onboarding links show the logo and the success and failed texts. Facebook and Instagram onboarding links — Create onboarding Link — show the logo, the button text and the success and failed texts. They don't use onboarding message : their heading text is fixed per type. A WhatsApp onboarding link can have its own logo and welcome text: onboarding logo and onboarding message in Step 2: Onboarding are shown instead of these defaults, on that link only. Remarks The settings are read when a client opens an onboarding link, so a change applies to every link of your partner account, including links you already sent. A setting you leave out, or send empty, keeps its current value: a setting can't be cleared with the API. Your business name is part of the business data that Get business settings returns, but it can't be changed with the API. Calling an endpoint with another method answers with HTTP 405 (Method Not Allowed)."
    },
    {
      "id": "partners-api/set-business",
      "title": "Set business settings",
      "url": "https://docs.99digital.co.il/partners-api/settings/business-settings/set-business",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/business-settings/set-business.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Business settings"
      ],
      "language": "en",
      "description": "You can modify some business settings using this API endpoint: the default logo and texts of your onboarding links.",
      "endpoint": {
        "method": "PATCH",
        "path": "/settings/setBusiness",
        "url": "https://partners.99digital.co.il/api/settings/setBusiness"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Remarks",
        "Authentication",
        "Request body",
        "Example: Texts",
        "Example: Logo",
        "Example: All settings",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 28",
        "Example: Reason 29"
      ],
      "keywords": [
        "setBusiness",
        "settings",
        "onboarding_logo",
        "onboarding_message",
        "onboarding_button",
        "onboarding_success",
        "onboarding_failed",
        "status",
        "reason"
      ],
      "content": "PATCH https://partners.99digital.co.il/api/settings/setBusiness You can modify some business settings using this API endpoint: the default logo and texts of your onboarding links. You can edit any of the parameters you wish — send only the ones you want to change. Business settings explains where each setting is shown, and its built-in default; see your current settings with Get business settings. Settings Setting Value URL https://partners.99digital.co.il/api/settings/setBusiness Method JSON via PATCH Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Send your partner access token. A token created with an Online account's Account API Credentials is rejected with reason 2. Body Parameter Description / Example Maximum length Remarks onboarding logo HTTPS link for the onboarding logo, shown by default on any onboarding link that was not set a specific onboarding logo. The image size should be 200x60 px, in PNG or JPG format. 512 The full URL here: it must start with https:// ( http:// is accepted too), then a domain name or an IPv4 address, an optional port, and a path without spaces. Domain names whose last part is longer than 6 letters (such as .digital ) are not accepted. onboarding message Text to show by default on the WhatsApp onboarding link, above the onboarding button, in case you did not set any specific text for the onboarding link. 200 The full text here. Facebook and Instagram onboarding links don't use it. onboarding button The button text to show by default on the onboarding link. 50 The button text here. onboarding success After the client finished the onboarding process successfully, here you can set the default text to show them. 200 The text goes here. onboarding failed This text appears if the onboarding was not completed successfully: here you can set the default text to show them. 200 The text goes here. Response { \"status\": \"OK\", \"reason\": 1, \"onboarding message\": \"ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק.\", \"onboarding button\": \"לחץ כאן להתחלה\" } Response explained Parameter Description status OK or FAIL. \"OK\" means the settings are saved. \"FAIL\" means error. Any of the parameters The response returns the parameters you provided, with the values you provided. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, try again. Also returned when the body isn't valid JSON, or isn't sent with Content-Type: application/json . 27 You need to use the PATCH method. 28 onboarding logo is invalid. 29 onboarding message is invalid (longer than 200 characters). 30 onboarding button is invalid (longer than 50 characters). 31 onboarding success or onboarding failed is invalid (longer than 200 characters). Remarks A parameter you leave out, or send empty, keeps its current value. You can't clear a setting with this endpoint. A logo or a message set on a specific onboarding link ( onboarding logo and onboarding message in Step 2: Onboarding) is shown instead of these defaults, on that link only. Your business name can't be changed with this endpoint. Call it with PATCH. Other methods answer with HTTP 405 (Method Not Allowed). Every change is recorded in the Audit Log of your partners dashboard. Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Request body Content type: application/json (required) Field Type Required Description onboarding logo string No HTTPS link for the onboarding logo, shown by default on any onboarding link that was not set a specific onboarding logo. The image size should be 200x60 px, in PNG or JPG format. A full URL: it must start with https:// ( http:// is accepted too), then a domain name or an IPv4 address, an optional port, and a path without spaces. Domain names whose last part is longer than 6 letters (such as .digital ) are not accepted. Maximum length: 512 characters. Example: https://www.example.com/images/onboarding-logo.png . onboarding message string No Text to show by default on the WhatsApp onboarding link, above the onboarding button, in case you did not set any specific text for the onboarding link. Maximum length: 200 characters. Facebook and Instagram onboarding links don't use it. Max length: 200. Example: ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק. . onboarding button string No The button text to show by default on the onboarding link. Maximum length: 50 characters. Max length: 50. Example: לחץ כאן להתחלה . onboarding success string No After the client finished the onboarding process successfully, here you can set the default text to show them. Maximum length: 200 characters. Max length: 200. Example: הפעלת הקו הושלמה בהצלחה . onboarding failed string No This text appears if the onboarding was not completed successfully: here you can set the default text to show the client. Maximum length: 200 characters. Max length: 200. Example: תקלה. אנא נסה שנית . Example: Texts Change the default welcome text and button text; the other settings keep their current values. { \"onboarding message\": \"ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק.\", \"onboarding button\": \"לחץ כאן להתחלה\" } Example: Logo Change only the default logo — a 200x60 px PNG or JPG, by HTTPS link. { \"onboarding logo\": \"https://www.example.com/images/onboarding-logo.png\" } Example: All settings Set every setting at once. { \"onboarding logo\": \"https://www.example.com/images/onboarding-logo.png\", \"onboarding message\": \"ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק.\", \"onboarding button\": \"לחץ כאן להתחלה\", \"onboarding success\": \"הפעלת הקו הושלמה בהצלחה\", \"onboarding failed\": \"תקלה. אנא נסה שנית\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK means the settings are saved. The response also returns the parameters you provided. Always OK . onboarding logo string (one of: OK) The onboarding logo you provided — only if you sent one. Example: https://www.example.com/images/onboarding-logo.png . onboarding message string (one of: OK) The onboarding message you provided — only if you sent one. Example: ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק. . onboarding button string (one of: OK) The button text you provided — only if you sent one. Example: לחץ כאן להתחלה . onboarding success string (one of: OK) The success text you provided — only if you sent one. Example: הפעלת הקו הושלמה בהצלחה . onboarding failed string (one of: OK) The failed text you provided — only if you sent one. Example: תקלה. אנא נסה שנית . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL means error — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, try again. Also returned when the body isn't valid JSON, or isn't sent with Content-Type: application/json ; 27 — You need to use the PATCH method; 28 — onboarding logo is invalid; 29 — onboarding message is invalid — longer than 200 characters; 30 — onboarding button is invalid — longer than 50 characters; 31 — onboarding success or onboarding failed is invalid — longer than 200 characters. Example: OK The settings are saved; the response returns the parameters you changed. { \"status\": \"OK\", \"reason\": 1, \"onboarding message\": \"ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק.\", \"onboarding button\": \"לחץ כאן להתחלה\" } Example: Reason 28 onboarding logo is invalid. { \"status\": \"FAIL\", \"reason\": 28 } Example: Reason 29 onboarding message is longer than 200 characters. { \"status\": \"FAIL\", \"reason\": 29 }"
    },
    {
      "id": "partners-api/get-business",
      "title": "Get business settings",
      "url": "https://docs.99digital.co.il/partners-api/settings/business-settings/get-business",
      "markdown_url": "https://docs.99digital.co.il/markdown/partners-api/settings/business-settings/get-business.md",
      "section": "Partners API",
      "section_path": [
        "Partners API",
        "Settings",
        "Business settings"
      ],
      "language": "en",
      "description": "Get the business data of your partner account: your business name and the default texts and logo of your onboarding links.",
      "endpoint": {
        "method": "GET",
        "path": "/settings/getBusiness",
        "url": "https://partners.99digital.co.il/api/settings/getBusiness"
      },
      "headings": [
        "Settings",
        "Body",
        "Response",
        "Response explained",
        "Remarks",
        "Authentication",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Nothing set yet",
        "Example: Reason 3"
      ],
      "keywords": [
        "getBusiness",
        "settings",
        "status",
        "business_name",
        "onboarding_logo",
        "onboarding_message",
        "onboarding_button",
        "onboarding_success",
        "onboarding_failed",
        "reason"
      ],
      "content": "GET https://partners.99digital.co.il/api/settings/getBusiness Get the business data of your partner account: your business name and the default texts and logo of your onboarding links. Change the settings with Set business settings; Business settings explains where each one is shown. Settings Setting Value URL https://partners.99digital.co.il/api/settings/getBusiness Method JSON via GET Header Authorization: Bearer {{access token}} — the access token can be received from the Access Token API. Send your partner access token. A token created with an Online account's Account API Credentials is rejected with reason 2. Body Nothing — leave it empty. There are no parameters either: the access token tells us your partner account. Response { \"status\": \"OK\", \"business name\": \"Your business name\", \"onboarding logo\": \"https://www.example.com/images/onboarding-logo.png\", \"onboarding message\": \"ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק.\", \"onboarding button\": \"לחץ כאן להתחלה\", \"onboarding success\": \"הפעלת הקו הושלמה בהצלחה\", \"onboarding failed\": \"תקלה. אנא נסה שנית\", \"reason\": 1 } Response explained Parameter Description status OK or FAIL. \"OK\" means the request was successful. \"FAIL\" means error. business name The business name. This value can't be changed with the setBusiness API. onboarding logo The onboarding logo HTTPS link that is used by default. onboarding message The onboarding message that shows by default. onboarding button The button text that shows by default. onboarding success The success message, when the onboarding completed successfully. onboarding failed The failed message, when the onboarding failed. reason The status explanation — see the table below. Reason Explanation 1 Not FAIL: the status is OK. 2 Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected). 3 The access token does not exist or has expired. Please generate another one with the Access Token API. 4 Server error, try again. 13 You need to use the GET method. Remarks A setting that was never set is empty, and the onboarding page shows its built-in default instead (see Business settings). Call it with GET. Other methods answer with HTTP 405 (Method Not Allowed). Authentication Authorization: Bearer header — Bearer followed by your access token. Create the token with Access Token, from the client id and client secret in your partners dashboard. It is valid for one hour. Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK — the request was successful. Always OK . business name string (one of: OK) The business name. This value can't be changed with the setBusiness API. Example: Your business name . onboarding logo string (one of: OK) The onboarding logo HTTPS link that is used by default. Empty if it was never set. Example: https://www.example.com/images/onboarding-logo.png . onboarding message string (one of: OK) The onboarding message that shows by default. Example: ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק. . onboarding button string (one of: OK) The button text that shows by default. Example: לחץ כאן להתחלה . onboarding success string (one of: OK) The success message, when the onboarding completed successfully. Example: הפעלת הקו הושלמה בהצלחה . onboarding failed string (one of: OK) The failed message, when the onboarding failed. Example: תקלה. אנא נסה שנית . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL means error — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Wrong credentials: the Authorization header is missing or not Bearer , or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected); 3 — The access token is wrong or expired. Create a new one with Access Token; 4 — Server error, try again; 13 — You need to use the GET method. Example: OK Your business data. { \"status\": \"OK\", \"business name\": \"Your business name\", \"onboarding logo\": \"https://www.example.com/images/onboarding-logo.png\", \"onboarding message\": \"ברוכים הבאים! לחצו על הכפתור כדי לחבר את הוואטסאפ של העסק.\", \"onboarding button\": \"לחץ כאן להתחלה\", \"onboarding success\": \"הפעלת הקו הושלמה בהצלחה\", \"onboarding failed\": \"תקלה. אנא נסה שנית\", \"reason\": 1 } Example: Nothing set yet No setting was set yet — they are empty, and the onboarding pages show their built-in defaults. { \"status\": \"OK\", \"business name\": \"Your business name\", \"onboarding logo\": \"\", \"onboarding message\": \"\", \"onboarding button\": \"\", \"onboarding success\": \"\", \"onboarding failed\": \"\", \"reason\": 1 } Example: Reason 3 The access token is wrong or expired. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "sms-api/overview",
      "title": "SMS API",
      "url": "https://docs.99digital.co.il/sms-api",
      "markdown_url": "https://docs.99digital.co.il/markdown/sms-api.md",
      "section": "SMS API",
      "section_path": [
        "SMS API"
      ],
      "language": "en",
      "description": "Send SMS to Israeli numbers, check delivery status, send verification codes and receive incoming messages by webhook.",
      "headings": [
        "Base URL",
        "Authentication",
        "Where to start"
      ],
      "keywords": [
        "SMS API",
        "send SMS",
        "bulk SMS",
        "SMS verification",
        "Israel SMS"
      ],
      "content": "Send SMS to Israeli numbers, check their delivery status, send verification codes, and receive incoming messages by webhook. Base URL https://api.99digital.co.il/sms Authentication Send your API key in the apiKey header of every request, and the fields as JSON with POST : apiKey: Content-Type: application/json Where to start Send a message: Send SMS. Delivery statuses and incoming messages: Webhook. Verification codes and two-factor authentication: Verify SMS."
    },
    {
      "id": "sms-api/send-sms",
      "title": "Send SMS",
      "url": "https://docs.99digital.co.il/sms-api/send-sms",
      "markdown_url": "https://docs.99digital.co.il/markdown/sms-api/send-sms.md",
      "section": "SMS API",
      "section_path": [
        "SMS API"
      ],
      "language": "en",
      "description": "You can send a message to any Israeli number. 'Send SMS' is for sending the same message to one or more numbers.",
      "endpoint": {
        "method": "POST",
        "path": "/sendMessage",
        "url": "https://api.99digital.co.il/sms/sendMessage"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: One number",
        "Example: Several numbers",
        "Example: Hebrew with a new line",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 6",
        "Example: Reason 4",
        "500 — An unexpected error (reason 0). error has the details. Try again, and contact support if it repeats.",
        "Example"
      ],
      "keywords": [
        "sendSms",
        "sendMessage",
        "from",
        "to",
        "text",
        "status",
        "unique",
        "timestamp",
        "reason",
        "error"
      ],
      "content": "POST https://api.99digital.co.il/sms/sendMessage You can send a message to any Israeli number. \"Send SMS\" is for sending the same message to one or more numbers. For a Hebrew message, an SMS is counted every 70 characters: a Hebrew SMS with 71 characters will be counted as two SMS. For an English message, an SMS is counted every 160 characters. Settings : Setting Value URL https://api.99digital.co.il/sms/sendMessage Method JSON via POST ( Content-Type: application/json ) Header Your API key for the service (the apiKey header) Body : Parameter Description / Example from The sender. It can be either alphanumeric or a number (maximum of 11 characters), without '+972'. The sender (alphanumeric or a number) must be approved by 99 Digital for your account. If you leave \"from\" empty, or send a sender that isn't approved for your account, the message is sent from your first approved sender: check \"from\" in the response to see which one was used to Numbers list, separated by commas, without 00 or +972 or 972. Example: 0501234567 or 0501234567,0508999999 text Your SMS goes here, up to 670 characters. Use \\n for a new line (in JSON, write it as \\\\n , as in the Hebrew with a new line example) Response : { \"status\": \"OK\", \"unique\": 63433453, \"text\": \"your message\", \"timestamp\": 1600115719, \"from\": \"0501234567\", \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL unique Unique ID for any message. Several numbers in \"to\" are sent as one shipment, so they all share the same unique, and every delivery status on your Webhook carries it text The text you sent timestamp Time stamp (Unix time, seconds) from Sender number or text (the sender the message was sent from) reason : Value Information 1 Not FAIL. The status is OK 2 Your account has no approved sender yet. Contact 99 Digital 3 The number you are trying to use is not verified by 99 Digital 4 The text is too long (more than 670 characters) 5 Unknown error, contact support 6 Wrong apiKey (the apiKey is missing or wrong) 7 \"to\" can't be empty 8 \"text\" can't be empty 9 \"from\" can't be empty Remarks : Send every value as a string. You get a delivery status for each of the numbers in to on your Webhook. Integrations written before the apiKey header keep working: the API also accepts apiKey as a field of the body, and the fields as form data instead of JSON. When both are sent, the header wins. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string No The sender. It can be either alphanumeric or a number (maximum of 11 characters), without +972 . The sender (alphanumeric or a number) must be approved by 99 Digital for your account. If you leave from empty, or send a sender that isn't approved for your account, the message is sent from your first approved sender — check from in the response to see which one was used. Example: MyStore . to string Yes Numbers list, separated by commas, without 00 , +972 or 972 . Example: 0501234567 or 0501234567,0508999999 . Example: 0501234567,0508999999 . text string Yes Your SMS goes here, up to 670 characters. Use \\n for a new line ( \\\\n in JSON). For a Hebrew message, an SMS is counted every 70 characters; for an English message, every 160 characters. Max length: 670. Example: Your order 4711 is on its way and will arrive tomorrow. . Example: One number Send a message to one number. { \"from\": \"MyStore\", \"to\": \"0501234567\", \"text\": \"Your order 4711 is on its way and will arrive tomorrow.\" } Example: Several numbers The same message to several numbers, separated by commas. { \"from\": \"MyStore\", \"to\": \"0501234567,0508999999,0527654321\", \"text\": \"Our store is closed today. See you tomorrow!\" } Example: Hebrew with a new line A Hebrew message with a new line ( \\n , written \\\\n in JSON). { \"from\": \"MyStore\", \"to\": \"0501234567\", \"text\": \"שלום דנה,\\\\nההזמנה שלך מוכנה לאיסוף.\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the message was accepted for sending; the delivery status of each number arrives on your Webhook. Always OK . unique integer (one of: OK) Unique ID for any message. Several numbers in to are sent as one shipment, so they all share the same unique , and every delivery status on your webhook carries it. Example: 3683442114 . text string (one of: OK) The text you sent. Example: Your order 4711 is on its way and will arrive tomorrow. . timestamp integer (one of: OK) Time stamp — when the message was sent (Unix time, seconds). Example: 1789900000 . from string (one of: OK) Sender number or text — the sender the message was sent from. It can differ from the from you sent (see from in the request). Example: MyStore . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the message was not sent. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your account has no approved sender yet. Contact 99 Digital; 3 — The number you are trying to use is not verified by 99 Digital; 4 — The text is too long (more than 670 characters); 5 — Unknown error, contact support; 6 — Wrong apiKey (the apiKey is missing or wrong); 7 — 'to' can't be empty; 8 — 'text' can't be empty; 9 — 'from' can't be empty. error string (one of: FAIL) Sometimes added to reason 5, with the error details. Example: OK The message was sent. { \"status\": \"OK\", \"unique\": 3683442114, \"text\": \"Your order 4711 is on its way and will arrive tomorrow.\", \"timestamp\": 1789900000, \"from\": \"MyStore\", \"reason\": 1 } Example: Reason 6 The apiKey is missing or wrong. { \"status\": \"FAIL\", \"reason\": 6 } Example: Reason 4 The text is longer than 670 characters. { \"status\": \"FAIL\", \"reason\": 4 } 500 — An unexpected error (reason 0). error has the details. Try again, and contact support if it repeats. Content type: application/json Field Type Description status string Always FAIL. Always FAIL . reason integer Always 0 — an unexpected error on our side. Always 0 . error string The details of the error. Example { \"status\": \"FAIL\", \"reason\": 0, \"error\": \"Internal error\" }"
    },
    {
      "id": "sms-api/webhook/overview",
      "title": "Webhook",
      "url": "https://docs.99digital.co.il/sms-api/webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/sms-api/webhook.md",
      "section": "SMS API",
      "section_path": [
        "SMS API",
        "Webhook"
      ],
      "language": "en",
      "description": "How SMS webhooks arrive — incoming messages to your number and the delivery status of every message you send.",
      "headings": [
        "Webhook types",
        "Delivery"
      ],
      "keywords": [
        "webhook",
        "sms webhook",
        "incoming sms",
        "delivery status",
        "status message",
        "callback"
      ],
      "content": "Webhook allows you to get a callback push to your server whenever there is an incoming message to your verified number, and with the delivery status of every message you send. You need to set the webhook URL within the 99 Digital dashboard. Every webhook is sent to your URL as JSON via POST ( Content-Type: application/json ), and event tells you what arrived. Settings: Setting Value URL Your URL Method JSON via POST Webhook types Every kind of webhook has its own page, with its explanation, an example, and every parameter explained: Webhook event What arrives When it is sent Incoming Message incoming A new message to your SMS number. Every time a new message arrives to your SMS number. Status Message status The delivery status of a message you sent: delivered, failed, kosher, blocked or error. For every number you send a message to, when its status arrives from the operator. Delivery Answer within a few seconds: we wait up to 5 seconds to connect to your server and up to 15 seconds for your answer. The status and body of your answer are ignored. If your server answers with an error or doesn't answer in time, the webhook is not sent again."
    },
    {
      "id": "sms-api/incoming-message",
      "title": "Incoming Message",
      "url": "https://docs.99digital.co.il/sms-api/webhook/incoming-message",
      "markdown_url": "https://docs.99digital.co.il/markdown/sms-api/webhook/incoming-message.md",
      "section": "SMS API",
      "section_path": [
        "SMS API",
        "Webhook"
      ],
      "language": "en",
      "description": "This will be triggered every time a new message arrives to your SMS number (`event` 'incoming').",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Webhook payload",
        "Example (generated from the schema)",
        "Responses",
        "200 — Answer with HTTP 200. The status and body of your answer are ignored."
      ],
      "keywords": [
        "incomingMessage",
        "event",
        "message",
        "date",
        "from",
        "to"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. This will be triggered every time a new message arrives to your SMS number ( event \"incoming\"). You need to set the webhook URL within the 99 Digital dashboard. How the webhooks are delivered is explained on Webhook. Settings: Setting Value URL Your URL Method JSON via POST With every incoming message, you will receive the following: { \"event\": \"incoming\", \"message\": \"Reply back\", \"date\": \"09/03/26 10:25:32\", \"from\": \"0501234567\", \"to\": \"0534444323\" } Response explained: Parameter Description / Example event \"incoming\" always. message The message that was sent from the user. date The time it was sent: when the message arrived, Israel time, in the format dd/mm/yy HH:MM:SS . from Sender number. to The number it was sent to (your verified number). Webhook payload Content type: application/json (required) Field Type Required Description event string Yes \"incoming\" always, for an incoming message. Always incoming . message string Yes The message that was sent from the user. Example: Reply back . date string Yes The time it was sent: when the message arrived, Israel time, in the format dd/mm/yy HH:MM:SS . Example: 09/03/26 10:25:32 . from string Yes Sender number. Example: 0501234567 . to string Yes The number it was sent to (your verified number). Example: 0534444323 . Example (generated from the schema) { \"event\": \"incoming\", \"message\": \"Reply back\", \"date\": \"09/03/26 10:25:32\", \"from\": \"0501234567\", \"to\": \"0534444323\" } Responses 200 — Answer with HTTP 200. The status and body of your answer are ignored."
    },
    {
      "id": "sms-api/status-message",
      "title": "Status Message",
      "url": "https://docs.99digital.co.il/sms-api/webhook/status-message",
      "markdown_url": "https://docs.99digital.co.il/markdown/sms-api/webhook/status-message.md",
      "section": "SMS API",
      "section_path": [
        "SMS API",
        "Webhook"
      ],
      "language": "en",
      "description": "This will be triggered every time you deliver a message, with the message status information (`event` 'status').",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Remarks",
        "Webhook payload",
        "Example (generated from the schema)",
        "Responses",
        "200 — Answer with HTTP 200. The status and body of your answer are ignored."
      ],
      "keywords": [
        "statusMessage",
        "event",
        "status",
        "date",
        "he_message",
        "en_message",
        "from",
        "to",
        "operator",
        "unique"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. This will be triggered every time you deliver a message, with the message status information ( event \"status\"). You need to set the webhook URL within the 99 Digital dashboard. How the webhooks are delivered is explained on Webhook. Settings: Setting Value URL Your URL Method JSON via POST With every outgoing message you send, you will receive the following back: { \"event\": \"status\", \"status\": 1, \"date\": \"26/08/26 09:45:47\", \"he message\": \"נמסר\", \"en message\": \"delivered\", \"from\": \"972535355499\", \"to\": \"0507139996\", \"operator\": \"Pelephone\", \"unique\": 3683442114 } Response explained: Parameter Description / Example event \"status\" always. status The status code (int) — see the table below. date The time when this message arrived or failed to arrive. he message Hebrew text of the status: נמסר, נכשל, מספר כשר, מספר חסום, תקלה. en message English text of the status: delivered, failed, kosher, blocked, error. from Your SMS API number: the sender you sent the message from. to The number you sent the message to. operator The mobile operator of the end user. unique The unique message ID that you received when sending the message from the Send SMS API endpoint. Status code (int) en message he message Explanation 1 delivered נמסר Message delivered successfully. 2 failed נכשל Failed (for example, the phone is off or out of network). 3 kosher מספר כשר Kosher number, can't get SMS. 4 blocked מספר חסום Blocked: the end user asked not to receive messages from you. 5 error תקלה Error (either a network error, delivery error, or server error). Try again. Remarks A message sent to several numbers has one unique (from Send SMS), and you get a status for each number. Codes sent by Verify SMS get a status too. Its unique is the ID of the SMS, not the unique that Verify SMS returned. Webhook payload Content type: application/json (required) Field Type Required Description event string Yes \"status\" always, for a delivery status. Always status . status integer Yes The status code of the delivery. One of: 1 — Message delivered successfully; 2 — Failed (for example, the phone is off or out of network); 3 — Kosher number, can't get SMS; 4 — Blocked: the end user asked not to receive messages from you; 5 — Error (either a network error, delivery error, or server error). Try again. date string Yes The time when this message arrived or failed to arrive. Example: 26/08/26 09:45:47 . he message string Yes Hebrew text of the status (status 1 to 5, in order). One of: נמסר , נכשל , מספר כשר , מספר חסום , תקלה . en message string Yes English text of the status (status 1 to 5, in order). One of: delivered , failed , kosher , blocked , error . from string Yes Your SMS API number — the sender you sent the message from. Example: 972535355499 . to string Yes The number you sent the message to. Example: 0507139996 . operator string Yes The mobile operator of the end user. Example: Pelephone . unique integer Yes The unique message ID that you received when sending the message with Send SMS. Example: 3683442114 . Example (generated from the schema) { \"event\": \"status\", \"status\": 1, \"date\": \"26/08/26 09:45:47\", \"he message\": \"נמסר\", \"en message\": \"delivered\", \"from\": \"972535355499\", \"to\": \"0507139996\", \"operator\": \"Pelephone\", \"unique\": 3683442114 } Responses 200 — Answer with HTTP 200. The status and body of your answer are ignored."
    },
    {
      "id": "sms-api/verify-sms",
      "title": "Verify SMS",
      "url": "https://docs.99digital.co.il/sms-api/verify-sms",
      "markdown_url": "https://docs.99digital.co.il/markdown/sms-api/verify-sms.md",
      "section": "SMS API",
      "section_path": [
        "SMS API"
      ],
      "language": "en",
      "description": "User verification for accessing a system.",
      "endpoint": {
        "method": "POST",
        "path": "/verifySMS",
        "url": "https://api.99digital.co.il/sms/verifySMS"
      },
      "headings": [
        "Send",
        "Check",
        "Remarks",
        "Authentication",
        "Request body",
        "Example: Send",
        "Example: Send with your own message",
        "Example: Check",
        "Responses",
        "200 — The request was processed. The send step answers with status OK or FAIL (and reason); the check step answers with status 1, 2 or 3.",
        "Example: Send — OK",
        "Example: Send — reason 10",
        "Example: Check — passed",
        "Example: Check — wrong code",
        "Example: Check — expired",
        "Example: Reason 6",
        "500 — An unexpected error in the send step (reason 0). error has the details. Try again, and contact support if it repeats.",
        "Example"
      ],
      "keywords": [
        "verifySms",
        "verifySMS",
        "from",
        "to",
        "message",
        "code",
        "status",
        "unique",
        "phone",
        "reason",
        "error"
      ],
      "content": "POST https://api.99digital.co.il/sms/verifySMS User verification for accessing a system. You can use this Verify SMS method to check if a user is the owner of the phone number they provided, or as two-factor authentication. We have two steps: Send and Check , both with this endpoint. Send: you provide us a phone number, and we send an SMS to the client. The client has 10 minutes to enter the code back to your system. Check: once the client puts in their code, you deliver to us their phone number and the code, and we verify if the code is correct. A code can be used only once. Super simple! Choose Send or Check under Request → Body (and in the request builder on the right) to see each request and its code samples. Sending code is what makes the request a check. Send Settings: Setting Value URL https://api.99digital.co.il/sms/verifySMS Method JSON via POST Header Value apiKey Your API key for the service Body: Parameter Description / Example from from can be either alphanumeric or a number (maximum of 11 characters), without +972 . It must be one of the senders 99 Digital approved for your account; otherwise (or when empty) your first approved sender is used. to The phone number to send the code to, without 00 , +972 or 972 . Example: 0501234567 . message As default, we use the following message to provide the code to the client: \"Your verification code is ##code##\". Alternatively, you can specify your own message, using this parameter. Please use this variable: ##code## for the code that we will generate from our side. { \"from\": \"MyStore\", \"to\": \"0501234567\" } Response: { \"status\": \"OK\", \"unique\": \"1789900000aB3dE9fGh1\", \"phone\": \"0501234567\", \"reason\": 1 } Response explained: Parameter Description status OK or FAIL unique Unique ID for this verification request phone The phone number the code was sent to reason The status explanation — see below Reason Explanation 1 Not FAIL. The status is OK. 2 Your account has no approved sender yet — contact 99 Digital. 3 The number you are trying to use is not verified by 99 Digital. 5 The SMS couldn't be sent (unknown error). Try again, and contact support if it repeats. 6 The apiKey is missing or wrong. 7 to can't be empty (returned today as reason 11). 9 from can't be empty. 10 You provided the message parameter, but without ##code## . 11 to can't be empty. 12 The code couldn't be saved. Try again. Check Settings: Setting Value URL https://api.99digital.co.il/sms/verifySMS Method JSON via POST Header Value apiKey Your API key for the service Body: Parameter Description / Example to The phone number of the client that received the SMS, in the same format you used to send the code. code The code that the client entered. { \"to\": \"0501234567\", \"code\": \"482913\" } Response: { \"status\": 1, \"phone\": \"0501234567\" } Response explained: Parameter Description status The result of the check — see below phone The phone number of the client Status Explanation 1 Verification passed. The code was entered correctly. 2 The code is wrong, was already used, or does not exist. 3 The code is invalid: more than 10 minutes passed. Remarks Send every value as a string — \"code\": \"482913\" , not 482913 . Send to in exactly the same format in both steps (for example 0501234567 both times): the code is kept for the number as you wrote it. Sending a new code to a number replaces the previous code of that number. A wrong code can be tried again until the code expires. Limit the number of attempts on your side (for example, 5 attempts per code). A correct code and an expired code are both deleted: checking them again returns status 2. A request that fails before the check (wrong apiKey, missing to ) answers like the send step: status FAIL and a reason . Integrations written before the apiKey header keep working: the API also accepts apiKey as a field of the body, and the fields as form data instead of JSON. When both are sent, the header wins. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string No (one of: Send) The sender: an alphanumeric name or a number (up to 11 characters), without +972 . It must be one of the senders 99 Digital approved for your account; otherwise (or when empty) your first approved sender is used. Example: MyStore . to string Yes (one of: Send) The phone number to send the code to, without 00 , +972 or 972 . For example 0501234567 . Example: 0501234567 . message string No (one of: Send) Your own message instead of the default one (\"Your verification code is 123456\"). Put ##code## where the code should appear — we replace it with the code we generate. Example: Your MyStore login code is ##code## . to string Yes (one of: Check) The phone number of the client that received the SMS, in the same format you used to send the code. Example: 0501234567 . code string Yes (one of: Check) The code the client entered. Example: 482913 . Example: Send Step 1: send the client an SMS with a code. { \"from\": \"MyStore\", \"to\": \"0501234567\" } Example: Send with your own message Step 1, with your own text: ##code## is replaced with the code. { \"from\": \"MyStore\", \"to\": \"0501234567\", \"message\": \"Your MyStore login code is ##code##\" } Example: Check Step 2: check the code the client entered. { \"to\": \"0501234567\", \"code\": \"482913\" } Responses 200 — The request was processed. The send step answers with status OK or FAIL (and reason ); the check step answers with status 1, 2 or 3. Content type: application/json Field Type Description status string (one of: Send — OK) OK — the code was sent to the client. Always OK . unique string (one of: Send — OK) A unique ID for this verification request. Example: 1789900000aB3dE9fGh1 . phone string (one of: Send — OK) The phone number the code was sent to. Example: 0501234567 . reason integer (one of: Send — OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request failed; reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your account has no approved sender yet — contact 99 Digital; 3 — The number you are trying to use is not verified by 99 Digital; 5 — The SMS couldn't be sent. Try again, and contact support if it repeats; 6 — The apiKey is missing or wrong; 7 — 'to' can't be empty (returned today as reason 11); 9 — 'from' can't be empty; 10 — You provided the 'message' parameter, but without; 11 — 'to' can't be empty; 12 — The code couldn't be saved. Try again. status integer (one of: Check) The result of the check. One of: 1 — Verification passed — the code was entered correctly; 2 — The code is wrong, was already used, or does not exist; 3 — The code expired (more than 10 minutes passed). phone string (one of: Check) The phone number of the client. Example: 0501234567 . Example: Send — OK The code was sent to the client. { \"status\": \"OK\", \"unique\": \"1789900000aB3dE9fGh1\", \"phone\": \"0501234567\", \"reason\": 1 } Example: Send — reason 10 'message' was sent without ##code##. { \"status\": \"FAIL\", \"reason\": 10 } Example: Check — passed The code is correct (status 1). { \"status\": 1, \"phone\": \"0501234567\" } Example: Check — wrong code The code is wrong, was already used, or does not exist (status 2). { \"status\": 2, \"phone\": \"0501234567\" } Example: Check — expired More than 10 minutes passed (status 3). { \"status\": 3, \"phone\": \"0501234567\" } Example: Reason 6 The apiKey is missing or wrong (both steps). { \"status\": \"FAIL\", \"reason\": 6 } 500 — An unexpected error in the send step (reason 0). error has the details. Try again, and contact support if it repeats. Content type: application/json Field Type Description status string FAIL — an unexpected error. Always FAIL . reason integer 0 — an unexpected error in the send step. Always 0 . error string The details of the error. Example { \"status\": \"FAIL\", \"reason\": 0, \"error\": \"Internal error\" }"
    },
    {
      "id": "online-api/overview",
      "title": "Online API",
      "url": "https://docs.99digital.co.il/online-api",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api.md",
      "section": "Online API",
      "section_path": [
        "Online API"
      ],
      "language": "en",
      "description": "Automate the Online omni-channel inbox — agents, contacts, conversations, tickets, messages, teams, labels, forms and webhooks.",
      "headings": [
        "Base URL",
        "Authentication",
        "Where to start"
      ],
      "keywords": [
        "Online API",
        "omni-channel inbox API",
        "contacts API",
        "conversations API",
        "messages API"
      ],
      "content": "Automate the Online omni-channel inbox: agents, contacts, conversations, tickets, messages, teams, labels, forms and webhooks. Base URL https://online.99digital.co.il/api/v1/accounts/{account id} {account id} is the number after /app/accounts/ in your dashboard URL. If your account runs on its own Online domain, use that domain instead. Authentication Send an access token in the api access token header of every request. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. api access token: Where to start Tokens, permissions, errors and rate limits: Getting Started. Start a conversation and send a message — including a WhatsApp template: Add Conversation and Create a Message. Hand a conversation from the bot to a human: Toggle Conversation Status. Statuses, display IDs and tickets: Conversation Basics. Events sent to your server: Webhook Events. Try every endpoint in Postman: Postman Collection."
    },
    {
      "id": "online-api/getting-started",
      "title": "Getting Started",
      "url": "https://docs.99digital.co.il/online-api/getting-started",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/getting-started.md",
      "section": "Online API",
      "section_path": [
        "Online API"
      ],
      "language": "en",
      "description": "Base URL, access tokens, permissions, request conventions, errors and rate limits of the Online API.",
      "headings": [
        "Base URL",
        "Authentication",
        "Path Parameters",
        "Query Parameters",
        "Authorization",
        "Account permissions",
        "Inbox permissions",
        "Requests and responses",
        "Errors",
        "Rate limits",
        "Postman"
      ],
      "keywords": [
        "Online API",
        "api_access_token",
        "access token",
        "permissions",
        "rate limit",
        "errors"
      ],
      "content": "The API uses standard verbs and returns HTTP response codes and JSON-encoded responses. It covers agents, contacts, conversations, tickets, messages, teams, labels, forms and webhooks. To get started with the 99 Digital Online REST API, first get your user API key (access token) by visiting the profile page: in the dashboard, Profile settings → Access Token . The user API key provides access to endpoints based on the user's permission level. Base URL The base URL for all API endpoints is https://online.99digital.co.il/api/v1 , or your own API endpoint domain: https://online.99digital.co.il/api/v1/accounts/{account id}/… If your account runs on its own Online domain, use that domain instead of online.99digital.co.il . {account id} is the numeric ID of your account: the number after /app/accounts/ in the dashboard URL. For example, in https://online.99digital.co.il/app/accounts/12/dashboard it is 12 . Authentication This API requires authentication. All requests must include an api access token header with a valid API key (access token): curl 'https://online.99digital.co.il/api/v1/accounts/12/conversations/meta' \\ -H 'api access token: ' There are two kinds of tokens: Token Where to get it Acts as User token Dashboard → Profile settings → Access Token . That agent, with exactly that agent's role and permissions. Everything the API does is recorded as done by this agent. Agent-bot token Issued for an agent bot, such as a Studio flow or an external bot. The bot. A bot can call only the endpoints whose page says \"Agent-bot token: allowed\". An agent-bot token can call these endpoints: Add Conversation, Get Conversation, Toggle Conversation Status, Toggle Conversation Priority, Assign Conversation, Set Conversation Labels, Set Conversation Custom Attributes, Apply SLA Policy, Send CSAT Survey, Create a Message, Update Contact, List Online Agents and every Forms endpoint. A missing or wrong token, or a valid token of a user who does not belong to the account, is answered with 401 : { \"error\": \"Invalid Access Token\" } { \"error\": \"You are not authorized to access this account\" } Keep tokens secret, and use them only from your server. A user token can do everything its agent can do in the dashboard. Path Parameters For most REST API calls, you must include one or more path parameters in the request URI. Parameter Type Description account id integer The numeric ID of the account: the number after /app/accounts/ in the dashboard URL. inbox id integer The numeric ID of the inbox. No endpoint in this reference takes it in the path: it is sent as a query or body parameter, for example in Add Conversation. agent id integer The numeric ID of the agent (the agent's user ID). team id integer The numeric ID of the team. conversation id integer The numeric ID of the conversation: always its display ID , the id in conversation responses and the number in the dashboard URL. See Conversation Basics. message id integer The numeric ID of the message. contact id integer The numeric ID of the contact. ticket id integer The numeric ID of a ticket of the conversation. See List Tickets. label id integer The numeric ID of the label. webhook id integer The numeric ID of the webhook. note id integer The ID of a contact note, as returned by List Contact Notes. file id integer The ID of a contact file, as returned by List Contact Files. event id integer The ID of a conversation event, as returned by List Conversation Events. form id string The form's publicId , as returned by List Forms. submission id string The ID (a UUID) of a form submission, as returned by List Form Submissions. Query Parameters In some of the REST API calls you can include one or more query parameters in the request URI to filter, limit the size of, and sort the data in an API response. For filter parameters, see the individual GET calls. Use these, or similar, query parameters: Not all pagination parameters are available for all endpoints. Parameter Type Description sort string The attribute by which the list should be sorted. page integer The page parameter: the number of the page to return. List endpoints take page (and sometimes per page ), or message-ID cursors ( before / after ) for messages. Each endpoint page says its page size and which of these parameters it accepts. Authorization What a user token may do depends on the account's permission model. Legacy roles (accounts without the new rules system): every agent is either administrator or agent . Administrators can manage everything. Agents work with conversations and contacts, but cannot manage agents, teams, labels or webhooks. New rules system (custom roles): every agent has a custom role, such as General Manager or Shift Manager , made of named permissions. On these accounts only the permissions decide : the legacy administrator role is not used, and an agent cannot be set to administrator . There are two kinds of permissions. Account permissions Each has read , create , update and delete flags. Permission Used by Agents Managing agents. read also decides whether agents' personal details (email, phone, role) are returned. Disconnect Agents Disconnect Agent ( update ). Teams Managing teams and team members. Labels Managing label definitions. Contacts Reading, creating, updating, deleting and blocking contacts. Webhooks Managing webhooks. Forms / Forms Responses Reading forms / reading form submissions. Import Wizard / Export Wizard Importing / exporting conversations ( create ). Inbox permissions Granted per inbox: the role lists the inboxes each one applies to. They decide what the agent may do with the conversations of that inbox. Permission Allows Inbox read all conversations Seeing every conversation in the inbox. Inbox read (Team) Seeing the conversations of the agent's teams in the inbox. Inbox read unassigned conversations Seeing conversations with no agent and no team in the inbox. Inbox see conversations history Seeing messages from before the conversation was last resolved. Inbox new message Starting a new conversation in the inbox. Inbox reply / Inbox private notes Sending replies / private notes. Inbox attach files / Inbox delay message Sending attachments / scheduled messages. Inbox delete message Deleting messages. Inbox resolve / Inbox reopen Resolving / reopening conversations. Inbox move to pending Snoozing conversations (shown as \"Snooze conversation\" in the role editor). Inbox manual/bot switch Switching between Bot ( open ) and Manual ( pending ). Inbox priority of conversations Changing the priority. Inbox can assign / Inbox assign to group Assigning agents / teams. Inbox can be assigned Being assigned conversations in the inbox. Inbox assign labels Changing conversation labels. Inbox send Transcript Emailing transcripts. Inbox ai assistance AI features, such as translation. Every endpoint page lists what it needs under Permissions . A request without the needed permission is answered with 403 : { \"error\": \"You are not authorized to do this action\" } Requests and responses Format. Send JSON with Content-Type: application/json . File uploads use multipart/form-data . Wrapped bodies. Some endpoints take their fields inside an object named after the resource: {\"agent\": {…}} , {\"team\": {…}} , {\"label\": {…}} , {\"webhook\": {…}} . In a JSON request the wrapper is optional — top-level fields are wrapped for you. The examples always show the wrapped form. Conversation IDs. Paths take the conversation's display ID. See Conversation Basics. Timestamps. Most are Unix timestamps in seconds. Some are ISO 8601 strings, as noted per field. snoozed until in conversations is in milliseconds. Pagination. See Query Parameters. Empty responses. Many update and delete endpoints answer 200 OK with an empty body. Webhooks. Endpoints that send a webhook event say so. Errors Status Meaning Typical body 401 The token is missing or wrong, or its user is not in the account. {\"error\": \"Invalid Access Token\"} 403 The role lacks the permission, or an agent-bot token called an endpoint that is not open to bots. {\"error\": \"You are not authorized to do this action\"} or {\"error\": \"Access to this endpoint is not authorized for bots\"} 404 The resource does not exist in this account. {\"error\": \"Resource could not be found\"} 422 Validation failed, or a required parameter is missing. {\"message\": \"Name has already been taken\", \"attributes\": [\"name\"]} or {\"error\": \"param is missing or the value is empty: agent\"} 402 The account reached its licensed number of agents. {\"error\": \"Account limit exceeded. Please purchase more licenses\"} 429 Too many requests — see Rate limits. Validation messages may be translated to the account's language (for example Hebrew), so do not parse them: use the HTTP status and attributes . Rate limits Limit Applies to 1,000 requests per minute Per IP address, across all endpoints. 10 requests per minute Per IP address, for the same GET URL under /conversations — for example polling /conversations?status=open in a loop. /conversations/meta is not limited this way. 30 requests per hour Conversation transcripts, per account. Above a limit, the request is answered with 429 . Instead of polling, listen to webhook events. Postman Every endpoint, with ready-to-send samples, is in the Online API Postman Collection."
    },
    {
      "id": "online-api/list-agents",
      "title": "List of all Agents",
      "url": "https://docs.99digital.co.il/online-api/agents/list-of-all-agents",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/agents/list-of-all-agents.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Agents"
      ],
      "language": "en",
      "description": "List all agents in an account.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/agents",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/agents"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The agents of the account.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "listAgents",
        "accounts",
        "agents",
        "account_id",
        "inbox_id",
        "id",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/agents List all agents in an account. The agents are returned ordered by name. Pass inbox id to get only the agents who can work in that inbox: the inbox's members, plus the agents whose role grants Inbox read all conversations in it. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/agents Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token: any agent of the account. On accounts with the new rules system, the agents' personal details are returned only when the caller's role grants Agents → read — see the Agent object below. Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Query Parameters: Parameter Description Required inbox id Return only the agents who can work in this inbox. No Response: [ { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [31, 32], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } ] Response-Explain: Parameter Description id Agent numeric ID account id Account numeric ID availability status The availability status of the agent. Enum: online , busy , offline . This is the live presence, computed from the agent's connection. auto offline Whether the availability status of the agent is configured to go offline automatically when away confirmed Whether or not the agent's account has been validated by clicking on the invitation email they received email Email of the agent available name Display name of the agent name Full name of the agent role Whether it's an administrator or an agent. Enum: agent , administrator . On accounts with the new rules system: the name of the agent's custom role. see all conversations Whether an agent can see all conversations thumbnail Agent thumbnail The other fields of the response are described in the response schema below. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . inbox id query integer No Return only the agents who can work in this inbox: its members, plus the agents whose role grants Inbox read all conversations in it. Example: 31 . Responses 200 — The agents of the account. Content type: application/json Field Type Description [].id integer The agent's numeric ID (user ID). [].account id integer The numeric ID of the account. [].availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. [].auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). [].confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). [].email string The agent's login email address. [].available name string The agent's display name. [].custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. [].name string The agent's full name. [].role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). [].operation bot boolean true for internal operation-bot users. [].see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). [].assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . [].new role string \\ null The agent's custom role name, or null on accounts with legacy roles. [].thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. [].capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. [].two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. [].phone1 string \\ null The phone number that receives two-factor codes by SMS. [].email1 string \\ null The email address that receives two-factor codes by email. [].create time integer When the agent was created (Unix timestamp, in seconds). Example [ { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [ 31, 32 ], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 }, { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"custom attributes\": {}, \"name\": \"Jane Agent\", \"role\": \"General Manager\", \"operation bot\": false, \"see all conversations\": true, \"assignable to inbox\": [ 31, 32, 33 ], \"new role\": \"General Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": \"sms\", \"phone1\": \"+972541234567\", \"email1\": null, \"create time\": 1790000000 } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/add-agent",
      "title": "Add Agent",
      "url": "https://docs.99digital.co.il/online-api/agents/add-agent",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/agents/add-agent.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Agents"
      ],
      "language": "en",
      "description": "Add a new agent to an account.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/agents",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/agents"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Agent",
        "Example: With two-factor and attributes",
        "Responses",
        "200 — The new agent.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "402 — The account reached its licensed number of agents.",
        "Example",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "422 — The agent fields are missing, or the role is not allowed.",
        "Example: Administrator role",
        "Example: Missing fields"
      ],
      "keywords": [
        "addAgent",
        "accounts",
        "agents",
        "account_id",
        "agent",
        "name",
        "email",
        "role",
        "availability",
        "auto_offline",
        "see_all_conversations",
        "two_factor_type",
        "phone1",
        "email1",
        "custom_attributes",
        "capacity_cap",
        "id",
        "availability_status",
        "confirmed",
        "available_name",
        "operation_bot",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "create_time",
        "error",
        "message",
        "attributes"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/agents Add a new agent to an account. Creates a user and adds them to the account. If a user with the same email already exists in the system, that user is added to the account instead of creating a new one. New users receive an invitation email to set their password. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/agents Method JSON via POST Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Agents → create . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Request body: All fields go inside an agent object. In a JSON request the wrapper is optional: top-level fields are wrapped for you. Parameter Type Description Required name string Full name of the agent Yes email string Email of the agent. It is the login email and must be unique system-wide: if it already exists, the existing user is attached to the account. Yes role string Whether it's an administrator or an agent. Enum: agent , administrator . On accounts with the new rules system: the name of a custom role (for example Shift Manager ), or agent ; administrator is rejected there. Yes availability string The availability setting of the agent. Enum: online , busy , offline . Default online . No auto offline boolean Whether the availability status of the agent is configured to go offline automatically when away. Default true . No see all conversations boolean Legacy flag that lets the agent see all conversations. On new-rules accounts the effective value comes from the role ( Inbox read all conversations on every inbox). No two factor type string sms or email enables two-factor authentication; any other value disables it. sms requires phone1 , email requires email1 . No phone1 string Phone number for two-factor codes by SMS. No email1 string Email address for two-factor codes by email. No custom attributes object Free-form key/value attributes. No capacity cap integer Queue-management cap of open tickets for this agent. Empty or null means the account default (unlimited). Used only with queue management. No Response: { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": false, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [31, 32], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } Response-Explain: Parameter Description id Agent numeric ID account id Account numeric ID availability status The availability status of the agent. Enum: online , busy , offline . This is the live presence, computed from the agent's connection, so it can differ from the availability you sent. auto offline Whether the availability status of the agent is configured to go offline automatically when away confirmed Whether or not the agent's account has been validated by clicking on the invitation email they received email Email of the agent available name Display name of the agent name Full name of the agent role Whether it's an administrator or an agent. Enum: agent , administrator . On accounts with the new rules system: the name of the agent's custom role. see all conversations Whether an agent can see all conversations thumbnail Agent thumbnail The other fields of the response are described in the response schema below. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description agent object Yes The new agent's details. In a JSON request the wrapper is optional: top-level fields are wrapped for you. agent.name string Yes The full name of the agent. Example: Dana Levi . agent.email string Yes The email of the agent, used to log in. It must be unique system-wide: if a user with this email already exists, that existing user is added to the account instead of a new one being created. Example: dana.levi@example.com . agent.role string Yes Whether it's an administrator or an agent: agent or administrator (legacy roles). On accounts with the new rules system: the name of a custom role (for example Shift Manager ), or agent ; administrator is rejected there with 422 . Example: Shift Manager . agent.availability string No The availability setting of the agent: online , busy or offline . Default online . The live presence returned in availability status also depends on whether the agent is connected. One of: online — Available to take conversations; busy — Marked as busy; offline — Not available. Default: online . agent.auto offline boolean No Whether the availability status of the agent is configured to go offline automatically when away (when the agent disconnects). Default true . Default: true . agent.see all conversations boolean No Legacy flag that lets the agent see all conversations. On accounts with the new rules system the effective value comes from the role ( Inbox read all conversations on every inbox). agent.two factor type string No sms or email enables two-factor authentication; any other value disables it. sms requires phone1 , email requires email1 . One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 . agent.phone1 string No The phone number for two-factor codes by SMS. Example: +972507654321 . agent.email1 string No The email address for two-factor codes by email. agent.custom attributes object No Free-form key/value attributes, stored on the agent's membership in this account. agent.capacity cap integer \\ null No Queue-management cap of open tickets for this agent, used for queue routing (only with queue management). Empty or null means the account default (unlimited). Example: Agent An agent with a custom role. { \"agent\": { \"name\": \"Dana Levi\", \"email\": \"dana.levi@example.com\", \"role\": \"Shift Manager\" } } Example: With two-factor and attributes Two-factor codes by SMS, and a custom attribute. { \"agent\": { \"name\": \"Dana Levi\", \"email\": \"dana.levi@example.com\", \"role\": \"Shift Manager\", \"availability\": \"online\", \"auto offline\": true, \"two factor type\": \"sms\", \"phone1\": \"+972507654321\", \"custom attributes\": { \"department\": \"sales\" } } } Responses 200 — The new agent. Content type: application/json Field Type Description id integer The agent's numeric ID (user ID). account id integer The numeric ID of the account. availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). email string The agent's login email address. available name string The agent's display name. custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. name string The agent's full name. role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). operation bot boolean true for internal operation-bot users. see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . new role string \\ null The agent's custom role name, or null on accounts with legacy roles. thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. phone1 string \\ null The phone number that receives two-factor codes by SMS. email1 string \\ null The email address that receives two-factor codes by email. create time integer When the agent was created (Unix timestamp, in seconds). Example { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": false, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [ 31, 32 ], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": \"sms\", \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 402 — The account reached its licensed number of agents. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Account limit exceeded. Please purchase more licenses\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 422 — The agent fields are missing, or the role is not allowed. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. error string Returned instead of message when agent is missing. Example: Administrator role administrator on an account with the new rules system. { \"message\": \"Role ‘Administrator’ is not allowed when the ‘new rules system’ feature is enabled. Please use the ‘Agent’ role and set the new role through the General Manager account.\", \"attributes\": [ \"role\" ] } Example: Missing fields The body has no agent fields. { \"error\": \"param is missing or the value is empty: agent\" }"
    },
    {
      "id": "online-api/update-agent",
      "title": "Update Agent",
      "url": "https://docs.99digital.co.il/online-api/agents/update-agent",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/agents/update-agent.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Agents"
      ],
      "language": "en",
      "description": "Update agent details in an account.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/agents/{agent_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/agents/{agent_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Change the role",
        "Example: Role and profile",
        "Example: Clear the capacity cap",
        "Responses",
        "200 — The updated agent.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The agent is not in this account.",
        "Example",
        "422 — role is administrator on an account with the new rules system.",
        "Example"
      ],
      "keywords": [
        "updateAgent",
        "accounts",
        "agents",
        "account_id",
        "agent_id",
        "agent",
        "name",
        "role",
        "availability",
        "auto_offline",
        "see_all_conversations",
        "two_factor_type",
        "phone1",
        "email1",
        "custom_attributes",
        "capacity_cap",
        "id",
        "availability_status",
        "confirmed",
        "email",
        "available_name",
        "operation_bot",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "create_time",
        "error",
        "message",
        "attributes"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/agents/{agent id} Update agent details in an account. Updates the agent's profile and their membership in this account. Only the fields you send are changed. The login email cannot be changed through this endpoint. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/agents/{agent id} Method JSON via PATCH ( PUT works the same way) Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Agents → update . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes agent id The numeric ID of the agent Yes Request body: All fields go inside an agent object. In a JSON request the wrapper is optional: top-level fields are wrapped for you. Parameter Type Description Required role string Whether it's an administrator or an agent. Enum: agent , administrator . On accounts with the new rules system: the name of a custom role (for example Shift Manager ), which sets the agent's custom role, or agent ; administrator is rejected there. No availability string The availability setting of the agent. Enum: online , busy , offline . No auto offline boolean Whether the availability status of the agent is configured to go offline automatically when away No name string Full name of the agent. No see all conversations boolean Legacy flag that lets the agent see all conversations. On accounts with the new rules system the role decides, and this field has no effect. No two factor type string sms or email enables two-factor authentication; any other value disables it. sms requires phone1 , email requires email1 . No phone1 string Phone number for two-factor codes by SMS. No email1 string Email address for two-factor codes by email. No custom attributes object Replaces the agent's custom attributes in this account. No capacity cap integer Queue-management cap of open tickets. Send null or \"\" to clear it (account default, unlimited). No Response: { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [31, 32], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } Response-Explain: Parameter Description id Agent numeric ID account id Account numeric ID availability status The availability status of the agent. Enum: online , busy , offline . This is the live presence, computed from the agent's connection, so it can differ from the availability you sent — for example offline while the agent is not connected. auto offline Whether the availability status of the agent is configured to go offline automatically when away confirmed Whether or not the agent's account has been validated by clicking on the invitation email they received email Email of the agent available name Display name of the agent name Full name of the agent role Whether it's an administrator or an agent. Enum: agent , administrator . On accounts with the new rules system: the name of the agent's custom role. see all conversations Whether an agent can see all conversations thumbnail Agent thumbnail The other fields of the response are described in the response schema below. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . agent id path integer Yes The numeric ID of the agent (the agent's user ID). Example: 52 . Request body Content type: application/json (required) Field Type Required Description agent object Yes The fields to change. Every field is optional. In a JSON request the wrapper is optional: top-level fields are wrapped for you. agent.name string No The full name of the agent. Example: Dana Levi . agent.role string No Whether it's an administrator or an agent: agent or administrator (legacy roles) — the same values as in Add Agent. On accounts with the new rules system, the name of a custom role (for example Shift Manager ) sets the agent's custom role; agent is also accepted, and administrator is rejected with 422 . Example: Shift Manager . agent.availability string No The availability setting of the agent: online , busy or offline . The live presence returned in availability status also depends on whether the agent is connected. One of: online — Available to take conversations; busy — Marked as busy; offline — Not available. agent.auto offline boolean No Whether the availability status of the agent is configured to go offline automatically when away (when the agent disconnects). agent.see all conversations boolean No Legacy flag that lets the agent see all conversations. On accounts with the new rules system the role decides, and this field has no effect. agent.two factor type string No sms or email enables two-factor authentication; any other value disables it. sms requires phone1 , email requires email1 . One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 . agent.phone1 string No The phone number for two-factor codes by SMS. Example: +972507654321 . agent.email1 string No The email address for two-factor codes by email. agent.custom attributes object No Free-form key/value attributes. Replaces the agent's current custom attributes in this account. agent.capacity cap integer \\ null No Queue-management cap of open tickets for this agent, used for queue routing (only with queue management). Send null or \"\" to clear it: the account default (unlimited). Example: Change the role Give the agent another custom role. { \"agent\": { \"role\": \"Shift Manager\" } } Example: Role and profile A new name, role, availability and custom attributes. { \"agent\": { \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"availability\": \"busy\", \"custom attributes\": { \"department\": \"sales\" } } } Example: Clear the capacity cap Go back to the account default (unlimited). { \"agent\": { \"capacity cap\": null } } Responses 200 — The updated agent. Content type: application/json Field Type Description id integer The agent's numeric ID (user ID). account id integer The numeric ID of the account. availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). email string The agent's login email address. available name string The agent's display name. custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. name string The agent's full name. role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). operation bot boolean true for internal operation-bot users. see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . new role string \\ null The agent's custom role name, or null on accounts with legacy roles. thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. phone1 string \\ null The phone number that receives two-factor codes by SMS. email1 string \\ null The email address that receives two-factor codes by email. create time integer When the agent was created (Unix timestamp, in seconds). Example { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [ 31, 32 ], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The agent is not in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — role is administrator on an account with the new rules system. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example { \"message\": \"Role ‘Administrator’ is not allowed when the ‘new rules system’ feature is enabled. Please use the ‘Agent’ role and set the new role through the General Manager account.\", \"attributes\": [ \"role\" ] }"
    },
    {
      "id": "online-api/remove-agent",
      "title": "Remove Agent",
      "url": "https://docs.99digital.co.il/online-api/agents/remove-agent",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/agents/remove-agent.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Agents"
      ],
      "language": "en",
      "description": "Remove an agent from an account.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/agents/{agent_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/agents/{agent_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The agent was removed, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The agent is not (or no longer) in this account.",
        "Example"
      ],
      "keywords": [
        "removeAgent",
        "accounts",
        "agents",
        "account_id",
        "agent_id",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/agents/{agent id} Remove an agent from an account. If the user does not belong to any other account, the user record is deleted as well, in the background. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/agents/{agent id} Method JSON via DELETE Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Agents → delete . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes agent id The numeric ID of the agent Yes Response: 200 OK with an empty body. Error responses: 404 {\"error\": \"Resource could not be found\"} when the agent is not (or no longer) in the account. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . agent id path integer Yes The numeric ID of the agent (the agent's user ID). Example: 52 . Responses 200 — The agent was removed, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The agent is not (or no longer) in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-online-agents",
      "title": "List Online Agents",
      "url": "https://docs.99digital.co.il/online-api/agents/list-online-agents",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/agents/list-online-agents.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Agents"
      ],
      "language": "en",
      "description": "Returns the IDs of agents who are currently online in the account.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/agents/online",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/agents/online"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The user IDs of the online agents, as strings.",
        "Example: Online agents",
        "Example: Nobody online",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "404 — The team in teamid does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listOnlineAgents",
        "accounts",
        "agents",
        "online",
        "account_id",
        "team_id",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/agents/online Returns the IDs of agents who are currently online in the account. Optionally filters to the members of one team. Useful for bots that decide whether to hand a conversation over to a human. Setting Value Method GET Path /api/v1/accounts/{account id}/agents/online Authorization User token (any agent) or agent-bot token . Path parameters Name Type Required Description account id integer Yes Account ID. Query parameters Name Type Required Description team id integer No Return only online agents who are members of this team. 404 if the team does not exist. Example: all online agents curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/agents/online' \\ -H 'api access token: ' Response ( 200 OK ). The IDs are strings. [\"51\", \"52\", \"53\"] Example: online agents of a team curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/agents/online?team id=7' \\ -H 'api access token: ' Response ( 200 OK ): [\"51\"] Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . team id query integer No Return only the online agents who are members of this team. A team that does not exist returns 404 . Example: 7 . Responses 200 — The user IDs of the online agents, as strings. Content type: application/json Type: array of string . Example: Online agents One agent is online. [ \"51\" ] Example: Nobody online No agent (or no member of the team) is online. [] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 404 — The team in team id does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/disconnect-agent",
      "title": "Disconnect Agent",
      "url": "https://docs.99digital.co.il/online-api/agents/disconnect-agent",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/agents/disconnect-agent.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Agents"
      ],
      "language": "en",
      "description": "Forces an agent's session to end.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/agents/{agent_id}/disconnect",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/agents/{agent_id}/disconnect"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The agent's session was ended, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "disconnectAgent",
        "accounts",
        "agents",
        "disconnect",
        "account_id",
        "agent_id",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/agents/{agent id}/disconnect Forces an agent's session to end. The agent's next request to the account fails with a session-timeout error, and the dashboard logs them out. The request has no body. Setting Value Method POST Path /api/v1/accounts/{account id}/agents/{agent id}/disconnect Authorization User token. Legacy: administrator . New rules: Disconnect Agents → update . Not available to agent-bot tokens. Path parameters Name Type Required Description account id integer Yes Account ID. agent id integer Yes Agent (user) ID. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/agents/52/disconnect' \\ -H 'api access token: ' Example response : 200 OK with an empty body. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . agent id path integer Yes The numeric ID of the agent (the agent's user ID). Example: 52 . Responses 200 — The agent's session was ended, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-assignable-agents",
      "title": "List Assignable Agents",
      "url": "https://docs.99digital.co.il/online-api/agents/list-assignable-agents",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/agents/list-assignable-agents.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Agents"
      ],
      "language": "en",
      "description": "Returns the agents who can be assigned conversations in all of the given inboxes.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/assignable_agents",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/assignable_agents"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The agents who can be assigned in every requested inbox, in payload.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — One of the inbox IDs does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listAssignableAgents",
        "accounts",
        "assignable_agents",
        "account_id",
        "inbox_ids[]",
        "payload",
        "id",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/assignable agents Returns the agents who can be assigned conversations in all of the given inboxes. An agent is returned only when assignable in all of them: New-rules accounts: agents whose role grants Inbox can be assigned on every requested inbox. Legacy accounts: agents who are members of every requested inbox, plus all administrators. Setting Value Method GET Path /api/v1/accounts/{account id}/assignable agents Authorization User token. The caller must be allowed to view each requested inbox. Not available to agent-bot tokens. Path parameters Name Type Required Description account id integer Yes Account ID. Query parameters Name Type Required Description inbox ids[] integer[] Yes One or more inbox IDs. Repeat the parameter for each inbox. Example request Repeat inbox ids[] for each inbox ( -g stops cURL from reading the brackets as a pattern): curl -g -X GET 'https://online.99digital.co.il/api/v1/accounts/12/assignable agents?inbox ids[]=31&inbox ids[]=32' \\ -H 'api access token: ' Example response ( 200 OK ). The result is wrapped in payload ; one agent is shown. { \"payload\": [ { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [31, 32], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } ] } Error responses : 404 {\"error\": \"Resource could not be found\"} when any of the inbox IDs does not exist in the account. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . inbox ids[] query array of integer Yes One or more inbox IDs. Repeat the parameter for each inbox. Example: [31,32] . Responses 200 — The agents who can be assigned in every requested inbox, in payload . Content type: application/json Field Type Description payload array of object The assignable agents. payload[].id integer The agent's numeric ID (user ID). payload[].account id integer The numeric ID of the account. payload[].availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. payload[].auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). payload[].confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). payload[].email string The agent's login email address. payload[].available name string The agent's display name. payload[].custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. payload[].name string The agent's full name. payload[].role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). payload[].operation bot boolean true for internal operation-bot users. payload[].see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). payload[].assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . payload[].new role string \\ null The agent's custom role name, or null on accounts with legacy roles. payload[].thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. payload[].capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. payload[].two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. payload[].phone1 string \\ null The phone number that receives two-factor codes by SMS. payload[].email1 string \\ null The email address that receives two-factor codes by email. payload[].create time integer When the agent was created (Unix timestamp, in seconds). Example { \"payload\": [ { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [ 31, 32 ], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 }, { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"custom attributes\": {}, \"name\": \"Jane Agent\", \"role\": \"General Manager\", \"operation bot\": false, \"see all conversations\": true, \"assignable to inbox\": [ 31, 32, 33 ], \"new role\": \"General Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": \"sms\", \"phone1\": \"+972541234567\", \"email1\": null, \"create time\": 1790000000 } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — One of the inbox IDs does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-contacts",
      "title": "List Contacts",
      "url": "https://docs.99digital.co.il/online-api/contacts/list-contacts",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/list-contacts.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "List all contacts with values for identifier, email, phone number or WhatsApp ID in your account, with pagination (page size = 10 by default).",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/contacts",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — A page of contacts.",
        "Example: Newest first",
        "Example: With a label",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "listContacts",
        "accounts",
        "contacts",
        "account_id",
        "page",
        "per_page",
        "sort",
        "labels[]",
        "include_contact_inboxes",
        "meta",
        "count",
        "contacts_all",
        "current_page",
        "payload",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "custom_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/contacts List all contacts with values for identifier, email, phone number or WhatsApp ID in your account, with pagination (page size = 10 by default). Send labels[] to get only the contacts that have any of those labels, and sort to change the order. To find contacts by text, use Search Contacts; for conditions on specific fields, use Filter Contacts. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/contacts Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — legacy roles: any agent. New rules system: Contacts → read . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Query Parameters: Parameter Type Description Required sort string The attribute by which the list should be sorted. Prefix it with - for descending order (for example -created at ). Enum: name , email , phone number , last activity at , created at , company , city , country , -name , -email , -phone number , -last activity at , -created at , -company , -city , -country No page integer The page parameter. Default: 1 No per page integer The page size. Default: 10 , maximum 100 No labels[] string[] Return only the contacts that have any of these labels No include contact inboxes boolean Include contact inboxes in each contact. Default: true ; send false for much smaller responses No Response: { \"meta\": { \"count\": 1, \"contacts all\": null, \"current page\": 1 }, \"payload\": [ { \"additional attributes\": {}, \"availability status\": \"offline\", \"email\": \"string\", \"id\": 0, \"name\": \"string\", \"phone number\": \"string\", \"identifier\": \"string\", \"thumbnail\": \"string\", \"custom attributes\": { \"attribute key\": \"attribute value\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 0, \"contact inboxes\": [ { \"source id\": \"string\", \"inbox\": {} } ] } ] } Response-Explain: Parameter Description meta Metadata about the contacts meta -> count Number of matching contacts, across all pages meta -> contacts all Always null meta -> current page Current results page. It may come back as a string (for example \"1\" ), so parse it before comparing payload Array of objects (contacts) payload -> id Contact numeric ID payload -> name Full name of the contact payload -> email Email address of the contact (stored in lower case) payload -> phone number Phone number of the contact, in E.164 format payload -> availability status Availability status of the contact: whether the contact is connected right now (website widget). Enum: online , offline payload -> identifier A unique identifier for the contact in an external system payload -> thumbnail Avatar URL of the contact payload -> last activity at Timestamp of the last activity. Present only when set payload -> blocked Indicates whether the contact is blocked payload -> is whatsapp contact true if the contact belongs to a WhatsApp API inbox payload -> created at The time at which the contact was created (Unix timestamp) payload -> custom attributes Object containing custom attributes related to the contact payload -> additional attributes Object containing additional attributes related to the contact payload -> contact inboxes Array of objects (contact inboxes). Left out when you send include contact inboxes=false payload -> contact inboxes -> source id Contact inbox source ID payload -> contact inboxes -> inbox Object containing the inbox details Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . page query integer No The page parameter — the number of the page to return. Default: 1 . Example: 1 . per page query integer No The page size — the number of contacts per page, at most 100. Default: 10 . Maximum: 100. sort query string No The attribute by which the list should be sorted. Prefix it with - for descending order (for example -created at ). One of: name — By name, ascending (A to Z); email — By email address, ascending; phone number — By phone number, ascending; last activity at — By last activity, oldest first; created at — By creation time, oldest first; company — By company name ( company name in additional attributes ), ascending; city — By city ( city in additional attributes ), ascending; country — By country ( country in additional attributes ), ascending; -name — By name, descending (Z to A); -email — By email address, descending; -phone number — By phone number, descending; -last activity at — By last activity, newest first; -created at — By creation time, newest first; -company — By company name, descending; -city — By city, descending; -country — By country, descending. Example: -created at . labels[] query array of string No Return only the contacts that have any of these label titles. include contact inboxes query boolean No Include contact inboxes in each contact. Send false for much smaller responses. Default: true . Responses 200 — A page of contacts. Content type: application/json Field Type Description meta object Metadata about the contacts — paging information for the result. meta.count integer The number of matching contacts, across all pages. meta.contacts all null Returned as null . meta.current page integer \\ string The current page number. It may come back as a string (for example \"1\" ). payload array of object Array of contact objects — the contacts on this page. payload[].id integer The contact's numeric ID. payload[].name string The full name of the contact. payload[].email string \\ null The email address of the contact, stored in lower case, or null . payload[].phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload[].identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload[].thumbnail string The avatar URL of the contact, or an empty string. payload[].availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload[].additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload[].custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload[].blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload[].is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload[].created at integer The time at which the contact was created (Unix timestamp, in seconds). payload[].last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload[].email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload[].contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload[].contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].contact inboxes[].inbox object Object containing the details of the inbox. payload[].contact inboxes[].inbox.id integer The numeric ID of the inbox. payload[].contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload[].contact inboxes[].inbox.account id integer The numeric ID of the account. payload[].contact inboxes[].inbox.name string The name of the inbox. payload[].contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload[].contact inboxes[].inbox.timezone string The inbox's time zone. payload[].contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload[].contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload[].conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example: Newest first ?page=1&sort=-created at&include contact inboxes=false . Shortened to the first two of the four contacts. { \"meta\": { \"count\": 4, \"contacts all\": null, \"current page\": \"1\" }, \"payload\": [ { \"additional attributes\": {}, \"availability status\": \"offline\", \"email\": null, \"id\": 804, \"name\": \"Yossi Ben David\", \"phone number\": \"+972547654321\", \"identifier\": null, \"thumbnail\": \"\", \"custom attributes\": {}, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794471100 }, { \"additional attributes\": {}, \"availability status\": \"offline\", \"email\": null, \"id\": 803, \"name\": \"Noa Mizrahi\", \"phone number\": \"+972531234567\", \"identifier\": null, \"thumbnail\": \"\", \"custom attributes\": {}, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794471000 } ] } Example: With a label ?labels[]=vip&include contact inboxes=false — the contacts labelled vip . { \"meta\": { \"count\": 1, \"contacts all\": null, \"current page\": \"1\" }, \"payload\": [ { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/create-contact",
      "title": "Create Contact",
      "url": "https://docs.99digital.co.il/online-api/contacts/create-contact",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/create-contact.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Create a new contact in an account.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/contacts",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Linked to an inbox",
        "Example: Local phone number",
        "Responses",
        "200 — The new contact, and the contact inbox created for inboxid (both fields of contactinbox are null when no inboxid was sent).",
        "Example: Linked to an inbox",
        "Example: Local phone number",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The inboxid does not exist in this account.",
        "Example",
        "422 — Validation failed. message is translated to the account's language, so check attributes (the fields that failed) rather than the text.",
        "Example: Phone number taken",
        "Example: Invalid email and phone"
      ],
      "keywords": [
        "createContact",
        "accounts",
        "contacts",
        "account_id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "additional_attributes",
        "custom_attributes",
        "avatar_url",
        "inbox_id",
        "source_id",
        "payload",
        "contact",
        "id",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "contact_inbox",
        "updated_at",
        "error",
        "message",
        "attributes"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/contacts Create a new contact in an account. Send inbox id to also link the contact to that inbox. The response then includes the contact inbox's source id , which you need to add a conversation in that inbox. To link an existing contact to an inbox later, use Create Contact Inbox. Fires the contact created webhook event. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/contacts Method JSON via POST Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — legacy roles: any agent. New rules system: Contacts → create . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Request body: Parameter Type Description Required inbox id integer The numeric ID of the inbox. The contact is also linked to this inbox (a contact inbox is created) No name string Name of the contact No email string Email of the contact. Must be a valid email No phone number string Phone number of the contact in E.164 format, for example: +972501234567 . Israeli local formats are normalised (see the note below). Unique in the account No avatar url string The URL to a JPEG or PNG file for the contact avatar. The image is downloaded in the background No identifier string A unique identifier for the contact in an external system. Unique in the account No custom attributes object An object where you can store custom attributes for the contact, for example {\"type\": \"customer\", \"age\": 30} No additional attributes object Standard extra fields, for example company name , city , country , description . The blocking keys ( blocked , blocked at , block source , block reason ) are ignored; use Block Contact instead No avatar file Avatar image, instead of avatar url (send the request as multipart/form-data , see Remarks) No source id string With inbox id : the contact's ID on that channel. If omitted it is generated (a UUID for API inboxes, the phone number or email for phone and email channels) No A contact without an email, phone number or identifier can be created, but it does not appear in List Contacts or Search Contacts. Request body example: { \"inbox id\": 0, \"name\": \"string\", \"email\": \"string\", \"phone number\": \"string\", \"avatar url\": \"string\", \"identifier\": \"string\", \"custom attributes\": {} } Response: { \"payload\": { \"contact\": { \"id\": 0, \"name\": \"string\", \"email\": \"string\", \"phone number\": \"string\", \"availability status\": \"offline\", \"identifier\": \"string\", \"thumbnail\": \"string\", \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 0, \"custom attributes\": { \"attribute key\": \"attribute value\" }, \"additional attributes\": {}, \"email or phone optional\": false, \"contact inboxes\": [ { \"source id\": \"string\", \"inbox\": {} } ] }, \"contact inbox\": { \"inbox\": {}, \"source id\": \"string\" } } } Response-Explain: Parameter Description payload Object containing the new contact and its contact inbox payload -> contact Object containing the contact details payload -> contact -> id Contact numeric ID payload -> contact -> name Full name of the contact payload -> contact -> email Email address of the contact (stored in lower case) payload -> contact -> phone number Phone number of the contact, in E.164 format payload -> contact -> availability status Availability status of the contact: whether the contact is connected right now (website widget). Enum: online , offline payload -> contact -> identifier A unique identifier for the contact in an external system payload -> contact -> thumbnail Avatar URL of the contact payload -> contact -> blocked Whether the contact is blocked payload -> contact -> is whatsapp contact true if the contact belongs to a WhatsApp API inbox payload -> contact -> created at Timestamp of contact creation time (Unix time, seconds) payload -> contact -> custom attributes The object to save custom attributes for the contact; accepts custom attribute keys and values payload -> contact -> additional attributes The object containing additional attributes related to the contact payload -> contact -> email or phone optional true when the contact has a WhatsApp ID, so email and phone may both be empty payload -> contact -> contact inboxes Array of objects (contact inboxes) payload -> contact inbox The contact inbox created for inbox id . Both its fields are null when no inbox id was sent payload -> contact inbox -> source id Contact inbox source ID: the contact's ID on the inbox's channel. Use it to add a conversation payload -> contact inbox -> inbox Object containing the inbox details Remarks Phone numbers must be in E.164 format ( + , the country code, then the number). Israeli mobile numbers are normalised for you: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . The message of a 422 response is translated to the account's language (for example Hebrew). Check attributes , not the text. To upload an avatar image instead of sending avatar url , send the request as multipart/form-data , with the fields above as form fields and the image in an avatar field: curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts' \\ -H 'api access token: ' \\ -F 'name=Dana Cohen' \\ -F 'phone number=+972501234567' \\ -F 'avatar=@avatar.png;type=image/png' Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description name string No Name of the contact. Example: Dana Cohen . email string No Email of the contact. Must be a valid email. Example: dana.cohen@example.com . phone number string No Phone number of the contact in E.164 format, for example +972501234567 . Israeli local formats are normalised: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . Unique in the account. Example: +972501234567 . identifier string No A unique identifier for the contact in an external system (your own external ID). Unique in the account. Example: crm-801 . additional attributes object No Standard extra fields, for example company name , city , country and description . The blocking keys ( blocked , blocked at , block source , block reason ) are ignored — use Block Contact instead. custom attributes object No An object where you can store custom attributes for the contact, as key-value pairs — for example {\"type\": \"customer\", \"age\": 30} . Use the keys of the account's contact custom attributes (Settings → Custom attributes); other keys are stored too. avatar url string No The URL to a JPEG or PNG file for the contact avatar. It must be public; the image is downloaded in the background. To upload the image itself, send an avatar file field instead (see Remarks). inbox id integer No The numeric ID of the inbox. The contact is also linked to this inbox (a contact inbox is created), and the response returns its source id . Example: 31 . source id string No With inbox id : the contact's ID on that channel. When omitted it is generated — a UUID for API inboxes, the phone number or email address for phone and email channels. Example: Linked to an inbox A full contact, linked to an API inbox. { \"inbox id\": 31, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"custom attributes\": { \"customer tier\": \"gold\" } } Example: Local phone number An Israeli local phone number and no inbox. The number is saved as +972521234567 . { \"name\": \"Avi Levi\", \"phone number\": \"0521234567\" } Responses 200 — The new contact, and the contact inbox created for inbox id (both fields of contact inbox are null when no inbox id was sent). Content type: application/json Field Type Description payload object Object containing the new contact and its contact inbox. payload.contact object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.contact.id integer The contact's numeric ID. payload.contact.name string The full name of the contact. payload.contact.email string \\ null The email address of the contact, stored in lower case, or null . payload.contact.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload.contact.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload.contact.thumbnail string The avatar URL of the contact, or an empty string. payload.contact.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload.contact.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload.contact.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload.contact.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload.contact.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload.contact.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload.contact.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload.contact.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload.contact.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload.contact.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.contact.contact inboxes[].inbox object Object containing the details of the inbox. payload.contact.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload.contact.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload.contact.contact inboxes[].inbox.account id integer The numeric ID of the account. payload.contact.contact inboxes[].inbox.name string The name of the inbox. payload.contact.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload.contact.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload.contact.contact inboxes[].inbox.timezone string The inbox's time zone. payload.contact.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload.contact.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload.contact.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . payload.contact inbox object The contact inbox created for inbox id . Both its fields are null when no inbox id was sent. payload.contact inbox.inbox object \\ null The inbox's stored record, or null when no inbox id was sent. Its main fields are listed. payload.contact inbox.inbox.id integer The inbox ID. payload.contact inbox.inbox.channel id integer The ID of the inbox's channel. payload.contact inbox.inbox.account id integer The account ID. payload.contact inbox.inbox.name string The inbox name. payload.contact inbox.inbox.channel type string The channel type, for example Channel::Api . payload.contact inbox.inbox.created at string When the inbox was created (ISO 8601). payload.contact inbox.inbox.updated at string The inbox's last update (ISO 8601). payload.contact inbox.source id string \\ null Contact inbox source ID: the contact's ID on the inbox's channel. Use it to add a conversation. null when no inbox id was sent. Example: Linked to an inbox The contact and its new contact inbox. The inbox objects are shortened to their main fields. { \"payload\": { \"contact\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500, \"email or phone optional\": false, \"contact inboxes\": [ { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox\": { \"id\": 31, \"channel id\": 9, \"name\": \"Website API\", \"channel type\": \"Channel::Api\", \"enable auto assignment\": true, \"timezone\": \"UTC\", \"webhook url\": \"\" } } ] }, \"contact inbox\": { \"inbox\": { \"id\": 31, \"channel id\": 9, \"account id\": 12, \"name\": \"Website API\", \"channel type\": \"Channel::Api\", \"created at\": \"2026-11-12T08:00:00.000Z\", \"updated at\": \"2026-11-12T08:00:00.000Z\" }, \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" } } } Example: Local phone number No inbox, so contact inbox is empty. The phone number was normalised to E.164. { \"payload\": { \"contact\": { \"additional attributes\": {}, \"availability status\": \"offline\", \"email\": null, \"id\": 802, \"name\": \"Avi Levi\", \"phone number\": \"+972521234567\", \"identifier\": null, \"thumbnail\": \"\", \"custom attributes\": {}, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470600, \"email or phone optional\": false, \"contact inboxes\": [] }, \"contact inbox\": { \"inbox\": null, \"source id\": null } } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The inbox id does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — Validation failed. message is translated to the account's language, so check attributes (the fields that failed) rather than the text. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example: Phone number taken Another contact in the account has this phone number. { \"message\": \"Phone number has already been taken\", \"attributes\": [ \"phone number\" ] } Example: Invalid email and phone An invalid email and phone number, on an account whose language is Hebrew. { \"message\": \"Email אימייל לא תקין, Phone number צריך להיות בפורמט e164\", \"attributes\": [ \"email\", \"phone number\" ] }"
    },
    {
      "id": "online-api/retrieve-contact",
      "title": "Retrieve Contact",
      "url": "https://docs.99digital.co.il/online-api/contacts/retrieve-contact",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/retrieve-contact.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Retrieve contact details by ID.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/contacts/{contact_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The contact.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "retrieveContact",
        "accounts",
        "contacts",
        "account_id",
        "contact_id",
        "payload",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "custom_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id} Retrieve contact details by ID. The contact comes with its contact inboxes : the inboxes it is linked to, each with the source id that identifies the contact on that channel. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id} Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — legacy roles: any agent. New rules system: Contacts → read . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes contact id The numeric ID of the contact Yes Response: { \"payload\": { \"additional attributes\": {}, \"availability status\": \"offline\", \"email\": \"string\", \"id\": 0, \"name\": \"string\", \"phone number\": \"string\", \"identifier\": \"string\", \"thumbnail\": \"string\", \"custom attributes\": {}, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 0, \"email or phone optional\": false, \"contact inboxes\": [ { \"source id\": \"string\", \"inbox\": { \"id\": 0, \"name\": \"string\", \"website url\": \"string\", \"channel type\": \"string\", \"avatar url\": \"string\", \"widget color\": \"string\", \"website token\": \"string\", \"enable auto assignment\": true, \"web widget script\": \"string\", \"welcome title\": \"string\", \"welcome tagline\": \"string\", \"greeting enabled\": false, \"greeting message\": \"string\" } } ] } } Response-Explain: Parameter Description payload Object containing contact details payload -> additional attributes Object containing additional attributes related to the contact payload -> availability status Availability status of the contact: whether the contact is connected right now (website widget). Enum: online , offline payload -> email Email address of the contact (stored in lower case) payload -> id Contact numeric ID payload -> name Full name of the contact payload -> phone number Phone number of the contact, in E.164 format payload -> identifier A unique identifier for the contact in an external system payload -> thumbnail Avatar URL of the contact payload -> custom attributes Object containing custom attributes related to the contact payload -> blocked Indicates whether the contact is blocked payload -> is whatsapp contact true if the contact belongs to a WhatsApp API inbox payload -> created at The time at which the contact was created (Unix timestamp) payload -> email or phone optional true when the contact has a WhatsApp ID, so email and phone may both be empty payload -> contact inboxes Array of objects (contact inboxes) payload -> contact inboxes -> source id Contact inbox source ID: the contact's ID on the inbox's channel payload -> contact inboxes -> inbox Object containing inbox details payload -> contact inboxes -> inbox -> id The numeric ID of the inbox payload -> contact inboxes -> inbox -> name The name of the inbox payload -> contact inboxes -> inbox -> website url Website URL payload -> contact inboxes -> inbox -> channel type The type of the inbox, for example Channel::Api payload -> contact inboxes -> inbox -> avatar url The avatar image of the inbox payload -> contact inboxes -> inbox -> widget color Widget color used for customization of the widget payload -> contact inboxes -> inbox -> website token Website token payload -> contact inboxes -> inbox -> enable auto assignment Indicates whether auto assignment is enabled or not payload -> contact inboxes -> inbox -> web widget script Script used to load the website widget payload -> contact inboxes -> inbox -> welcome title Welcome title to be displayed on the widget payload -> contact inboxes -> inbox -> welcome tagline Welcome tagline to be displayed on the widget payload -> contact inboxes -> inbox -> greeting enabled Indicates whether greeting is enabled payload -> contact inboxes -> inbox -> greeting message A greeting message when the user starts the conversation Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Responses 200 — The contact. Content type: application/json Field Type Description payload object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.id integer The contact's numeric ID. payload.name string The full name of the contact. payload.email string \\ null The email address of the contact, stored in lower case, or null . payload.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload.thumbnail string The avatar URL of the contact, or an empty string. payload.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.contact inboxes[].inbox object Object containing the details of the inbox. payload.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload.contact inboxes[].inbox.account id integer The numeric ID of the account. payload.contact inboxes[].inbox.name string The name of the inbox. payload.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload.contact inboxes[].inbox.timezone string The inbox's time zone. payload.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example { \"payload\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500, \"email or phone optional\": false, \"contact inboxes\": [ { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox\": { \"id\": 31, \"channel id\": 9, \"name\": \"Website API\", \"channel type\": \"Channel::Api\", \"enable auto assignment\": true, \"timezone\": \"UTC\", \"webhook url\": \"\" } } ] } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/update-contact",
      "title": "Update Contact",
      "url": "https://docs.99digital.co.il/online-api/contacts/update-contact",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/update-contact.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Update a contact belonging to an account by ID.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/contacts/{contact_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The updated contact.",
        "Example: Updated contact",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — Validation failed. message is translated to the account's language, so check attributes (the fields that failed) rather than the text.",
        "Example: Phone number taken",
        "Example: Invalid email and phone"
      ],
      "keywords": [
        "updateContact",
        "accounts",
        "contacts",
        "account_id",
        "contact_id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "additional_attributes",
        "custom_attributes",
        "avatar_url",
        "payload",
        "id",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error",
        "message",
        "attributes"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id} Update a contact belonging to an account by ID. Only the fields you send are changed, and all of them are optional: custom attributes are merged into the existing values. To remove keys, use Delete Contact Custom Attributes. additional attributes replace the existing object, so send the whole object. The blocking keys are always kept. Fires the contact updated webhook event. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id} Method JSON via PATCH ( PUT works the same way) Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — legacy roles: any agent. New rules system: Contacts → update . Agent-bot token: allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes contact id The numeric ID of the contact Yes Request body: Parameter Type Description Required name string Name of the contact No email string Email of the contact. Must be a valid email No phone number string Phone number of the contact in E.164 format, for example: +972501234567 . Israeli local formats are normalised. Unique in the account No avatar url string The URL to a JPEG or PNG file for the contact avatar. The image is downloaded in the background No identifier string A unique identifier for the contact in an external system. Unique in the account No custom attributes object An object where you can store custom attributes for the contact. Merged into the existing values No additional attributes object Standard extra fields, for example company name , city , country , description . Replaces the existing object; the blocking keys are kept and cannot be changed here No avatar file Avatar image, instead of avatar url (send the request as multipart/form-data , see Remarks) No When you edit an existing contact, the phone number needs at least 7 digits after the country code, and the contact must keep an email or a phone number (unless it is a WhatsApp contact). Request body example: { \"phone number\": \"string\" } Response: { \"payload\": { \"id\": 0, \"name\": \"string\", \"email\": \"string\", \"phone number\": \"string\", \"availability status\": \"offline\", \"identifier\": \"string\", \"thumbnail\": \"string\", \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 0, \"custom attributes\": { \"attribute key\": \"attribute value\" }, \"additional attributes\": {}, \"email or phone optional\": false, \"contact inboxes\": [ { \"source id\": \"string\", \"inbox\": {} } ] } } Response-Explain: Parameter Description payload Object containing the response: the updated contact payload -> id Contact numeric ID payload -> name Full name of the contact payload -> email Email address of the contact (stored in lower case) payload -> phone number Phone number of the contact, in E.164 format payload -> availability status Availability status of the contact: whether the contact is connected right now (website widget). Enum: online , offline payload -> identifier A unique identifier for the contact in an external system payload -> thumbnail Avatar URL of the contact payload -> blocked Whether the contact is blocked payload -> is whatsapp contact true if the contact belongs to a WhatsApp API inbox payload -> created at Timestamp of contact creation time (Unix time, seconds) payload -> custom attributes The object to save custom attributes for the contact; accepts custom attribute keys and values payload -> additional attributes The object containing additional attributes related to the contact payload -> email or phone optional true when the contact has a WhatsApp ID, so email and phone may both be empty payload -> contact inboxes Array of objects (contact inboxes) Remarks Phone numbers must be in E.164 format ( + , the country code, then the number). Israeli mobile numbers are normalised for you: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . The message of a 422 response is translated to the account's language (for example Hebrew). Check attributes , not the text. To upload an avatar image instead of sending avatar url , send the request as multipart/form-data , with the fields as form fields and the image in an avatar field: curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801' \\ -H 'api access token: ' \\ -F 'avatar=@avatar.png;type=image/png' Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Request body Content type: application/json (required) Field Type Required Description name string No Name of the contact. email string No Email of the contact. Must be a valid email. phone number string No Phone number of the contact in E.164 format, for example +972501234567 . Israeli local formats are normalised: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . Unique in the account. identifier string No A unique identifier for the contact in an external system (your own external ID). Unique in the account. additional attributes object No Standard extra fields, for example company name , city , country and description . Replaces the existing object; the blocking keys ( blocked , blocked at , block source , block reason ) are kept and cannot be changed here — use Block Contact. custom attributes object No An object where you can store custom attributes for the contact, as key-value pairs. Merged into the existing values; to remove keys, use Delete Contact Custom Attributes. avatar url string No The URL to a JPEG or PNG file for the contact avatar. It must be public; the image is downloaded in the background. To upload the image itself, send an avatar file field instead (see Remarks). Example (generated from the schema) { \"name\": \"Dana Cohen\", \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Haifa\" }, \"custom attributes\": { \"plan\": \"premium\" } } Responses 200 — The updated contact. Content type: application/json Field Type Description payload object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.id integer The contact's numeric ID. payload.name string The full name of the contact. payload.email string \\ null The email address of the contact, stored in lower case, or null . payload.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload.thumbnail string The avatar URL of the contact, or an empty string. payload.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.contact inboxes[].inbox object Object containing the details of the inbox. payload.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload.contact inboxes[].inbox.account id integer The numeric ID of the account. payload.contact inboxes[].inbox.name string The name of the inbox. payload.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload.contact inboxes[].inbox.timezone string The inbox's time zone. payload.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example: Updated contact custom attributes kept customer tier and added plan , while additional attributes is now the object that was sent. The inbox object is shortened. { \"payload\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Haifa\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\", \"plan\": \"premium\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500, \"email or phone optional\": false, \"contact inboxes\": [ { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox\": { \"id\": 31, \"name\": \"Website API\", \"channel type\": \"Channel::Api\" } } ] } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — Validation failed. message is translated to the account's language, so check attributes (the fields that failed) rather than the text. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example: Phone number taken Another contact in the account has this phone number. { \"message\": \"Phone number has already been taken\", \"attributes\": [ \"phone number\" ] } Example: Invalid email and phone An invalid email and phone number, on an account whose language is Hebrew. { \"message\": \"Email אימייל לא תקין, Phone number צריך להיות בפורמט e164\", \"attributes\": [ \"email\", \"phone number\" ] }"
    },
    {
      "id": "online-api/delete-contact",
      "title": "Delete Contact",
      "url": "https://docs.99digital.co.il/online-api/contacts/delete-contact",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/delete-contact.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Delete contact allows you to delete a contact from your account.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/contacts/{contact_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The contact was deleted.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "deleteContact",
        "accounts",
        "contacts",
        "account_id",
        "contact_id",
        "status",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id} Delete contact allows you to delete a contact from your account. The contact is deleted together with its conversations, messages, contact inboxes and notes. The related records are removed in the background. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id} Method JSON via DELETE Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — legacy roles: administrator . New rules system: Contacts → delete . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes contact id The numeric ID of the contact Yes Response: { \"status\": \"ok\" } Deleting a contact also deletes all of its conversations and messages. To combine two records of the same customer instead, use Merge Contacts. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Responses 200 — The contact was deleted. Content type: application/json Field Type Description status string Always ok when the contact was deleted. Example { \"status\": \"ok\" } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/search-contacts",
      "title": "Search Contacts",
      "url": "https://docs.99digital.co.il/online-api/contacts/search-contact",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/search-contact.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Search contacts by name, identifier, email, phone number or company name (page size = 10 by default).",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/contacts/search",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/search"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — A page of matching contacts.",
        "Example: Matching contacts",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "searchContacts",
        "accounts",
        "contacts",
        "search",
        "account_id",
        "q",
        "search_with",
        "page",
        "per_page",
        "sort",
        "labels[]",
        "include_contact_inboxes",
        "meta",
        "count",
        "current_page",
        "payload",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "custom_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/search Search contacts by name, identifier, email, phone number or company name (page size = 10 by default). The search text matches any part of those fields, ignoring case — except the identifier, where case matters. Results accept the same paging, sorting and label options as List Contacts. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/search Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — legacy roles: any agent. New rules system: Contacts → read . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Query Parameters: Parameter Type Description Required q string Search using contact name, identifier, email, phone number or company name. Phone numbers are stored in E.164 format ( +972… ), so search for 972501234567 or 501234567 , not the local 0501234567 No search with string phone number : only contacts that have a phone number. email : only contacts that have an email No sort string The attribute by which the list should be sorted. Prefix it with - for descending order. Enum: name , email , phone number , last activity at , created at , company , city , country , -name , -email , -phone number , -last activity at , -created at , -company , -city , -country No page integer The page parameter. Default: 1 No per page integer The page size. Default: 10 , maximum 100 No labels[] string[] Return only the contacts that have any of these labels No include contact inboxes boolean Include contact inboxes in each contact. Default: true ; send false for much smaller responses No Response-Explain: Parameter Description meta Metadata regarding the search results meta -> count Number of matching contacts, across all pages meta -> current page Current results page. It may come back as a string (for example \"1\" ), so parse it before comparing payload Array of objects (contacts) payload -> id Contact numeric ID payload -> name Full name of the contact payload -> email Email address of the contact (stored in lower case) payload -> phone number Phone number of the contact, in E.164 format payload -> availability status Availability status of the contact: whether the contact is connected right now (website widget). Enum: online , offline payload -> identifier A unique identifier for the contact in an external system payload -> thumbnail Avatar URL of the contact payload -> last activity at Timestamp of the last activity. Present only when set payload -> blocked Whether the contact is blocked payload -> is whatsapp contact true if the contact belongs to a WhatsApp API inbox payload -> created at Timestamp of contact creation time. Measured in seconds since the Unix epoch payload -> custom attributes The object to save custom attributes for the contact; accepts custom attribute keys and values payload -> additional attributes The object containing additional attributes related to the contact payload -> contact inboxes Array of objects (contact inboxes). Left out when you send include contact inboxes=false payload -> contact inboxes -> source id Contact inbox source ID payload -> contact inboxes -> inbox Object containing the inbox details Remarks A contact without an email, phone number or identifier is never returned, although it exists. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . q query string No Search using contact name, identifier, email, phone number or company name. The text matches any part of those fields, ignoring case (for the identifier, case matters). Phone numbers are stored in E.164 format, so search for 972501234567 or 501234567 , not the local 0501234567 . Example: dana . search with query string No Return only the contacts that have a phone number, or an email. One of: phone number — Only contacts that have a phone number; email — Only contacts that have an email. page query integer No The page parameter — the number of the page to return. Default: 1 . per page query integer No The page size — the number of contacts per page, at most 100. Default: 10 . Maximum: 100. sort query string No The attribute by which the list should be sorted. Prefix it with - for descending order (for example -created at ). One of: name — By name, ascending (A to Z); email — By email address, ascending; phone number — By phone number, ascending; last activity at — By last activity, oldest first; created at — By creation time, oldest first; company — By company name ( company name in additional attributes ), ascending; city — By city ( city in additional attributes ), ascending; country — By country ( country in additional attributes ), ascending; -name — By name, descending (Z to A); -email — By email address, descending; -phone number — By phone number, descending; -last activity at — By last activity, newest first; -created at — By creation time, newest first; -company — By company name, descending; -city — By city, descending; -country — By country, descending. labels[] query array of string No Return only the contacts that have any of these label titles. include contact inboxes query boolean No Include contact inboxes in each contact. Send false for much smaller responses. Default: true . Responses 200 — A page of matching contacts. Content type: application/json Field Type Description meta object Metadata regarding the search results — paging information. meta.count integer The total number of matching contacts, across all pages. meta.current page integer \\ string The current page number. It may come back as a string (for example \"1\" ). payload array of object Array of contact objects — the matching contacts on this page. payload[].id integer The contact's numeric ID. payload[].name string The full name of the contact. payload[].email string \\ null The email address of the contact, stored in lower case, or null . payload[].phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload[].identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload[].thumbnail string The avatar URL of the contact, or an empty string. payload[].availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload[].additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload[].custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload[].blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload[].is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload[].created at integer The time at which the contact was created (Unix timestamp, in seconds). payload[].last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload[].email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload[].contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload[].contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].contact inboxes[].inbox object Object containing the details of the inbox. payload[].contact inboxes[].inbox.id integer The numeric ID of the inbox. payload[].contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload[].contact inboxes[].inbox.account id integer The numeric ID of the account. payload[].contact inboxes[].inbox.name string The name of the inbox. payload[].contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload[].contact inboxes[].inbox.timezone string The inbox's time zone. payload[].contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload[].contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload[].conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example: Matching contacts ?q=dana&include contact inboxes=false . { \"meta\": { \"count\": 1, \"current page\": 1 }, \"payload\": [ { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/filter-contacts",
      "title": "Filter Contacts",
      "url": "https://docs.99digital.co.il/online-api/contacts/filter-contacts",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/filter-contacts.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Advanced filtering of contacts with a list of conditions.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/contacts/filter",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/filter"
      },
      "headings": [
        "Example: email contains X or phone equals Y",
        "Example: city equals Tel Aviv and created after a date",
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Email or phone",
        "Example: City and creation date",
        "Responses",
        "200 — A page of the contacts that match the conditions.",
        "Example: Email or phone",
        "Example: City and creation date",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "422 — A queryoperator is not and, or or null.",
        "Example"
      ],
      "keywords": [
        "filterContacts",
        "accounts",
        "contacts",
        "filter",
        "account_id",
        "page",
        "per_page",
        "sort",
        "include_contact_inboxes",
        "include_conversations",
        "payload",
        "attribute_key",
        "filter_operator",
        "values",
        "query_operator",
        "meta",
        "count",
        "current_page",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "custom_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/filter Advanced filtering of contacts with a list of conditions. Each condition is combined with the next one using its query operator ( and / or ). The last condition has query operator: null . Results come 10 per page by default, with the same paging and sorting options as List Contacts. Setting Value Method POST Path /api/v1/accounts/{account id}/contacts/filter Authorization User token. Legacy: any agent. New rules: Contacts → read . Agent-bot tokens: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. Query parameters Name Type Required Description page , per page , sort , include contact inboxes No Same as List Contacts. include conversations boolean No Also return each contact's conversations . Default false . Body parameters (JSON) Name Type Required Description payload array Yes List of conditions. payload[].attribute key string Yes Attribute to filter on (table below), or the key of a contact custom attribute. payload[].filter operator string Yes Operator (table below). payload[].values array Yes Values to compare. Most operators use values[0] . Send [] for is present / is not present . payload[].query operator string Yes and / or to join with the next condition; null on the last one. Any other value returns 422 . Filterable attributes attribute key Operators name equal to , not equal to , contains , does not contain phone number equal to , not equal to , contains , does not contain , is present , is not present (the value may be sent with or without + ) email equal to , not equal to , contains , does not contain , is present , is not present identifier equal to , not equal to country code equal to , not equal to city equal to , not equal to , contains , does not contain browser language equal to , not equal to , contains , does not contain company , company name equal to , not equal to , contains , does not contain , is present , is not present labels equal to (has any of the labels), not equal to (has none of them), is present , is not present created at , last activity at is greater than , is less than (value YYYY-MM-DD ), days before (value = number of days) blocked equal to , not equal to (value true / false ) custom attribute key Key of a contact custom attribute defined in Settings → Custom attributes. Operators depend on the attribute type: text equal to / not equal to / contains / does not contain ; number and date equal to / not equal to / is greater than / is less than ; plus is present / is not present . Text comparisons are case-insensitive. A condition with an unsupported operator (for example contains on labels ) or an unknown attribute key is silently ignored , so the filter returns more results than expected. Stick to the operators in the table. Example: email contains X or phone equals Y curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/filter?page=1&include contact inboxes=false' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"payload\": [ { \"attribute key\": \"email\", \"filter operator\": \"contains\", \"values\": [\"dana.cohen\"], \"query operator\": \"or\" }, { \"attribute key\": \"phone number\", \"filter operator\": \"equal to\", \"values\": [\"972521234567\"], \"query operator\": null } ] }' Response ( 200 OK ). The two contacts are shown by ID and name only; each item is a full contact object. { \"meta\": { \"count\": 2, \"current page\": \"1\" }, \"payload\": [ { \"id\": 801, \"name\": \"Dana Cohen\" }, { \"id\": 802, \"name\": \"Avi Levi\" } ] } Example: city equals Tel Aviv and created after a date curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/filter?include contact inboxes=false' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"payload\": [ { \"attribute key\": \"city\", \"filter operator\": \"equal to\", \"values\": [\"Tel Aviv\"], \"query operator\": \"and\" }, { \"attribute key\": \"created at\", \"filter operator\": \"is greater than\", \"values\": [\"2026-11-11\"], \"query operator\": null } ] }' Response ( 200 OK ): { \"meta\": { \"count\": 1, \"current page\": 1 }, \"payload\": [ { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 } ] } Error responses Status When Body 422 query operator is not and / or / null . {\"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\"} Remarks meta.current page may come back as a string (for example \"1\" ), so parse it before comparing. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . page query integer No The page parameter — the number of the page to return. Default: 1 . per page query integer No The page size — the number of contacts per page, at most 100. Default: 10 . Maximum: 100. sort query string No The attribute by which the list should be sorted. Prefix it with - for descending order (for example -created at ). One of: name — By name, ascending (A to Z); email — By email address, ascending; phone number — By phone number, ascending; last activity at — By last activity, oldest first; created at — By creation time, oldest first; company — By company name ( company name in additional attributes ), ascending; city — By city ( city in additional attributes ), ascending; country — By country ( country in additional attributes ), ascending; -name — By name, descending (Z to A); -email — By email address, descending; -phone number — By phone number, descending; -last activity at — By last activity, newest first; -created at — By creation time, newest first; -company — By company name, descending; -city — By city, descending; -country — By country, descending. include contact inboxes query boolean No Include contact inboxes in each contact. Send false for much smaller responses. Default: true . include conversations query boolean No Also return each contact's conversations , each a full conversation object as returned by Get Conversation. Default: false . Request body Content type: application/json (required) Field Type Required Description payload array of object Yes The conditions, in order. Each one is joined to the next with its query operator . payload[].attribute key string Yes The attribute to filter on (see the table above), or the key of a contact custom attribute. Example: city . payload[].filter operator string Yes The comparison. Which operators an attribute supports is in the table above. Text comparisons ignore case. One of: equal to — The attribute equals the value. For labels : the contact has any of the given labels; not equal to — The attribute does not equal the value. For labels : the contact has none of the given labels; contains — The attribute contains the value as part of it; does not contain — The attribute does not contain the value; is present — The attribute has a value. Send values as [] ; is not present — The attribute is empty. Send values as [] ; is greater than — After the date ( YYYY-MM-DD ), or more than the number (number attributes); is less than — Before the date ( YYYY-MM-DD ), or less than the number (number attributes); days before — For created at and last activity at : the date is more than the given number of days ago. The value is a number of days. payload[].values array of string \\ number \\ boolean Yes The values to compare with. Most operators use the first value only. Send [] for is present and is not present . payload[].query operator string \\ null Yes How this condition is joined to the next one. null on the last condition. Any other value returns 422 . One of: and — Both this condition and the next one must match; or — This condition or the next one must match; null . Example: Email or phone The email contains a text, or the phone number equals a number. { \"payload\": [ { \"attribute key\": \"email\", \"filter operator\": \"contains\", \"values\": [ \"dana.cohen\" ], \"query operator\": \"or\" }, { \"attribute key\": \"phone number\", \"filter operator\": \"equal to\", \"values\": [ \"972521234567\" ], \"query operator\": null } ] } Example: City and creation date The city equals a value, and the contact was created after a date. { \"payload\": [ { \"attribute key\": \"city\", \"filter operator\": \"equal to\", \"values\": [ \"Tel Aviv\" ], \"query operator\": \"and\" }, { \"attribute key\": \"created at\", \"filter operator\": \"is greater than\", \"values\": [ \"2026-11-11\" ], \"query operator\": null } ] } Responses 200 — A page of the contacts that match the conditions. Content type: application/json Field Type Description meta object Paging information for the result. meta.count integer The total number of matching contacts, across all pages. meta.current page integer \\ string The current page number. It may come back as a string (for example \"1\" ). payload array of object The matching contacts on this page. With include conversations=true , each contact also has a conversations array. payload[].id integer The contact's numeric ID. payload[].name string The full name of the contact. payload[].email string \\ null The email address of the contact, stored in lower case, or null . payload[].phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload[].identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload[].thumbnail string The avatar URL of the contact, or an empty string. payload[].availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload[].additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload[].custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload[].blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload[].is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload[].created at integer The time at which the contact was created (Unix timestamp, in seconds). payload[].last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload[].email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload[].contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload[].contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].contact inboxes[].inbox object Object containing the details of the inbox. payload[].contact inboxes[].inbox.id integer The numeric ID of the inbox. payload[].contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload[].contact inboxes[].inbox.account id integer The numeric ID of the account. payload[].contact inboxes[].inbox.name string The name of the inbox. payload[].contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload[].contact inboxes[].inbox.timezone string The inbox's time zone. payload[].contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload[].contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload[].conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example: Email or phone The \"Email or phone\" request, with ?page=1&include contact inboxes=false . The contacts are shown by ID and name only; each is a full contact object. { \"meta\": { \"count\": 2, \"current page\": \"1\" }, \"payload\": [ { \"id\": 801, \"name\": \"Dana Cohen\" }, { \"id\": 802, \"name\": \"Avi Levi\" } ] } Example: City and creation date The \"City and creation date\" request, with ?include contact inboxes=false . { \"meta\": { \"count\": 1, \"current page\": 1 }, \"payload\": [ { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 422 — A query operator is not and , or or null . Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\" }"
    },
    {
      "id": "online-api/list-online-contacts",
      "title": "List Online Contacts",
      "url": "https://docs.99digital.co.il/online-api/contacts/list-online-contacts",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/list-online-contacts.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Returns contacts that are online right now (connected through the website widget).",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/contacts/active",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/active"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — A page of online contacts.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "listOnlineContacts",
        "accounts",
        "contacts",
        "active",
        "account_id",
        "page",
        "meta",
        "count",
        "current_page",
        "payload",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "custom_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/active Returns contacts that are online right now (connected through the website widget). Setting Value Method GET Path /api/v1/accounts/{account id}/contacts/active Authorization User token. Any agent. Agent-bot tokens: not allowed. Query parameters Name Type Required Description page integer No Page number. Default 1 . Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/contacts/active' \\ -H 'api access token: ' Example response ( 200 OK ). Truncated to one item. { \"meta\": { \"count\": 6, \"current page\": 1 }, \"payload\": [ { \"additional attributes\": {}, \"availability status\": \"online\", \"email\": null, \"id\": 803, \"name\": \"Noa Mizrahi\", \"phone number\": \"+972531234567\", \"identifier\": null, \"thumbnail\": \"\", \"custom attributes\": {}, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794471000 } ] } meta.count is the total number of online contacts across all pages. meta.current page may come back as a string (for example \"1\" ), so parse it before comparing. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . page query integer No The page parameter — the number of the page to return. Default: 1 . Responses 200 — A page of online contacts. Content type: application/json Field Type Description meta object Paging information for the result. meta.count integer The total number of online contacts, across all pages. meta.current page integer \\ string The current page number. It may come back as a string (for example \"1\" ). payload array of object The online contacts on this page. payload[].id integer The contact's numeric ID. payload[].name string The full name of the contact. payload[].email string \\ null The email address of the contact, stored in lower case, or null . payload[].phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload[].identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload[].thumbnail string The avatar URL of the contact, or an empty string. payload[].availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload[].additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload[].custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload[].blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload[].is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload[].created at integer The time at which the contact was created (Unix timestamp, in seconds). payload[].last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload[].email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload[].contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload[].contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].contact inboxes[].inbox object Object containing the details of the inbox. payload[].contact inboxes[].inbox.id integer The numeric ID of the inbox. payload[].contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload[].contact inboxes[].inbox.account id integer The numeric ID of the account. payload[].contact inboxes[].inbox.name string The name of the inbox. payload[].contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload[].contact inboxes[].inbox.timezone string The inbox's time zone. payload[].contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload[].contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload[].conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example { \"meta\": { \"count\": 1, \"current page\": 1 }, \"payload\": [ { \"additional attributes\": {}, \"availability status\": \"online\", \"email\": null, \"id\": 803, \"name\": \"Noa Mizrahi\", \"phone number\": \"+972531234567\", \"identifier\": null, \"thumbnail\": \"\", \"custom attributes\": {}, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794471000 } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/get-contact-conversations",
      "title": "Get Contact Conversations",
      "url": "https://docs.99digital.co.il/online-api/contacts/get-contact-conversations",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/get-contact-conversations.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Get conversations associated to that contact.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/contacts/{contact_id}/conversations",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/conversations"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The contact's conversations, newest first.",
        "Example: Conversations",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "getContactConversations",
        "accounts",
        "contacts",
        "conversations",
        "account_id",
        "contact_id",
        "payload",
        "id",
        "uuid",
        "inbox_id",
        "status",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "meta",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "conversation_id",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/conversations Get conversations associated to that contact. Returns up to the 20 most recent conversations of the contact that the caller is allowed to see, newest first. Each item is a full conversation object, as returned by Get Conversation. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/conversations Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — only the conversations the caller may see are returned: New rules system: conversations in the inboxes where the caller's role has Inbox read all conversations , plus the conversations assigned to the caller. Legacy roles: conversations in the caller's inboxes. Agents without \"see all conversations\" get only the conversations assigned to them. Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes contact id The numeric ID of the contact Yes Response: { \"payload\": [ { \"meta\": {}, \"id\": 0, \"messages\": [], \"account id\": 0, \"additional attributes\": {}, \"agent last seen at\": 0, \"assignee last seen at\": 0, \"can reply\": false, \"contact last seen at\": 0, \"custom attributes\": {}, \"inbox id\": 0, \"labels\": [\"string\"], \"muted\": false, \"snoozed until\": null, \"status\": \"resolved\", \"created at\": 0, \"timestamp\": 0, \"first reply created at\": 0, \"unread count\": 0, \"last non activity message\": {} } ] } Response-Explain: Parameter Description payload Array of objects (conversation), up to 20, newest first payload -> meta Metadata about the conversation: the contact ( sender ), the assignee , the team and the channel payload -> id Conversation display ID: the number in the dashboard URL, used in every conversation path payload -> account id Account numeric ID payload -> inbox id Inbox numeric ID payload -> status The status of the conversation. Enum: open , resolved , pending , snoozed . The dashboard calls open Bot and pending Manual payload -> created at Time at which the conversation was created. Measured in seconds since the Unix epoch payload -> unread count The number of unread incoming messages payload -> messages Array of objects (message). Holds the conversation's last message only; use List of Messages for the history payload -> agent last seen at The last time at which an agent read the conversation. Measured in seconds since the Unix epoch; 0 if never payload -> assignee last seen at The last time at which the assignee (user) read the conversation. Measured in seconds since the Unix epoch; 0 if never payload -> labels Array of strings (label titles) payload -> additional attributes The object containing additional attributes related to the conversation payload -> custom attributes The object containing custom attributes for the conversation (custom attribute keys and values) payload -> first reply created at The time at which the first reply was sent. Measured in seconds since the Unix epoch; 0 if there is none yet payload -> last non activity message Object containing the last non-activity message (incoming, outgoing, template) payload -> can reply Whether the conversation is currently within the messaging window (for example WhatsApp's 24-hour window) payload -> contact last seen at The last time the contact read the conversation. Measured in seconds since the Unix epoch; 0 if never payload -> snoozed until The time at which a previously snoozed conversation is reactivated. Measured in milliseconds since the Unix epoch; null when the conversation is not snoozed payload -> muted Whether the conversation is muted. A muted conversation does not notify agents payload -> timestamp The same as last activity at : the conversation's last activity (Unix time, seconds) Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Responses 200 — The contact's conversations, newest first. Content type: application/json Field Type Description payload array of object Array of conversation objects — up to the 20 most recent conversations the caller may see, newest first. payload[].id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. payload[].uuid string A globally unique ID of the conversation. payload[].account id integer The numeric ID of the account. payload[].inbox id integer The numeric ID of the inbox. payload[].status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. payload[].priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. payload[].labels array of string Array of strings — the titles of the conversation's labels. payload[].custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). payload[].additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . payload[].meta object Object containing the conversation's metadata — its people and channel. payload[].meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].meta.sender.id integer The contact's numeric ID. payload[].meta.sender.name string The full name of the contact. payload[].meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . payload[].meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload[].meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload[].meta.sender.thumbnail string The avatar URL of the contact, or an empty string. payload[].meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload[].meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload[].meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload[].meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload[].meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload[].meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload[].meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload[].meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload[].meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload[].meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. payload[].meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload[].meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload[].meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. payload[].meta.sender.contact inboxes[].inbox.name string The name of the inbox. payload[].meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload[].meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. payload[].meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload[].meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload[].meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . payload[].meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. payload[].meta.assignee.id integer The agent's numeric ID (user ID). payload[].meta.assignee.account id integer The numeric ID of the account. payload[].meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. payload[].meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). payload[].meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). payload[].meta.assignee.email string The agent's login email address. payload[].meta.assignee.available name string The agent's display name. payload[].meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. payload[].meta.assignee.name string The agent's full name. payload[].meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). payload[].meta.assignee.operation bot boolean true for internal operation-bot users. payload[].meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). payload[].meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . payload[].meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. payload[].meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. payload[].meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. payload[].meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. payload[].meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. payload[].meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. payload[].meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). payload[].meta.team object Object containing the assigned team's data, if a team is assigned. payload[].meta.team.id integer The numeric ID of the team. payload[].meta.team.name string The name of the team. Stored in lower case, and unique in the account. payload[].meta.team.description string The description of the team. payload[].meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. payload[].meta.team.account id integer The numeric ID of the account. payload[].meta.team.members count integer The number of agents in the team. payload[].meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. payload[].meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). payload[].contact inbox object The contact's link (contact inbox) to the conversation's inbox. payload[].contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . payload[].messages array of object Array of message objects — the last message only. Use List of Messages for the history. payload[].messages[].id integer The numeric ID of the message. payload[].messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". payload[].messages[].inbox id integer The numeric ID of the inbox. payload[].messages[].conversation id integer The numeric ID of the conversation (its display ID). payload[].messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. payload[].messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. payload[].messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. payload[].messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. payload[].messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. payload[].messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . payload[].messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . payload[].messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. payload[].messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. payload[].messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].messages[].sender.name string The sender's name. payload[].messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].messages[].sender.available name string An agent's display name. payload[].messages[].sender.email string \\ null The sender's email address. payload[].messages[].sender.phone number string \\ null The sender's phone number (a contact's). payload[].messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].messages[].sender.avatar url string An agent's avatar image URL. payload[].messages[].sender.logo user url string \\ null An agent's logo URL, or null . payload[].messages[].sender.thumbnail string The sender's avatar URL, or an empty string. payload[].messages[].sender.availability status string An agent's live presence ( online , busy or offline ). payload[].messages[].sender.blocked boolean Whether a contact is blocked. payload[].messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). payload[].messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . payload[].messages[].sender id integer \\ null In a conversation's messages , the sender's ID. payload[].messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. payload[].messages[].attachments[].id integer The numeric ID of the file (attachment). payload[].messages[].attachments[].message id integer The numeric ID of the message the file belongs to. payload[].messages[].attachments[].account id integer The numeric ID of the account. payload[].messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. payload[].messages[].attachments[].filename string The name of the file. payload[].messages[].attachments[].extension string \\ null The file extension, when known. payload[].messages[].attachments[].data url string The URL of the file. payload[].messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). payload[].messages[].attachments[].file size integer The file size, in bytes. payload[].messages[].ticket id integer The ticket the message belongs to. payload[].messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . payload[].messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. payload[].messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. payload[].last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). payload[].last non activity message.id integer The numeric ID of the message. payload[].last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". payload[].last non activity message.inbox id integer The numeric ID of the inbox. payload[].last non activity message.conversation id integer The numeric ID of the conversation (its display ID). payload[].last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. payload[].last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. payload[].last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. payload[].last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. payload[].last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. payload[].last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . payload[].last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . payload[].last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. payload[].last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. payload[].last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].last non activity message.sender.name string The sender's name. payload[].last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].last non activity message.sender.available name string An agent's display name. payload[].last non activity message.sender.email string \\ null The sender's email address. payload[].last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). payload[].last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].last non activity message.sender.avatar url string An agent's avatar image URL. payload[].last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . payload[].last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. payload[].last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). payload[].last non activity message.sender.blocked boolean Whether a contact is blocked. payload[].last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). payload[].last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . payload[].last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. payload[].last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. payload[].last non activity message.attachments[].id integer The numeric ID of the file (attachment). payload[].last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. payload[].last non activity message.attachments[].account id integer The numeric ID of the account. payload[].last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. payload[].last non activity message.attachments[].filename string The name of the file. payload[].last non activity message.attachments[].extension string \\ null The file extension, when known. payload[].last non activity message.attachments[].data url string The URL of the file. payload[].last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). payload[].last non activity message.attachments[].file size integer The file size, in bytes. payload[].last non activity message.ticket id integer The ticket the message belongs to. payload[].last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . payload[].last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. payload[].last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. payload[].can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). payload[].muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. payload[].snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . payload[].unread count integer The number of unread messages — incoming messages the agents have not read. payload[].has incoming messages boolean Whether the contact has written at least one public message. payload[].created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. payload[].timestamp integer The same as last activity at . payload[].last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). payload[].first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. payload[].waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . payload[].agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . payload[].sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. payload[].applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. payload[].sla events array of object The SLA events of the conversation (missed thresholds). payload[].sla events with distinct event type array of object The SLA events, one per event type. payload[].feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). payload[].campaign id integer \\ null The ID of the campaign that started the conversation, or null . payload[].pinned boolean Whether the caller pinned this conversation. payload[].file object {url, file type} when a file is attached to the conversation itself (rare). Example: Conversations One conversation. The message objects are shortened. { \"payload\": [ { \"meta\": { \"sender\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 }, \"channel\": \"Channel::Api\", \"hmac verified\": false }, \"contact inbox\": { \"wa id\": null }, \"id\": 1501, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"message type\": 0, \"private\": false, \"status\": \"sent\", \"content type\": \"text\", \"created at\": 1794471600 } ], \"account id\": 12, \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\", \"additional attributes\": {}, \"agent last seen at\": 0, \"assignee last seen at\": 0, \"can reply\": true, \"last incoming message time\": \"2026-11-12T08:20:00.000Z\", \"contact last seen at\": 0, \"custom attributes\": {}, \"inbox id\": 31, \"labels\": [], \"muted\": false, \"snoozed until\": null, \"status\": \"open\", \"created at\": 1794471500, \"timestamp\": 1794471600, \"first reply created at\": 0, \"unread count\": 1, \"has incoming messages\": true, \"last non activity message\": { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"message type\": 0 }, \"last activity at\": 1794471600, \"priority\": null, \"waiting since\": 1794471600, \"sla policy id\": null, \"feature enabled sla\": true, \"applied sla\": null, \"sla events\": [], \"sla events with distinct event type\": [], \"campaign id\": null, \"pinned\": false } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-contactable-inboxes",
      "title": "List Contactable Inboxes",
      "url": "https://docs.99digital.co.il/online-api/contacts/list-contactable-inboxes",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/list-contactable-inboxes.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Returns the inboxes the caller can use to start a new conversation with this contact, each with the source ID to use.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/contacts/{contact_id}/contactable_inboxes",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/contactable_inboxes"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The inboxes, each with the contact's sourceid in it.",
        "Example: Contactable inboxes",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listContactableInboxes",
        "accounts",
        "contacts",
        "contactable_inboxes",
        "account_id",
        "contact_id",
        "payload",
        "source_id",
        "inbox",
        "id",
        "channel_id",
        "name",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/contactable inboxes Returns the inboxes the caller can use to start a new conversation with this contact, each with the source ID to use. For phone and email channels the source id is the contact's phone or email. For API inboxes a new ID is suggested (it is not saved until you create the conversation or contact inbox). Setting Value Method GET Path /api/v1/accounts/{account id}/contacts/{contact id}/contactable inboxes Authorization User token. Only inboxes where the caller may send messages are returned. Agent-bot tokens: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. contact id integer Yes Contact ID. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/contactable inboxes' \\ -H 'api access token: ' Example response ( 200 OK ). Truncated: 2 of the inboxes are shown, and the inbox objects are trimmed. { \"payload\": [ { \"inbox\": { \"id\": 33, \"name\": \"Support Email\", \"channel type\": \"Channel::Email\" }, \"source id\": \"dana.cohen@example.com\" }, { \"inbox\": { \"id\": 31, \"name\": \"Website API\", \"channel type\": \"Channel::Api\" }, \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" } ] } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Responses 200 — The inboxes, each with the contact's source id in it. Content type: application/json Field Type Description payload array of object The inboxes where the caller can start a conversation with the contact, each with the source id to use for the contact. payload[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].inbox object Object containing the details of the inbox. payload[].inbox.id integer The numeric ID of the inbox. payload[].inbox.channel id integer The numeric ID of the inbox's channel. payload[].inbox.account id integer The numeric ID of the account. payload[].inbox.name string The name of the inbox. payload[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload[].inbox.timezone string The inbox's time zone. payload[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . Example: Contactable inboxes Shortened to two inboxes, with their inbox objects trimmed. { \"payload\": [ { \"inbox\": { \"id\": 33, \"name\": \"Support Email\", \"channel type\": \"Channel::Email\" }, \"source id\": \"dana.cohen@example.com\" }, { \"inbox\": { \"id\": 31, \"name\": \"Website API\", \"channel type\": \"Channel::Api\" }, \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/create-contact-inbox",
      "title": "Create Contact Inbox",
      "url": "https://docs.99digital.co.il/online-api/contacts/create-contact-inbox",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/create-contact-inbox.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Links an existing contact to an inbox.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/contacts/{contact_id}/contact_inboxes",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/contact_inboxes"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Generated source ID",
        "Example: Your own source ID",
        "Responses",
        "200 — The contact inbox.",
        "Example: Contact inbox",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The contact or the inbox does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "createContactInbox",
        "accounts",
        "contacts",
        "contact_inboxes",
        "account_id",
        "contact_id",
        "inbox_id",
        "source_id",
        "hmac_verified",
        "inbox",
        "id",
        "channel_id",
        "name",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/contact inboxes Links an existing contact to an inbox. This creates the contact inbox (and its source id ) needed to open a conversation in that inbox. If the link already exists, it is returned unchanged. Setting Value Method POST Path /api/v1/accounts/{account id}/contacts/{contact id}/contact inboxes Authorization User token. The caller must be allowed to view the inbox. Agent-bot tokens: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. contact id integer Yes Contact ID. Body parameters (JSON) Name Type Required Description inbox id integer Yes Inbox ID. source id string No The contact's ID on that channel. Generated if omitted. For phone channels it defaults to the contact's phone; for email inboxes to the contact's email. hmac verified boolean No Mark the contact inbox as HMAC-verified (website widget identity validation). Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/contact inboxes' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"inbox id\": 31, \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" }' Example response ( 200 OK ). The inbox object is truncated. { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox\": { \"id\": 31, \"channel id\": 9, \"name\": \"Website API\", \"channel type\": \"Channel::Api\", \"enable auto assignment\": true, \"webhook url\": \"\" } } Error responses : 404 {\"error\": \"Resource could not be found\"} when the contact or inbox does not exist. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Request body Content type: application/json (required) Field Type Required Description inbox id integer Yes The inbox to link the contact to. Example: 31 . source id string No The contact's ID on that channel. Generated when omitted: for phone channels it is the contact's phone number, for email inboxes the contact's email address. Example: 5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b . hmac verified boolean No Mark the contact inbox as HMAC-verified (identity validation of the website widget). Example: Generated source ID Link the contact to an inbox, with a generated source id . { \"inbox id\": 31 } Example: Your own source ID Link the contact to an inbox with a source id you choose. { \"inbox id\": 31, \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" } Responses 200 — The contact inbox. Content type: application/json Field Type Description source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). inbox object Object containing the details of the inbox. inbox.id integer The numeric ID of the inbox. inbox.channel id integer The numeric ID of the inbox's channel. inbox.account id integer The numeric ID of the account. inbox.name string The name of the inbox. inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. inbox.timezone string The inbox's time zone. inbox.webhook url string For API inboxes, the inbox's own webhook URL. inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . Example: Contact inbox The inbox object is shortened. { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox\": { \"id\": 31, \"channel id\": 9, \"name\": \"Website API\", \"channel type\": \"Channel::Api\", \"enable auto assignment\": true, \"webhook url\": \"\" } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The contact or the inbox does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-contact-labels",
      "title": "List Contact Labels",
      "url": "https://docs.99digital.co.il/online-api/contacts/list-contact-labels",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/list-contact-labels.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "List the labels of a contact.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/contacts/{contact_id}/labels",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/labels"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The contact's label titles.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listContactLabels",
        "accounts",
        "contacts",
        "labels",
        "account_id",
        "contact_id",
        "payload",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/labels List the labels of a contact. The labels are returned as their titles. To change them, use Set Contact Labels. Setting Value Method GET Path /api/v1/accounts/{account id}/contacts/{contact id}/labels Authorization User token. Any agent. Agent-bot tokens: not allowed. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/labels' \\ -H 'api access token: ' Example response ( 200 OK ) { \"payload\": [\"vip\", \"billing\"] } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Responses 200 — The contact's label titles. Content type: application/json Field Type Description payload array of string The titles of the contact's labels. Example { \"payload\": [ \"vip\", \"billing\" ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/set-contact-labels",
      "title": "Set Contact Labels",
      "url": "https://docs.99digital.co.il/online-api/contacts/set-contact-labels",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/set-contact-labels.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Replaces the contact's labels with the given list.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/contacts/{contact_id}/labels",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/labels"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Set labels",
        "Example: Remove all labels",
        "Responses",
        "200 — The contact's labels after the change.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "setContactLabels",
        "accounts",
        "contacts",
        "labels",
        "account_id",
        "contact_id",
        "payload",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/labels Replaces the contact's labels with the given list. Send [] to remove all labels. Label titles are not checked against the account's labels, so any string is accepted. Use existing label titles so the labels show up with their colours in the dashboard. Setting Value Method POST Path /api/v1/accounts/{account id}/contacts/{contact id}/labels Authorization User token. Any agent. Agent-bot tokens: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. contact id integer Yes Contact ID. Body parameters (JSON) Name Type Required Description labels string[] Yes The full list of label titles. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/labels' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"labels\": [\"vip\", \"billing\"] }' Example response ( 200 OK ) { \"payload\": [\"vip\", \"billing\"] } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Request body Content type: application/json (required) Field Type Required Description labels array of string Yes The full list of label titles. [] removes all labels. Example: Set labels The contact gets exactly these two labels. { \"labels\": [ \"vip\", \"billing\" ] } Example: Remove all labels An empty list removes every label from the contact. { \"labels\": [] } Responses 200 — The contact's labels after the change. Content type: application/json Field Type Description payload array of string The titles of the contact's labels. Example { \"payload\": [ \"vip\", \"billing\" ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/block-contact",
      "title": "Block Contact",
      "url": "https://docs.99digital.co.il/online-api/contacts/block-contact",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/block-contact.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Blocks the contact for a number of days.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/contacts/{contact_id}/block",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/block"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The blocked contact.",
        "Example: Blocked contact",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "blockContact",
        "accounts",
        "contacts",
        "block",
        "account_id",
        "contact_id",
        "period",
        "conversation_id",
        "payload",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "custom_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/block Blocks the contact for a number of days. While a contact is blocked, their incoming messages are not delivered to agents, and the contact is removed from all contact lists. If you pass conversation id , an activity message about the block is added to that conversation. The block is recorded with block source: \"api\" when it is made with an access token. To lift the block early, use Unblock Contact. Setting Value Method POST Path /api/v1/accounts/{account id}/contacts/{contact id}/block Authorization User token. Legacy: administrator . New rules: Contacts → update only (the legacy administrator role does not pass). When conversation id is sent, the caller must also be able to see that conversation. Agent-bot tokens: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. contact id integer Yes Contact ID. Body parameters (JSON) Name Type Required Description period integer No Block duration in days. Default 1 , maximum 36500 . conversation id integer No Display ID of one of the contact's conversations, where the \"blocked\" activity message is posted. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/block' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"period\": 7, \"conversation id\": 1501 }' Example response ( 200 OK ). The contact inboxes list is truncated. { \"payload\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\", \"blocked\": \"2026-11-19 08:00:00 UTC\", \"blocked at\": \"2026-11-12T08:00:00Z\", \"block source\": \"api\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": true, \"is whatsapp contact\": false, \"created at\": 1794470500, \"email or phone optional\": false, \"contact inboxes\": [] } } additional attributes.blocked is the time the block ends, blocked at the time it started, and block source is api when the block is made with an access token. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Request body Content type: application/json Field Type Required Description period integer No How long the block lasts, in days. Default: 1 . Maximum: 36500. Example: 7 . conversation id integer No The display ID of one of the contact's conversations, where the \"blocked\" activity message is posted. Example: 1501 . Example (generated from the schema) { \"period\": 7, \"conversation id\": 1501 } Responses 200 — The blocked contact. Content type: application/json Field Type Description payload object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.id integer The contact's numeric ID. payload.name string The full name of the contact. payload.email string \\ null The email address of the contact, stored in lower case, or null . payload.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload.thumbnail string The avatar URL of the contact, or an empty string. payload.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.contact inboxes[].inbox object Object containing the details of the inbox. payload.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload.contact inboxes[].inbox.account id integer The numeric ID of the account. payload.contact inboxes[].inbox.name string The name of the inbox. payload.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload.contact inboxes[].inbox.timezone string The inbox's time zone. payload.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example: Blocked contact Blocked for 7 days. The inbox object is shortened. { \"payload\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\", \"blocked\": \"2026-11-19 08:00:00 UTC\", \"blocked at\": \"2026-11-12T08:00:00Z\", \"block source\": \"api\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": true, \"is whatsapp contact\": false, \"created at\": 1794470500, \"email or phone optional\": false, \"contact inboxes\": [ { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox\": { \"id\": 31, \"name\": \"Website API\", \"channel type\": \"Channel::Api\" } } ] } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/unblock-contact",
      "title": "Unblock Contact",
      "url": "https://docs.99digital.co.il/online-api/contacts/unblock-contact",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/unblock-contact.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Lift the block of a contact before it ends.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/contacts/{contact_id}/unblock",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/unblock"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The unblocked contact.",
        "Example: Unblocked contact",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "unblockContact",
        "accounts",
        "contacts",
        "unblock",
        "account_id",
        "contact_id",
        "conversation_id",
        "payload",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "custom_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/unblock Lift the block of a contact before it ends. See Block Contact. Setting Value Method POST Path /api/v1/accounts/{account id}/contacts/{contact id}/unblock Authorization Same as Block Contact: user token. Legacy: administrator . New rules: Contacts → update only (the legacy administrator role does not pass). When conversation id is sent, the caller must also be able to see that conversation. Agent-bot tokens: not allowed. Body parameters (JSON) Name Type Required Description conversation id integer No Display ID of one of the contact's conversations, where the \"unblocked\" activity message is posted. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/unblock' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"conversation id\": 1501 }' Example response ( 200 OK ): the contact (same shape as Block Contact) with \"blocked\": false and the block keys removed from additional attributes . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Request body Content type: application/json Field Type Required Description conversation id integer No The display ID of one of the contact's conversations, where the \"unblocked\" activity message is posted. Example: 1501 . Example (generated from the schema) { \"conversation id\": 1501 } Responses 200 — The unblocked contact. Content type: application/json Field Type Description payload object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.id integer The contact's numeric ID. payload.name string The full name of the contact. payload.email string \\ null The email address of the contact, stored in lower case, or null . payload.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload.thumbnail string The avatar URL of the contact, or an empty string. payload.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.contact inboxes[].inbox object Object containing the details of the inbox. payload.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload.contact inboxes[].inbox.account id integer The numeric ID of the account. payload.contact inboxes[].inbox.name string The name of the inbox. payload.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload.contact inboxes[].inbox.timezone string The inbox's time zone. payload.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example: Unblocked contact The block keys are gone from additional attributes . The inbox object is shortened. { \"payload\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500, \"email or phone optional\": false, \"contact inboxes\": [ { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox\": { \"id\": 31, \"name\": \"Website API\", \"channel type\": \"Channel::Api\" } } ] } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/delete-contact-custom-attributes",
      "title": "Delete Contact Custom Attributes",
      "url": "https://docs.99digital.co.il/online-api/contacts/delete-contact-custom-attributes",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/delete-contact-custom-attributes.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Removes the given keys from the contact's custom attributes.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/contacts/{contact_id}/destroy_custom_attributes",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/destroy_custom_attributes"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The contact, without the removed keys.",
        "Example: Updated contact",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "deleteContactCustomAttributes",
        "accounts",
        "contacts",
        "destroy_custom_attributes",
        "account_id",
        "contact_id",
        "custom_attributes",
        "payload",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/destroy custom attributes Removes the given keys from the contact's custom attributes. The other custom attributes are kept. To add or change values, use Update Contact, which merges custom attributes . Setting Value Method POST Path /api/v1/accounts/{account id}/contacts/{contact id}/destroy custom attributes Authorization User token. Same as Update Contact: legacy roles: any agent; new rules: Contacts → update . Agent-bot tokens: not allowed. Body parameters (JSON) Name Type Required Description custom attributes string[] Yes Keys to remove. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/destroy custom attributes' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"custom attributes\": [\"plan\"] }' Example response ( 200 OK ). The contact inboxes list is truncated. { \"payload\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500, \"email or phone optional\": false, \"contact inboxes\": [] } } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Request body Content type: application/json (required) Field Type Required Description custom attributes array of string Yes The keys to remove. Example (generated from the schema) { \"custom attributes\": [ \"plan\" ] } Responses 200 — The contact, without the removed keys. Content type: application/json Field Type Description payload object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.id integer The contact's numeric ID. payload.name string The full name of the contact. payload.email string \\ null The email address of the contact, stored in lower case, or null . payload.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload.thumbnail string The avatar URL of the contact, or an empty string. payload.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.contact inboxes[].inbox object Object containing the details of the inbox. payload.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload.contact inboxes[].inbox.account id integer The numeric ID of the account. payload.contact inboxes[].inbox.name string The name of the inbox. payload.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload.contact inboxes[].inbox.timezone string The inbox's time zone. payload.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example: Updated contact plan was removed and customer tier kept. The inbox object is shortened. { \"payload\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500, \"email or phone optional\": false, \"contact inboxes\": [ { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox\": { \"id\": 31, \"name\": \"Website API\", \"channel type\": \"Channel::Api\" } } ] } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/delete-contact-avatar",
      "title": "Delete Contact Avatar",
      "url": "https://docs.99digital.co.il/online-api/contacts/delete-contact-avatar",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/delete-contact-avatar.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Remove a contact's avatar image.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/contacts/{contact_id}/avatar",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/avatar"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The contact, without its avatar.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "deleteContactAvatar",
        "accounts",
        "contacts",
        "avatar",
        "account_id",
        "contact_id",
        "payload",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "custom_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/avatar Remove a contact's avatar image. To set a new avatar, use Update Contact. Setting Value Method DELETE Path /api/v1/accounts/{account id}/contacts/{contact id}/avatar Authorization User token. Same as Retrieve Contact: legacy roles: any agent; new rules: Contacts → read . Agent-bot tokens: not allowed. Example request curl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/avatar' \\ -H 'api access token: ' Example response ( 200 OK ): {\"payload\": { ...contact object without contact inboxes... }} with \"thumbnail\": \"\" . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Responses 200 — The contact, without its avatar. Content type: application/json Field Type Description payload object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.id integer The contact's numeric ID. payload.name string The full name of the contact. payload.email string \\ null The email address of the contact, stored in lower case, or null . payload.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload.thumbnail string The avatar URL of the contact, or an empty string. payload.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload.contact inboxes[].inbox object Object containing the details of the inbox. payload.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload.contact inboxes[].inbox.account id integer The numeric ID of the account. payload.contact inboxes[].inbox.name string The name of the inbox. payload.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload.contact inboxes[].inbox.timezone string The inbox's time zone. payload.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example { \"payload\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/merge-contacts",
      "title": "Merge Contacts",
      "url": "https://docs.99digital.co.il/online-api/contacts/merge-contacts",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/merge-contacts.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts"
      ],
      "language": "en",
      "description": "Merges the mergee contact into the base contact, then deletes the mergee.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/actions/contact_merge",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/actions/contact_merge"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The base contact after the merge.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "mergeContacts",
        "accounts",
        "actions",
        "contact_merge",
        "account_id",
        "base_contact_id",
        "mergee_contact_id",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "additional_attributes",
        "custom_attributes",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/actions/contact merge Merges the mergee contact into the base contact, then deletes the mergee. The base contact takes over all conversations, messages, contact inboxes, list memberships, form submissions, notes, tickets, CSAT responses, files and labels. For attributes, the base contact's non-empty values win, and empty ones are filled from the mergee. An active block on the mergee is carried over if it is longer than the base contact's. Setting Value Method POST Path /api/v1/accounts/{account id}/actions/contact merge Authorization User token. Requires delete permission on the mergee and update permission on the base contact (legacy: administrator ; new rules: Contacts → delete and Contacts → update ). Agent-bot tokens: not allowed. Body parameters (JSON) Name Type Required Description base contact id integer Yes Contact that is kept. mergee contact id integer Yes Contact that is merged and then deleted. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/actions/contact merge' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"base contact id\": 801, \"mergee contact id\": 802 }' Example response ( 200 OK ): the base contact. It is not wrapped in payload , and has no contact inboxes . { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 } After the merge, GET /contacts/802 returns 404 . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description base contact id integer Yes The contact that is kept. Example: 801 . mergee contact id integer Yes The contact that is merged into the base contact, then deleted. Example: 802 . Example (generated from the schema) { \"base contact id\": 801, \"mergee contact id\": 802 } Responses 200 — The base contact after the merge. Content type: application/json Field Type Description id integer The contact's numeric ID. name string The full name of the contact. email string \\ null The email address of the contact, stored in lower case, or null . phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . thumbnail string The avatar URL of the contact, or an empty string. availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. created at integer The time at which the contact was created (Unix timestamp, in seconds). last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). contact inboxes[].inbox object Object containing the details of the inbox. contact inboxes[].inbox.id integer The numeric ID of the inbox. contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. contact inboxes[].inbox.account id integer The numeric ID of the account. contact inboxes[].inbox.name string The name of the inbox. contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. contact inboxes[].inbox.timezone string The inbox's time zone. contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . Example { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/list-contact-notes",
      "title": "List Contact Notes",
      "url": "https://docs.99digital.co.il/online-api/contacts/notes/list-contact-notes",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/notes/list-contact-notes.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts",
        "Notes"
      ],
      "language": "en",
      "description": "List the internal notes that agents wrote about a contact, newest first.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/contacts/{contact_id}/notes",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/notes"
      },
      "headings": [
        "Example: list notes",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The contact's notes, newest first.",
        "Example: Notes",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listContactNotes",
        "accounts",
        "contacts",
        "notes",
        "account_id",
        "contact_id",
        "id",
        "content",
        "user",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "created_at",
        "updated_at",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/notes List the internal notes that agents wrote about a contact, newest first. Internal notes that agents write about a contact. They are not visible to the contact. To add one, use Create Contact Note. Action Method Path List notes (newest first) GET /api/v1/accounts/{account id}/contacts/{contact id}/notes Authorization : user token. Listing requires the Retrieve Contact permission (new rules: Contacts → read ). Creating, updating and deleting require the Update Contact permission (new rules: Contacts → update ). Legacy roles: any agent. Agent-bot tokens: not allowed. Example: list notes curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/notes' \\ -H 'api access token: ' Response ( 200 OK ): an array of note objects. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Responses 200 — The contact's notes, newest first. Content type: application/json Field Type Description [].id integer The note ID. [].content string The note text. [].account id integer \\ null Returned as null . [].contact id integer \\ null Returned as null . [].user object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. [].user.id integer The agent's numeric ID (user ID). [].user.account id integer The numeric ID of the account. [].user.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. [].user.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). [].user.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). [].user.email string The agent's login email address. [].user.available name string The agent's display name. [].user.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. [].user.name string The agent's full name. [].user.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). [].user.operation bot boolean true for internal operation-bot users. [].user.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). [].user.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . [].user.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. [].user.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. [].user.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. [].user.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. [].user.phone1 string \\ null The phone number that receives two-factor codes by SMS. [].user.email1 string \\ null The email address that receives two-factor codes by email. [].user.create time integer When the agent was created (Unix timestamp, in seconds). [].created at integer When the note was created (Unix time, seconds). [].updated at integer The note's last update (Unix time, seconds). Example: Notes One note. user , the author, is shortened. [ { \"id\": 71, \"content\": \"Callback moved to Monday.\", \"account id\": null, \"contact id\": null, \"user\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"role\": \"General Manager\", \"thumbnail\": \"\" }, \"created at\": 1794470700, \"updated at\": 1794474300 } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/create-contact-note",
      "title": "Create Contact Note",
      "url": "https://docs.99digital.co.il/online-api/contacts/notes/create-contact-note",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/notes/create-contact-note.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts",
        "Notes"
      ],
      "language": "en",
      "description": "Add an internal note about a contact.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/contacts/{contact_id}/notes",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/notes"
      },
      "headings": [
        "Example: create a note",
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The new note.",
        "Example: Note",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "createContactNote",
        "accounts",
        "contacts",
        "notes",
        "account_id",
        "contact_id",
        "note",
        "content",
        "id",
        "user",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "created_at",
        "updated_at",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/notes Add an internal note about a contact. Internal notes that agents write about a contact. They are not visible to the contact. The caller becomes the note's author ( user ). Action Method Path Create a note POST /api/v1/accounts/{account id}/contacts/{contact id}/notes Authorization : user token. Listing requires the Retrieve Contact permission (new rules: Contacts → read ). Creating, updating and deleting require the Update Contact permission (new rules: Contacts → update ). Legacy roles: any agent. Agent-bot tokens: not allowed. Body parameters (JSON) Name Type Required Description note.content string Yes Note text. Example: create a note curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/notes' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"note\": { \"content\": \"Customer asked for a callback about order A-1001.\" } }' Response ( 200 OK ). user is the author, as an agent object, shown here truncated. account id and contact id are always null in this response. { \"id\": 71, \"content\": \"Customer asked for a callback about order A-1001.\", \"account id\": null, \"contact id\": null, \"user\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"role\": \"General Manager\", \"thumbnail\": \"\" }, \"created at\": 1794470700, \"updated at\": 1794470700 } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Request body Content type: application/json (required) Field Type Required Description note object Yes The note to add. Its text goes in content . note.content string Yes The note text. Example: Customer asked for a callback about order A-1001. . Example (generated from the schema) { \"note\": { \"content\": \"Customer asked for a callback about order A-1001.\" } } Responses 200 — The new note. Content type: application/json Field Type Description id integer The note ID. content string The note text. account id integer \\ null Returned as null . contact id integer \\ null Returned as null . user object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. user.id integer The agent's numeric ID (user ID). user.account id integer The numeric ID of the account. user.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. user.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). user.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). user.email string The agent's login email address. user.available name string The agent's display name. user.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. user.name string The agent's full name. user.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). user.operation bot boolean true for internal operation-bot users. user.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). user.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . user.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. user.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. user.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. user.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. user.phone1 string \\ null The phone number that receives two-factor codes by SMS. user.email1 string \\ null The email address that receives two-factor codes by email. user.create time integer When the agent was created (Unix timestamp, in seconds). created at integer When the note was created (Unix time, seconds). updated at integer The note's last update (Unix time, seconds). Example: Note The new note. user , the author, is shortened. { \"id\": 71, \"content\": \"Customer asked for a callback about order A-1001.\", \"account id\": null, \"contact id\": null, \"user\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"role\": \"General Manager\", \"thumbnail\": \"\" }, \"created at\": 1794470700, \"updated at\": 1794470700 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/update-contact-note",
      "title": "Update Contact Note",
      "url": "https://docs.99digital.co.il/online-api/contacts/notes/update-contact-note",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/notes/update-contact-note.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts",
        "Notes"
      ],
      "language": "en",
      "description": "Change the text of an internal note about a contact.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/contacts/{contact_id}/notes/{note_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/notes/{note_id}"
      },
      "headings": [
        "Example: update a note",
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The updated note.",
        "Example: Note",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "updateContactNote",
        "accounts",
        "contacts",
        "notes",
        "account_id",
        "contact_id",
        "note_id",
        "note",
        "content",
        "id",
        "user",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "created_at",
        "updated_at",
        "error"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/notes/{note id} Change the text of an internal note about a contact. Internal notes that agents write about a contact. They are not visible to the contact. Action Method Path Update a note PATCH /api/v1/accounts/{account id}/contacts/{contact id}/notes/{note id} Authorization : user token. Listing requires the Retrieve Contact permission (new rules: Contacts → read ). Creating, updating and deleting require the Update Contact permission (new rules: Contacts → update ). Legacy roles: any agent. Agent-bot tokens: not allowed. Body parameters (JSON) Name Type Required Description note.content string Yes Note text. Example: update a note curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/notes/71' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"note\": { \"content\": \"Callback moved to Monday.\" } }' Response ( 200 OK ): the same note object with \"content\": \"Callback moved to Monday.\" and a new updated at . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . note id path integer Yes The note's ID, as returned by List Contact Notes. Example: 71 . Request body Content type: application/json (required) Field Type Required Description note object Yes The note's new text, in content . note.content string Yes The new note text. Example: Callback moved to Monday. . Example (generated from the schema) { \"note\": { \"content\": \"Callback moved to Monday.\" } } Responses 200 — The updated note. Content type: application/json Field Type Description id integer The note ID. content string The note text. account id integer \\ null Returned as null . contact id integer \\ null Returned as null . user object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. user.id integer The agent's numeric ID (user ID). user.account id integer The numeric ID of the account. user.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. user.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). user.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). user.email string The agent's login email address. user.available name string The agent's display name. user.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. user.name string The agent's full name. user.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). user.operation bot boolean true for internal operation-bot users. user.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). user.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . user.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. user.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. user.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. user.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. user.phone1 string \\ null The phone number that receives two-factor codes by SMS. user.email1 string \\ null The email address that receives two-factor codes by email. user.create time integer When the agent was created (Unix timestamp, in seconds). created at integer When the note was created (Unix time, seconds). updated at integer The note's last update (Unix time, seconds). Example: Note The updated note. user , the author, is shortened. { \"id\": 71, \"content\": \"Callback moved to Monday.\", \"account id\": null, \"contact id\": null, \"user\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"role\": \"General Manager\", \"thumbnail\": \"\" }, \"created at\": 1794470700, \"updated at\": 1794474300 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/delete-contact-note",
      "title": "Delete Contact Note",
      "url": "https://docs.99digital.co.il/online-api/contacts/notes/delete-contact-note",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/notes/delete-contact-note.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts",
        "Notes"
      ],
      "language": "en",
      "description": "Delete an internal note about a contact.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/contacts/{contact_id}/notes/{note_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/notes/{note_id}"
      },
      "headings": [
        "Example: delete a note",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The note was deleted, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "deleteContactNote",
        "accounts",
        "contacts",
        "notes",
        "account_id",
        "contact_id",
        "note_id",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/notes/{note id} Delete an internal note about a contact. Internal notes that agents write about a contact. They are not visible to the contact. Action Method Path Delete a note DELETE /api/v1/accounts/{account id}/contacts/{contact id}/notes/{note id} Authorization : user token. Listing requires the Retrieve Contact permission (new rules: Contacts → read ). Creating, updating and deleting require the Update Contact permission (new rules: Contacts → update ). Legacy roles: any agent. Agent-bot tokens: not allowed. Example: delete a note curl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/notes/71' \\ -H 'api access token: ' Response: 200 OK with an empty body. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . note id path integer Yes The note's ID, as returned by List Contact Notes. Example: 71 . Responses 200 — The note was deleted, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-contact-files",
      "title": "List Contact Files",
      "url": "https://docs.99digital.co.il/online-api/contacts/files/list-contact-files",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/files/list-contact-files.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts",
        "Files"
      ],
      "language": "en",
      "description": "List the documents attached to a contact's profile.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/contacts/{contact_id}/files",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/files"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The contact's files.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listContactFiles",
        "accounts",
        "contacts",
        "files",
        "account_id",
        "contact_id",
        "id",
        "data_url",
        "file_type",
        "thumb_url",
        "comment",
        "created_at_exact",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/files List the documents attached to a contact's profile. Documents attached to a contact profile (for example contracts or ID scans), with an optional comment. To add one, use Upload Contact File. Action Method Path List files GET /api/v1/accounts/{account id}/contacts/{contact id}/files Authorization : user token. Listing requires the Retrieve Contact permission (new rules: Contacts → read ). Uploading, updating and deleting require the Update Contact permission (new rules: Contacts → update ). Legacy roles: any agent. Agent-bot tokens: not allowed. file type is image , audio , video or the file's MIME type. thumb url is returned only for images. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Responses 200 — The contact's files. Content type: application/json Field Type Description [].id integer The file ID. [].data url string The URL of the file. [].file type string image , audio , video , or the file's MIME type (for example application/pdf ). [].thumb url string The URL of a thumbnail. Returned for images only. [].comment string The comment kept with the file. [].created at exact string When the file was uploaded, as DD/MM/YY HH:mm (for example 12/11/26 08:00 ). Example [ { \"id\": 3101, \"data url\": \"https://online.99digital.co.il/rails/active storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"file type\": \"image\", \"thumb url\": \"https://online.99digital.co.il/rails/active storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"comment\": \"Invoice for order A-1001\", \"created at exact\": \"12/11/26 08:00\" } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/upload-contact-file",
      "title": "Upload Contact File",
      "url": "https://docs.99digital.co.il/online-api/contacts/files/upload-contact-file",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/files/upload-contact-file.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts",
        "Files"
      ],
      "language": "en",
      "description": "Attach a document to a contact's profile.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/contacts/{contact_id}/add_file",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/add_file"
      },
      "headings": [
        "Example: upload a file",
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Responses",
        "200 — All the contact's files, including the new one.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "413 — The file is larger than 10 MB.",
        "415 — The file type is not allowed.",
        "Example",
        "422 — No file was sent.",
        "Example"
      ],
      "keywords": [
        "uploadContactFile",
        "accounts",
        "contacts",
        "add_file",
        "account_id",
        "contact_id",
        "file",
        "comment",
        "id",
        "data_url",
        "file_type",
        "thumb_url",
        "created_at_exact",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/add file Attach a document to a contact's profile. Documents attached to a contact profile (for example contracts or ID scans), with an optional comment. Action Method Path Upload a file POST /api/v1/accounts/{account id}/contacts/{contact id}/add file Authorization : user token. Listing requires the Retrieve Contact permission (new rules: Contacts → read ). Uploading, updating and deleting require the Update Contact permission (new rules: Contacts → update ). Legacy roles: any agent. Agent-bot tokens: not allowed. Upload (form-data) parameters Name Type Required Description file file Yes Up to 10 MB. Allowed types: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG, JPEG. The account's upload policy may restrict this further (for example, text/plain can be rejected). comment string No Comment stored with the file (max 500 characters on update). Example: upload a file curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/add file' \\ -H 'api access token: ' \\ -F 'file=@invoice.png;type=image/png' \\ -F 'comment=Invoice for order A-1001' Response ( 200 OK ): all files of the contact. [ { \"id\": 3101, \"data url\": \"https://online.99digital.co.il/rails/active storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"file type\": \"image\", \"thumb url\": \"https://online.99digital.co.il/rails/active storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"comment\": \"Invoice for order A-1001\", \"created at exact\": \"12/11/26 08:00\" } ] file type is image , audio , video or the file's MIME type. thumb url is returned only for images. Error responses (upload) Status When Body 422 No file sent. \"File field is required\" 415 File type not allowed. File type is not supported: text/plain 413 File larger than 10 MB. Error message Remarks The code samples add the file once you choose one under Request → Body . To change the comment later, use Update Contact File. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . Request body Content type: multipart/form-data (required) Field Type Required Description file string (binary) Yes The file, up to 10 MB: PDF, CSV, RTF, DOC/DOCX, XLS/XLSX, PNG or JPEG. The account's upload policy may allow fewer types. comment string No An optional comment kept with the file. You can change it later with Update Contact File, which accepts up to 500 characters. Example: Invoice for order A-1001 . Responses 200 — All the contact's files, including the new one. Content type: application/json Field Type Description [].id integer The file ID. [].data url string The URL of the file. [].file type string image , audio , video , or the file's MIME type (for example application/pdf ). [].thumb url string The URL of a thumbnail. Returned for images only. [].comment string The comment kept with the file. [].created at exact string When the file was uploaded, as DD/MM/YY HH:mm (for example 12/11/26 08:00 ). Example [ { \"id\": 3101, \"data url\": \"https://online.99digital.co.il/rails/active storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"file type\": \"image\", \"thumb url\": \"https://online.99digital.co.il/rails/active storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"comment\": \"Invoice for order A-1001\", \"created at exact\": \"12/11/26 08:00\" } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 413 — The file is larger than 10 MB. 415 — The file type is not allowed. Content type: text/plain Type: string . Example File type is not supported: text/plain 422 — No file was sent. Content type: application/json Type: string . Example \"File field is required\""
    },
    {
      "id": "online-api/update-contact-file",
      "title": "Update Contact File",
      "url": "https://docs.99digital.co.il/online-api/contacts/files/update-contact-file",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/files/update-contact-file.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts",
        "Files"
      ],
      "language": "en",
      "description": "Change the comment of a file attached to a contact's profile.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/contacts/{contact_id}/update_file/{file_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/update_file/{file_id}"
      },
      "headings": [
        "Example: update the comment",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Change the comment",
        "Example: Clear the comment",
        "Responses",
        "200 — All the contact's files, with the updated comment.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "updateContactFile",
        "accounts",
        "contacts",
        "update_file",
        "account_id",
        "contact_id",
        "file_id",
        "comment",
        "id",
        "data_url",
        "file_type",
        "thumb_url",
        "created_at_exact",
        "error"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/update file/{file id} Change the comment of a file attached to a contact's profile. Documents attached to a contact profile (for example contracts or ID scans), with an optional comment. Action Method Path Update a file comment PATCH /api/v1/accounts/{account id}/contacts/{contact id}/update file/{file id} Authorization : user token. Listing requires the Retrieve Contact permission (new rules: Contacts → read ). Uploading, updating and deleting require the Update Contact permission (new rules: Contacts → update ). Legacy roles: any agent. Agent-bot tokens: not allowed. Update (JSON) parameters : comment (string, max 500 characters). Send an empty string to clear it. Example: update the comment curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/update file/3101' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"comment\": \"Paid invoice for order A-1001\" }' Response ( 200 OK ): all files of the contact, with the updated comment . file type is image , audio , video or the file's MIME type. thumb url is returned only for images. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . file id path integer Yes The file's ID, as returned by List Contact Files. Example: 3101 . Request body Content type: application/json (required) Field Type Required Description comment string No The new comment. An empty string clears it. Max length: 500. Example: Change the comment Replace the file's comment. { \"comment\": \"Paid invoice for order A-1001\" } Example: Clear the comment An empty string removes the comment. { \"comment\": \"\" } Responses 200 — All the contact's files, with the updated comment. Content type: application/json Field Type Description [].id integer The file ID. [].data url string The URL of the file. [].file type string image , audio , video , or the file's MIME type (for example application/pdf ). [].thumb url string The URL of a thumbnail. Returned for images only. [].comment string The comment kept with the file. [].created at exact string When the file was uploaded, as DD/MM/YY HH:mm (for example 12/11/26 08:00 ). Example [ { \"id\": 3101, \"data url\": \"https://online.99digital.co.il/rails/active storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"file type\": \"image\", \"thumb url\": \"https://online.99digital.co.il/rails/active storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"comment\": \"Paid invoice for order A-1001\", \"created at exact\": \"12/11/26 08:00\" } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/delete-contact-file",
      "title": "Delete Contact File",
      "url": "https://docs.99digital.co.il/online-api/contacts/files/delete-contact-file",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/contacts/files/delete-contact-file.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Contacts",
        "Files"
      ],
      "language": "en",
      "description": "Delete a file from a contact's profile.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/contacts/{contact_id}/remove_file/{file_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/contacts/{contact_id}/remove_file/{file_id}"
      },
      "headings": [
        "Example: delete a file",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The contact's remaining files.",
        "Example: No files left",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "deleteContactFile",
        "accounts",
        "contacts",
        "remove_file",
        "account_id",
        "contact_id",
        "file_id",
        "id",
        "data_url",
        "file_type",
        "thumb_url",
        "comment",
        "created_at_exact",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/contacts/{contact id}/remove file/{file id} Delete a file from a contact's profile. Documents attached to a contact profile (for example contracts or ID scans), with an optional comment. Action Method Path Delete a file DELETE /api/v1/accounts/{account id}/contacts/{contact id}/remove file/{file id} Authorization : user token. Listing requires the Retrieve Contact permission (new rules: Contacts → read ). Uploading, updating and deleting require the Update Contact permission (new rules: Contacts → update ). Legacy roles: any agent. Agent-bot tokens: not allowed. Example: delete a file curl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/remove file/3101' \\ -H 'api access token: ' Response ( 200 OK ): the remaining files ( [] here). Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . contact id path integer Yes The numeric ID of the contact. Example: 801 . file id path integer Yes The file's ID, as returned by List Contact Files. Example: 3101 . Responses 200 — The contact's remaining files. Content type: application/json Field Type Description [].id integer The file ID. [].data url string The URL of the file. [].file type string image , audio , video , or the file's MIME type (for example application/pdf ). [].thumb url string The URL of a thumbnail. Returned for images only. [].comment string The comment kept with the file. [].created at exact string When the file was uploaded, as DD/MM/YY HH:mm (for example 12/11/26 08:00 ). Example: No files left The deleted file was the contact's only file. [] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/conversations/conversation-basics",
      "title": "Conversation Basics",
      "url": "https://docs.99digital.co.il/online-api/conversations/conversation-basics",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/conversation-basics.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Conversation statuses, display IDs, tickets, and which conversations an access token can see and change.",
      "headings": [
        "Display IDs",
        "Statuses",
        "Tickets",
        "No generic update or delete",
        "Endpoints in this section",
        "Who can see a conversation"
      ],
      "keywords": [
        "conversation status",
        "Bot",
        "Manual",
        "display ID",
        "tickets",
        "conversation permissions"
      ],
      "content": "A conversation is a thread between a contact and your team in one inbox. This page explains what every conversation endpoint has in common. Display IDs In every path, {conversation id} is the conversation's display ID : the id field in conversation responses and the number shown in the dashboard URL ( …/conversations/1501 ). A few ticket and event responses also show the conversation's internal ID — their pages say so. Statuses Conversation statuses. The status names in the API differ from the labels in the dashboard: API value Dashboard label Meaning open Bot The conversation is handled by the bot / automation. pending Manual The conversation is handled by a human agent. snoozed Snoozed Hidden until snoozed until , then reopened. resolved Resolved Closed. Change the status with Toggle Conversation Status — for example pending to hand a conversation from the bot over to a human. Tickets Every conversation is split into tickets; a new ticket starts when a resolved conversation is reopened. The first ticket opens with the conversation and closes when the conversation is resolved, so one long-lived conversation — a WhatsApp thread, for example — can hold many tickets. Messages and events carry a ticket id . No generic update or delete There is no PATCH /conversations/{id} and no DELETE /conversations/{id} . Change a conversation through the dedicated endpoints below (status, priority, assignment, labels, custom attributes, SLA, and so on). A conversation is deleted only when its contact is deleted. To create a conversation, use Add Conversation. If the contact already has a conversation in that inbox, it returns that conversation and adds your message to it instead. Endpoints in this section GET /api/v1/accounts/{account id}/conversations : List conversations GET /api/v1/accounts/{account id}/conversations/meta : Conversation counts GET /api/v1/accounts/{account id}/conversations/search : Search conversations by message text POST /api/v1/accounts/{account id}/conversations/filter : Filter conversations POST /api/v1/accounts/{account id}/conversations : Create a conversation POST /api/v1/accounts/{account id}/conversations/by phone number : Find or create a conversation by phone number GET /api/v1/accounts/{account id}/conversations/{conversation id} : Get a conversation POST /api/v1/accounts/{account id}/conversations/{conversation id}/toggle status : Change the status POST /api/v1/accounts/{account id}/conversations/{conversation id}/toggle priority : Change the priority POST /api/v1/accounts/{account id}/conversations/{conversation id}/assignments : Assign an agent or team GET /api/v1/accounts/{account id}/conversations/{conversation id}/labels : List conversation labels POST /api/v1/accounts/{account id}/conversations/{conversation id}/labels : Set conversation labels POST /api/v1/accounts/{account id}/conversations/{conversation id}/custom attributes : Set custom attributes POST /api/v1/accounts/{account id}/conversations/{conversation id}/mute and /unmute : Mute / unmute GET/POST/PATCH/DELETE /api/v1/accounts/{account id}/conversations/{conversation id}/participants : Participants — list, add, replace, remove GET /api/v1/accounts/{account id}/conversations/{conversation id}/attachments : List attachments POST /api/v1/accounts/{account id}/conversations/{conversation id}/transcript : Email a transcript POST /api/v1/accounts/{account id}/conversations/{conversation id}/send survey : Send a CSAT survey POST /api/v1/accounts/{account id}/conversations/{conversation id}/apply sla : Apply or remove an SLA policy POST /api/v1/accounts/{account id}/conversations/{conversation id}/update last seen , /unread , /set unread : Read / unread — mark as read, mark as unread, set unread GET /api/v1/accounts/{account id}/conversations/{conversation id}/conversation events : Conversation events (audit trail), and one event POST /api/v1/accounts/{account id}/bulk actions : Bulk-update conversations POST /api/v1/accounts/{account id}/bulk actions/mark as read all and /mark as unread : Bulk read / unread — read, unread The fields of the conversation object are explained on Get Conversation. Who can see a conversation All conversation endpoints only return conversations the caller is allowed to see. Member endpoints ( /conversations/{conversation id}/... ) return 403 when the caller is not allowed to see that conversation. New rules system : the caller is the assignee, or their role has Inbox read all conversations for the conversation's inbox, or Inbox read (Team) for the inbox and the conversation belongs to one of the caller's teams, or Inbox read unassigned conversations for the inbox and the conversation has no assignee and no team. Legacy : agents with \"see all conversations\" see everything; other agents see conversations assigned to them, conversations of their teams, and inboxes where they have Inbox read all conversations . Agent-bot tokens can see every conversation, but may only call: create conversation, get conversation, change status, change priority, assign, set labels, set custom attributes, apply SLA, send survey, and create message. The full list of endpoints open to bots, outside conversations too, is under Authentication. Actions on a conversation also need the matching inbox permission of the caller's role (new rules system), scoped to the conversation's inbox — for example Inbox resolve to resolve it. These are listed per endpoint; the full list is under Inbox permissions."
    },
    {
      "id": "online-api/list-conversations",
      "title": "List Conversations",
      "url": "https://docs.99digital.co.il/online-api/conversations/list-conversations",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/list-conversations.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Returns conversations visible to the caller, 25 per page, sorted by last activity (pinned conversations first).",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The conversations on this page, and the counts.",
        "Example: Conversations of one inbox",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "429 — The same URL was requested more than 10 times in a minute from this IP address. See Rate limits."
      ],
      "keywords": [
        "listConversations",
        "accounts",
        "conversations",
        "account_id",
        "status",
        "assignee_type",
        "inbox_id",
        "team_id",
        "labels[]",
        "source_id",
        "conversation_type",
        "q",
        "sort_by",
        "page",
        "data",
        "meta",
        "mine_count",
        "new_count",
        "assigned_count",
        "unassigned_count",
        "all_count",
        "active_status_count",
        "resolved_status_count",
        "pending_status_count",
        "snoozed_status_count",
        "all_status_count",
        "last_page",
        "total",
        "payload",
        "id",
        "uuid",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "conversation_id",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations Returns conversations visible to the caller, 25 per page, sorted by last activity (pinned conversations first). The response holds the conversations in data.payload and the counts for the dashboard tabs in data.meta . Narrow the list with the query parameters below; they can be combined. To get only the counts, use Conversation Counts. To find conversations by message text, use q here or Search Conversations; for conditions on any attribute, use Filter Conversations. Setting Value Method GET Path /api/v1/accounts/{account id}/conversations Authorization User token (see Who can see a conversation). Permissions: User token: any agent of the account. Only the conversations the caller may see are returned. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. Query parameters Name Type Required Description status string No open (Bot), pending (Manual), snoozed , resolved , !resolved (open + pending) or all . If omitted, all statuses are returned. assignee type string No me (assigned to the caller), unassigned , assigned , new (conversations with unread incoming messages), or all / omitted. inbox id integer No Only this inbox. team id integer No Only conversations of this team. labels[] string[] No Conversations with any of these labels. source id string No Only conversations of the contact inbox with this source ID (e.g. a phone number in a WhatsApp inbox). conversation type string No mention (the caller was @mentioned; also marks those mentions as read), participating (the caller is a participant), unattended . q string No Text that must appear in an incoming/outgoing message (same as Search Conversations). sort by string No last activity at desc (default), last activity at asc , created at desc , created at asc , priority desc , priority asc , waiting since desc , waiting since asc , snoozed until desc , snoozed until asc , latest . page integer No Page number (25 per page). Default 1 . The exact same GET URL under /conversations can be called at most 10 times per minute per IP. Above that you get 429 . Polling /conversations?status=open in a loop hits this limit quickly — use webhook events instead. Conversation Counts is not limited this way. See Rate limits. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations?inbox id=31&status=all&assignee type=all&page=1' \\ -H 'api access token: ' Example response ( 200 OK ). The conversations in payload are shortened; each item is a full conversation object, as returned by Get Conversation. { \"data\": { \"meta\": { \"mine count\": 1, \"new count\": 1, \"assigned count\": 1, \"unassigned count\": 2, \"all count\": 3, \"active status count\": 3, \"resolved status count\": 0, \"pending status count\": 1, \"snoozed status count\": 0, \"all status count\": 3, \"last page\": true, \"total\": 3 }, \"payload\": [ { \"id\": 1504, \"inbox id\": 31, \"status\": \"pending\", \"priority\": \"high\", \"labels\": [\"billing\"], \"unread count\": 0, \"last activity at\": 1794472200 }, { \"id\": 1501, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [\"vip\"], \"unread count\": 1, \"last activity at\": 1794471300 }, { \"id\": 1502, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [], \"unread count\": 0, \"last activity at\": 1794471060 } ] } } Meta fields Field Description mine count , assigned count , unassigned count , all count Counts for the assignee tabs, using all filters except assignee type . new count Conversations with unread incoming messages. active status count , resolved status count , pending status count , snoozed status count , all status count Counts by status. active = open + pending . last page true on the last page. total Number of items on this page — not the total number of matches. Page until last page is true . Remarks Each item in payload is a full conversation object. messages holds only the last message; use List of Messages for the history. The status names differ from the dashboard: open is Bot and pending is Manual . See Statuses. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . status query string No Only conversations with this status. If omitted, every status is returned. One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Snoozed; resolved — Resolved; !resolved — Bot and Manual ( open and pending ); all — Every status. Example: open . assignee type query string No Only conversations with this kind of assignment. One of: me — Assigned to the caller; unassigned — Not assigned to an agent; assigned — Assigned to an agent; new — With unread incoming messages; all — Every conversation — the same as leaving it out. inbox id query integer No Only conversations of this inbox. Example: 31 . team id query integer No Only conversations of this team. Example: 7 . labels[] query array of string No Only conversations that have any of these labels (label titles). Repeat the parameter for each label: labels[]=vip&labels[]=billing . Example: [\"vip\",\"billing\"] . source id query string No Only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox. conversation type query string No Only conversations of this kind. One of: mention — The caller was mentioned in the conversation. This also marks those mentions as read; participating — The caller is a participant of the conversation; unattended — Unattended conversations. q query string No Only conversations with an incoming or outgoing message that contains this text — the same search as Search Conversations. sort by query string No The sort order. Pinned conversations are always listed first. One of: last activity at desc — Most recent activity first (the default); last activity at asc — Oldest activity first; created at desc — Newest conversations first; created at asc — Oldest conversations first; priority desc — Highest priority first ( urgent , high , medium , low ); priority asc — Lowest priority first; waiting since desc — By waiting since (since when the contact has been waiting for a reply), most recent first; waiting since asc — By waiting since , earliest first: the contacts who have waited longest come first; snoozed until desc — By the time a snoozed conversation reopens, latest first; snoozed until asc — By the time a snoozed conversation reopens, soonest first; latest — Most recent activity first. Default: last activity at desc . page query integer No The page number, 25 conversations per page. Default: 1 . Example: 1 . Responses 200 — The conversations on this page, and the counts. Content type: application/json Field Type Description data object The answer — the counts in meta , and the conversations in payload . data.meta object An object containing the counts of the conversations that match the filters. mine count , assigned count , unassigned count and all count are the counts for the assignee tabs, using every filter except assignee type . data.meta.mine count integer The number of conversations that have been assigned to the user (the caller). Uses every filter except assignee type . data.meta.new count integer The number of new conversations — conversations with unread incoming messages. data.meta.assigned count integer The number of conversations that have been assigned to an agent. Uses every filter except assignee type . data.meta.unassigned count integer The number of unassigned conversations (no agent). Uses every filter except assignee type . data.meta.all count integer The number of all the conversations. Uses every filter except assignee type . data.meta.active status count integer The number of active conversations — open (Bot) plus pending (Manual). data.meta.resolved status count integer The number of resolved conversations. data.meta.pending status count integer The number of pending (Manual) conversations. data.meta.snoozed status count integer The number of snoozed conversations. data.meta.all status count integer The number of conversations in every status. data.meta.last page boolean true on the last page. data.meta.total integer The number of items (conversations) on this page . data.payload array of object The conversations on this page. data.payload[].id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. data.payload[].uuid string A globally unique ID of the conversation. data.payload[].account id integer The numeric ID of the account. data.payload[].inbox id integer The numeric ID of the inbox. data.payload[].status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. data.payload[].priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. data.payload[].labels array of string Array of strings — the titles of the conversation's labels. data.payload[].custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). data.payload[].additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . data.payload[].meta object Object containing the conversation's metadata — its people and channel. data.payload[].meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). data.payload[].meta.sender.id integer The contact's numeric ID. data.payload[].meta.sender.name string The full name of the contact. data.payload[].meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . data.payload[].meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . data.payload[].meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . data.payload[].meta.sender.thumbnail string The avatar URL of the contact, or an empty string. data.payload[].meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. data.payload[].meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. data.payload[].meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. data.payload[].meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. data.payload[].meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. data.payload[].meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). data.payload[].meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. data.payload[].meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . data.payload[].meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . data.payload[].meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). data.payload[].meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. data.payload[].meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. data.payload[].meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. data.payload[].meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. data.payload[].meta.sender.contact inboxes[].inbox.name string The name of the inbox. data.payload[].meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . data.payload[].meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. data.payload[].meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. data.payload[].meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. data.payload[].meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . data.payload[].meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . data.payload[].meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. data.payload[].meta.assignee.id integer The agent's numeric ID (user ID). data.payload[].meta.assignee.account id integer The numeric ID of the account. data.payload[].meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. data.payload[].meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). data.payload[].meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). data.payload[].meta.assignee.email string The agent's login email address. data.payload[].meta.assignee.available name string The agent's display name. data.payload[].meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. data.payload[].meta.assignee.name string The agent's full name. data.payload[].meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). data.payload[].meta.assignee.operation bot boolean true for internal operation-bot users. data.payload[].meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). data.payload[].meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . data.payload[].meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. data.payload[].meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. data.payload[].meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. data.payload[].meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. data.payload[].meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. data.payload[].meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. data.payload[].meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). data.payload[].meta.team object Object containing the assigned team's data, if a team is assigned. data.payload[].meta.team.id integer The numeric ID of the team. data.payload[].meta.team.name string The name of the team. Stored in lower case, and unique in the account. data.payload[].meta.team.description string The description of the team. data.payload[].meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. data.payload[].meta.team.account id integer The numeric ID of the account. data.payload[].meta.team.members count integer The number of agents in the team. data.payload[].meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. data.payload[].meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . data.payload[].meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). data.payload[].contact inbox object The contact's link (contact inbox) to the conversation's inbox. data.payload[].contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . data.payload[].messages array of object Array of message objects — the last message only. Use List of Messages for the history. data.payload[].messages[].id integer The numeric ID of the message. data.payload[].messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". data.payload[].messages[].inbox id integer The numeric ID of the inbox. data.payload[].messages[].conversation id integer The numeric ID of the conversation (its display ID). data.payload[].messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. data.payload[].messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. data.payload[].messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. data.payload[].messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. data.payload[].messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. data.payload[].messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . data.payload[].messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . data.payload[].messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. data.payload[].messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. data.payload[].messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. data.payload[].messages[].sender.name string The sender's name. data.payload[].messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. data.payload[].messages[].sender.available name string An agent's display name. data.payload[].messages[].sender.email string \\ null The sender's email address. data.payload[].messages[].sender.phone number string \\ null The sender's phone number (a contact's). data.payload[].messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). data.payload[].messages[].sender.avatar url string An agent's avatar image URL. data.payload[].messages[].sender.logo user url string \\ null An agent's logo URL, or null . data.payload[].messages[].sender.thumbnail string The sender's avatar URL, or an empty string. data.payload[].messages[].sender.availability status string An agent's live presence ( online , busy or offline ). data.payload[].messages[].sender.blocked boolean Whether a contact is blocked. data.payload[].messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). data.payload[].messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). data.payload[].messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . data.payload[].messages[].sender id integer \\ null In a conversation's messages , the sender's ID. data.payload[].messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. data.payload[].messages[].attachments[].id integer The numeric ID of the file (attachment). data.payload[].messages[].attachments[].message id integer The numeric ID of the message the file belongs to. data.payload[].messages[].attachments[].account id integer The numeric ID of the account. data.payload[].messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. data.payload[].messages[].attachments[].filename string The name of the file. data.payload[].messages[].attachments[].extension string \\ null The file extension, when known. data.payload[].messages[].attachments[].data url string The URL of the file. data.payload[].messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). data.payload[].messages[].attachments[].file size integer The file size, in bytes. data.payload[].messages[].ticket id integer The ticket the message belongs to. data.payload[].messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . data.payload[].messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. data.payload[].messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. data.payload[].last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). data.payload[].last non activity message.id integer The numeric ID of the message. data.payload[].last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". data.payload[].last non activity message.inbox id integer The numeric ID of the inbox. data.payload[].last non activity message.conversation id integer The numeric ID of the conversation (its display ID). data.payload[].last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. data.payload[].last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. data.payload[].last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. data.payload[].last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. data.payload[].last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. data.payload[].last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . data.payload[].last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . data.payload[].last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. data.payload[].last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. data.payload[].last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. data.payload[].last non activity message.sender.name string The sender's name. data.payload[].last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. data.payload[].last non activity message.sender.available name string An agent's display name. data.payload[].last non activity message.sender.email string \\ null The sender's email address. data.payload[].last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). data.payload[].last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). data.payload[].last non activity message.sender.avatar url string An agent's avatar image URL. data.payload[].last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . data.payload[].last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. data.payload[].last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). data.payload[].last non activity message.sender.blocked boolean Whether a contact is blocked. data.payload[].last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). data.payload[].last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). data.payload[].last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . data.payload[].last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. data.payload[].last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. data.payload[].last non activity message.attachments[].id integer The numeric ID of the file (attachment). data.payload[].last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. data.payload[].last non activity message.attachments[].account id integer The numeric ID of the account. data.payload[].last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. data.payload[].last non activity message.attachments[].filename string The name of the file. data.payload[].last non activity message.attachments[].extension string \\ null The file extension, when known. data.payload[].last non activity message.attachments[].data url string The URL of the file. data.payload[].last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). data.payload[].last non activity message.attachments[].file size integer The file size, in bytes. data.payload[].last non activity message.ticket id integer The ticket the message belongs to. data.payload[].last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . data.payload[].last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. data.payload[].last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. data.payload[].can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). data.payload[].muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. data.payload[].snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . data.payload[].unread count integer The number of unread messages — incoming messages the agents have not read. data.payload[].has incoming messages boolean Whether the contact has written at least one public message. data.payload[].created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. data.payload[].timestamp integer The same as last activity at . data.payload[].last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). data.payload[].first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. data.payload[].waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . data.payload[].agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. data.payload[].assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. data.payload[].contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. data.payload[].last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . data.payload[].sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. data.payload[].applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. data.payload[].sla events array of object The SLA events of the conversation (missed thresholds). data.payload[].sla events with distinct event type array of object The SLA events, one per event type. data.payload[].feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). data.payload[].campaign id integer \\ null The ID of the campaign that started the conversation, or null . data.payload[].pinned boolean Whether the caller pinned this conversation. data.payload[].file object {url, file type} when a file is attached to the conversation itself (rare). Example: Conversations of one inbox Every conversation of inbox 31 ( status=all ). The conversations are shortened here; each item is a full conversation object. { \"data\": { \"meta\": { \"mine count\": 1, \"new count\": 1, \"assigned count\": 1, \"unassigned count\": 2, \"all count\": 3, \"active status count\": 3, \"resolved status count\": 0, \"pending status count\": 1, \"snoozed status count\": 0, \"all status count\": 3, \"last page\": true, \"total\": 3 }, \"payload\": [ { \"id\": 1504, \"inbox id\": 31, \"status\": \"pending\", \"priority\": \"high\", \"labels\": [ \"billing\" ], \"unread count\": 0, \"last activity at\": 1794472200 }, { \"id\": 1501, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [ \"vip\" ], \"unread count\": 1, \"last activity at\": 1794471300 }, { \"id\": 1502, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [], \"unread count\": 0, \"last activity at\": 1794471060 } ] } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 429 — The same URL was requested more than 10 times in a minute from this IP address. See Rate limits."
    },
    {
      "id": "online-api/get-conversation-counts",
      "title": "Conversation Counts",
      "url": "https://docs.99digital.co.il/online-api/conversations/conversation-counts",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/conversation-counts.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Get new, unassigned and all conversation counts.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/meta",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/meta"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The counts.",
        "Example: Whole account",
        "Example: Bot conversations of one inbox",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "getConversationCounts",
        "accounts",
        "conversations",
        "meta",
        "account_id",
        "status",
        "assignee_type",
        "inbox_id",
        "team_id",
        "labels[]",
        "source_id",
        "conversation_type",
        "q",
        "page",
        "mine_count",
        "new_count",
        "assigned_count",
        "unassigned_count",
        "all_count",
        "active_status_count",
        "resolved_status_count",
        "pending_status_count",
        "snoozed_status_count",
        "all_status_count",
        "last_page",
        "total",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/meta Get new, unassigned and all conversation counts. The answer is the meta part of List Conversations, without the conversations: the numbers of mine, new, assigned, unassigned and all conversations, and the counts by status. It accepts the same query parameters, so you can count, for example, the Bot conversations of one inbox. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/meta Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token: any agent of the account. Only the conversations the caller may see are counted — see Who can see a conversation. Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Query Parameters: Parameter type Description Required status string Filters conversations by status. Enum: open (Bot), pending (Manual), snoozed , resolved , !resolved ( open + pending ), all . If omitted, every status is counted No q string Filters conversations with messages containing the search term No inbox id integer Filters conversations belonging to an inbox by inbox id No team id integer Filters conversations assigned to a team by team id No labels[] array of strings Filters conversations by labels: conversations with any of these label titles. Repeat the parameter for each label No assignee type string Filters conversations by assignment. Enum: me (assigned to the caller), unassigned , assigned , new (with unread incoming messages), all No source id string Filters conversations of the contact inbox with this source ID (for example a phone number in a WhatsApp inbox) No conversation type string Enum: mention (the caller was mentioned; also marks those mentions as read), participating (the caller is a participant), unattended No page integer The page of the list that total and last page describe (25 per page). Default 1 No Response: { \"meta\": { \"mine count\": 1, \"new count\": 1, \"assigned count\": 1, \"unassigned count\": 3, \"all count\": 4, \"active status count\": 4, \"resolved status count\": 0, \"pending status count\": 1, \"snoozed status count\": 0, \"all status count\": 4, \"last page\": true, \"total\": 4 } } Response-Explain: Parameter Description meta An object containing the counts meta -> mine count Number of conversations that have been assigned to the user (the caller) meta -> new count Number of new conversations: conversations with unread incoming messages meta -> assigned count Number of conversations that have been assigned meta -> unassigned count Number of unassigned conversations meta -> all count Number of all conversations meta -> active status count Number of active conversations: open (Bot) plus pending (Manual) meta -> resolved status count Number of resolved conversations meta -> pending status count Number of pending (Manual) conversations meta -> snoozed status count Number of snoozed conversations meta -> all status count Number of conversations in every status meta -> last page true when the requested page is the last page of the list meta -> total Number of conversations on this page of the list (25 per page) mine count , assigned count , unassigned count and all count are the counts of the assignee tabs: they apply every filter except assignee type . Remarks This endpoint is not subject to the limit of 10 requests per minute for the same URL that applies to the other GET endpoints under /conversations . See Rate limits. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . status query string No Count only conversations with this status. If omitted, every status is counted. One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Snoozed; resolved — Resolved; !resolved — Bot and Manual ( open and pending ); all — Every status. Example: open . assignee type query string No Count only conversations with this kind of assignment. One of: me — Assigned to the caller; unassigned — Not assigned to an agent; assigned — Assigned to an agent; new — With unread incoming messages; all — Every conversation — the same as leaving it out. inbox id query integer No Count only conversations of this inbox. Example: 32 . team id query integer No Count only conversations of this team. labels[] query array of string No Count only conversations that have any of these labels (label titles). Repeat the parameter for each label: labels[]=vip&labels[]=billing . source id query string No Count only conversations of the contact inbox with this source ID — for example the contact's phone number in a WhatsApp inbox. conversation type query string No Count only conversations of this kind. One of: mention — The caller was mentioned in the conversation. This also marks those mentions as read; participating — The caller is a participant of the conversation; unattended — Unattended conversations. q query string No Count only conversations with an incoming or outgoing message that contains this text. page query integer No The page of the list that total and last page describe, 25 conversations per page. Default: 1 . Responses 200 — The counts. Content type: application/json Field Type Description meta object An object containing the counts of the conversations that match the filters. mine count , assigned count , unassigned count and all count are the counts for the assignee tabs, using every filter except assignee type . meta.mine count integer The number of conversations that have been assigned to the user (the caller). Uses every filter except assignee type . meta.new count integer The number of new conversations — conversations with unread incoming messages. meta.assigned count integer The number of conversations that have been assigned to an agent. Uses every filter except assignee type . meta.unassigned count integer The number of unassigned conversations (no agent). Uses every filter except assignee type . meta.all count integer The number of all the conversations. Uses every filter except assignee type . meta.active status count integer The number of active conversations — open (Bot) plus pending (Manual). meta.resolved status count integer The number of resolved conversations. meta.pending status count integer The number of pending (Manual) conversations. meta.snoozed status count integer The number of snoozed conversations. meta.all status count integer The number of conversations in every status. meta.last page boolean true on the last page. meta.total integer The number of items (conversations) on this page . Example: Whole account No filters — every conversation the caller can see. { \"meta\": { \"mine count\": 1, \"new count\": 1, \"assigned count\": 1, \"unassigned count\": 3, \"all count\": 4, \"active status count\": 4, \"resolved status count\": 0, \"pending status count\": 1, \"snoozed status count\": 0, \"all status count\": 4, \"last page\": true, \"total\": 4 } } Example: Bot conversations of one inbox status=open&inbox id=32 . { \"meta\": { \"mine count\": 0, \"new count\": 0, \"assigned count\": 0, \"unassigned count\": 1, \"all count\": 1, \"active status count\": 1, \"resolved status count\": 0, \"pending status count\": 0, \"snoozed status count\": 0, \"all status count\": 1, \"last page\": true, \"total\": 1 } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/search-conversations",
      "title": "Search Conversations",
      "url": "https://docs.99digital.co.il/online-api/conversations/search-conversations",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/search-conversations.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Returns conversations that have an incoming or outgoing message whose text contains the search text (case-insensitive).",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/search",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/search"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The matching conversations on this page, and the counts.",
        "Example: One match",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "429 — The same URL was requested more than 10 times in a minute from this IP address. See Rate limits."
      ],
      "keywords": [
        "searchConversations",
        "accounts",
        "conversations",
        "search",
        "account_id",
        "q",
        "page",
        "status",
        "assignee_type",
        "inbox_id",
        "team_id",
        "labels[]",
        "meta",
        "mine_count",
        "new_count",
        "assigned_count",
        "unassigned_count",
        "all_count",
        "active_status_count",
        "resolved_status_count",
        "pending_status_count",
        "snoozed_status_count",
        "all_status_count",
        "last_page",
        "total",
        "payload",
        "id",
        "uuid",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "conversation_id",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/search Returns conversations that have an incoming or outgoing message whose text contains the search text (case-insensitive). The search text is the q parameter. You can narrow the search with the filters of List Conversations ( status , inbox id , …). Setting Value Method GET Path /api/v1/accounts/{account id}/conversations/search Authorization User token. Permissions: User token: any agent of the account. Only the conversations the caller may see are returned — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. Query parameters Name Type Required Description q string Yes Text to search for in message content. page integer No Page number (25 per page). Other No Any filter of List Conversations ( status , inbox id , ...). Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/search?q=where%20is%20my%20order&page=1' \\ -H 'api access token: ' Example response ( 200 OK ): {\"meta\": {...same counts as in List Conversations...}, \"payload\": [ ...conversation objects... ]} . Here it returned one conversation, 1501 . Unlike List Conversations, the response is not wrapped in data : meta and payload are at the top level. The conversation is shortened; each item is a full conversation object. { \"meta\": { \"mine count\": 0, \"new count\": 1, \"assigned count\": 0, \"unassigned count\": 1, \"all count\": 1, \"active status count\": 1, \"resolved status count\": 0, \"pending status count\": 0, \"snoozed status count\": 0, \"all status count\": 1, \"last page\": true, \"total\": 1 }, \"payload\": [ { \"id\": 1501, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [\"vip\"], \"unread count\": 1, \"last activity at\": 1794471300 } ] } Remarks The same GET URL under /conversations can be called at most 10 times per minute from one IP address; above that the answer is 429 . See Rate limits. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . q query string Yes The text to look for in the messages. Example: where is my order . page query integer No The page number, 25 conversations per page. Default: 1 . status query string No Only conversations with this status — the values of List Conversations. Every filter of that endpoint works here too. One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Snoozed; resolved — Resolved; !resolved — Bot and Manual ( open and pending ); all — Every status. assignee type query string No Only conversations with this kind of assignment. One of: me — Assigned to the caller; unassigned — Not assigned to an agent; assigned — Assigned to an agent; new — With unread incoming messages; all — Every conversation — the same as leaving it out. inbox id query integer No Only conversations of this inbox. team id query integer No Only conversations of this team. labels[] query array of string No Only conversations that have any of these labels (label titles). Repeat the parameter for each label. Responses 200 — The matching conversations on this page, and the counts. Content type: application/json Field Type Description meta object An object containing the counts of the conversations that match the filters. mine count , assigned count , unassigned count and all count are the counts for the assignee tabs, using every filter except assignee type . meta.mine count integer The number of conversations that have been assigned to the user (the caller). Uses every filter except assignee type . meta.new count integer The number of new conversations — conversations with unread incoming messages. meta.assigned count integer The number of conversations that have been assigned to an agent. Uses every filter except assignee type . meta.unassigned count integer The number of unassigned conversations (no agent). Uses every filter except assignee type . meta.all count integer The number of all the conversations. Uses every filter except assignee type . meta.active status count integer The number of active conversations — open (Bot) plus pending (Manual). meta.resolved status count integer The number of resolved conversations. meta.pending status count integer The number of pending (Manual) conversations. meta.snoozed status count integer The number of snoozed conversations. meta.all status count integer The number of conversations in every status. meta.last page boolean true on the last page. meta.total integer The number of items (conversations) on this page . payload array of object The matching conversations on this page. payload[].id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. payload[].uuid string A globally unique ID of the conversation. payload[].account id integer The numeric ID of the account. payload[].inbox id integer The numeric ID of the inbox. payload[].status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. payload[].priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. payload[].labels array of string Array of strings — the titles of the conversation's labels. payload[].custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). payload[].additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . payload[].meta object Object containing the conversation's metadata — its people and channel. payload[].meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].meta.sender.id integer The contact's numeric ID. payload[].meta.sender.name string The full name of the contact. payload[].meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . payload[].meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload[].meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload[].meta.sender.thumbnail string The avatar URL of the contact, or an empty string. payload[].meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload[].meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload[].meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload[].meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload[].meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload[].meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload[].meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload[].meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload[].meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload[].meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. payload[].meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload[].meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload[].meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. payload[].meta.sender.contact inboxes[].inbox.name string The name of the inbox. payload[].meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload[].meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. payload[].meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload[].meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload[].meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . payload[].meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. payload[].meta.assignee.id integer The agent's numeric ID (user ID). payload[].meta.assignee.account id integer The numeric ID of the account. payload[].meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. payload[].meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). payload[].meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). payload[].meta.assignee.email string The agent's login email address. payload[].meta.assignee.available name string The agent's display name. payload[].meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. payload[].meta.assignee.name string The agent's full name. payload[].meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). payload[].meta.assignee.operation bot boolean true for internal operation-bot users. payload[].meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). payload[].meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . payload[].meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. payload[].meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. payload[].meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. payload[].meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. payload[].meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. payload[].meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. payload[].meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). payload[].meta.team object Object containing the assigned team's data, if a team is assigned. payload[].meta.team.id integer The numeric ID of the team. payload[].meta.team.name string The name of the team. Stored in lower case, and unique in the account. payload[].meta.team.description string The description of the team. payload[].meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. payload[].meta.team.account id integer The numeric ID of the account. payload[].meta.team.members count integer The number of agents in the team. payload[].meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. payload[].meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). payload[].contact inbox object The contact's link (contact inbox) to the conversation's inbox. payload[].contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . payload[].messages array of object Array of message objects — the last message only. Use List of Messages for the history. payload[].messages[].id integer The numeric ID of the message. payload[].messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". payload[].messages[].inbox id integer The numeric ID of the inbox. payload[].messages[].conversation id integer The numeric ID of the conversation (its display ID). payload[].messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. payload[].messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. payload[].messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. payload[].messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. payload[].messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. payload[].messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . payload[].messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . payload[].messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. payload[].messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. payload[].messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].messages[].sender.name string The sender's name. payload[].messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].messages[].sender.available name string An agent's display name. payload[].messages[].sender.email string \\ null The sender's email address. payload[].messages[].sender.phone number string \\ null The sender's phone number (a contact's). payload[].messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].messages[].sender.avatar url string An agent's avatar image URL. payload[].messages[].sender.logo user url string \\ null An agent's logo URL, or null . payload[].messages[].sender.thumbnail string The sender's avatar URL, or an empty string. payload[].messages[].sender.availability status string An agent's live presence ( online , busy or offline ). payload[].messages[].sender.blocked boolean Whether a contact is blocked. payload[].messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). payload[].messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . payload[].messages[].sender id integer \\ null In a conversation's messages , the sender's ID. payload[].messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. payload[].messages[].attachments[].id integer The numeric ID of the file (attachment). payload[].messages[].attachments[].message id integer The numeric ID of the message the file belongs to. payload[].messages[].attachments[].account id integer The numeric ID of the account. payload[].messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. payload[].messages[].attachments[].filename string The name of the file. payload[].messages[].attachments[].extension string \\ null The file extension, when known. payload[].messages[].attachments[].data url string The URL of the file. payload[].messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). payload[].messages[].attachments[].file size integer The file size, in bytes. payload[].messages[].ticket id integer The ticket the message belongs to. payload[].messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . payload[].messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. payload[].messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. payload[].last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). payload[].last non activity message.id integer The numeric ID of the message. payload[].last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". payload[].last non activity message.inbox id integer The numeric ID of the inbox. payload[].last non activity message.conversation id integer The numeric ID of the conversation (its display ID). payload[].last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. payload[].last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. payload[].last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. payload[].last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. payload[].last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. payload[].last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . payload[].last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . payload[].last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. payload[].last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. payload[].last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].last non activity message.sender.name string The sender's name. payload[].last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].last non activity message.sender.available name string An agent's display name. payload[].last non activity message.sender.email string \\ null The sender's email address. payload[].last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). payload[].last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].last non activity message.sender.avatar url string An agent's avatar image URL. payload[].last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . payload[].last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. payload[].last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). payload[].last non activity message.sender.blocked boolean Whether a contact is blocked. payload[].last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). payload[].last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . payload[].last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. payload[].last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. payload[].last non activity message.attachments[].id integer The numeric ID of the file (attachment). payload[].last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. payload[].last non activity message.attachments[].account id integer The numeric ID of the account. payload[].last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. payload[].last non activity message.attachments[].filename string The name of the file. payload[].last non activity message.attachments[].extension string \\ null The file extension, when known. payload[].last non activity message.attachments[].data url string The URL of the file. payload[].last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). payload[].last non activity message.attachments[].file size integer The file size, in bytes. payload[].last non activity message.ticket id integer The ticket the message belongs to. payload[].last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . payload[].last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. payload[].last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. payload[].can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). payload[].muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. payload[].snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . payload[].unread count integer The number of unread messages — incoming messages the agents have not read. payload[].has incoming messages boolean Whether the contact has written at least one public message. payload[].created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. payload[].timestamp integer The same as last activity at . payload[].last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). payload[].first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. payload[].waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . payload[].agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . payload[].sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. payload[].applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. payload[].sla events array of object The SLA events of the conversation (missed thresholds). payload[].sla events with distinct event type array of object The SLA events, one per event type. payload[].feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). payload[].campaign id integer \\ null The ID of the campaign that started the conversation, or null . payload[].pinned boolean Whether the caller pinned this conversation. payload[].file object {url, file type} when a file is attached to the conversation itself (rare). Example: One match q=where is my order found one conversation. It is shortened here; each item is a full conversation object. { \"meta\": { \"mine count\": 0, \"new count\": 1, \"assigned count\": 0, \"unassigned count\": 1, \"all count\": 1, \"active status count\": 1, \"resolved status count\": 0, \"pending status count\": 0, \"snoozed status count\": 0, \"all status count\": 1, \"last page\": true, \"total\": 1 }, \"payload\": [ { \"id\": 1501, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [ \"vip\" ], \"unread count\": 1, \"last activity at\": 1794471300 } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 429 — The same URL was requested more than 10 times in a minute from this IP address. See Rate limits."
    },
    {
      "id": "online-api/filter-conversations",
      "title": "Filter Conversations",
      "url": "https://docs.99digital.co.il/online-api/conversations/filter-conversations",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/filter-conversations.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Advanced filtering with conditions, in the same format as Filter Contacts; results are sorted by last activity, 25 per page.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/filter",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/filter"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: One condition",
        "Example: Several conditions",
        "Example: Recent activity",
        "Responses",
        "200 — The matching conversations on this page, and the counts.",
        "Example: Several conditions",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "422 — A queryoperator is not and, or or null.",
        "Example"
      ],
      "keywords": [
        "filterConversations",
        "accounts",
        "conversations",
        "filter",
        "account_id",
        "page",
        "assignee_type",
        "payload",
        "attribute_key",
        "filter_operator",
        "values",
        "query_operator",
        "meta",
        "mine_count",
        "new_count",
        "assigned_count",
        "unassigned_count",
        "all_count",
        "last_page",
        "id",
        "uuid",
        "inbox_id",
        "status",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "conversation_id",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/filter Advanced filtering with conditions, in the same format as Filter Contacts; results are sorted by last activity, 25 per page. Send the conditions in payload . Each condition compares one attribute with values , and is joined to the next condition by its query operator ( and or or ); the last condition has query operator: null . The format is the same as in Filter Contacts. Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/filter Authorization User token. Only visible conversations are returned. Permissions: User token: any agent of the account — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. Query parameters Name Type Required Description page integer No Page number (25 per page). assignee type string No me (assigned to the caller), unassigned , assigned , new (with unread incoming messages). Body parameters (JSON) Name Type Required Description payload[].attribute key string Yes Attribute (table below) or the key of a conversation custom attribute. payload[].filter operator string Yes Operator (table below). payload[].values array Yes Values. equal to on status , inbox id and labels accepts several values (match any). Send [] for is present / is not present . payload[].query operator string Yes and / or to the next condition; null on the last one. Any other value returns 422 . Filterable attributes attribute key Operators Values status equal to , not equal to open , pending , snoozed , resolved , !resolved (= open , pending , snoozed ), all assignee id , contact id , inbox id , team id , display id , campaign id equal to , not equal to , is present , is not present IDs labels equal to (has any), not equal to (has none), is present , is not present Label titles browser language , conversation language , country code , referer , mail subject equal to , not equal to , contains , does not contain Text (stored in additional attributes ) created at , last activity at is greater than , is less than , days before YYYY-MM-DD , or a number of days for days before attribute key can also be the key of a conversation custom attribute defined in Settings → Custom attributes. An unsupported operator or an unknown custom attribute key makes that condition be silently ignored (for example contains on labels , or a custom attribute that is not defined in Settings → Custom attributes), so the filter returns more conversations than you expect. Check your conditions against the table. Example request : Bot or Manual conversations in inbox 31 that have the label vip . curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/filter?page=1' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"payload\": [ { \"attribute key\": \"status\", \"filter operator\": \"equal to\", \"values\": [\"open\", \"pending\"], \"query operator\": \"and\" }, { \"attribute key\": \"inbox id\", \"filter operator\": \"equal to\", \"values\": [31], \"query operator\": \"and\" }, { \"attribute key\": \"labels\", \"filter operator\": \"equal to\", \"values\": [\"vip\"], \"query operator\": null } ] }' Example response ( 200 OK ). The conversation is shortened to its id ; each item is a full conversation object. { \"meta\": { \"mine count\": 0, \"new count\": 1, \"assigned count\": 0, \"unassigned count\": 1, \"all count\": 1, \"last page\": true }, \"payload\": [ { \"id\": 1501 } ] } Error responses Status When Body 422 A query operator is not and , or or null . {\"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\"} Remarks Here !resolved means open , pending and snoozed . In the status parameter of List Conversations it means only open and pending . The status names differ from the dashboard: open is Bot and pending is Manual . See Statuses. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . page query integer No The page number, 25 conversations per page. Default: 1 . Example: 1 . assignee type query string No Only conversations with this kind of assignment. One of: me — Assigned to the caller; unassigned — Not assigned to an agent; assigned — Assigned to an agent; new — With unread incoming messages. Request body Content type: application/json (required) Field Type Required Description payload array of object Yes The conditions, in order. payload[].attribute key string Yes The attribute to compare — one from the table above, or the key of a conversation custom attribute. Example: status . payload[].filter operator string Yes The comparison. The table above lists the operators each attribute supports. One of: equal to — The attribute equals the value. On status , inbox id and labels , it matches any of several values (for labels : the conversation has any of the labels); not equal to — The attribute does not equal the value (for labels : the conversation has none of the labels); contains — The text attribute contains the value; does not contain — The text attribute does not contain the value; is present — The attribute has a value. Send values as [] ; is not present — The attribute is empty. Send values as [] ; is greater than — The date is after the value ( YYYY-MM-DD ); is less than — The date is before the value ( YYYY-MM-DD ); days before — The date is more than the given number of days ago. Example: equal to . payload[].values array of string \\ integer Yes The values to compare with: IDs, label titles, text, a date ( YYYY-MM-DD ) or a number of days. equal to on status , inbox id and labels matches any of several values. Send [] for is present and is not present . payload[].query operator string \\ null Yes How this condition joins the next one: and or or . null on the last condition. Any other value returns 422 . One of: and — Both this condition and the next one must match; or — This condition or the next one must match; null — This is the last condition. Example: One condition The Bot conversations. { \"payload\": [ { \"attribute key\": \"status\", \"filter operator\": \"equal to\", \"values\": [ \"open\" ], \"query operator\": null } ] } Example: Several conditions Bot or Manual conversations in inbox 31 that have the label vip. { \"payload\": [ { \"attribute key\": \"status\", \"filter operator\": \"equal to\", \"values\": [ \"open\", \"pending\" ], \"query operator\": \"and\" }, { \"attribute key\": \"inbox id\", \"filter operator\": \"equal to\", \"values\": [ 31 ], \"query operator\": \"and\" }, { \"attribute key\": \"labels\", \"filter operator\": \"equal to\", \"values\": [ \"vip\" ], \"query operator\": null } ] } Example: Recent activity Conversations with activity after a date. { \"payload\": [ { \"attribute key\": \"last activity at\", \"filter operator\": \"is greater than\", \"values\": [ \"2026-11-11\" ], \"query operator\": null } ] } Responses 200 — The matching conversations on this page, and the counts. Content type: application/json Field Type Description meta object Counts of the matching conversations. meta.mine count integer Assigned to the caller. meta.new count integer With unread incoming messages. meta.assigned count integer Assigned to an agent. meta.unassigned count integer Not assigned to an agent. meta.all count integer All the matching conversations. meta.last page boolean true on the last page. payload array of object The matching conversations on this page. payload[].id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. payload[].uuid string A globally unique ID of the conversation. payload[].account id integer The numeric ID of the account. payload[].inbox id integer The numeric ID of the inbox. payload[].status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. payload[].priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. payload[].labels array of string Array of strings — the titles of the conversation's labels. payload[].custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). payload[].additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . payload[].meta object Object containing the conversation's metadata — its people and channel. payload[].meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].meta.sender.id integer The contact's numeric ID. payload[].meta.sender.name string The full name of the contact. payload[].meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . payload[].meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload[].meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload[].meta.sender.thumbnail string The avatar URL of the contact, or an empty string. payload[].meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload[].meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload[].meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload[].meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload[].meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload[].meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload[].meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload[].meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload[].meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload[].meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. payload[].meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload[].meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload[].meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. payload[].meta.sender.contact inboxes[].inbox.name string The name of the inbox. payload[].meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload[].meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. payload[].meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload[].meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload[].meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . payload[].meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. payload[].meta.assignee.id integer The agent's numeric ID (user ID). payload[].meta.assignee.account id integer The numeric ID of the account. payload[].meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. payload[].meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). payload[].meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). payload[].meta.assignee.email string The agent's login email address. payload[].meta.assignee.available name string The agent's display name. payload[].meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. payload[].meta.assignee.name string The agent's full name. payload[].meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). payload[].meta.assignee.operation bot boolean true for internal operation-bot users. payload[].meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). payload[].meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . payload[].meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. payload[].meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. payload[].meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. payload[].meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. payload[].meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. payload[].meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. payload[].meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). payload[].meta.team object Object containing the assigned team's data, if a team is assigned. payload[].meta.team.id integer The numeric ID of the team. payload[].meta.team.name string The name of the team. Stored in lower case, and unique in the account. payload[].meta.team.description string The description of the team. payload[].meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. payload[].meta.team.account id integer The numeric ID of the account. payload[].meta.team.members count integer The number of agents in the team. payload[].meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. payload[].meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). payload[].contact inbox object The contact's link (contact inbox) to the conversation's inbox. payload[].contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . payload[].messages array of object Array of message objects — the last message only. Use List of Messages for the history. payload[].messages[].id integer The numeric ID of the message. payload[].messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". payload[].messages[].inbox id integer The numeric ID of the inbox. payload[].messages[].conversation id integer The numeric ID of the conversation (its display ID). payload[].messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. payload[].messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. payload[].messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. payload[].messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. payload[].messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. payload[].messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . payload[].messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . payload[].messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. payload[].messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. payload[].messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].messages[].sender.name string The sender's name. payload[].messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].messages[].sender.available name string An agent's display name. payload[].messages[].sender.email string \\ null The sender's email address. payload[].messages[].sender.phone number string \\ null The sender's phone number (a contact's). payload[].messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].messages[].sender.avatar url string An agent's avatar image URL. payload[].messages[].sender.logo user url string \\ null An agent's logo URL, or null . payload[].messages[].sender.thumbnail string The sender's avatar URL, or an empty string. payload[].messages[].sender.availability status string An agent's live presence ( online , busy or offline ). payload[].messages[].sender.blocked boolean Whether a contact is blocked. payload[].messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). payload[].messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . payload[].messages[].sender id integer \\ null In a conversation's messages , the sender's ID. payload[].messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. payload[].messages[].attachments[].id integer The numeric ID of the file (attachment). payload[].messages[].attachments[].message id integer The numeric ID of the message the file belongs to. payload[].messages[].attachments[].account id integer The numeric ID of the account. payload[].messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. payload[].messages[].attachments[].filename string The name of the file. payload[].messages[].attachments[].extension string \\ null The file extension, when known. payload[].messages[].attachments[].data url string The URL of the file. payload[].messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). payload[].messages[].attachments[].file size integer The file size, in bytes. payload[].messages[].ticket id integer The ticket the message belongs to. payload[].messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . payload[].messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. payload[].messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. payload[].last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). payload[].last non activity message.id integer The numeric ID of the message. payload[].last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". payload[].last non activity message.inbox id integer The numeric ID of the inbox. payload[].last non activity message.conversation id integer The numeric ID of the conversation (its display ID). payload[].last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. payload[].last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. payload[].last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. payload[].last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. payload[].last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. payload[].last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . payload[].last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . payload[].last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. payload[].last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. payload[].last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].last non activity message.sender.name string The sender's name. payload[].last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].last non activity message.sender.available name string An agent's display name. payload[].last non activity message.sender.email string \\ null The sender's email address. payload[].last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). payload[].last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].last non activity message.sender.avatar url string An agent's avatar image URL. payload[].last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . payload[].last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. payload[].last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). payload[].last non activity message.sender.blocked boolean Whether a contact is blocked. payload[].last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). payload[].last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . payload[].last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. payload[].last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. payload[].last non activity message.attachments[].id integer The numeric ID of the file (attachment). payload[].last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. payload[].last non activity message.attachments[].account id integer The numeric ID of the account. payload[].last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. payload[].last non activity message.attachments[].filename string The name of the file. payload[].last non activity message.attachments[].extension string \\ null The file extension, when known. payload[].last non activity message.attachments[].data url string The URL of the file. payload[].last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). payload[].last non activity message.attachments[].file size integer The file size, in bytes. payload[].last non activity message.ticket id integer The ticket the message belongs to. payload[].last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . payload[].last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. payload[].last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. payload[].can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). payload[].muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. payload[].snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . payload[].unread count integer The number of unread messages — incoming messages the agents have not read. payload[].has incoming messages boolean Whether the contact has written at least one public message. payload[].created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. payload[].timestamp integer The same as last activity at . payload[].last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). payload[].first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. payload[].waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . payload[].agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . payload[].sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. payload[].applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. payload[].sla events array of object The SLA events of the conversation (missed thresholds). payload[].sla events with distinct event type array of object The SLA events, one per event type. payload[].feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). payload[].campaign id integer \\ null The ID of the campaign that started the conversation, or null . payload[].pinned boolean Whether the caller pinned this conversation. payload[].file object {url, file type} when a file is attached to the conversation itself (rare). Example: Several conditions The answer to the \"Several conditions\" request. The conversation is shortened to its id ; each item is a full conversation object. { \"meta\": { \"mine count\": 0, \"new count\": 1, \"assigned count\": 0, \"unassigned count\": 1, \"all count\": 1, \"last page\": true }, \"payload\": [ { \"id\": 1501 } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 422 — A query operator is not and , or or null . Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Query operator must be either \\\"AND\\\" or \\\"OR\\\".\" }"
    },
    {
      "id": "online-api/add-conversation",
      "title": "Add Conversation",
      "url": "https://docs.99digital.co.il/online-api/conversations/add-conversation",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/add-conversation.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Create a new conversation in an account.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: With sourceid",
        "Example: With contactid",
        "Example: One-shot by phone",
        "Responses",
        "200 — The conversation — the new one, or the existing one that was reused. messages holds the last message.",
        "Example: With contactid",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The inboxid, contactid or sourceid was not found in this account.",
        "Example",
        "422 — The conversation could not be created.",
        "Example: Source ID taken",
        "Example: Private notes only"
      ],
      "keywords": [
        "addConversation",
        "accounts",
        "conversations",
        "account_id",
        "inbox_id",
        "source_id",
        "contact_id",
        "contact",
        "phone_number",
        "phone",
        "email",
        "id",
        "name",
        "is_new_conversation",
        "message",
        "content",
        "private",
        "content_attributes",
        "status",
        "assignee_id",
        "team_id",
        "snoozed_until",
        "custom_attributes",
        "additional_attributes",
        "campaign_id",
        "uuid",
        "priority",
        "labels",
        "meta",
        "sender",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "conversation_id",
        "message_type",
        "content_type",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "pinned",
        "file",
        "error",
        "attributes"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations Create a new conversation in an account. Creating a conversation requires a source ID (or a contact — see below) in order to tie the session and the messages together. The source ID could be the phone number in case of a WhatsApp session, an identifier hash in case of a web widget, and the email address in case of an email channel. There are three ways to call this endpoint — one tab each under Request → Body: With source id — the contact is already linked to the inbox. The source ID comes from Create Contact (with inbox id ) or Create Contact Inbox. With contact id — the contact's link to the inbox is created if it is missing. You can also set the initial status, the assignee, the team and attributes. One-shot, with contact — the contact is found by phone number, email or contact.id , and created if it is missing; the conversation is reused or created; then message is sent. This is the mode used for outbound WhatsApp messages. On WhatsApp inboxes, send an approved template in message.content attributes.template info — see Create a Message. message is sent as an outgoing message from the caller, and accepts every field of Create a Message: attachments, private , content attributes.template info , and so on. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations Method JSON via POST Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token: the caller must be allowed to view the inbox. New rules system: Inbox new message for the inbox. Sending message also needs the permissions of Create a Message — Inbox reply for a reply. Agent-bot token: allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Request body Parameters: Parameter type Description Required inbox id integer ID of the inbox in which the conversation is created Yes source id string Conversation source ID: the source ID of the contact's existing link to the inbox (contact inbox) Conditional — required unless you send contact id or contact status string Conversation status. Enum: open (Bot, the default), pending (Manual), snoozed , resolved No contact id integer Contact ID for which the conversation is created. The contact's link to the inbox is created automatically if it is missing Conditional contact object One-shot mode : find or create the contact and the conversation by contact.phone number (or contact.phone , E.164), contact.email or contact.id , and send the message. contact.name names a new contact (default: the phone number or email) Conditional is new conversation boolean One-shot mode only: always open a new conversation instead of reusing the contact's last conversation in the inbox No message object The first message ( message.content is its text), sent as an outgoing message from the caller. Accepts every field of Create a Message No assignee id integer Agent ID for assigning the conversation to an agent No team id integer Team ID for assigning the conversation to a team No snoozed until string With status: snoozed : when the conversation reopens No custom attributes object The object to save custom attributes for the conversation; accepts custom attribute keys and values No additional attributes object Lets you specify attributes like browser information No campaign id integer The campaign that started the conversation No If the contact's link to the inbox already has a conversation, the call does not create a new one. It returns the latest conversation of that contact inbox — in any status, even resolved — and adds message to it. status , assignee id and the other conversation fields are then ignored. In WhatsApp API inboxes, where contact id is required, the contact's existing conversation in the inbox is always reused. See Conversation Basics. Request body example: { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox id\": 31, \"contact id\": 802, \"additional attributes\": {}, \"custom attributes\": { \"attribute key\": \"attribute value\" }, \"status\": \"open\", \"assignee id\": 51, \"team id\": 7 } Response: The response is shortened here; the full conversation object, with the last message in messages , is under Responses below. { \"meta\": { \"sender\": { \"additional attributes\": {}, \"availability status\": \"offline\", \"email\": \"avi.levi@example.com\", \"id\": 802, \"name\": \"Avi Levi\", \"phone number\": \"+972521234567\", \"identifier\": \"crm-802\", \"thumbnail\": \"\", \"custom attributes\": { \"attribute key\": \"attribute value\" }, \"last activity at\": 1794472200, \"blocked\": false, \"created at\": 1794470600 }, \"assignee\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"name\": \"Jane Agent\", \"role\": \"agent\", \"see all conversations\": true, \"thumbnail\": \"\" }, \"channel\": \"Channel::Api\", \"hmac verified\": false }, \"id\": 1504, \"account id\": 12, \"additional attributes\": {}, \"can reply\": true, \"custom attributes\": { \"attribute key\": \"attribute value\" }, \"inbox id\": 31, \"muted\": false, \"status\": \"open\", \"created at\": 1794472200 } Response-Explain: Parameter Description meta Object containing conversation-related data meta -> sender Object containing the contact data meta -> sender -> id Numeric ID of the contact meta -> sender -> name Contact name meta -> sender -> phone number Contact phone number (E.164) meta -> sender -> email Contact email address meta -> sender -> availability status Availability status of the contact. Enum: online , offline meta -> sender -> identifier A unique identifier for the contact in an external system meta -> sender -> thumbnail Avatar URL of the contact meta -> sender -> custom attributes Object containing custom attributes related to the contact meta -> sender -> additional attributes Object containing additional attributes related to the contact meta -> sender -> last activity at Timestamp of the last activity (Unix time) meta -> sender -> blocked Whether the contact is blocked meta -> sender -> created at Timestamp of the contact's creation time (Unix time) meta -> channel Channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email meta -> assignee Object containing the assignee's details meta -> assignee -> id Assignee ID meta -> assignee -> account id Numeric ID of the account meta -> assignee -> availability status The availability status of the assignee. Enum: online , busy , offline meta -> assignee -> auto offline Indicates whether the availability status of the agent is configured to go offline automatically when away meta -> assignee -> confirmed Indicates whether the agent has been validated by clicking on the invitation email they received meta -> assignee -> email Agent email address meta -> assignee -> available name Display name of the agent meta -> assignee -> name Agent full name meta -> assignee -> role Assignee role: the custom role's name (new rules system), or agent / administrator (legacy roles) meta -> assignee -> see all conversations Indicates whether the assignee can see all conversations in the account meta -> assignee -> thumbnail Assignee avatar URL meta -> hmac verified Whether the contact's identity was HMAC-verified (website widget) id Numeric ID of the conversation (its display ID, used in every path) account id Numeric ID of the account inbox id Numeric ID of the inbox status The status of the conversation. Enum: open (Bot), pending (Manual), snoozed , resolved created at The time at which the conversation was created (Unix time) muted Whether the conversation is currently muted. A muted conversation does not notify agents can reply Whether the conversation is currently within the messaging window — false when the channel's reply window is closed (for example WhatsApp's 24-hour window) custom attributes Object containing custom attributes related to the conversation additional attributes Object containing additional attributes related to the conversation Error responses Status When Body 404 inbox id , contact id or source id not found. {\"error\": \"Resource could not be found\"} 403 The role lacks Inbox new message / Inbox reply for the inbox. {\"error\": \"You are not authorized to do this action\"} 422 source id already used by another contact inbox. {\"error\": \"source id should be unique\"} 422 Only private notes are allowed in the inbox (incoming-calls API inbox). {\"message\": \"Only private notes can be added in an incoming calls inbox\", \"attributes\": [\"base\"]} Remarks In one-shot mode, an unassigned conversation is assigned to the caller, unless the account uses queue management or is new conversation is true . In one-shot mode, if the contact is blocked, the message is silently dropped. The status names differ from the dashboard: open (the default) is Bot and pending is Manual . See Statuses. A new conversation fires the conversation created webhook event. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description inbox id integer Yes The inbox to create the conversation in. Example: 31 . source id string No The source ID of the contact's existing link to the inbox (its contact inbox), which ties the conversation and its messages to the contact on that channel: the phone number in a WhatsApp inbox, the email address in an email inbox, or a generated identifier in API and website inboxes. Required unless you send contact id or contact . Example: 5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b . contact id integer No The contact. Its link to the inbox is created if it is missing. Required unless you send source id or contact . Example: 802 . contact object No One-shot mode: find the contact — or create it — by phone number, email or ID, then find or create the conversation and send message . Required unless you send source id or contact id . contact.phone number string No The contact's phone number in E.164 format. You can send it as phone instead. Send phone number , email or id . Example: +972531234567 . contact.phone string No The same as phone number . contact.email string No The contact's email. contact.id integer No The ID of an existing contact. contact.name string No The name of a new contact. Defaults to the phone number or email. Example: Noa Mizrahi . is new conversation boolean No One-shot mode only: always open a new conversation, instead of reusing the contact's last conversation in the inbox. message object No The first message, sent as an outgoing message from the caller. Accepts every field of Create a Message. message.content string No The message text. Example: We received your request. . message.private boolean No true to add a private note instead of a reply. message.content attributes object No Extra data for the message — for example template info , the approved WhatsApp template to send. See Create a Message. status string No The initial status. Ignored when an existing conversation is reused. One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Snoozed until snoozed until ; resolved — Resolved. Default: open . assignee id integer No The agent to assign the conversation to. Example: 51 . team id integer No The team to assign the conversation to. snoozed until string No With status snoozed , when the conversation reopens. custom attributes object No The conversation's custom attributes, as key-value pairs. additional attributes object No Extra data to store on the conversation, such as browser information or the source of the conversation, as key-value pairs. campaign id integer No The campaign that started the conversation. Example: With source id The contact is already linked to the inbox. { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\", \"inbox id\": 31, \"message\": { \"content\": \"Hello from the API.\" } } Example: With contact id A conversation in Manual status, assigned to an agent, with attributes. { \"inbox id\": 31, \"contact id\": 802, \"status\": \"pending\", \"assignee id\": 51, \"custom attributes\": { \"order id\": \"A-1002\" }, \"additional attributes\": { \"source\": \"crm\" }, \"message\": { \"content\": \"We received your request.\" } } Example: One-shot by phone Find or create the contact by phone number, then send the message. { \"inbox id\": 31, \"contact\": { \"phone number\": \"+972531234567\", \"name\": \"Noa Mizrahi\" }, \"message\": { \"content\": \"Hi Noa, thanks for reaching out. How can we help?\" } } Responses 200 — The conversation — the new one, or the existing one that was reused. messages holds the last message. Content type: application/json Field Type Description id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. uuid string A globally unique ID of the conversation. account id integer The numeric ID of the account. inbox id integer The numeric ID of the inbox. status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. labels array of string Array of strings — the titles of the conversation's labels. custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . meta object Object containing the conversation's metadata — its people and channel. meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.id integer The contact's numeric ID. meta.sender.name string The full name of the contact. meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . meta.sender.thumbnail string The avatar URL of the contact, or an empty string. meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. meta.sender.contact inboxes[].inbox.name string The name of the inbox. meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. meta.assignee.id integer The agent's numeric ID (user ID). meta.assignee.account id integer The numeric ID of the account. meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). meta.assignee.email string The agent's login email address. meta.assignee.available name string The agent's display name. meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. meta.assignee.name string The agent's full name. meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). meta.assignee.operation bot boolean true for internal operation-bot users. meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). meta.team object Object containing the assigned team's data, if a team is assigned. meta.team.id integer The numeric ID of the team. meta.team.name string The name of the team. Stored in lower case, and unique in the account. meta.team.description string The description of the team. meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. meta.team.account id integer The numeric ID of the account. meta.team.members count integer The number of agents in the team. meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). contact inbox object The contact's link (contact inbox) to the conversation's inbox. contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . messages array of object Array of message objects — the last message only. Use List of Messages for the history. messages[].id integer The numeric ID of the message. messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". messages[].inbox id integer The numeric ID of the inbox. messages[].conversation id integer The numeric ID of the conversation (its display ID). messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. messages[].sender.name string The sender's name. messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. messages[].sender.available name string An agent's display name. messages[].sender.email string \\ null The sender's email address. messages[].sender.phone number string \\ null The sender's phone number (a contact's). messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). messages[].sender.avatar url string An agent's avatar image URL. messages[].sender.logo user url string \\ null An agent's logo URL, or null . messages[].sender.thumbnail string The sender's avatar URL, or an empty string. messages[].sender.availability status string An agent's live presence ( online , busy or offline ). messages[].sender.blocked boolean Whether a contact is blocked. messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . messages[].sender id integer \\ null In a conversation's messages , the sender's ID. messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. messages[].attachments[].id integer The numeric ID of the file (attachment). messages[].attachments[].message id integer The numeric ID of the message the file belongs to. messages[].attachments[].account id integer The numeric ID of the account. messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. messages[].attachments[].filename string The name of the file. messages[].attachments[].extension string \\ null The file extension, when known. messages[].attachments[].data url string The URL of the file. messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). messages[].attachments[].file size integer The file size, in bytes. messages[].ticket id integer The ticket the message belongs to. messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). last non activity message.id integer The numeric ID of the message. last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". last non activity message.inbox id integer The numeric ID of the inbox. last non activity message.conversation id integer The numeric ID of the conversation (its display ID). last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. last non activity message.sender.name string The sender's name. last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. last non activity message.sender.available name string An agent's display name. last non activity message.sender.email string \\ null The sender's email address. last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). last non activity message.sender.avatar url string An agent's avatar image URL. last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). last non activity message.sender.blocked boolean Whether a contact is blocked. last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. last non activity message.attachments[].id integer The numeric ID of the file (attachment). last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. last non activity message.attachments[].account id integer The numeric ID of the account. last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. last non activity message.attachments[].filename string The name of the file. last non activity message.attachments[].extension string \\ null The file extension, when known. last non activity message.attachments[].data url string The URL of the file. last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). last non activity message.attachments[].file size integer The file size, in bytes. last non activity message.ticket id integer The ticket the message belongs to. last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . unread count integer The number of unread messages — incoming messages the agents have not read. has incoming messages boolean Whether the contact has written at least one public message. created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. timestamp integer The same as last activity at . last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. sla events array of object The SLA events of the conversation (missed thresholds). sla events with distinct event type array of object The SLA events, one per event type. feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). campaign id integer \\ null The ID of the campaign that started the conversation, or null . pinned boolean Whether the caller pinned this conversation. file object {url, file type} when a file is attached to the conversation itself (rare). Example: With contact id The answer to the \"With contact id\" request: a new conversation in Manual status, assigned to Jane Agent. { \"meta\": { \"sender\": { \"additional attributes\": {}, \"availability status\": \"offline\", \"email\": null, \"id\": 802, \"name\": \"Avi Levi\", \"phone number\": \"+972521234567\", \"identifier\": null, \"thumbnail\": \"\", \"custom attributes\": {}, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470600 }, \"channel\": \"Channel::Api\", \"assignee\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"custom attributes\": {}, \"name\": \"Jane Agent\", \"role\": \"General Manager\", \"operation bot\": false, \"see all conversations\": true, \"assignable to inbox\": [ 31, 32, 33 ], \"new role\": \"General Manager\", \"thumbnail\": \"\", \"two factor type\": \"sms\", \"phone1\": \"+972541234567\", \"email1\": null, \"create time\": 1790000000 }, \"hmac verified\": false }, \"contact inbox\": { \"wa id\": null }, \"id\": 1504, \"messages\": [ { \"id\": 40121, \"content\": \"We received your request.\", \"inbox id\": 31, \"conversation id\": 1504, \"message type\": 1, \"content type\": \"text\", \"content attributes\": {}, \"private\": false, \"status\": \"sent\", \"source id\": null, \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"avatar url\": \"\", \"type\": \"user\", \"availability status\": \"online\", \"thumbnail\": \"\" }, \"ticket id\": 904, \"created at\": 1794472200, \"created at exact\": \"2026-11-12T08:30:00.000Z\" } ], \"account id\": 12, \"uuid\": \"3c9e7b2a-5d1f-4a8e-b6c4-2f0e9d8c7b6a\", \"additional attributes\": { \"source\": \"crm\" }, \"agent last seen at\": 0, \"assignee last seen at\": 0, \"can reply\": true, \"last incoming message time\": null, \"contact last seen at\": 0, \"custom attributes\": { \"order id\": \"A-1002\" }, \"inbox id\": 31, \"labels\": [], \"muted\": false, \"snoozed until\": null, \"status\": \"pending\", \"created at\": 1794472200, \"timestamp\": 1794472200, \"first reply created at\": 1794472200, \"unread count\": 0, \"has incoming messages\": false, \"last non activity message\": { \"id\": 40121, \"content\": \"We received your request.\", \"inbox id\": 31, \"conversation id\": 1504, \"message type\": 1, \"content type\": \"text\", \"content attributes\": {}, \"private\": false, \"status\": \"sent\", \"source id\": null, \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"avatar url\": \"\", \"type\": \"user\", \"availability status\": \"online\", \"thumbnail\": \"\" }, \"ticket id\": 904, \"created at\": 1794472200, \"created at exact\": \"2026-11-12T08:30:00.000Z\" }, \"last activity at\": 1794472200, \"priority\": null, \"waiting since\": 0, \"sla policy id\": null, \"feature enabled sla\": true, \"applied sla\": null, \"sla events\": [], \"sla events with distinct event type\": [], \"campaign id\": null, \"pinned\": false } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The inbox id , contact id or source id was not found in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — The conversation could not be created. Content type: application/json Field Type Description error string Returned when the source id is taken. message string What failed, in the account's language. attributes array of string The fields that failed. Example: Source ID taken The source id is already used by another contact inbox. { \"error\": \"source id should be unique\" } Example: Private notes only The inbox accepts only private notes (an incoming-calls API inbox). { \"message\": \"Only private notes can be added in an incoming calls inbox\", \"attributes\": [ \"base\" ] }"
    },
    {
      "id": "online-api/find-conversation-by-phone",
      "title": "Find or Create by Phone",
      "url": "https://docs.99digital.co.il/online-api/conversations/find-conversation-by-phone",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/find-conversation-by-phone.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Looks up a contact by its exact E.164 phone number and returns its conversation in the given inbox, creating whatever is missing.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/by_phone_number",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/by_phone_number"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Existing contact",
        "Example: New contact",
        "Responses",
        "200 — The contact and its conversation in the inbox.",
        "Example: Existing contact",
        "Example: New contact",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The inbox was not found in this account.",
        "Example",
        "422 — The contact could not be created — for example, the phone number was sent in a local format and its normalized form already belongs to a contact.",
        "Example"
      ],
      "keywords": [
        "findConversationByPhone",
        "accounts",
        "conversations",
        "by_phone_number",
        "account_id",
        "inbox_id",
        "phone_number",
        "wa_id",
        "name",
        "email",
        "identifier",
        "additional_attributes",
        "custom_attributes",
        "avatar_url",
        "contact_id",
        "conversation_id",
        "error",
        "message",
        "attributes"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/by phone number Looks up a contact by its exact E.164 phone number and returns its conversation in the given inbox, creating whatever is missing. Missing pieces are created: the contact (with the given attributes), the contact inbox (the contact's link to the inbox) and the conversation. No message is sent — to send one, use Create a Message with the returned conversation id , or call Add Conversation in one-shot mode instead. Built for WhatsApp integrations: wa id identifies WhatsApp users who hide their phone number. Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/by phone number Authorization User token. The caller must be allowed to view the inbox. Permissions: Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. Body parameters (JSON) Name Type Required Description inbox id integer Yes Inbox ID. phone number string Conditional Phone in exact E.164 ( +972... ). Local formats like 0501234567 are not matched and fail with 422 if the normalised number already exists. Required unless wa id is sent. wa id string No WhatsApp ID. Without phone number , the contact is found or created by wa id . With both, the wa id is saved on the contact inbox (WhatsApp v2 inboxes). name , email , identifier , additional attributes , custom attributes , avatar url No Attributes for a new contact (ignored when the contact exists). Example: existing contact curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/by phone number' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"inbox id\": 31, \"phone number\": \"+972501234567\" }' Response ( 200 OK ). conversation id is the display ID (see Conversation Basics). { \"contact id\": 801, \"conversation id\": 1501 } Example: new contact curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/by phone number' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"inbox id\": 32, \"phone number\": \"+972547654321\", \"name\": \"Yossi Ben David\" }' Response ( 200 OK ): { \"contact id\": 804, \"conversation id\": 1503 } Error responses Status When Body 422 The contact could not be created — for example, the phone number was sent in a local format and the normalised number already belongs to a contact. {\"message\": \"Phone number has already been taken\", \"attributes\": [\"phone number\"]} 404 The inbox was not found. {\"error\": \"Resource could not be found\"} Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description inbox id integer Yes The inbox of the conversation. Example: 31 . phone number string No The contact's phone number in exact E.164 format. Required unless you send wa id . Example: +972501234567 . wa id string No The contact's WhatsApp ID. Without phone number , the contact is found or created by wa id . With both, the wa id is saved on the contact's link to the inbox (WhatsApp v2 inboxes). name string No The name of a new contact. email string No The email of a new contact. identifier string No Your own external ID for a new contact. additional attributes object No The additional attributes of a new contact, such as company name or city . custom attributes object No The custom attributes of a new contact. avatar url string No The URL of a new contact's avatar image. Example: Existing contact The contact and its conversation already exist. { \"inbox id\": 31, \"phone number\": \"+972501234567\" } Example: New contact No contact has this phone number, so the contact, its link to the inbox and the conversation are created. { \"inbox id\": 32, \"phone number\": \"+972547654321\", \"name\": \"Yossi Ben David\" } Responses 200 — The contact and its conversation in the inbox. Content type: application/json Field Type Description contact id integer The contact ID. conversation id integer The conversation's display ID. Example: Existing contact The answer to the \"Existing contact\" request. { \"contact id\": 801, \"conversation id\": 1501 } Example: New contact The answer to the \"New contact\" request. { \"contact id\": 804, \"conversation id\": 1503 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The inbox was not found in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — The contact could not be created — for example, the phone number was sent in a local format and its normalized form already belongs to a contact. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example { \"message\": \"Phone number has already been taken\", \"attributes\": [ \"phone number\" ] }"
    },
    {
      "id": "online-api/get-conversation",
      "title": "Get Conversation",
      "url": "https://docs.99digital.co.il/online-api/conversations/get-conversation",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/get-conversation.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Retrieve details regarding a conversation by ID.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The conversation.",
        "Example: Conversation",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "429 — The same URL was requested more than 10 times in a minute from this IP address. See Rate limits."
      ],
      "keywords": [
        "getConversation",
        "accounts",
        "conversations",
        "account_id",
        "conversation_id",
        "id",
        "uuid",
        "inbox_id",
        "status",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "meta",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id} Retrieve details regarding a conversation by ID. The response is the full conversation object: the contact, the assignee and team, the status, labels, attributes, and the last message. To read the message history, use List of Messages. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id} Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token: any agent who may see the conversation — see Who can see a conversation. Otherwise the answer is 403 . Agent-bot token: allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes conversation id The numeric ID of the conversation: its display ID, the id in conversation responses and the number in the dashboard URL Yes Response: { \"meta\": { \"sender\": { \"additional attributes\": {}, \"availability status\": \"offline\", \"email\": null, \"id\": 802, \"name\": \"Avi Levi\", \"phone number\": \"+972521234567\", \"identifier\": null, \"thumbnail\": \"\", \"custom attributes\": {}, \"last activity at\": 1794472200, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470600 }, \"channel\": \"Channel::Api\", \"team\": { \"id\": 7, \"name\": \"support\", \"description\": \"First-line support\", \"allow auto assign\": true, \"account id\": 12, \"is member\": true }, \"assignee\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"name\": \"Jane Agent\", \"role\": \"General Manager\", \"see all conversations\": true, \"thumbnail\": \"\" }, \"hmac verified\": false }, \"contact inbox\": { \"wa id\": null }, \"id\": 1504, \"uuid\": \"3c9e7b2a-5d1f-4a8e-b6c4-2f0e9d8c7b6a\", \"messages\": [ { \"id\": 40121, \"content\": \"We received your request.\", \"inbox id\": 31, \"conversation id\": 1504, \"message type\": 1, \"private\": false, \"status\": \"sent\", \"source id\": null, \"content type\": \"text\", \"content attributes\": {}, \"sender type\": \"User\", \"sender id\": 51, \"ticket id\": 904, \"created at\": 1794472200, \"created at exact\": \"2026-11-12T08:30:00.000Z\" } ], \"account id\": 12, \"additional attributes\": { \"source\": \"crm\" }, \"agent last seen at\": 0, \"assignee last seen at\": 0, \"can reply\": true, \"contact last seen at\": 0, \"custom attributes\": { \"order id\": \"A-1002\" }, \"inbox id\": 31, \"labels\": [\"billing\"], \"muted\": false, \"snoozed until\": null, \"status\": \"pending\", \"priority\": null, \"created at\": 1794472200, \"timestamp\": 1794472200, \"last activity at\": 1794472200, \"first reply created at\": 1794472200, \"waiting since\": 0, \"unread count\": 0, \"has incoming messages\": false, \"last incoming message time\": null, \"last non activity message\": { \"id\": 40121, \"content\": \"We received your request.\", \"inbox id\": 31, \"conversation id\": 1504, \"message type\": 1, \"private\": false, \"status\": \"sent\", \"source id\": null, \"content type\": \"text\", \"content attributes\": {}, \"ticket id\": 904, \"created at\": 1794472200, \"created at exact\": \"2026-11-12T08:30:00.000Z\", \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"avatar url\": \"\", \"logo user url\": null, \"type\": \"user\", \"availability status\": \"online\", \"thumbnail\": \"\" } }, \"sla policy id\": null, \"applied sla\": null, \"sla events\": [], \"sla events with distinct event type\": [], \"feature enabled sla\": true, \"campaign id\": null, \"pinned\": false } Response-Explain: Parameter Description meta Object containing the conversation's metadata: its people and channel meta -> sender Object containing the sender's data: the contact, without contact inboxes meta -> channel Channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email meta -> team Object containing the assigned team's data, if a team is assigned meta -> assignee Object containing the assignee's data (the assigned agent), if an agent is assigned meta -> hmac verified Whether the contact's identity was HMAC-verified (website widget) contact inbox -> wa id The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null id Conversation numeric ID: the display ID, used in every path uuid A globally unique ID of the conversation status The status of the conversation. Enum: open (Bot), pending (Manual), snoozed , resolved priority The priority: low , medium , high , urgent , or null messages Array of message objects — only the last message. Use List of Messages for the history. In these entries the sender is given as sender type ( User , Contact or AgentBot ) and sender id account id Account numeric ID inbox id Inbox numeric ID labels Array of strings: the titles of the conversation's labels unread count The number of unread messages: incoming messages the agents have not read has incoming messages Whether the contact has written at least one public message contact last seen at The last time a contact interacted with your service (Unix time; 0 when never set) can reply Whether the conversation is currently within the messaging window — false when the channel's reply window is closed (for example WhatsApp's 24-hour window) muted Whether the conversation is currently muted. A muted conversation does not notify agents snoozed until The time at which a previously snoozed conversation is reactivated, in milliseconds since the epoch, or null assignee last seen at The last time at which the assignee saw the conversation (Unix time; 0 when never set) agent last seen at The last time at which an agent saw the conversation (Unix time; 0 when never set) additional attributes Object containing additional attributes related to the conversation: channel or system data, such as mail subject or source custom attributes Object containing custom attributes related to the conversation created at The time at which the conversation was created (Unix time) timestamp The same as last activity at last activity at The time of the conversation's last activity (Unix time) first reply created at The time at which the first reply was sent (Unix time; 0 when never set) waiting since Since when the contact has been waiting for a reply (Unix time; 0 when not waiting) last incoming message time The time of the last incoming message (ISO 8601), or null last non activity message Object containing the last non-activity message (incoming, outgoing, template) sla policy id , applied sla , sla events , sla events with distinct event type , feature enabled sla SLA data — see Apply SLA Policy campaign id The campaign that started the conversation, or null pinned Whether the caller pinned this conversation file {url, file type} when a file is attached to the conversation itself (rare) Error responses: 404 {\"error\": \"Resource could not be found\"} , 403 {\"error\": \"You are not authorized to do this action\"} . Remarks snoozed until is in milliseconds ; the other timestamps are Unix seconds. The same GET URL under /conversations can be called at most 10 times per minute from one IP address; above that the answer is 429 . To follow changes, use webhook events instead of polling. See Rate limits. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The conversation. Content type: application/json Field Type Description id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. uuid string A globally unique ID of the conversation. account id integer The numeric ID of the account. inbox id integer The numeric ID of the inbox. status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. labels array of string Array of strings — the titles of the conversation's labels. custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . meta object Object containing the conversation's metadata — its people and channel. meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.id integer The contact's numeric ID. meta.sender.name string The full name of the contact. meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . meta.sender.thumbnail string The avatar URL of the contact, or an empty string. meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. meta.sender.contact inboxes[].inbox.name string The name of the inbox. meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. meta.assignee.id integer The agent's numeric ID (user ID). meta.assignee.account id integer The numeric ID of the account. meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). meta.assignee.email string The agent's login email address. meta.assignee.available name string The agent's display name. meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. meta.assignee.name string The agent's full name. meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). meta.assignee.operation bot boolean true for internal operation-bot users. meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). meta.team object Object containing the assigned team's data, if a team is assigned. meta.team.id integer The numeric ID of the team. meta.team.name string The name of the team. Stored in lower case, and unique in the account. meta.team.description string The description of the team. meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. meta.team.account id integer The numeric ID of the account. meta.team.members count integer The number of agents in the team. meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). contact inbox object The contact's link (contact inbox) to the conversation's inbox. contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . messages array of object Array of message objects — the last message only. Use List of Messages for the history. messages[].id integer The numeric ID of the message. messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". messages[].inbox id integer The numeric ID of the inbox. messages[].conversation id integer The numeric ID of the conversation (its display ID). messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. messages[].sender.name string The sender's name. messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. messages[].sender.available name string An agent's display name. messages[].sender.email string \\ null The sender's email address. messages[].sender.phone number string \\ null The sender's phone number (a contact's). messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). messages[].sender.avatar url string An agent's avatar image URL. messages[].sender.logo user url string \\ null An agent's logo URL, or null . messages[].sender.thumbnail string The sender's avatar URL, or an empty string. messages[].sender.availability status string An agent's live presence ( online , busy or offline ). messages[].sender.blocked boolean Whether a contact is blocked. messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . messages[].sender id integer \\ null In a conversation's messages , the sender's ID. messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. messages[].attachments[].id integer The numeric ID of the file (attachment). messages[].attachments[].message id integer The numeric ID of the message the file belongs to. messages[].attachments[].account id integer The numeric ID of the account. messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. messages[].attachments[].filename string The name of the file. messages[].attachments[].extension string \\ null The file extension, when known. messages[].attachments[].data url string The URL of the file. messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). messages[].attachments[].file size integer The file size, in bytes. messages[].ticket id integer The ticket the message belongs to. messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). last non activity message.id integer The numeric ID of the message. last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". last non activity message.inbox id integer The numeric ID of the inbox. last non activity message.conversation id integer The numeric ID of the conversation (its display ID). last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. last non activity message.sender.name string The sender's name. last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. last non activity message.sender.available name string An agent's display name. last non activity message.sender.email string \\ null The sender's email address. last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). last non activity message.sender.avatar url string An agent's avatar image URL. last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). last non activity message.sender.blocked boolean Whether a contact is blocked. last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. last non activity message.attachments[].id integer The numeric ID of the file (attachment). last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. last non activity message.attachments[].account id integer The numeric ID of the account. last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. last non activity message.attachments[].filename string The name of the file. last non activity message.attachments[].extension string \\ null The file extension, when known. last non activity message.attachments[].data url string The URL of the file. last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). last non activity message.attachments[].file size integer The file size, in bytes. last non activity message.ticket id integer The ticket the message belongs to. last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . unread count integer The number of unread messages — incoming messages the agents have not read. has incoming messages boolean Whether the contact has written at least one public message. created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. timestamp integer The same as last activity at . last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. sla events array of object The SLA events of the conversation (missed thresholds). sla events with distinct event type array of object The SLA events, one per event type. feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). campaign id integer \\ null The ID of the campaign that started the conversation, or null . pinned boolean Whether the caller pinned this conversation. file object {url, file type} when a file is attached to the conversation itself (rare). Example: Conversation A Bot conversation with an unread message from the contact, and no assignee. { \"meta\": { \"sender\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500, \"last activity at\": 1794471300 }, \"channel\": \"Channel::Api\", \"hmac verified\": false }, \"contact inbox\": { \"wa id\": null }, \"id\": 1501, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"content attributes\": {}, \"private\": false, \"status\": \"sent\", \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"created at\": 1794471300, \"created at exact\": \"2026-11-12T08:15:00.000Z\" } ], \"account id\": 12, \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\", \"additional attributes\": {}, \"agent last seen at\": 1794471250, \"assignee last seen at\": 0, \"can reply\": true, \"last incoming message time\": \"2026-11-12T08:15:00.000Z\", \"contact last seen at\": 0, \"custom attributes\": { \"order id\": \"A-1001\" }, \"inbox id\": 31, \"labels\": [ \"vip\" ], \"muted\": false, \"snoozed until\": null, \"status\": \"open\", \"created at\": 1794470520, \"timestamp\": 1794471300, \"first reply created at\": 1794470700, \"unread count\": 1, \"has incoming messages\": true, \"last non activity message\": { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"content attributes\": {}, \"private\": false, \"status\": \"sent\", \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"created at\": 1794471300, \"created at exact\": \"2026-11-12T08:15:00.000Z\" }, \"last activity at\": 1794471300, \"priority\": null, \"waiting since\": 1794471300, \"sla policy id\": null, \"feature enabled sla\": true, \"applied sla\": null, \"sla events\": [], \"sla events with distinct event type\": [], \"campaign id\": null, \"pinned\": false } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 429 — The same URL was requested more than 10 times in a minute from this IP address. See Rate limits."
    },
    {
      "id": "online-api/toggle-conversation-status",
      "title": "Toggle Conversation Status",
      "url": "https://docs.99digital.co.il/online-api/conversations/toggle-conversation-status",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/toggle-conversation-status.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "This endpoint allows you to toggle the status of the conversation between open and resolved, or to set it to a given status.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/toggle_status",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_status"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Hand over to a human",
        "Example: Snooze until a time",
        "Example: Resolve",
        "Example: Toggle",
        "Responses",
        "200 — The conversation's status after the change.",
        "Example: Hand over to a human",
        "Example: Snooze until a time",
        "Example: Resolve",
        "Example: Toggle",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "toggleConversationStatus",
        "accounts",
        "conversations",
        "toggle_status",
        "account_id",
        "conversation_id",
        "status",
        "snoozed_until",
        "payload",
        "success",
        "current_status",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/toggle status This endpoint allows you to toggle the status of the conversation between open and resolved, or to set it to a given status. Send status to set it: pending hands a Bot conversation over to a human agent (Manual), snoozed hides it until snoozed until , resolved closes it, and open returns it to the bot. Without status , the status is toggled: a resolved , pending or snoozed conversation becomes open , and an open one becomes resolved . The status names differ from the dashboard: open is Bot and pending is Manual . See Statuses. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/toggle status Method JSON via POST Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token: the caller must be able to see the conversation — see Who can see a conversation. New rules system: the inbox permission depends on the change, in the conversation's inbox: to resolved → Inbox resolve ; to snoozed → Inbox move to pending (labelled \"Snooze conversation\" in the role editor); from resolved or snoozed back to open or pending → Inbox reopen ; between open and pending (Bot ↔ Manual) → Inbox manual/bot switch . Agent-bot token: allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes conversation id The numeric ID of the conversation (its display ID) Yes Request body Parameters: Parameter type Description Required status string The status of the conversation. Enum: open (Bot), pending (Manual), snoozed , resolved . Leave it out to toggle No snoozed until string With snoozed : when to reopen the conversation, as an ISO 8601 date-time (for example 2026-11-13T09:00:00Z ). If it cannot be parsed, one hour from now is used No Request body example: { \"status\": \"resolved\" } Response: { \"payload\": { \"success\": true, \"conversation id\": 1501, \"current status\": \"resolved\", \"snoozed until\": null } } Response-Explain: Parameter Description payload Object containing the response payload -> success Indicates whether the status of the conversation has changed payload -> conversation id Numeric ID of the conversation (its display ID) payload -> current status The current status of the conversation. Enum: open (Bot), pending (Manual), snoozed , resolved payload -> snoozed until If set, this is the time in the future when this conversation will be marked as open, i.e. it will be in a snoozed state until this time. In milliseconds since the epoch; null when the conversation is not snoozed Error responses: 403 (missing inbox permission). Remarks Fires the conversation status changed webhook event. Resolving a conversation closes its current ticket; reopening it starts a new one. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json Field Type Required Description status string No The status of the conversation to set. Leave it out to toggle between open and resolved . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Snoozed until snoozed until , then reopened; resolved — Resolved. snoozed until string (date-time) No With snoozed : when to reopen the conversation, as an ISO 8601 date-time. If it cannot be parsed, the conversation is snoozed for one hour. Example: 2026-11-13T09:00:00Z . Example: Hand over to a human Bot → Manual, so an agent takes over. { \"status\": \"pending\" } Example: Snooze until a time Hide the conversation until the given time. { \"status\": \"snoozed\", \"snoozed until\": \"2026-11-13T09:00:00Z\" } Example: Resolve Close the conversation. { \"status\": \"resolved\" } Example: Toggle No body: an open conversation is resolved, any other is reopened as open . {} Responses 200 — The conversation's status after the change. Content type: application/json Field Type Description payload object Object containing the response — the result of the change. payload.success boolean true when the status of the conversation was changed and saved. payload.conversation id integer The conversation's display ID. payload.current status string The status of the conversation after the change. One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Snoozed until snoozed until , then reopened; resolved — Resolved. payload.snoozed until integer \\ null For a snoozed conversation, the time in the future when it is reopened as open — it stays snoozed until then — in milliseconds since the epoch. Otherwise null . Example: Hand over to a human The conversation is now Manual. { \"payload\": { \"success\": true, \"conversation id\": 1501, \"current status\": \"pending\", \"snoozed until\": null } } Example: Snooze until a time Snoozed until 2026-11-13T09:00:00Z, in milliseconds. { \"payload\": { \"success\": true, \"conversation id\": 1501, \"current status\": \"snoozed\", \"snoozed until\": 1794560400000 } } Example: Resolve The conversation is resolved. { \"payload\": { \"success\": true, \"conversation id\": 1501, \"current status\": \"resolved\", \"snoozed until\": null } } Example: Toggle A resolved conversation, toggled, is open (Bot) again. { \"payload\": { \"success\": true, \"conversation id\": 1501, \"current status\": \"open\", \"snoozed until\": null } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/toggle-conversation-priority",
      "title": "Toggle Conversation Priority",
      "url": "https://docs.99digital.co.il/online-api/conversations/toggle-conversation-priority",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/toggle-conversation-priority.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Set or clear the priority of a conversation.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/toggle_priority",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_priority"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Set the priority",
        "Example: Clear the priority",
        "Responses",
        "200 — The priority was changed, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "toggleConversationPriority",
        "accounts",
        "conversations",
        "toggle_priority",
        "account_id",
        "conversation_id",
        "priority",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/toggle priority Set or clear the priority of a conversation. Send priority with the new value. Leave it out, or send null , to clear the priority. The conversation's priority field shows the result. Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/{conversation id}/toggle priority Authorization User token or agent-bot token . New rules: Inbox priority of conversations for the inbox. Permissions: User token: the caller must also be able to see the conversation — see Who can see a conversation. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Body parameters (JSON) Name Type Required Description priority string No low , medium , high , urgent . Omit or send null to clear it. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/toggle priority' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"priority\": \"urgent\" }' Example response : 200 OK with an empty body. The conversation now has \"priority\": \"urgent\" . Remarks Despite its name, the endpoint does not cycle through the priorities: it sets the value you send. A change fires the conversation updated webhook event. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json Field Type Required Description priority string \\ null No The new priority. Leave it out or send null to clear it. One of: low — The lowest priority; medium — Medium priority; high — High priority; urgent — The highest priority; null — No priority — clears the current one. Example: Set the priority Mark the conversation as urgent. { \"priority\": \"urgent\" } Example: Clear the priority Remove the priority. { \"priority\": null } Responses 200 — The priority was changed, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/assign-conversation",
      "title": "Assign Conversation",
      "url": "https://docs.99digital.co.il/online-api/conversations/assign-conversation",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/assign-conversation.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "This endpoint allows you to assign a conversation to an agent or a team.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/assignments",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/assignments"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Assign an agent",
        "Example: Assign a team",
        "Example: Unassign",
        "Responses",
        "200 — The assigned agent, the assigned team, or null when you removed the assignment.",
        "Example: Assign an agent",
        "Example: Assign a team",
        "Example: Unassign",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The caller lacks the permission, or the agent cannot be assigned in the conversation's inbox.",
        "Example: Agent not assignable",
        "Example: No permission",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "assignConversation",
        "accounts",
        "conversations",
        "assignments",
        "account_id",
        "conversation_id",
        "assignee_id",
        "team_id",
        "id",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "description",
        "allow_auto_assign",
        "created_at",
        "updated_at",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/assignments This endpoint allows you to assign a conversation to an agent or a team. Send exactly one of assignee id and team id , or null to remove the agent or the team. The answer depends on what you sent: the assigned agent, the assigned team, or null . Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/assignments Method JSON via POST Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token: the caller must be able to see the conversation — see Who can see a conversation. New rules system: Inbox can assign (to assign an agent) or Inbox assign to group (to assign a team) for the conversation's inbox. The agent you assign must be assignable in the conversation's inbox. New rules system: their role has Inbox can be assigned for that inbox. Legacy roles: they are a member of the inbox. List Assignable Agents lists them. Agent-bot token: allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes conversation id The numeric ID of the conversation (its display ID) Yes Request body Parameters: Parameter type Description Required assignee id integer ID of the agent to whom the conversation is to be assigned. null unassigns the agent Conditional — send this or team id team id integer ID of the team. If assignee id is present, this parameter is ignored. null removes the team Conditional — send this or assignee id Request body example: { \"assignee id\": 51, \"team id\": 7 } Here team id is ignored, because assignee id is present. To assign a team, send only {\"team id\": 7} ; to unassign the agent, send {\"assignee id\": null} (and {\"team id\": null} to remove the team). Response: When you assign an agent, the response is the assigned agent: { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"name\": \"Jane Agent\", \"role\": \"agent\", \"see all conversations\": true, \"thumbnail\": \"\" } When you assign a team, the response is the raw team record — its shape differs from the team object of the Teams endpoints. When you unassign, the response is null . Both are shown under Responses below. Response-Explain: Parameter Description id Agent numeric ID account id Account numeric ID availability status The availability status of the agent. Enum: online , busy , offline auto offline Indicates whether the availability status of the agent is configured to go offline automatically when away confirmed Indicates whether the agent has been validated by clicking on the invitation email they received email Email of the agent available name Display name of the agent name Full name of the agent role The agent's role: the custom role's name (new rules system), or agent / administrator (legacy roles) see all conversations Indicates whether the agent can see all conversations in the account thumbnail Agent thumbnail (avatar URL) Error responses Status When Body 403 The target agent cannot be assigned in this inbox. {\"error\": \"Agent cannot be assigned to this inbox\"} 403 The caller lacks Inbox can assign / Inbox assign to group . {\"error\": \"You are not authorized to do this action\"} Remarks The assigned agent becomes a participant of the conversation and is notified. With queue management enabled, assigning an agent to a queue-routed conversation goes through the queue engine, as a manual assignment. A change fires the conversation updated webhook event. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json (required) Field Type Required Description assignee id integer \\ null No The ID of the agent to whom the conversation is to be assigned. null unassigns the agent. Send this or team id . Example: 51 . team id integer \\ null No The ID of the team to assign the conversation to. If assignee id is present, this parameter is ignored. null removes the team. Example: 7 . Example: Assign an agent Assign the conversation to an agent. { \"assignee id\": 51 } Example: Assign a team Assign the conversation to a team. { \"team id\": 7 } Example: Unassign Remove the agent. Send {\"team id\": null} to remove the team the same way. { \"assignee id\": null } Responses 200 — The assigned agent, the assigned team, or null when you removed the assignment. Content type: application/json Field Type Description id integer (one of: Agent) The agent's numeric ID (user ID). account id integer (one of: Agent) The numeric ID of the account. availability status string (one of: Agent) The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. auto offline boolean (one of: Agent) Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). confirmed boolean (one of: Agent) Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). email string (one of: Agent) The agent's login email address. available name string (one of: Agent) The agent's display name. custom attributes object (one of: Agent) Free-form attributes (key-value pairs) stored on the agent's membership in this account. name string (one of: Agent) The agent's full name. role string (one of: Agent) The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). operation bot boolean (one of: Agent) true for internal operation-bot users. see all conversations boolean (one of: Agent) Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). assignable to inbox array \\ null (one of: Agent) The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . new role string \\ null (one of: Agent) The agent's custom role name, or null on accounts with legacy roles. thumbnail string (one of: Agent) The agent's thumbnail (avatar image) URL, or an empty string. capacity cap integer \\ null (one of: Agent) The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. two factor type string \\ null (one of: Agent) The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. phone1 string \\ null (one of: Agent) The phone number that receives two-factor codes by SMS. email1 string \\ null (one of: Agent) The email address that receives two-factor codes by email. create time integer (one of: Agent) When the agent was created (Unix timestamp, in seconds). id integer (one of: Team) The team ID. name string (one of: Team) The team name, in lower case. description string (one of: Team) The description. allow auto assign boolean (one of: Team) Whether a conversation assigned to the team is assigned to one of its available members automatically. account id integer (one of: Team) The account ID. created at string (one of: Team) When the team was created (ISO 8601). updated at string (one of: Team) The team's last update (ISO 8601). Example: Assign an agent The assigned agent. { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"custom attributes\": {}, \"name\": \"Jane Agent\", \"role\": \"General Manager\", \"operation bot\": false, \"see all conversations\": true, \"assignable to inbox\": [ 31, 32, 33 ], \"new role\": \"General Manager\", \"thumbnail\": \"\", \"two factor type\": \"sms\", \"phone1\": \"+972541234567\", \"email1\": null, \"create time\": 1790000000 } Example: Assign a team The raw team record. { \"id\": 7, \"name\": \"support\", \"description\": \"\", \"allow auto assign\": true, \"account id\": 12, \"created at\": \"2026-11-12T08:00:00.000Z\", \"updated at\": \"2026-11-12T08:00:00.000Z\" } Example: Unassign The body is null . null 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The caller lacks the permission, or the agent cannot be assigned in the conversation's inbox. Content type: application/json Field Type Description error string The error message. Example: Agent not assignable The agent cannot be assigned in this inbox. { \"error\": \"Agent cannot be assigned to this inbox\" } Example: No permission The caller lacks Inbox can assign or Inbox assign to group , or may not see the conversation. { \"error\": \"You are not authorized to do this action\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-conversation-labels",
      "title": "List Conversation Labels",
      "url": "https://docs.99digital.co.il/online-api/conversations/list-conversation-labels",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/list-conversation-labels.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "List all labels associated to a conversation.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/labels",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/labels"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The conversation's labels.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "429 — The same URL was requested more than 10 times in a minute from this IP address. See Rate limits."
      ],
      "keywords": [
        "listConversationLabels",
        "accounts",
        "conversations",
        "labels",
        "account_id",
        "conversation_id",
        "payload",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/labels List all labels associated to a conversation. The response holds the label titles. The labels themselves — their colors and descriptions — are managed with the Labels endpoints. To change a conversation's labels, use Set Conversation Labels. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/labels Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token: any agent who may see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes conversation id The numeric ID of the conversation (its display ID) Yes Response: { \"payload\": [\"vip\", \"billing\"] } Response-Explain: Parameter Description payload Array of strings (label): the titles of the conversation's labels Remarks The same GET URL under /conversations can be called at most 10 times per minute from one IP address; above that the answer is 429 . See Rate limits. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The conversation's labels. Content type: application/json Field Type Description payload array of string The titles of the conversation's labels. Example { \"payload\": [ \"vip\", \"billing\" ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 429 — The same URL was requested more than 10 times in a minute from this IP address. See Rate limits."
    },
    {
      "id": "online-api/set-conversation-labels",
      "title": "Set Conversation Labels",
      "url": "https://docs.99digital.co.il/online-api/conversations/set-conversation-labels",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/set-conversation-labels.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Add labels to a conversation.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/labels",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/labels"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Set labels",
        "Example: Remove all labels",
        "Responses",
        "200 — The conversation's labels after the change.",
        "Example: Set labels",
        "Example: Remove all labels",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "setConversationLabels",
        "accounts",
        "conversations",
        "labels",
        "account_id",
        "conversation_id",
        "payload",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/labels Add labels to a conversation. Using this request will overwrite the existing list of labels associated to the conversation: labels you leave out are removed. Send the full list — or [] to remove every label. To add or remove single labels without sending the full list, use Bulk Update Conversations with labels.add / labels.remove . The labels themselves are managed with the Labels endpoints. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/labels Method JSON via POST Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token: the caller must be able to see the conversation — see Who can see a conversation. New rules system: Inbox assign labels for the conversation's inbox. Agent-bot token: allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes conversation id The numeric ID of the conversation (its display ID) Yes Request body: Parameter type Description Required labels array of strings An array of labels: the full list of label titles the conversation should have (see List Labels) Yes Request body example: { \"labels\": [\"vip\", \"billing\"] } Response: { \"payload\": [ \"vip\", \"billing\" ] } Response-Explain: Parameter Description payload Array of strings (label): the titles of the conversation's labels after the change Remarks A change fires the conversation updated webhook event. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json (required) Field Type Required Description labels array of string Yes An array of labels: the full list of label titles the conversation should have. Labels you leave out are removed, and [] removes every label. See List Labels for the account's labels. Example: Set labels The conversation gets exactly these two labels. { \"labels\": [ \"vip\", \"billing\" ] } Example: Remove all labels An empty list removes every label. { \"labels\": [] } Responses 200 — The conversation's labels after the change. Content type: application/json Field Type Description payload array of string The titles of the conversation's labels. Example: Set labels The answer to the \"Set labels\" request. { \"payload\": [ \"vip\", \"billing\" ] } Example: Remove all labels The answer to the \"Remove all labels\" request. { \"payload\": [] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/set-conversation-custom-attributes",
      "title": "Set Conversation Custom Attributes",
      "url": "https://docs.99digital.co.il/online-api/conversations/set-conversation-custom-attributes",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/set-conversation-custom-attributes.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Replaces the conversation's custom attributes with the given object.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/custom_attributes",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/custom_attributes"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The conversation's custom attributes after the change.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "setConversationCustomAttributes",
        "accounts",
        "conversations",
        "custom_attributes",
        "account_id",
        "conversation_id",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/custom attributes Replaces the conversation's custom attributes with the given object. This call overwrites the conversation's custom attributes : keys you leave out are removed, so send the full object. Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/{conversation id}/custom attributes Authorization User token or agent-bot token . Permissions: User token: any agent who may see the conversation — see Who can see a conversation. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Body parameters (JSON) Name Type Required Description custom attributes object Yes Key/value pairs. Use the keys of conversation custom attributes defined in Settings → Custom attributes so they show in the dashboard. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/custom attributes' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"custom attributes\": { \"order id\": \"A-1001\", \"items count\": 2 } }' Example response ( 200 OK ) { \"custom attributes\": { \"order id\": \"A-1001\", \"items count\": 2 } } Remarks A change fires the conversation updated webhook event. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json (required) Field Type Required Description custom attributes object Yes The conversation's complete custom attributes, as key-value pairs. This object replaces the current one, so keys you leave out are removed. Use the keys of the conversation custom attributes defined in Settings → Custom attributes so the values show in the dashboard. Example (generated from the schema) { \"custom attributes\": { \"order id\": \"A-1001\", \"items count\": 2 } } Responses 200 — The conversation's custom attributes after the change. Content type: application/json Field Type Description custom attributes object The conversation's custom attributes. Example { \"custom attributes\": { \"order id\": \"A-1001\", \"items count\": 2 } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/mute-conversation",
      "title": "Mute Conversation",
      "url": "https://docs.99digital.co.il/online-api/conversations/mute-conversation",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/mute-conversation.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Mute a conversation: muting resolves it, and new incoming messages from the contact no longer reopen it until it is unmuted.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/mute",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/mute"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The conversation is muted (\"muted\": true) and resolved (\"status\": \"resolved\"), with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "muteConversation",
        "accounts",
        "conversations",
        "mute",
        "account_id",
        "conversation_id",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/mute Mute a conversation: muting resolves it, and new incoming messages from the contact no longer reopen it until it is unmuted. Muting resolves the conversation and sets muted to true . Until you unmute it, new incoming messages from the contact do not reopen the conversation, and it does not notify agents. An activity message is added to the conversation. Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/{conversation id}/mute (or /unmute ) Authorization User token. Permissions: User token: any agent who may see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/mute' \\ -H 'api access token: ' Example response : 200 OK with an empty body. The conversation now has \"muted\": true and \"status\": \"resolved\" . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The conversation is muted ( \"muted\": true ) and resolved ( \"status\": \"resolved\" ), with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/unmute-conversation",
      "title": "Unmute Conversation",
      "url": "https://docs.99digital.co.il/online-api/conversations/unmute-conversation",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/unmute-conversation.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Unmute a conversation, so that new incoming messages from the contact reopen it again.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/unmute",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/unmute"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The conversation is unmuted (\"muted\": false), with an empty body. Its status is unchanged.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "unmuteConversation",
        "accounts",
        "conversations",
        "unmute",
        "account_id",
        "conversation_id",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/unmute Unmute a conversation, so that new incoming messages from the contact reopen it again. Muting resolves the conversation, and new incoming messages from the contact no longer reopen it until it is unmuted. Unmuting sets muted to false and does not change the status: a conversation that was resolved when it was muted stays resolved until the contact writes again or an agent reopens it. Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/{conversation id}/unmute (or /mute ) Authorization User token. Permissions: User token: any agent who may see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/unmute' \\ -H 'api access token: ' Example response : 200 OK with an empty body. POST .../unmute sets \"muted\": false and does not change the status. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The conversation is unmuted ( \"muted\": false ), with an empty body. Its status is unchanged. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-conversation-attachments",
      "title": "List Conversation Attachments",
      "url": "https://docs.99digital.co.il/online-api/conversations/list-conversation-attachments",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/list-conversation-attachments.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Returns all files sent in the conversation, from both the contact and agents.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/attachments",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/attachments"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The files of the conversation.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listConversationAttachments",
        "accounts",
        "conversations",
        "attachments",
        "account_id",
        "conversation_id",
        "payload",
        "message_id",
        "thumb_url",
        "data_url",
        "file_size",
        "file_type",
        "extension",
        "created_at",
        "sender",
        "id",
        "name",
        "type",
        "available_name",
        "email",
        "phone_number",
        "identifier",
        "avatar_url",
        "logo_user_url",
        "thumbnail",
        "availability_status",
        "blocked",
        "additional_attributes",
        "custom_attributes",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/attachments Returns all files sent in the conversation, from both the contact and agents. Each item is one file, with the message it belongs to and who sent it. The whole list is returned at once. Setting Value Method GET Path /api/v1/accounts/{account id}/conversations/{conversation id}/attachments Authorization User token. Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/attachments' \\ -H 'api access token: ' Example response ( 200 OK ). A conversation without files returns {\"payload\": []} . { \"payload\": [ { \"message id\": 40111, \"thumb url\": \"https://online.99digital.co.il/rails/active storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"data url\": \"https://online.99digital.co.il/rails/active storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"file size\": 48213, \"file type\": \"image\", \"extension\": null, \"created at\": 1794471100, \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"type\": \"user\" } } ] } Remarks For a paginated list of the files, with their attachment IDs, use List Conversation Files. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The files of the conversation. Content type: application/json Field Type Description payload array of object The files. Empty when the conversation has no files. payload[].message id integer The message the file belongs to. payload[].thumb url string The URL of a thumbnail, for images. payload[].data url string The URL of the file. payload[].file size integer The size in bytes. payload[].file type string The kind of file: image , audio , video , file , location , fallback , …. payload[].extension string \\ null The file extension, when known. payload[].created at integer When the message was sent (Unix time, seconds). payload[].sender object An object containing the sender's data: who sent a message — the contact ( type contact ), an agent ( user ) or an agent bot ( agent bot ). Its fields follow the kind of sender — a contact has phone number and identifier , an agent has available name and availability status . Activity messages have no sender. payload[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].sender.name string The sender's name. payload[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].sender.available name string An agent's display name. payload[].sender.email string \\ null The sender's email address. payload[].sender.phone number string \\ null The sender's phone number (a contact's). payload[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].sender.avatar url string An agent's avatar image URL. payload[].sender.logo user url string \\ null An agent's logo URL, or null . payload[].sender.thumbnail string The sender's avatar URL, or an empty string. payload[].sender.availability status string An agent's live presence ( online , busy or offline ). payload[].sender.blocked boolean Whether a contact is blocked. payload[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). Example { \"payload\": [ { \"message id\": 40111, \"thumb url\": \"https://online.99digital.co.il/rails/active storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"data url\": \"https://online.99digital.co.il/rails/active storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"file size\": 48213, \"file type\": \"image\", \"extension\": null, \"created at\": 1794471100, \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"type\": \"user\" } } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/send-conversation-transcript",
      "title": "Send Conversation Transcript",
      "url": "https://docs.99digital.co.il/online-api/conversations/send-conversation-transcript",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/send-conversation-transcript.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Emails the conversation transcript (incoming and outgoing messages) to an address, or previews it.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/transcript",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/transcript"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Send by email",
        "Example: Since a time",
        "Example: To the assignee",
        "Example: Preview",
        "Responses",
        "200 — The transcript is being emailed, and the response has an empty body. With meta: true, nothing is sent and the response is the preview below.",
        "Example: Preview",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — email is missing, and neither toassignee nor meta is true.",
        "Example",
        "429 — The account sent more than 30 transcript requests in the last hour."
      ],
      "keywords": [
        "sendConversationTranscript",
        "accounts",
        "conversations",
        "transcript",
        "account_id",
        "conversation_id",
        "period",
        "type_id",
        "from",
        "email",
        "to_assignee",
        "meta",
        "count",
        "first",
        "content",
        "created_at",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/transcript Emails the conversation transcript (incoming and outgoing messages) to an address, or previews it. With meta: true it only returns a preview (message count and first message) without sending anything. Rate-limited to 30 transcript requests per hour per account. Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/{conversation id}/transcript Authorization User token. New rules: Inbox send Transcript for the inbox. Permissions: User token: the caller must also be able to see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Body parameters (JSON) Name Type Required Description period.type id string Yes Which messages: all , today , h1 / h3 / h5 / h24 (last 1/3/5/24 hours), new (since the last transcript), custom (from period.from ), last ai summary (only the last AI-summary note). period.from integer Conditional Unix timestamp, with type id: custom . email string Conditional Recipient. Required unless to assignee is true or meta is true . to assignee boolean No Send to the conversation's assignee instead of email . meta boolean No Return a preview only. Example: preview curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/transcript' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"period\": { \"type id\": \"h24\" }, \"meta\": true }' Response ( 200 OK ): { \"count\": 4, \"first\": { \"content\": \"Hello, I have a question about my order.\", \"created at\": 1794471000 } } Example: send by email curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/transcript' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"period\": { \"type id\": \"all\" }, \"email\": \"dana.cohen@example.com\" }' Response: 200 OK with an empty body. The email is sent in the background. Error responses Status When Body 422 email is missing, and neither to assignee nor meta is true . {\"error\": \"email param missing\"} 429 More than 30 transcript requests in an hour for the account (rate limit). See Rate limits. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json (required) Field Type Required Description period object Yes Which messages the transcript holds. period.type id string Yes Which messages of the conversation to include. One of: all — Every message of the conversation; today — Today's messages; h1 — The last hour; h3 — The last 3 hours; h5 — The last 5 hours; h24 — The last 24 hours; new — The messages since the last transcript; custom — The messages from period.from on; last ai summary — Only the last AI-summary note. Example: all . period.from integer No The start of the period (Unix time, seconds). Required when type id is custom . Example: 1794470400 . email string No The recipient. Required unless to assignee or meta is true . Example: dana.cohen@example.com . to assignee boolean No Send the transcript to the conversation's assignee instead of email . meta boolean No Return a preview only, without sending anything. Example: Send by email The whole conversation, to an email address. { \"period\": { \"type id\": \"all\" }, \"email\": \"dana.cohen@example.com\" } Example: Since a time The messages from a given time on. { \"period\": { \"type id\": \"custom\", \"from\": 1794470400 }, \"email\": \"dana.cohen@example.com\" } Example: To the assignee Today's messages, to the conversation's assignee. { \"period\": { \"type id\": \"today\" }, \"to assignee\": true } Example: Preview Preview the last 24 hours without sending anything. { \"period\": { \"type id\": \"h24\" }, \"meta\": true } Responses 200 — The transcript is being emailed, and the response has an empty body. With meta: true , nothing is sent and the response is the preview below. Content type: application/json Field Type Description count integer The number of messages the transcript would hold. first object The first message of the transcript. first.content string The text. first.created at integer When the message was created (Unix time, seconds). Example: Preview The response to meta: true . { \"count\": 4, \"first\": { \"content\": \"Hello, I have a question about my order.\", \"created at\": 1794471000 } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — email is missing, and neither to assignee nor meta is true . Content type: application/json Field Type Description error string The error message. Example { \"error\": \"email param missing\" } 429 — The account sent more than 30 transcript requests in the last hour."
    },
    {
      "id": "online-api/send-csat-survey",
      "title": "Send CSAT Survey",
      "url": "https://docs.99digital.co.il/online-api/conversations/send-csat-survey",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/send-csat-survey.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Sends a customer-satisfaction (CSAT) survey message to the contact in this conversation.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/send_survey",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/send_survey"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Default survey",
        "Example: A specific survey",
        "Responses",
        "200 — The survey was sent, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The conversation or the survey does not exist in this account.",
        "Example: Survey not found",
        "Example: Conversation not found"
      ],
      "keywords": [
        "sendCsatSurvey",
        "accounts",
        "conversations",
        "send_survey",
        "account_id",
        "conversation_id",
        "survey_id",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/send survey Sends a customer-satisfaction (CSAT) survey message to the contact in this conversation. The survey is sent as an outgoing message with content type input csat , which holds a link to the survey. When the contact answers, the csat survey submitted webhook event is sent. Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/{conversation id}/send survey Authorization User token or agent-bot token . Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Body parameters (JSON) Name Type Required Description survey id integer No CSAT survey ID (from the account's CSAT surveys). Omit to send the built-in default survey. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/send survey' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{}' Example response : 200 OK with an empty body. An outgoing message with content type: \"input csat\" is added to the conversation — here, for survey 3 : { \"id\": 40120, \"content\": \"Please rate this conversation, https://online.99digital.co.il/survey/responses/NDAxMjA=\", \"message type\": 1, \"content type\": \"input csat\", \"content attributes\": { \"submitted values\": { \"csat survey response\": { \"csat survey id\": 3 } } } } Error responses Status When Body 404 No CSAT survey with this survey id . {\"error\": \"Survey not found\"} Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json Field Type Required Description survey id integer No The ID of one of the account's CSAT surveys. Leave it out to send the built-in default survey. Example: 3 . Example: Default survey The built-in default survey. {} Example: A specific survey One of the account's CSAT surveys. { \"survey id\": 3 } Responses 200 — The survey was sent, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The conversation or the survey does not exist in this account. Content type: application/json Field Type Description error string The error message. Example: Survey not found No CSAT survey with this survey id . { \"error\": \"Survey not found\" } Example: Conversation not found No conversation with this ID. { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/apply-sla-policy",
      "title": "Apply SLA Policy",
      "url": "https://docs.99digital.co.il/online-api/conversations/apply-sla-policy",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/apply-sla-policy.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Applies an SLA policy to the conversation, or removes it, and returns the full conversation.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/apply_sla",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/apply_sla"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Apply a policy",
        "Example: Remove the policy",
        "Responses",
        "200 — The full conversation.",
        "Example: Policy applied",
        "Example: Policy removed",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The conversation or the SLA policy does not exist in this account.",
        "Example: SLA policy not found",
        "Example: Conversation not found"
      ],
      "keywords": [
        "applySlaPolicy",
        "accounts",
        "conversations",
        "apply_sla",
        "account_id",
        "conversation_id",
        "sla_policy_id",
        "id",
        "uuid",
        "inbox_id",
        "status",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "meta",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/apply sla Applies an SLA policy to the conversation, or removes it, and returns the full conversation. The policy is removed when sla policy id is null . The SLA is in the conversation's sla policy id and applied sla . Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/{conversation id}/apply sla Authorization User token or agent-bot token . Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Body parameters (JSON) Name Type Required Description sla policy id integer Yes SLA policy ID, or null to remove the policy. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/apply sla' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"sla policy id\": 4 }' Example response ( 200 OK ): a full conversation object. Only the SLA fields are shown here. { \"id\": 1501, \"sla policy id\": 4, \"applied sla\": { \"id\": 210, \"sla id\": 4, \"sla status\": \"active\", \"created at\": 1794473400, \"updated at\": 1794473400, \"sla description\": \"Standard response times\", \"sla name\": \"Standard\", \"sla first response time threshold\": 60.0, \"sla next response time threshold\": 180.0, \"sla only during business hours\": false, \"sla resolution time threshold\": 240.0 }, \"sla events\": [] } Thresholds are in seconds. applied sla holds: Field Description id The ID of the applied SLA. sla id The SLA policy's ID. sla status The SLA's state, for example active . sla name , sla description The policy's name and description. sla first response time threshold , sla next response time threshold , sla resolution time threshold The policy's thresholds, in seconds. sla only during business hours Whether the thresholds apply only during business hours. created at , updated at Unix time, seconds. DELETE /conversations/{conversation id}/cancel sla also removes the policy, but it is deprecated; send {\"sla policy id\": null} instead. Error responses Status When Body 404 No SLA policy with this sla policy id . {\"error\": \"SLA policy not found\"} Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json (required) Field Type Required Description sla policy id integer \\ null Yes The SLA policy to apply, or null to remove the conversation's policy. Example: 4 . Example: Apply a policy Apply SLA policy 4. { \"sla policy id\": 4 } Example: Remove the policy Remove the conversation's SLA policy. { \"sla policy id\": null } Responses 200 — The full conversation. Content type: application/json Field Type Description id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. uuid string A globally unique ID of the conversation. account id integer The numeric ID of the account. inbox id integer The numeric ID of the inbox. status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. labels array of string Array of strings — the titles of the conversation's labels. custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . meta object Object containing the conversation's metadata — its people and channel. meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.id integer The contact's numeric ID. meta.sender.name string The full name of the contact. meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . meta.sender.thumbnail string The avatar URL of the contact, or an empty string. meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. meta.sender.contact inboxes[].inbox.name string The name of the inbox. meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. meta.assignee.id integer The agent's numeric ID (user ID). meta.assignee.account id integer The numeric ID of the account. meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). meta.assignee.email string The agent's login email address. meta.assignee.available name string The agent's display name. meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. meta.assignee.name string The agent's full name. meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). meta.assignee.operation bot boolean true for internal operation-bot users. meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). meta.team object Object containing the assigned team's data, if a team is assigned. meta.team.id integer The numeric ID of the team. meta.team.name string The name of the team. Stored in lower case, and unique in the account. meta.team.description string The description of the team. meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. meta.team.account id integer The numeric ID of the account. meta.team.members count integer The number of agents in the team. meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). contact inbox object The contact's link (contact inbox) to the conversation's inbox. contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . messages array of object Array of message objects — the last message only. Use List of Messages for the history. messages[].id integer The numeric ID of the message. messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". messages[].inbox id integer The numeric ID of the inbox. messages[].conversation id integer The numeric ID of the conversation (its display ID). messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. messages[].sender.name string The sender's name. messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. messages[].sender.available name string An agent's display name. messages[].sender.email string \\ null The sender's email address. messages[].sender.phone number string \\ null The sender's phone number (a contact's). messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). messages[].sender.avatar url string An agent's avatar image URL. messages[].sender.logo user url string \\ null An agent's logo URL, or null . messages[].sender.thumbnail string The sender's avatar URL, or an empty string. messages[].sender.availability status string An agent's live presence ( online , busy or offline ). messages[].sender.blocked boolean Whether a contact is blocked. messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . messages[].sender id integer \\ null In a conversation's messages , the sender's ID. messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. messages[].attachments[].id integer The numeric ID of the file (attachment). messages[].attachments[].message id integer The numeric ID of the message the file belongs to. messages[].attachments[].account id integer The numeric ID of the account. messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. messages[].attachments[].filename string The name of the file. messages[].attachments[].extension string \\ null The file extension, when known. messages[].attachments[].data url string The URL of the file. messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). messages[].attachments[].file size integer The file size, in bytes. messages[].ticket id integer The ticket the message belongs to. messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). last non activity message.id integer The numeric ID of the message. last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". last non activity message.inbox id integer The numeric ID of the inbox. last non activity message.conversation id integer The numeric ID of the conversation (its display ID). last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. last non activity message.sender.name string The sender's name. last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. last non activity message.sender.available name string An agent's display name. last non activity message.sender.email string \\ null The sender's email address. last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). last non activity message.sender.avatar url string An agent's avatar image URL. last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). last non activity message.sender.blocked boolean Whether a contact is blocked. last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. last non activity message.attachments[].id integer The numeric ID of the file (attachment). last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. last non activity message.attachments[].account id integer The numeric ID of the account. last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. last non activity message.attachments[].filename string The name of the file. last non activity message.attachments[].extension string \\ null The file extension, when known. last non activity message.attachments[].data url string The URL of the file. last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). last non activity message.attachments[].file size integer The file size, in bytes. last non activity message.ticket id integer The ticket the message belongs to. last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . unread count integer The number of unread messages — incoming messages the agents have not read. has incoming messages boolean Whether the contact has written at least one public message. created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. timestamp integer The same as last activity at . last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. sla events array of object The SLA events of the conversation (missed thresholds). sla events with distinct event type array of object The SLA events, one per event type. feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). campaign id integer \\ null The ID of the campaign that started the conversation, or null . pinned boolean Whether the caller pinned this conversation. file object {url, file type} when a file is attached to the conversation itself (rare). Example: Policy applied Only the SLA fields are shown; the response is the full conversation. { \"id\": 1501, \"sla policy id\": 4, \"applied sla\": { \"id\": 210, \"sla id\": 4, \"sla status\": \"active\", \"created at\": 1794473400, \"updated at\": 1794473400, \"sla description\": \"Standard response times\", \"sla name\": \"Standard\", \"sla first response time threshold\": 60, \"sla next response time threshold\": 180, \"sla only during business hours\": false, \"sla resolution time threshold\": 240 }, \"sla events\": [] } Example: Policy removed Only the SLA fields are shown; the response is the full conversation. { \"id\": 1501, \"sla policy id\": null, \"applied sla\": null, \"sla events\": [] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The conversation or the SLA policy does not exist in this account. Content type: application/json Field Type Description error string The error message. Example: SLA policy not found No SLA policy with this sla policy id . { \"error\": \"SLA policy not found\" } Example: Conversation not found No conversation with this ID. { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/mark-conversation-as-read",
      "title": "Mark Conversation as Read",
      "url": "https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-read",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/mark-conversation-as-read.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Mark a conversation as read.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/update_last_seen",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/update_last_seen"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The full conversation.",
        "Example: Read",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "markConversationAsRead",
        "accounts",
        "conversations",
        "update_last_seen",
        "account_id",
        "conversation_id",
        "id",
        "uuid",
        "inbox_id",
        "status",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "meta",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/update last seen Mark a conversation as read. Sets the conversation's agent last seen at to now — and assignee last seen at too, when the caller is the assignee — so its incoming messages count as read. The three read / unread endpoints: Action Method Path Effect Mark as read POST /api/v1/accounts/{account id}/conversations/{conversation id}/update last seen Sets the agent's last-seen time to now (also the assignee's, when the caller is the assignee). Mark as unread (by last incoming message) POST /api/v1/accounts/{account id}/conversations/{conversation id}/unread Moves last-seen to just before the last incoming message, so it counts as unread again. Mark as unread (flag) POST /api/v1/accounts/{account id}/conversations/{conversation id}/set unread Marks the conversation unread and fires conversation.unread . Authorization : user token. Response ( 200 OK ): the full conversation object. The request has no body. Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/update last seen' \\ -H 'api access token: ' Remarks For several conversations at once, use Bulk Mark as Read. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The full conversation. Content type: application/json Field Type Description id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. uuid string A globally unique ID of the conversation. account id integer The numeric ID of the account. inbox id integer The numeric ID of the inbox. status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. labels array of string Array of strings — the titles of the conversation's labels. custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . meta object Object containing the conversation's metadata — its people and channel. meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.id integer The contact's numeric ID. meta.sender.name string The full name of the contact. meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . meta.sender.thumbnail string The avatar URL of the contact, or an empty string. meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. meta.sender.contact inboxes[].inbox.name string The name of the inbox. meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. meta.assignee.id integer The agent's numeric ID (user ID). meta.assignee.account id integer The numeric ID of the account. meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). meta.assignee.email string The agent's login email address. meta.assignee.available name string The agent's display name. meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. meta.assignee.name string The agent's full name. meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). meta.assignee.operation bot boolean true for internal operation-bot users. meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). meta.team object Object containing the assigned team's data, if a team is assigned. meta.team.id integer The numeric ID of the team. meta.team.name string The name of the team. Stored in lower case, and unique in the account. meta.team.description string The description of the team. meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. meta.team.account id integer The numeric ID of the account. meta.team.members count integer The number of agents in the team. meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). contact inbox object The contact's link (contact inbox) to the conversation's inbox. contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . messages array of object Array of message objects — the last message only. Use List of Messages for the history. messages[].id integer The numeric ID of the message. messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". messages[].inbox id integer The numeric ID of the inbox. messages[].conversation id integer The numeric ID of the conversation (its display ID). messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. messages[].sender.name string The sender's name. messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. messages[].sender.available name string An agent's display name. messages[].sender.email string \\ null The sender's email address. messages[].sender.phone number string \\ null The sender's phone number (a contact's). messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). messages[].sender.avatar url string An agent's avatar image URL. messages[].sender.logo user url string \\ null An agent's logo URL, or null . messages[].sender.thumbnail string The sender's avatar URL, or an empty string. messages[].sender.availability status string An agent's live presence ( online , busy or offline ). messages[].sender.blocked boolean Whether a contact is blocked. messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . messages[].sender id integer \\ null In a conversation's messages , the sender's ID. messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. messages[].attachments[].id integer The numeric ID of the file (attachment). messages[].attachments[].message id integer The numeric ID of the message the file belongs to. messages[].attachments[].account id integer The numeric ID of the account. messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. messages[].attachments[].filename string The name of the file. messages[].attachments[].extension string \\ null The file extension, when known. messages[].attachments[].data url string The URL of the file. messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). messages[].attachments[].file size integer The file size, in bytes. messages[].ticket id integer The ticket the message belongs to. messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). last non activity message.id integer The numeric ID of the message. last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". last non activity message.inbox id integer The numeric ID of the inbox. last non activity message.conversation id integer The numeric ID of the conversation (its display ID). last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. last non activity message.sender.name string The sender's name. last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. last non activity message.sender.available name string An agent's display name. last non activity message.sender.email string \\ null The sender's email address. last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). last non activity message.sender.avatar url string An agent's avatar image URL. last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). last non activity message.sender.blocked boolean Whether a contact is blocked. last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. last non activity message.attachments[].id integer The numeric ID of the file (attachment). last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. last non activity message.attachments[].account id integer The numeric ID of the account. last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. last non activity message.attachments[].filename string The name of the file. last non activity message.attachments[].extension string \\ null The file extension, when known. last non activity message.attachments[].data url string The URL of the file. last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). last non activity message.attachments[].file size integer The file size, in bytes. last non activity message.ticket id integer The ticket the message belongs to. last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . unread count integer The number of unread messages — incoming messages the agents have not read. has incoming messages boolean Whether the contact has written at least one public message. created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. timestamp integer The same as last activity at . last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. sla events array of object The SLA events of the conversation (missed thresholds). sla events with distinct event type array of object The SLA events, one per event type. feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). campaign id integer \\ null The ID of the campaign that started the conversation, or null . pinned boolean Whether the caller pinned this conversation. file object {url, file type} when a file is attached to the conversation itself (rare). Example: Read The conversation after it was read. meta.assignee is shortened. { \"id\": 1501, \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\", \"account id\": 12, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": { \"order id\": \"A-1001\" }, \"additional attributes\": {}, \"meta\": { \"sender\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 }, \"channel\": \"Channel::Api\", \"assignee\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"available name\": \"Jane Agent\", \"name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"role\": \"General Manager\", \"thumbnail\": \"\" }, \"hmac verified\": false }, \"contact inbox\": { \"wa id\": null }, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794472860 }, \"content attributes\": {}, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"delay hours\": null, \"created at\": 1794472860, \"created at exact\": \"2026-11-12T08:41:00.000Z\" } ], \"last non activity message\": { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794472860 }, \"content attributes\": {}, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"delay hours\": null, \"created at\": 1794472860, \"created at exact\": \"2026-11-12T08:41:00.000Z\" }, \"can reply\": true, \"muted\": false, \"snoozed until\": null, \"unread count\": 0, \"has incoming messages\": true, \"created at\": 1794471000, \"timestamp\": 1794472860, \"last activity at\": 1794472860, \"first reply created at\": 1794471120, \"waiting since\": 1794472860, \"agent last seen at\": 1794473100, \"assignee last seen at\": 1794473100, \"contact last seen at\": 0, \"last incoming message time\": \"2026-11-12T08:41:00.000Z\", \"sla policy id\": null, \"feature enabled sla\": true, \"applied sla\": null, \"sla events\": [], \"sla events with distinct event type\": [], \"campaign id\": null, \"pinned\": false } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/mark-conversation-as-unread",
      "title": "Mark Conversation as Unread",
      "url": "https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-unread",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/mark-conversation-as-unread.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Mark a conversation as unread by moving its last-seen time back to its last incoming message.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/unread",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/unread"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The full conversation.",
        "Example: Unread",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "markConversationAsUnread",
        "accounts",
        "conversations",
        "unread",
        "account_id",
        "conversation_id",
        "id",
        "uuid",
        "inbox_id",
        "status",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "meta",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/unread Mark a conversation as unread by moving its last-seen time back to its last incoming message. Moves the conversation's last-seen time ( agent last seen at ) to just before its last incoming message, so that message counts as unread again ( unread count is at least 1 ). The three read / unread endpoints: Action Method Path Effect Mark as read POST /api/v1/accounts/{account id}/conversations/{conversation id}/update last seen Sets the agent's last-seen time to now (also the assignee's, when the caller is the assignee). Mark as unread (by last incoming message) POST /api/v1/accounts/{account id}/conversations/{conversation id}/unread Moves last-seen to just before the last incoming message, so it counts as unread again. Mark as unread (flag) POST /api/v1/accounts/{account id}/conversations/{conversation id}/set unread Marks the conversation unread and fires conversation.unread . Authorization : user token. Response ( 200 OK ): the full conversation object. The request has no body. Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/unread' \\ -H 'api access token: ' Remarks For several conversations at once, use Bulk Mark as Unread. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The full conversation. Content type: application/json Field Type Description id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. uuid string A globally unique ID of the conversation. account id integer The numeric ID of the account. inbox id integer The numeric ID of the inbox. status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. labels array of string Array of strings — the titles of the conversation's labels. custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . meta object Object containing the conversation's metadata — its people and channel. meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.id integer The contact's numeric ID. meta.sender.name string The full name of the contact. meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . meta.sender.thumbnail string The avatar URL of the contact, or an empty string. meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. meta.sender.contact inboxes[].inbox.name string The name of the inbox. meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. meta.assignee.id integer The agent's numeric ID (user ID). meta.assignee.account id integer The numeric ID of the account. meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). meta.assignee.email string The agent's login email address. meta.assignee.available name string The agent's display name. meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. meta.assignee.name string The agent's full name. meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). meta.assignee.operation bot boolean true for internal operation-bot users. meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). meta.team object Object containing the assigned team's data, if a team is assigned. meta.team.id integer The numeric ID of the team. meta.team.name string The name of the team. Stored in lower case, and unique in the account. meta.team.description string The description of the team. meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. meta.team.account id integer The numeric ID of the account. meta.team.members count integer The number of agents in the team. meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). contact inbox object The contact's link (contact inbox) to the conversation's inbox. contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . messages array of object Array of message objects — the last message only. Use List of Messages for the history. messages[].id integer The numeric ID of the message. messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". messages[].inbox id integer The numeric ID of the inbox. messages[].conversation id integer The numeric ID of the conversation (its display ID). messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. messages[].sender.name string The sender's name. messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. messages[].sender.available name string An agent's display name. messages[].sender.email string \\ null The sender's email address. messages[].sender.phone number string \\ null The sender's phone number (a contact's). messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). messages[].sender.avatar url string An agent's avatar image URL. messages[].sender.logo user url string \\ null An agent's logo URL, or null . messages[].sender.thumbnail string The sender's avatar URL, or an empty string. messages[].sender.availability status string An agent's live presence ( online , busy or offline ). messages[].sender.blocked boolean Whether a contact is blocked. messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . messages[].sender id integer \\ null In a conversation's messages , the sender's ID. messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. messages[].attachments[].id integer The numeric ID of the file (attachment). messages[].attachments[].message id integer The numeric ID of the message the file belongs to. messages[].attachments[].account id integer The numeric ID of the account. messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. messages[].attachments[].filename string The name of the file. messages[].attachments[].extension string \\ null The file extension, when known. messages[].attachments[].data url string The URL of the file. messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). messages[].attachments[].file size integer The file size, in bytes. messages[].ticket id integer The ticket the message belongs to. messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). last non activity message.id integer The numeric ID of the message. last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". last non activity message.inbox id integer The numeric ID of the inbox. last non activity message.conversation id integer The numeric ID of the conversation (its display ID). last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. last non activity message.sender.name string The sender's name. last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. last non activity message.sender.available name string An agent's display name. last non activity message.sender.email string \\ null The sender's email address. last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). last non activity message.sender.avatar url string An agent's avatar image URL. last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). last non activity message.sender.blocked boolean Whether a contact is blocked. last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. last non activity message.attachments[].id integer The numeric ID of the file (attachment). last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. last non activity message.attachments[].account id integer The numeric ID of the account. last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. last non activity message.attachments[].filename string The name of the file. last non activity message.attachments[].extension string \\ null The file extension, when known. last non activity message.attachments[].data url string The URL of the file. last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). last non activity message.attachments[].file size integer The file size, in bytes. last non activity message.ticket id integer The ticket the message belongs to. last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . unread count integer The number of unread messages — incoming messages the agents have not read. has incoming messages boolean Whether the contact has written at least one public message. created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. timestamp integer The same as last activity at . last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. sla events array of object The SLA events of the conversation (missed thresholds). sla events with distinct event type array of object The SLA events, one per event type. feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). campaign id integer \\ null The ID of the campaign that started the conversation, or null . pinned boolean Whether the caller pinned this conversation. file object {url, file type} when a file is attached to the conversation itself (rare). Example: Unread The last incoming message counts as unread again. meta.assignee is shortened. { \"id\": 1501, \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\", \"account id\": 12, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": { \"order id\": \"A-1001\" }, \"additional attributes\": {}, \"meta\": { \"sender\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 }, \"channel\": \"Channel::Api\", \"assignee\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"available name\": \"Jane Agent\", \"name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"role\": \"General Manager\", \"thumbnail\": \"\" }, \"hmac verified\": false }, \"contact inbox\": { \"wa id\": null }, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794472860 }, \"content attributes\": {}, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"delay hours\": null, \"created at\": 1794472860, \"created at exact\": \"2026-11-12T08:41:00.000Z\" } ], \"last non activity message\": { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794472860 }, \"content attributes\": {}, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"delay hours\": null, \"created at\": 1794472860, \"created at exact\": \"2026-11-12T08:41:00.000Z\" }, \"can reply\": true, \"muted\": false, \"snoozed until\": null, \"unread count\": 1, \"has incoming messages\": true, \"created at\": 1794471000, \"timestamp\": 1794472860, \"last activity at\": 1794472860, \"first reply created at\": 1794471120, \"waiting since\": 1794472860, \"agent last seen at\": 1794472859, \"assignee last seen at\": 1794472859, \"contact last seen at\": 0, \"last incoming message time\": \"2026-11-12T08:41:00.000Z\", \"sla policy id\": null, \"feature enabled sla\": true, \"applied sla\": null, \"sla events\": [], \"sla events with distinct event type\": [], \"campaign id\": null, \"pinned\": false } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/set-conversation-unread",
      "title": "Set Conversation Unread",
      "url": "https://docs.99digital.co.il/online-api/conversations/set-conversation-unread",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/set-conversation-unread.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Flag a conversation as unread.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/set_unread",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/set_unread"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The full conversation.",
        "Example: Unread",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "setConversationUnread",
        "accounts",
        "conversations",
        "set_unread",
        "account_id",
        "conversation_id",
        "id",
        "uuid",
        "inbox_id",
        "status",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "meta",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/set unread Flag a conversation as unread. Marks the conversation unread and fires the conversation.unread event. The three read / unread endpoints: Action Method Path Effect Mark as read POST /api/v1/accounts/{account id}/conversations/{conversation id}/update last seen Sets the agent's last-seen time to now (also the assignee's, when the caller is the assignee). Mark as unread (by last incoming message) POST /api/v1/accounts/{account id}/conversations/{conversation id}/unread Moves last-seen to just before the last incoming message, so it counts as unread again. Mark as unread (flag) POST /api/v1/accounts/{account id}/conversations/{conversation id}/set unread Marks the conversation unread and fires conversation.unread . Authorization : user token. Response ( 200 OK ): the full conversation object. The request has no body. Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/set unread' \\ -H 'api access token: ' Remarks conversation.unread is not one of the webhook events you can subscribe to. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The full conversation. Content type: application/json Field Type Description id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. uuid string A globally unique ID of the conversation. account id integer The numeric ID of the account. inbox id integer The numeric ID of the inbox. status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. labels array of string Array of strings — the titles of the conversation's labels. custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . meta object Object containing the conversation's metadata — its people and channel. meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.id integer The contact's numeric ID. meta.sender.name string The full name of the contact. meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . meta.sender.thumbnail string The avatar URL of the contact, or an empty string. meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. meta.sender.contact inboxes[].inbox.name string The name of the inbox. meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. meta.assignee.id integer The agent's numeric ID (user ID). meta.assignee.account id integer The numeric ID of the account. meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). meta.assignee.email string The agent's login email address. meta.assignee.available name string The agent's display name. meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. meta.assignee.name string The agent's full name. meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). meta.assignee.operation bot boolean true for internal operation-bot users. meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). meta.team object Object containing the assigned team's data, if a team is assigned. meta.team.id integer The numeric ID of the team. meta.team.name string The name of the team. Stored in lower case, and unique in the account. meta.team.description string The description of the team. meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. meta.team.account id integer The numeric ID of the account. meta.team.members count integer The number of agents in the team. meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). contact inbox object The contact's link (contact inbox) to the conversation's inbox. contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . messages array of object Array of message objects — the last message only. Use List of Messages for the history. messages[].id integer The numeric ID of the message. messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". messages[].inbox id integer The numeric ID of the inbox. messages[].conversation id integer The numeric ID of the conversation (its display ID). messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. messages[].sender.name string The sender's name. messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. messages[].sender.available name string An agent's display name. messages[].sender.email string \\ null The sender's email address. messages[].sender.phone number string \\ null The sender's phone number (a contact's). messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). messages[].sender.avatar url string An agent's avatar image URL. messages[].sender.logo user url string \\ null An agent's logo URL, or null . messages[].sender.thumbnail string The sender's avatar URL, or an empty string. messages[].sender.availability status string An agent's live presence ( online , busy or offline ). messages[].sender.blocked boolean Whether a contact is blocked. messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . messages[].sender id integer \\ null In a conversation's messages , the sender's ID. messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. messages[].attachments[].id integer The numeric ID of the file (attachment). messages[].attachments[].message id integer The numeric ID of the message the file belongs to. messages[].attachments[].account id integer The numeric ID of the account. messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. messages[].attachments[].filename string The name of the file. messages[].attachments[].extension string \\ null The file extension, when known. messages[].attachments[].data url string The URL of the file. messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). messages[].attachments[].file size integer The file size, in bytes. messages[].ticket id integer The ticket the message belongs to. messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). last non activity message.id integer The numeric ID of the message. last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". last non activity message.inbox id integer The numeric ID of the inbox. last non activity message.conversation id integer The numeric ID of the conversation (its display ID). last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. last non activity message.sender.name string The sender's name. last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. last non activity message.sender.available name string An agent's display name. last non activity message.sender.email string \\ null The sender's email address. last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). last non activity message.sender.avatar url string An agent's avatar image URL. last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). last non activity message.sender.blocked boolean Whether a contact is blocked. last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. last non activity message.attachments[].id integer The numeric ID of the file (attachment). last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. last non activity message.attachments[].account id integer The numeric ID of the account. last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. last non activity message.attachments[].filename string The name of the file. last non activity message.attachments[].extension string \\ null The file extension, when known. last non activity message.attachments[].data url string The URL of the file. last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). last non activity message.attachments[].file size integer The file size, in bytes. last non activity message.ticket id integer The ticket the message belongs to. last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . unread count integer The number of unread messages — incoming messages the agents have not read. has incoming messages boolean Whether the contact has written at least one public message. created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. timestamp integer The same as last activity at . last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. sla events array of object The SLA events of the conversation (missed thresholds). sla events with distinct event type array of object The SLA events, one per event type. feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). campaign id integer \\ null The ID of the campaign that started the conversation, or null . pinned boolean Whether the caller pinned this conversation. file object {url, file type} when a file is attached to the conversation itself (rare). Example: Unread The conversation marked as unread. meta.assignee is shortened. { \"id\": 1501, \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\", \"account id\": 12, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": { \"order id\": \"A-1001\" }, \"additional attributes\": {}, \"meta\": { \"sender\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 }, \"channel\": \"Channel::Api\", \"assignee\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"available name\": \"Jane Agent\", \"name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"role\": \"General Manager\", \"thumbnail\": \"\" }, \"hmac verified\": false }, \"contact inbox\": { \"wa id\": null }, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794472860 }, \"content attributes\": {}, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"delay hours\": null, \"created at\": 1794472860, \"created at exact\": \"2026-11-12T08:41:00.000Z\" } ], \"last non activity message\": { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794472860 }, \"content attributes\": {}, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"delay hours\": null, \"created at\": 1794472860, \"created at exact\": \"2026-11-12T08:41:00.000Z\" }, \"can reply\": true, \"muted\": false, \"snoozed until\": null, \"unread count\": 1, \"has incoming messages\": true, \"created at\": 1794471000, \"timestamp\": 1794472860, \"last activity at\": 1794472860, \"first reply created at\": 1794471120, \"waiting since\": 1794472860, \"agent last seen at\": 1794472859, \"assignee last seen at\": 1794472859, \"contact last seen at\": 0, \"last incoming message time\": \"2026-11-12T08:41:00.000Z\", \"sla policy id\": null, \"feature enabled sla\": true, \"applied sla\": null, \"sla events\": [], \"sla events with distinct event type\": [], \"campaign id\": null, \"pinned\": false } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-conversation-events",
      "title": "List Conversation Events",
      "url": "https://docs.99digital.co.il/online-api/conversations/list-conversation-events",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/list-conversation-events.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "List a conversation's events: its audit trail of status, assignment, label and other changes.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/conversation_events",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/conversation_events"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The conversation's events, oldest first.",
        "Example: All events",
        "Example: Label events",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listConversationEvents",
        "accounts",
        "conversations",
        "conversation_events",
        "account_id",
        "conversation_id",
        "event_type",
        "ticket_id",
        "payload",
        "id",
        "created_by",
        "type_old_status",
        "type_new_status",
        "type_agent",
        "type_agent_old_value",
        "type_agent_new_value",
        "type_team",
        "team_type_old_value",
        "team_type_new_value",
        "type_label",
        "type_label_value",
        "type_priority",
        "type_sla_event",
        "type_custom_attribute",
        "type_additional_attributes",
        "type_agent_mentions",
        "contact_id",
        "inbox_id",
        "created_at",
        "updated_at",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/conversation events List a conversation's events: its audit trail of status, assignment, label and other changes. The audit trail of a conversation: status changes, Bot/Manual switches, assignments, team changes, labels, priority, SLA, custom and additional attribute changes, and mentions. Each event carries the ticket id it belongs to (see Tickets). Setting Value Method GET Path /api/v1/accounts/{account id}/conversations/{conversation id}/conversation events (list, oldest first) and /conversation events/{event id} (one event) Authorization User token. Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Query parameters (list) Name Type Required Description event type string No agent , team , label , status , sla , custom attribute , additional attributes , priority , agent mentions , bot mode , human mode , other . ticket id integer No Only events of this ticket. Event fields Field Description event type agent , team , label , status , sla , custom attribute , additional attributes , priority , agent mentions , bot mode , human mode , other . bot mode / human mode are switches to open (Bot) / pending (Manual). created by system , agent create (an agent or API user), agent bot , user (the contact). type old status , type new status For status , bot mode and human mode events. type agent + type agent old value / type agent new value add agent / remove agent / change agent and the agent IDs. type team + team type old value / team type new value add team / remove team / change team and the team IDs. type label + type label value add label / remove label and the labels. type priority , type sla event , type custom attribute , type additional attributes , type agent mentions Details of the other event types. account id , contact id , conversation id , inbox id , ticket id Related IDs ( conversation id is the internal ID, not the display ID used in paths). created at , updated at Unix timestamps. The fields that describe the change depend on event type ; the others are null . Example: label events only curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/conversation events?event type=label' \\ -H 'api access token: ' Response ( 200 OK ): { \"payload\": [ { \"id\": 6102, \"created by\": \"agent create\", \"event type\": \"label\", \"team type new value\": null, \"team type old value\": null, \"type additional attributes\": null, \"type agent\": null, \"type agent mentions\": null, \"type agent new value\": null, \"type agent old value\": null, \"type custom attribute\": null, \"type label\": \"add label\", \"type label value\": \"[\\\"vip\\\"]\", \"type new status\": null, \"type old status\": null, \"type priority\": null, \"type sla event\": null, \"type team\": null, \"created at\": 1794472950, \"updated at\": 1794472950, \"account id\": 12, \"contact id\": 801, \"conversation id\": 2301, \"inbox id\": 31, \"ticket id\": 903 } ] } To get one event, use Get Conversation Event. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . event type query string No Return only events of this type. The values are explained under event type in the response. One of: agent — Changes of the assigned agent; team — Changes of the assigned team; label — Labels added or removed; status — Status changes; sla — SLA events; custom attribute — Custom attribute changes; additional attributes — Additional attribute changes; priority — Priority changes; agent mentions — Agent mentions; bot mode — Switches to Bot ( open ); human mode — Switches to Manual ( pending ); other — Any other change. Example: label . ticket id query integer No Return only the events of this ticket. Example: 903 . Responses 200 — The conversation's events, oldest first. Content type: application/json Field Type Description payload array of object The events. payload[].id integer The event ID. payload[].event type string What changed. One of: agent — The assigned agent changed — see type agent ; team — The assigned team changed — see type team ; label — Labels were added or removed — see type label ; status — The status changed — see type old status and type new status ; sla — An SLA event — see type sla event ; custom attribute — A custom attribute changed — see type custom attribute ; additional attributes — An additional attribute changed — see type additional attributes ; priority — The priority changed — see type priority ; agent mentions — An agent was mentioned — see type agent mentions ; bot mode — A switch to Bot ( open ) — see type old status and type new status ; human mode — A switch to Manual ( pending ) — see type old status and type new status ; other — Any other change. payload[].created by string Who made the change. One of: system — The system; agent create — An agent, or an API call with a user token; agent bot — An agent bot; user — The contact. payload[].type old status string \\ null In status , bot mode and human mode events, the previous status. payload[].type new status string \\ null In status , bot mode and human mode events, the new status. payload[].type agent string \\ null In agent events, what happened to the assigned agent. One of: add agent — An agent was added to the conversation; remove agent — The agent was removed from the conversation; change agent — The assigned agent changed. The previous value can be null ; null — Not an agent event. payload[].type agent old value integer \\ null In agent events, the previous agent's ID. payload[].type agent new value integer \\ null In agent events, the new agent's ID. payload[].type team string \\ null In team events, what happened to the assigned team. One of: add team — A team was added to the conversation; remove team — The team was removed from the conversation; change team — The assigned team changed; null — Not a team event. payload[].team type old value integer \\ null In team events, the previous team's ID. payload[].team type new value integer \\ null In team events, the new team's ID. payload[].type label string \\ null In label events, whether labels were added or removed. One of: add label — Labels were added — listed in type label value ; remove label — Labels were removed — listed in type label value ; null — Not a label event. payload[].type label value string \\ null In label events, the labels added or removed, as a JSON-encoded array in a string. payload[].type priority any The details of a priority event, or null . payload[].type sla event any The details of an sla event, or null . payload[].type custom attribute any The details of a custom attribute event, or null . payload[].type additional attributes any The details of an additional attributes event, or null . payload[].type agent mentions any The details of an agent mentions event, or null . payload[].account id integer The account ID. payload[].contact id integer The contact ID. payload[].conversation id integer The conversation's internal ID — not the display ID used in paths. payload[].inbox id integer The inbox ID. payload[].ticket id integer The ticket the event belongs to. payload[].created at integer When the event happened (Unix time, seconds). payload[].updated at integer The last update (Unix time, seconds). Example: All events An assignment, then a label, oldest first. { \"payload\": [ { \"id\": 6101, \"created by\": \"agent create\", \"event type\": \"agent\", \"team type new value\": null, \"team type old value\": null, \"type additional attributes\": null, \"type agent\": \"change agent\", \"type agent mentions\": null, \"type agent new value\": 51, \"type agent old value\": null, \"type custom attribute\": null, \"type label\": null, \"type label value\": null, \"type new status\": null, \"type old status\": null, \"type priority\": null, \"type sla event\": null, \"type team\": null, \"created at\": 1794472920, \"updated at\": 1794472920, \"account id\": 12, \"contact id\": 801, \"conversation id\": 2301, \"inbox id\": 31, \"ticket id\": 903 }, { \"id\": 6102, \"created by\": \"agent create\", \"event type\": \"label\", \"team type new value\": null, \"team type old value\": null, \"type additional attributes\": null, \"type agent\": null, \"type agent mentions\": null, \"type agent new value\": null, \"type agent old value\": null, \"type custom attribute\": null, \"type label\": \"add label\", \"type label value\": \"[\\\"vip\\\"]\", \"type new status\": null, \"type old status\": null, \"type priority\": null, \"type sla event\": null, \"type team\": null, \"created at\": 1794472950, \"updated at\": 1794472950, \"account id\": 12, \"contact id\": 801, \"conversation id\": 2301, \"inbox id\": 31, \"ticket id\": 903 } ] } Example: Label events With event type=label . { \"payload\": [ { \"id\": 6102, \"created by\": \"agent create\", \"event type\": \"label\", \"team type new value\": null, \"team type old value\": null, \"type additional attributes\": null, \"type agent\": null, \"type agent mentions\": null, \"type agent new value\": null, \"type agent old value\": null, \"type custom attribute\": null, \"type label\": \"add label\", \"type label value\": \"[\\\"vip\\\"]\", \"type new status\": null, \"type old status\": null, \"type priority\": null, \"type sla event\": null, \"type team\": null, \"created at\": 1794472950, \"updated at\": 1794472950, \"account id\": 12, \"contact id\": 801, \"conversation id\": 2301, \"inbox id\": 31, \"ticket id\": 903 } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/get-conversation-event",
      "title": "Get Conversation Event",
      "url": "https://docs.99digital.co.il/online-api/conversations/get-conversation-event",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/get-conversation-event.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Get one event from a conversation's audit trail.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/conversation_events/{event_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/conversation_events/{event_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The event.",
        "Example: Assignment",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "getConversationEvent",
        "accounts",
        "conversations",
        "conversation_events",
        "account_id",
        "conversation_id",
        "event_id",
        "id",
        "event_type",
        "created_by",
        "type_old_status",
        "type_new_status",
        "type_agent",
        "type_agent_old_value",
        "type_agent_new_value",
        "type_team",
        "team_type_old_value",
        "team_type_new_value",
        "type_label",
        "type_label_value",
        "type_priority",
        "type_sla_event",
        "type_custom_attribute",
        "type_additional_attributes",
        "type_agent_mentions",
        "contact_id",
        "inbox_id",
        "ticket_id",
        "created_at",
        "updated_at",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/conversation events/{event id} Get one event from a conversation's audit trail. The audit trail of a conversation: status changes, Bot/Manual switches, assignments, team changes, labels, priority, SLA, custom and additional attribute changes, and mentions. Each event carries the ticket id it belongs to (see Tickets). Setting Value Method GET Path /api/v1/accounts/{account id}/conversations/{conversation id}/conversation events (list, oldest first) and /conversation events/{event id} (one event) Authorization User token. Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. event id integer Yes The event's ID, as returned by List Conversation Events. Event fields Field Description event type agent , team , label , status , sla , custom attribute , additional attributes , priority , agent mentions , bot mode , human mode , other . bot mode / human mode are switches to open (Bot) / pending (Manual). created by system , agent create (an agent or API user), agent bot , user (the contact). type old status , type new status For status , bot mode and human mode events. type agent + type agent old value / type agent new value add agent / remove agent / change agent and the agent IDs. type team + team type old value / team type new value add team / remove team / change team and the team IDs. type label + type label value add label / remove label and the labels. type priority , type sla event , type custom attribute , type additional attributes , type agent mentions Details of the other event types. account id , contact id , conversation id , inbox id , ticket id Related IDs ( conversation id is the internal ID, not the display ID used in paths). created at , updated at Unix timestamps. The fields that describe the change depend on event type ; the others are null . Example: one event (an assignment) curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/conversation events/6101' \\ -H 'api access token: ' Response ( 200 OK ). The event object is not wrapped in payload ; null fields are trimmed here. { \"id\": 6101, \"created by\": \"agent create\", \"event type\": \"agent\", \"type agent\": \"change agent\", \"type agent new value\": 51, \"type agent old value\": null, \"created at\": 1794472920, \"updated at\": 1794472920, \"account id\": 12, \"contact id\": 801, \"conversation id\": 2301, \"inbox id\": 31, \"ticket id\": 903 } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . event id path integer Yes The event's ID, as returned by List Conversation Events. Example: 6101 . Responses 200 — The event. Content type: application/json Field Type Description id integer The event ID. event type string What changed. One of: agent — The assigned agent changed — see type agent ; team — The assigned team changed — see type team ; label — Labels were added or removed — see type label ; status — The status changed — see type old status and type new status ; sla — An SLA event — see type sla event ; custom attribute — A custom attribute changed — see type custom attribute ; additional attributes — An additional attribute changed — see type additional attributes ; priority — The priority changed — see type priority ; agent mentions — An agent was mentioned — see type agent mentions ; bot mode — A switch to Bot ( open ) — see type old status and type new status ; human mode — A switch to Manual ( pending ) — see type old status and type new status ; other — Any other change. created by string Who made the change. One of: system — The system; agent create — An agent, or an API call with a user token; agent bot — An agent bot; user — The contact. type old status string \\ null In status , bot mode and human mode events, the previous status. type new status string \\ null In status , bot mode and human mode events, the new status. type agent string \\ null In agent events, what happened to the assigned agent. One of: add agent — An agent was added to the conversation; remove agent — The agent was removed from the conversation; change agent — The assigned agent changed. The previous value can be null ; null — Not an agent event. type agent old value integer \\ null In agent events, the previous agent's ID. type agent new value integer \\ null In agent events, the new agent's ID. type team string \\ null In team events, what happened to the assigned team. One of: add team — A team was added to the conversation; remove team — The team was removed from the conversation; change team — The assigned team changed; null — Not a team event. team type old value integer \\ null In team events, the previous team's ID. team type new value integer \\ null In team events, the new team's ID. type label string \\ null In label events, whether labels were added or removed. One of: add label — Labels were added — listed in type label value ; remove label — Labels were removed — listed in type label value ; null — Not a label event. type label value string \\ null In label events, the labels added or removed, as a JSON-encoded array in a string. type priority any The details of a priority event, or null . type sla event any The details of an sla event, or null . type custom attribute any The details of a custom attribute event, or null . type additional attributes any The details of an additional attributes event, or null . type agent mentions any The details of an agent mentions event, or null . account id integer The account ID. contact id integer The contact ID. conversation id integer The conversation's internal ID — not the display ID used in paths. inbox id integer The inbox ID. ticket id integer The ticket the event belongs to. created at integer When the event happened (Unix time, seconds). updated at integer The last update (Unix time, seconds). Example: Assignment Agent 51 was assigned to the conversation. { \"id\": 6101, \"created by\": \"agent create\", \"event type\": \"agent\", \"team type new value\": null, \"team type old value\": null, \"type additional attributes\": null, \"type agent\": \"change agent\", \"type agent mentions\": null, \"type agent new value\": 51, \"type agent old value\": null, \"type custom attribute\": null, \"type label\": null, \"type label value\": null, \"type new status\": null, \"type old status\": null, \"type priority\": null, \"type sla event\": null, \"type team\": null, \"created at\": 1794472920, \"updated at\": 1794472920, \"account id\": 12, \"contact id\": 801, \"conversation id\": 2301, \"inbox id\": 31, \"ticket id\": 903 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/bulk-update-conversations",
      "title": "Bulk Update Conversations",
      "url": "https://docs.99digital.co.il/online-api/conversations/bulk-update-conversations",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/bulk-update-conversations.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Updates many conversations at once: status, priority, assignee, team, snooze time, and adding or removing labels.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/bulk_actions",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/bulk_actions"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Resolve",
        "Example: Status, priority and labels",
        "Example: Assign",
        "Responses",
        "200 — The update was accepted and runs in the background, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "422 — type is not Conversation.",
        "Example"
      ],
      "keywords": [
        "bulkUpdateConversations",
        "accounts",
        "bulk_actions",
        "account_id",
        "type",
        "ids",
        "fields",
        "status",
        "priority",
        "assignee_id",
        "team_id",
        "snoozed_until",
        "labels",
        "add",
        "remove",
        "error",
        "success"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/bulk actions Updates many conversations at once: status, priority, assignee, team, snooze time, and adding or removing labels. The update runs in the background, so the response is immediate. The request is rejected as a whole ( 403 ) if any conversation is not visible to the caller, or if the caller lacks the inbox permission for a field being changed (the same permissions as the single-conversation endpoints); then no conversation is changed. Setting Value Method POST Path /api/v1/accounts/{account id}/bulk actions Authorization User token. Per-field inbox permissions as in Toggle Conversation Status, Toggle Conversation Priority, Assign Conversation and Set Conversation Labels. Permissions: User token: the caller must be able to see every conversation in ids — see Who can see a conversation. New rules system, for each field you change, in every conversation's inbox: fields.status : Inbox resolve , Inbox move to pending , Inbox reopen or Inbox manual/bot switch , by the status. fields.priority : Inbox priority of conversations . fields.assignee id : Inbox can assign . fields.team id : Inbox assign to group . labels : Inbox assign labels . Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. Body parameters (JSON) Name Type Required Description type string Yes Must be Conversation . Anything else returns 422 {\"success\": false} . ids integer[] Yes Conversation display IDs. fields.status string No New status: open (Bot), pending (Manual), snoozed , resolved . fields.priority string No New priority: low , medium , high , urgent . fields.assignee id integer No Agent to assign (must be assignable in every affected inbox). fields.team id integer No Team to assign. fields.snoozed until string No Snooze end time. labels.add string[] No Labels to add. labels.remove string[] No Labels to remove. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/bulk actions' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"type\": \"Conversation\", \"ids\": [1501], \"fields\": { \"status\": \"pending\", \"priority\": \"high\" }, \"labels\": { \"add\": [\"billing\"], \"remove\": [\"follow up\"] } }' Example response : 200 OK with an empty body. A few seconds later conversation 1501 had status pending , priority high and labels [\"vip\", \"billing\"] . Error responses Status When Body 403 A conversation is not visible to the caller, or the caller lacks the inbox permission for a field. The whole request is rejected. 422 type is not Conversation . {\"success\": false} Remarks labels.add and labels.remove change single labels without sending the full list, unlike Set Conversation Labels, which replaces it. This works for a single conversation too. To mark conversations as read or unread, use Bulk Mark as Read and Bulk Mark as Unread. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description type string Yes The kind of records to update. Must be Conversation ; any other value returns 422 with {\"success\": false} . One of: Conversation . ids array of integer Yes The conversations' display IDs. See Conversation Basics. fields object No The new values. Send only the fields to change. fields.status string No The new status. The dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Snoozed until fields.snoozed until , then reopened; resolved — Resolved. fields.priority string No The new priority. One of: low — The lowest priority; medium — Medium priority; high — High priority; urgent — The highest priority. fields.assignee id integer No The agent to assign. The agent must be assignable in the inbox of every conversation. fields.team id integer No The team to assign. fields.snoozed until string No With status snoozed : when the snoozed conversations reopen. labels object No Labels to add or remove, by title. labels.add array of string No The labels to add. labels.remove array of string No The labels to remove. Example: Resolve Resolve two conversations. { \"type\": \"Conversation\", \"ids\": [ 1501, 1502 ], \"fields\": { \"status\": \"resolved\" } } Example: Status, priority and labels Hand over to a human, raise the priority, and change labels. { \"type\": \"Conversation\", \"ids\": [ 1501, 1502 ], \"fields\": { \"status\": \"pending\", \"priority\": \"high\" }, \"labels\": { \"add\": [ \"vip\" ], \"remove\": [ \"follow up\" ] } } Example: Assign Assign an agent and a team. { \"type\": \"Conversation\", \"ids\": [ 1501, 1502 ], \"fields\": { \"assignee id\": 52, \"team id\": 7 } } Responses 200 — The update was accepted and runs in the background, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 422 — type is not Conversation . Content type: application/json Field Type Description success boolean Always false in this response. Example { \"success\": false }"
    },
    {
      "id": "online-api/bulk-mark-as-read",
      "title": "Bulk Mark as Read",
      "url": "https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-read",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/bulk-mark-as-read.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Mark several conversations as read at once.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/bulk_actions/mark_as_read_all",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/bulk_actions/mark_as_read_all"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The conversations were marked as read, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "bulkMarkAsRead",
        "accounts",
        "bulk_actions",
        "mark_as_read_all",
        "account_id",
        "ids",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/bulk actions/mark as read all Mark several conversations as read at once. Marks every conversation in ids as read. The response has an empty body. For one conversation, you can also use Mark Conversation as Read, which returns the conversation. The two bulk read / unread endpoints: Action Method Path Body Response Mark as read POST /api/v1/accounts/{account id}/bulk actions/mark as read all {\"ids\": [1501]} 200 OK , empty body Mark as unread POST /api/v1/accounts/{account id}/bulk actions/mark as unread {\"ids\": [1501]} 200 OK , {\"payload\": [...conversations that were marked unread...]} . A conversation without incoming messages is skipped. Permissions: User token: allowed. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. Body parameters (JSON) Name Type Required Description ids integer[] Yes Conversation display IDs. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/bulk actions/mark as read all' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"ids\": [1501, 1502] }' Example response : 200 OK with an empty body. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description ids array of integer Yes The conversations' display IDs. See Conversation Basics. Example (generated from the schema) { \"ids\": [ 1501, 1502 ] } Responses 200 — The conversations were marked as read, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/bulk-mark-as-unread",
      "title": "Bulk Mark as Unread",
      "url": "https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-unread",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/bulk-mark-as-unread.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations"
      ],
      "language": "en",
      "description": "Mark several conversations as unread at once.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/bulk_actions/mark_as_unread",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/bulk_actions/mark_as_unread"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The conversations that were marked as unread.",
        "Example: One skipped",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "bulkMarkAsUnread",
        "accounts",
        "bulk_actions",
        "mark_as_unread",
        "account_id",
        "ids",
        "payload",
        "id",
        "uuid",
        "inbox_id",
        "status",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "meta",
        "sender",
        "name",
        "email",
        "phone_number",
        "identifier",
        "thumbnail",
        "availability_status",
        "blocked",
        "is_whatsapp_contact",
        "created_at",
        "last_activity_at",
        "email_or_phone_optional",
        "contact_inboxes",
        "source_id",
        "inbox",
        "channel_id",
        "channel_type",
        "enable_auto_assignment",
        "timezone",
        "webhook_url",
        "api_type",
        "conversations",
        "assignee",
        "auto_offline",
        "confirmed",
        "available_name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "team",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "channel",
        "hmac_verified",
        "contact_inbox",
        "wa_id",
        "messages",
        "content",
        "conversation_id",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "echo_id",
        "type",
        "avatar_url",
        "logo_user_url",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at_exact",
        "last_non_activity_message",
        "can_reply",
        "muted",
        "snoozed_until",
        "unread_count",
        "has_incoming_messages",
        "timestamp",
        "first_reply_created_at",
        "waiting_since",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "contact_last_seen_at",
        "last_incoming_message_time",
        "sla_policy_id",
        "applied_sla",
        "sla_events",
        "sla_events_with_distinct_event_type",
        "feature_enabled_sla",
        "campaign_id",
        "pinned",
        "file",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/bulk actions/mark as unread Mark several conversations as unread at once. Marks every conversation in ids as unread, and returns the conversations that were marked. A conversation without incoming messages is skipped, and is not in the response. For one conversation, you can also use Mark Conversation as Unread. The two bulk read / unread endpoints: Action Method Path Body Response Mark as read POST /api/v1/accounts/{account id}/bulk actions/mark as read all {\"ids\": [1501]} 200 OK , empty body Mark as unread POST /api/v1/accounts/{account id}/bulk actions/mark as unread {\"ids\": [1501]} 200 OK , {\"payload\": [...conversations that were marked unread...]} . A conversation without incoming messages is skipped. Permissions: User token: allowed. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. Body parameters (JSON) Name Type Required Description ids integer[] Yes Conversation display IDs. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/bulk actions/mark as unread' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"ids\": [1501, 1502] }' Example response ( 200 OK ): {\"payload\": [...]} with the conversations that were marked unread — here only 1501 , because 1502 has no incoming messages. The full conversation objects are under Responses below. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description ids array of integer Yes The conversations' display IDs. See Conversation Basics. Example (generated from the schema) { \"ids\": [ 1501, 1502 ] } Responses 200 — The conversations that were marked as unread. Content type: application/json Field Type Description payload array of object The conversations that were marked as unread. payload[].id integer The conversation's numeric ID: its display ID, used in every path and shown in the dashboard URL. payload[].uuid string A globally unique ID of the conversation. payload[].account id integer The numeric ID of the account. payload[].inbox id integer The numeric ID of the inbox. payload[].status string The status of the conversation. The status names in the API differ from the labels in the dashboard: the dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until snoozed until , then reopened; resolved — Closed. payload[].priority string \\ null The priority of the conversation, or null when none is set. One of: low — Low priority; medium — Medium priority; high — High priority; urgent — Urgent — the highest priority; null — No priority is set. payload[].labels array of string Array of strings — the titles of the conversation's labels. payload[].custom attributes object Object containing the custom attributes related to the conversation (custom attribute keys and their values). payload[].additional attributes object Object containing the additional attributes related to the conversation: channel or system data, such as mail subject , source or transcript lmi . payload[].meta object Object containing the conversation's metadata — its people and channel. payload[].meta.sender object A contact — a customer (person or company) who talks to you through one or more inboxes. A contact is linked to an inbox through a contact inbox , and its source id identifies the contact on that channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].meta.sender.id integer The contact's numeric ID. payload[].meta.sender.name string The full name of the contact. payload[].meta.sender.email string \\ null The email address of the contact, stored in lower case, or null . payload[].meta.sender.phone number string \\ null The phone number of the contact in E.164 format ( + and the country code, then the number, for example +972501234567 ), or null . Israeli mobile numbers are normalized automatically: 0501234567 , 501234567 and 972501234567 are all saved as +972501234567 . payload[].meta.sender.identifier string \\ null A unique identifier for the contact in your external system (your own ID for the contact), unique in the account, or null . payload[].meta.sender.thumbnail string The avatar URL of the contact, or an empty string. payload[].meta.sender.availability status string The availability status of the contact: whether the contact is connected right now (website widget). One of: online — The contact is connected right now (website widget); offline — The contact is not connected. payload[].meta.sender.additional attributes object Object containing the additional attributes related to the contact: standard extra fields, such as company name , city , country , country code , description and social profiles . Blocking data ( blocked , blocked at , block source ) is kept here too. payload[].meta.sender.custom attributes object Object containing the custom attributes related to the contact: values of the account's contact custom attributes (Settings → Custom attributes), plus any free-form keys you sent. payload[].meta.sender.blocked boolean Indicates whether the contact is blocked — true while the contact is blocked. payload[].meta.sender.is whatsapp contact boolean true if the contact belongs to a WhatsApp API inbox. payload[].meta.sender.created at integer The time at which the contact was created (Unix timestamp, in seconds). payload[].meta.sender.last activity at integer The time of the contact's last activity (Unix timestamp, in seconds). Present only when set. payload[].meta.sender.email or phone optional boolean true when the contact has a WhatsApp ID, so email and phone may both be empty. Returned only together with contact inboxes . payload[].meta.sender.contact inboxes array of object Array of contact inbox objects: the inboxes the contact is linked to, each with the contact's source id there and the inbox's details. Returned by the endpoints that return one contact, and by the list, search and filter endpoints unless you send include contact inboxes=false . payload[].meta.sender.contact inboxes[].source id string The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). payload[].meta.sender.contact inboxes[].inbox object Object containing the details of the inbox. payload[].meta.sender.contact inboxes[].inbox.id integer The numeric ID of the inbox. payload[].meta.sender.contact inboxes[].inbox.channel id integer The numeric ID of the inbox's channel. payload[].meta.sender.contact inboxes[].inbox.account id integer The numeric ID of the account. payload[].meta.sender.contact inboxes[].inbox.name string The name of the inbox. payload[].meta.sender.contact inboxes[].inbox.channel type string The type of the inbox (its channel), for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].meta.sender.contact inboxes[].inbox.enable auto assignment boolean Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. payload[].meta.sender.contact inboxes[].inbox.timezone string The inbox's time zone. payload[].meta.sender.contact inboxes[].inbox.webhook url string For API inboxes, the inbox's own webhook URL. payload[].meta.sender.contact inboxes[].inbox.api type string For API inboxes, the kind of API inbox, for example incoming calls . payload[].meta.sender.conversations array of object The contact's conversations, each a conversation object as returned by Get Conversation. Returned only by Filter Contacts with include conversations=true . payload[].meta.assignee object An agent: a user that belongs to the account. Each agent has a legacy role ( agent / administrator ) and, on accounts with the new rules system, a custom role (for example General Manager or Shift Manager ) that grants the permissions described in Authorization. Reduced payload: on accounts with the new rules system, a caller whose role lacks Agents → read gets agents without personal details — auto offline , email , custom attributes , role , operation bot , two factor type , phone1 , email1 and create time are left out. Agent-bot tokens always get every field. payload[].meta.assignee.id integer The agent's numeric ID (user ID). payload[].meta.assignee.account id integer The numeric ID of the account. payload[].meta.assignee.availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. payload[].meta.assignee.auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). payload[].meta.assignee.confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). payload[].meta.assignee.email string The agent's login email address. payload[].meta.assignee.available name string The agent's display name. payload[].meta.assignee.custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. payload[].meta.assignee.name string The agent's full name. payload[].meta.assignee.role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). payload[].meta.assignee.operation bot boolean true for internal operation-bot users. payload[].meta.assignee.see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). payload[].meta.assignee.assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . payload[].meta.assignee.new role string \\ null The agent's custom role name, or null on accounts with legacy roles. payload[].meta.assignee.thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. payload[].meta.assignee.capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. payload[].meta.assignee.two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. payload[].meta.assignee.phone1 string \\ null The phone number that receives two-factor codes by SMS. payload[].meta.assignee.email1 string \\ null The email address that receives two-factor codes by email. payload[].meta.assignee.create time integer When the agent was created (Unix timestamp, in seconds). payload[].meta.team object Object containing the assigned team's data, if a team is assigned. payload[].meta.team.id integer The numeric ID of the team. payload[].meta.team.name string The name of the team. Stored in lower case, and unique in the account. payload[].meta.team.description string The description of the team. payload[].meta.team.allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. payload[].meta.team.account id integer The numeric ID of the account. payload[].meta.team.members count integer The number of agents in the team. payload[].meta.team.is member boolean Indicates whether the current user (the caller) is a member of the team. payload[].meta.channel string The channel type of the inbox, for example Channel::Api , Channel::Whatsapp or Channel::Email . payload[].meta.hmac verified boolean Whether the contact's identity was HMAC-verified (website widget). payload[].contact inbox object The contact's link (contact inbox) to the conversation's inbox. payload[].contact inbox.wa id string \\ null The contact's WhatsApp ID in this inbox, for WhatsApp users who hide their phone number; otherwise null . payload[].messages array of object Array of message objects — the last message only. Use List of Messages for the history. payload[].messages[].id integer The numeric ID of the message. payload[].messages[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". payload[].messages[].inbox id integer The numeric ID of the inbox. payload[].messages[].conversation id integer The numeric ID of the conversation (its display ID). payload[].messages[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. payload[].messages[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. payload[].messages[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. payload[].messages[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. payload[].messages[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. payload[].messages[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . payload[].messages[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . payload[].messages[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. payload[].messages[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. payload[].messages[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].messages[].sender.name string The sender's name. payload[].messages[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].messages[].sender.available name string An agent's display name. payload[].messages[].sender.email string \\ null The sender's email address. payload[].messages[].sender.phone number string \\ null The sender's phone number (a contact's). payload[].messages[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].messages[].sender.avatar url string An agent's avatar image URL. payload[].messages[].sender.logo user url string \\ null An agent's logo URL, or null . payload[].messages[].sender.thumbnail string The sender's avatar URL, or an empty string. payload[].messages[].sender.availability status string An agent's live presence ( online , busy or offline ). payload[].messages[].sender.blocked boolean Whether a contact is blocked. payload[].messages[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].messages[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). payload[].messages[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . payload[].messages[].sender id integer \\ null In a conversation's messages , the sender's ID. payload[].messages[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. payload[].messages[].attachments[].id integer The numeric ID of the file (attachment). payload[].messages[].attachments[].message id integer The numeric ID of the message the file belongs to. payload[].messages[].attachments[].account id integer The numeric ID of the account. payload[].messages[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. payload[].messages[].attachments[].filename string The name of the file. payload[].messages[].attachments[].extension string \\ null The file extension, when known. payload[].messages[].attachments[].data url string The URL of the file. payload[].messages[].attachments[].thumb url string The URL of the file's thumbnail (for images). payload[].messages[].attachments[].file size integer The file size, in bytes. payload[].messages[].ticket id integer The ticket the message belongs to. payload[].messages[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . payload[].messages[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. payload[].messages[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. payload[].last non activity message object A message in a conversation. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). payload[].last non activity message.id integer The numeric ID of the message. payload[].last non activity message.content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". payload[].last non activity message.inbox id integer The numeric ID of the inbox. payload[].last non activity message.conversation id integer The numeric ID of the conversation (its display ID). payload[].last non activity message.message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. payload[].last non activity message.content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. payload[].last non activity message.content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. payload[].last non activity message.private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. payload[].last non activity message.status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. payload[].last non activity message.status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . payload[].last non activity message.source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . payload[].last non activity message.echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. payload[].last non activity message.sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. payload[].last non activity message.sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].last non activity message.sender.name string The sender's name. payload[].last non activity message.sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].last non activity message.sender.available name string An agent's display name. payload[].last non activity message.sender.email string \\ null The sender's email address. payload[].last non activity message.sender.phone number string \\ null The sender's phone number (a contact's). payload[].last non activity message.sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].last non activity message.sender.avatar url string An agent's avatar image URL. payload[].last non activity message.sender.logo user url string \\ null An agent's logo URL, or null . payload[].last non activity message.sender.thumbnail string The sender's avatar URL, or an empty string. payload[].last non activity message.sender.availability status string An agent's live presence ( online , busy or offline ). payload[].last non activity message.sender.blocked boolean Whether a contact is blocked. payload[].last non activity message.sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].last non activity message.sender.custom attributes object An object containing the custom attributes related to the sender (a contact). payload[].last non activity message.sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . payload[].last non activity message.sender id integer \\ null In a conversation's messages , the sender's ID. payload[].last non activity message.attachments array of object An array of attachment objects — the files of the message. Present only when it has files. payload[].last non activity message.attachments[].id integer The numeric ID of the file (attachment). payload[].last non activity message.attachments[].message id integer The numeric ID of the message the file belongs to. payload[].last non activity message.attachments[].account id integer The numeric ID of the account. payload[].last non activity message.attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. payload[].last non activity message.attachments[].filename string The name of the file. payload[].last non activity message.attachments[].extension string \\ null The file extension, when known. payload[].last non activity message.attachments[].data url string The URL of the file. payload[].last non activity message.attachments[].thumb url string The URL of the file's thumbnail (for images). payload[].last non activity message.attachments[].file size integer The file size, in bytes. payload[].last non activity message.ticket id integer The ticket the message belongs to. payload[].last non activity message.delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . payload[].last non activity message.created at integer The time at which the message was created, measured in seconds since the Unix epoch. payload[].last non activity message.created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. payload[].can reply boolean Whether the conversation is currently within the messaging window: false when the channel's reply window is closed (for example WhatsApp's 24-hour window). payload[].muted boolean Whether the conversation is currently muted. A muted conversation does not notify agents. payload[].snoozed until integer \\ null The time at which a snoozed conversation is reactivated (reopened), in milliseconds since the Unix epoch, or null . payload[].unread count integer The number of unread messages — incoming messages the agents have not read. payload[].has incoming messages boolean Whether the contact has written at least one public message. payload[].created at integer The time at which the conversation was created, measured in seconds since the Unix epoch. payload[].timestamp integer The same as last activity at . payload[].last activity at integer The time of the conversation's last activity (Unix timestamp, in seconds). payload[].first reply created at integer The time at which the first reply was sent to the contact (Unix timestamp, in seconds), or 0 when there is none yet. payload[].waiting since integer Since when the contact has been waiting for a reply (Unix timestamp, in seconds), or 0 . payload[].agent last seen at integer The last time an agent saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].assignee last seen at integer The last time the assignee saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].contact last seen at integer The last time the contact interacted with your service — when they last saw the conversation (Unix timestamp, in seconds), or 0 when never set. payload[].last incoming message time string \\ null The time of the last incoming message (ISO 8601), or null . payload[].sla policy id integer \\ null The ID of the applied SLA policy, or null . See Apply SLA Policy. payload[].applied sla object \\ null The applied SLA policy's details and thresholds, or null . See Apply SLA Policy. payload[].sla events array of object The SLA events of the conversation (missed thresholds). payload[].sla events with distinct event type array of object The SLA events, one per event type. payload[].feature enabled sla boolean Whether the account uses SLA policies (the SLA feature is enabled). payload[].campaign id integer \\ null The ID of the campaign that started the conversation, or null . payload[].pinned boolean Whether the caller pinned this conversation. payload[].file object {url, file type} when a file is attached to the conversation itself (rare). Example: One skipped Conversation 1502 has no incoming messages, so only 1501 was marked. meta.assignee is shortened. { \"payload\": [ { \"id\": 1501, \"uuid\": \"8d4e2f1a-6b7c-4d8e-9f0a-1b2c3d4e5f60\", \"account id\": 12, \"inbox id\": 31, \"status\": \"open\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": { \"order id\": \"A-1001\" }, \"additional attributes\": {}, \"meta\": { \"sender\": { \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"availability status\": \"offline\", \"email\": \"dana.cohen@example.com\", \"id\": 801, \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"custom attributes\": { \"customer tier\": \"gold\" }, \"blocked\": false, \"is whatsapp contact\": false, \"created at\": 1794470500 }, \"channel\": \"Channel::Api\", \"assignee\": { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"available name\": \"Jane Agent\", \"name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"role\": \"General Manager\", \"thumbnail\": \"\" }, \"hmac verified\": false }, \"contact inbox\": { \"wa id\": null }, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794472860 }, \"content attributes\": {}, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"delay hours\": null, \"created at\": 1794472860, \"created at exact\": \"2026-11-12T08:41:00.000Z\" } ], \"last non activity message\": { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794472860 }, \"content attributes\": {}, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"ticket id\": 903, \"delay hours\": null, \"created at\": 1794472860, \"created at exact\": \"2026-11-12T08:41:00.000Z\" }, \"can reply\": true, \"muted\": false, \"snoozed until\": null, \"unread count\": 1, \"has incoming messages\": true, \"created at\": 1794471000, \"timestamp\": 1794472860, \"last activity at\": 1794472860, \"first reply created at\": 1794471120, \"waiting since\": 1794472860, \"agent last seen at\": 1794472859, \"assignee last seen at\": 1794472859, \"contact last seen at\": 0, \"last incoming message time\": \"2026-11-12T08:41:00.000Z\", \"sla policy id\": null, \"feature enabled sla\": true, \"applied sla\": null, \"sla events\": [], \"sla events with distinct event type\": [], \"campaign id\": null, \"pinned\": false } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/list-participants",
      "title": "List Participants",
      "url": "https://docs.99digital.co.il/online-api/conversations/participants/list-participants",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/participants/list-participants.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations",
        "Participants"
      ],
      "language": "en",
      "description": "List the agents who participate in a conversation.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/participants",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/participants"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The participants.",
        "Example: Participants",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listParticipants",
        "accounts",
        "conversations",
        "participants",
        "account_id",
        "conversation_id",
        "id",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/participants List the agents who participate in a conversation. Participants are agents who follow a conversation and get its notifications, without being the assignee. Assigned agents are added automatically. Action Method Path Body List participants GET /api/v1/accounts/{account id}/conversations/{conversation id}/participants Add participants POST same {\"user ids\": [52]} Replace the participant list PATCH same {\"user ids\": [51, 52]} Remove participants DELETE same {\"user ids\": [52]} Authorization : user token; the caller must be able to see the conversation — see Who can see a conversation. Permissions: Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Example: list participants curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/participants' \\ -H 'api access token: ' Response ( 200 OK ): an array of agent objects. Here there were two agents, IDs 51 and 52 ; the first was added automatically when it was assigned. The full objects are under Responses below. Remarks On accounts with the new rules system, the agents' personal details are returned only when the caller's role grants Agents → read — see the Agent object below. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The participants. Content type: application/json Field Type Description [].id integer The agent's numeric ID (user ID). [].account id integer The numeric ID of the account. [].availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. [].auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). [].confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). [].email string The agent's login email address. [].available name string The agent's display name. [].custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. [].name string The agent's full name. [].role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). [].operation bot boolean true for internal operation-bot users. [].see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). [].assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . [].new role string \\ null The agent's custom role name, or null on accounts with legacy roles. [].thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. [].capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. [].two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. [].phone1 string \\ null The phone number that receives two-factor codes by SMS. [].email1 string \\ null The email address that receives two-factor codes by email. [].create time integer When the agent was created (Unix timestamp, in seconds). Example: Participants Jane Agent was added automatically when she was assigned; Dana Levi was added. [ { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"custom attributes\": {}, \"name\": \"Jane Agent\", \"role\": \"General Manager\", \"operation bot\": false, \"see all conversations\": true, \"assignable to inbox\": [ 31, 32, 33 ], \"new role\": \"General Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": \"sms\", \"phone1\": \"+972541234567\", \"email1\": null, \"create time\": 1790000000 }, { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [ 31, 32 ], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/add-participants",
      "title": "Add Participants",
      "url": "https://docs.99digital.co.il/online-api/conversations/participants/add-participants",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/participants/add-participants.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations",
        "Participants"
      ],
      "language": "en",
      "description": "Add agents as participants of a conversation.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/participants",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/participants"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The agents that were added.",
        "Example: Added",
        "Example: Already participants",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "addParticipants",
        "accounts",
        "conversations",
        "participants",
        "account_id",
        "conversation_id",
        "user_ids",
        "id",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/participants Add agents as participants of a conversation. Participants are agents who follow a conversation and get its notifications, without being the assignee. Assigned agents are added automatically. Action Method Path Body List participants GET /api/v1/accounts/{account id}/conversations/{conversation id}/participants Add participants POST same {\"user ids\": [52]} Replace the participant list PATCH same {\"user ids\": [51, 52]} Remove participants DELETE same {\"user ids\": [52]} Authorization : user token; the caller must be able to see the conversation — see Who can see a conversation. Permissions: Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Body parameters (JSON) Name Type Required Description user ids integer[] Yes Agent IDs. The agents to add. Example: add participants curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/participants' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"user ids\": [52] }' Response ( 200 OK ): only the newly added participants, as agent objects. Agents who were already participants are skipped, so the list can be [] — for example when agent 52 was already a participant. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json (required) Field Type Required Description user ids array of integer Yes The agents to add, by user ID. Example (generated from the schema) { \"user ids\": [ 52 ] } Responses 200 — The agents that were added. Content type: application/json Field Type Description [].id integer The agent's numeric ID (user ID). [].account id integer The numeric ID of the account. [].availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. [].auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). [].confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). [].email string The agent's login email address. [].available name string The agent's display name. [].custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. [].name string The agent's full name. [].role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). [].operation bot boolean true for internal operation-bot users. [].see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). [].assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . [].new role string \\ null The agent's custom role name, or null on accounts with legacy roles. [].thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. [].capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. [].two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. [].phone1 string \\ null The phone number that receives two-factor codes by SMS. [].email1 string \\ null The email address that receives two-factor codes by email. [].create time integer When the agent was created (Unix timestamp, in seconds). Example: Added Dana Levi was added. [ { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [ 31, 32 ], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } ] Example: Already participants Every agent in user ids was already a participant. [] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/replace-participants",
      "title": "Replace Participants",
      "url": "https://docs.99digital.co.il/online-api/conversations/participants/replace-participants",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/participants/replace-participants.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations",
        "Participants"
      ],
      "language": "en",
      "description": "Replace the participant list of a conversation.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/participants",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/participants"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Replace the list",
        "Example: Remove everyone",
        "Responses",
        "200 — The participants after the change.",
        "Example: Replaced",
        "Example: Emptied",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "replaceParticipants",
        "accounts",
        "conversations",
        "participants",
        "account_id",
        "conversation_id",
        "user_ids",
        "id",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "error"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/participants Replace the participant list of a conversation. Participants are agents who follow a conversation and get its notifications, without being the assignee. Assigned agents are added automatically. Action Method Path Body List participants GET /api/v1/accounts/{account id}/conversations/{conversation id}/participants Add participants POST same {\"user ids\": [52]} Replace the participant list PATCH same {\"user ids\": [51, 52]} Remove participants DELETE same {\"user ids\": [52]} Authorization : user token; the caller must be able to see the conversation — see Who can see a conversation. Permissions: Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Body parameters (JSON) Name Type Required Description user ids integer[] Yes Agent IDs. The new participants: every other participant is removed, and [] removes them all. Example: replace curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/participants' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"user ids\": [] }' Response ( 200 OK ): the full participant list after the change ( [] here). Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json (required) Field Type Required Description user ids array of integer Yes The new participants, by user ID. An empty list removes every participant. Example: Replace the list Jane Agent becomes the only participant. { \"user ids\": [ 51 ] } Example: Remove everyone Remove every participant. { \"user ids\": [] } Responses 200 — The participants after the change. Content type: application/json Field Type Description [].id integer The agent's numeric ID (user ID). [].account id integer The numeric ID of the account. [].availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. [].auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). [].confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). [].email string The agent's login email address. [].available name string The agent's display name. [].custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. [].name string The agent's full name. [].role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). [].operation bot boolean true for internal operation-bot users. [].see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). [].assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . [].new role string \\ null The agent's custom role name, or null on accounts with legacy roles. [].thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. [].capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. [].two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. [].phone1 string \\ null The phone number that receives two-factor codes by SMS. [].email1 string \\ null The email address that receives two-factor codes by email. [].create time integer When the agent was created (Unix timestamp, in seconds). Example: Replaced The list after user ids: [51] . [ { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"custom attributes\": {}, \"name\": \"Jane Agent\", \"role\": \"General Manager\", \"operation bot\": false, \"see all conversations\": true, \"assignable to inbox\": [ 31, 32, 33 ], \"new role\": \"General Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": \"sms\", \"phone1\": \"+972541234567\", \"email1\": null, \"create time\": 1790000000 } ] Example: Emptied The list after user ids: [] . [] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/remove-participants",
      "title": "Remove Participants",
      "url": "https://docs.99digital.co.il/online-api/conversations/participants/remove-participants",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/conversations/participants/remove-participants.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Conversations",
        "Participants"
      ],
      "language": "en",
      "description": "Remove agents from a conversation's participants.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/participants",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/participants"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The agents were removed, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "removeParticipants",
        "accounts",
        "conversations",
        "participants",
        "account_id",
        "conversation_id",
        "user_ids",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/participants Remove agents from a conversation's participants. Participants are agents who follow a conversation and get its notifications, without being the assignee. Assigned agents are added automatically. Action Method Path Body List participants GET /api/v1/accounts/{account id}/conversations/{conversation id}/participants Add participants POST same {\"user ids\": [52]} Replace the participant list PATCH same {\"user ids\": [51, 52]} Remove participants DELETE same {\"user ids\": [52]} Authorization : user token; the caller must be able to see the conversation — see Who can see a conversation. Permissions: Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Body parameters (JSON) Name Type Required Description user ids integer[] Yes Agent IDs. The agents to remove. Example: remove curl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/participants' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"user ids\": [52] }' Response: 200 OK with an empty body. To see the list after the change, use List Participants. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json (required) Field Type Required Description user ids array of integer Yes The agents to remove, by user ID. Example (generated from the schema) { \"user ids\": [ 52 ] } Responses 200 — The agents were removed, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-tickets",
      "title": "List Tickets",
      "url": "https://docs.99digital.co.il/online-api/tickets/list-tickets",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/tickets/list-tickets.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Tickets"
      ],
      "language": "en",
      "description": "Returns all tickets of the conversation, oldest first.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/tickets",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets"
      },
      "headings": [
        "Tickets",
        "The ticket object",
        "List tickets",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The conversation's tickets, oldest first.",
        "Example: Three tickets",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listTickets",
        "accounts",
        "conversations",
        "tickets",
        "account_id",
        "conversation_id",
        "payload",
        "id",
        "ticket_status",
        "initiated_by",
        "channel_name",
        "created_at",
        "updated_at",
        "resolved_at",
        "total_time",
        "resolved_by_id",
        "resolved_agent_id",
        "custom_attributes",
        "contact_id",
        "inbox_id",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/tickets Returns all tickets of the conversation, oldest first. Tickets A ticket is one \"case\" inside a conversation. The first ticket opens when the conversation is created. It is closed when the conversation is resolved, and a new ticket opens when the conversation is reopened. So one long-lived conversation (for example a WhatsApp thread) can hold many tickets. Messages and conversation events carry the ticket id they belong to. Closing a ticket fires the ticket resolved webhook event. Tickets are created and closed automatically; there is no endpoint to create or delete one. Through the API you can read tickets and store custom attributes on them (for example a case type or a refund amount). All ticket endpoints are nested under a conversation ( {conversation id} is the display ID — see Conversation Basics). Endpoints in this section GET /api/v1/accounts/{account id}/conversations/{conversation id}/tickets : List Tickets GET /api/v1/accounts/{account id}/conversations/{conversation id}/tickets/{ticket id} : Get Ticket GET /api/v1/accounts/{account id}/conversations/{conversation id}/tickets/current : Get Current Ticket PATCH /api/v1/accounts/{account id}/conversations/{conversation id}/tickets/{ticket id} : Set Ticket Custom Attributes PUT /api/v1/accounts/{account id}/conversations/{conversation id}/tickets/{ticket id}/destroy custom attributes : Delete Ticket Custom Attributes Authorization (all ticket endpoints) : user token; the caller must be able to see the conversation (see Who can see a conversation). Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. The ticket object Field Type Description id integer Ticket ID. ticket status string open or closed . initiated by string Who started the conversation: user (the contact), agent , agent bot . channel name string Inbox channel type, e.g. Channel::Api , Channel::Whatsapp . created at string When the ticket opened (ISO 8601). resolved at string When it was closed, or null . total time integer Seconds from opening to closing, or null while open. resolved by id , resolved agent id integer Agent who resolved the conversation, or null (e.g. closed by a bot or automation). custom attributes object Your data for this ticket. account id , contact id , inbox id integer Related IDs. conversation id integer The conversation's display ID in List Tickets and Get Ticket . In Get Current Ticket , Set Ticket Custom Attributes and Delete Ticket Custom Attributes it is the internal conversation ID (see the note there). updated at string Last update (ISO 8601). List tickets Setting Value Method GET Path /api/v1/accounts/{account id}/conversations/{conversation id}/tickets Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets' \\ -H 'api access token: ' Example response ( 200 OK ). The conversation was resolved twice and reopened, so it has two closed tickets and one open ticket. { \"payload\": [ { \"id\": 901, \"channel name\": \"Channel::Api\", \"initiated by\": \"user\", \"resolved at\": \"2026-11-12T08:20:00.000Z\", \"ticket status\": \"closed\", \"total time\": 600, \"created at\": \"2026-11-12T08:10:00.000Z\", \"updated at\": \"2026-11-12T08:20:00.004Z\", \"account id\": 12, \"contact id\": 801, \"conversation id\": 1501, \"inbox id\": 31, \"resolved agent id\": 51, \"resolved by id\": 51, \"custom attributes\": {} }, { \"id\": 902, \"channel name\": \"Channel::Api\", \"initiated by\": \"user\", \"resolved at\": \"2026-11-12T08:35:00.000Z\", \"ticket status\": \"closed\", \"total time\": 300, \"created at\": \"2026-11-12T08:30:00.000Z\", \"updated at\": \"2026-11-12T08:35:00.004Z\", \"account id\": 12, \"contact id\": 801, \"conversation id\": 1501, \"inbox id\": 31, \"resolved agent id\": null, \"resolved by id\": null, \"custom attributes\": {} }, { \"id\": 903, \"channel name\": \"Channel::Api\", \"initiated by\": \"user\", \"resolved at\": null, \"ticket status\": \"open\", \"total time\": null, \"created at\": \"2026-11-12T08:40:00.000Z\", \"updated at\": \"2026-11-12T08:40:00.000Z\", \"account id\": 12, \"contact id\": 801, \"conversation id\": 1501, \"inbox id\": 31, \"resolved agent id\": null, \"resolved by id\": null, \"custom attributes\": {} } ] } To store your own data on a ticket, use Set Ticket Custom Attributes. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The conversation's tickets, oldest first. Content type: application/json Field Type Description payload array of object The tickets. payload[].id integer The numeric ID of the ticket. payload[].ticket status string Whether the ticket is open or closed. One of: open — The ticket is open — the conversation has not been resolved since the ticket opened; closed — The ticket was closed, because the conversation was resolved. payload[].initiated by string Who started the conversation. One of: user — The contact; agent — An agent; agent bot — An agent bot. payload[].channel name string The channel type of the inbox, for example Channel::Api or Channel::Whatsapp . payload[].created at string When the ticket opened (ISO 8601). payload[].updated at string The last update (ISO 8601). payload[].resolved at string \\ null When the ticket was closed (ISO 8601), or null . payload[].total time integer \\ null Seconds from opening to closing, or null while open. payload[].resolved by id integer \\ null The ID of the agent who resolved the conversation, or null (for example when a bot or an automation closed it). payload[].resolved agent id integer \\ null The same as resolved by id . payload[].custom attributes object Your data for this ticket, as key-value pairs (for example a case type or a refund amount). payload[].account id integer The numeric ID of the account. payload[].contact id integer The numeric ID of the contact. payload[].inbox id integer The numeric ID of the inbox. payload[].conversation id integer The conversation. List Tickets and Get Ticket return its display ID; the other ticket endpoints return its internal ID. Example: Three tickets The conversation was resolved and reopened twice, so it has two closed tickets and an open one. { \"payload\": [ { \"id\": 901, \"channel name\": \"Channel::Api\", \"initiated by\": \"user\", \"resolved at\": \"2026-11-12T08:20:00.000Z\", \"ticket status\": \"closed\", \"total time\": 600, \"created at\": \"2026-11-12T08:10:00.000Z\", \"updated at\": \"2026-11-12T08:20:00.004Z\", \"account id\": 12, \"contact id\": 801, \"conversation id\": 1501, \"inbox id\": 31, \"resolved agent id\": 51, \"resolved by id\": 51, \"custom attributes\": {} }, { \"id\": 902, \"channel name\": \"Channel::Api\", \"initiated by\": \"user\", \"resolved at\": \"2026-11-12T08:35:00.000Z\", \"ticket status\": \"closed\", \"total time\": 300, \"created at\": \"2026-11-12T08:30:00.000Z\", \"updated at\": \"2026-11-12T08:35:00.004Z\", \"account id\": 12, \"contact id\": 801, \"conversation id\": 1501, \"inbox id\": 31, \"resolved agent id\": null, \"resolved by id\": null, \"custom attributes\": {} }, { \"id\": 903, \"channel name\": \"Channel::Api\", \"initiated by\": \"user\", \"resolved at\": null, \"ticket status\": \"open\", \"total time\": null, \"created at\": \"2026-11-12T08:40:00.000Z\", \"updated at\": \"2026-11-12T08:40:00.000Z\", \"account id\": 12, \"contact id\": 801, \"conversation id\": 1501, \"inbox id\": 31, \"resolved agent id\": null, \"resolved by id\": null, \"custom attributes\": {} } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/get-ticket",
      "title": "Get Ticket",
      "url": "https://docs.99digital.co.il/online-api/tickets/get-ticket",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/tickets/get-ticket.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Tickets"
      ],
      "language": "en",
      "description": "Get one ticket of a conversation.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The ticket.",
        "Example: Open ticket",
        "Example: Closed ticket",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "getTicket",
        "accounts",
        "conversations",
        "tickets",
        "account_id",
        "conversation_id",
        "ticket_id",
        "id",
        "ticket_status",
        "initiated_by",
        "channel_name",
        "created_at",
        "updated_at",
        "resolved_at",
        "total_time",
        "resolved_by_id",
        "resolved_agent_id",
        "custom_attributes",
        "contact_id",
        "inbox_id",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/tickets/{ticket id} Get one ticket of a conversation. The ticket must belong to the conversation in the path. See List Tickets for what a ticket is. Setting Value Method GET Path /api/v1/accounts/{account id}/conversations/{conversation id}/tickets/{ticket id} Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. ticket id integer Yes Ticket ID (must belong to this conversation). Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/901' \\ -H 'api access token: ' Example response ( 200 OK ) { \"id\": 901, \"channel name\": \"Channel::Api\", \"initiated by\": \"user\", \"resolved at\": \"2026-11-12T08:20:00.000Z\", \"ticket status\": \"closed\", \"total time\": 600, \"created at\": \"2026-11-12T08:10:00.000Z\", \"updated at\": \"2026-11-12T08:20:00.004Z\", \"account id\": 12, \"contact id\": 801, \"conversation id\": 1501, \"inbox id\": 31, \"resolved agent id\": 51, \"resolved by id\": 51, \"custom attributes\": {} } Error responses : 404 {\"error\": \"Resource could not be found\"} . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . ticket id path integer Yes The numeric ID of the ticket. The ticket must belong to the conversation. Example: 903 . Responses 200 — The ticket. Content type: application/json Field Type Description id integer The numeric ID of the ticket. ticket status string Whether the ticket is open or closed. One of: open — The ticket is open — the conversation has not been resolved since the ticket opened; closed — The ticket was closed, because the conversation was resolved. initiated by string Who started the conversation. One of: user — The contact; agent — An agent; agent bot — An agent bot. channel name string The channel type of the inbox, for example Channel::Api or Channel::Whatsapp . created at string When the ticket opened (ISO 8601). updated at string The last update (ISO 8601). resolved at string \\ null When the ticket was closed (ISO 8601), or null . total time integer \\ null Seconds from opening to closing, or null while open. resolved by id integer \\ null The ID of the agent who resolved the conversation, or null (for example when a bot or an automation closed it). resolved agent id integer \\ null The same as resolved by id . custom attributes object Your data for this ticket, as key-value pairs (for example a case type or a refund amount). account id integer The numeric ID of the account. contact id integer The numeric ID of the contact. inbox id integer The numeric ID of the inbox. conversation id integer The conversation. List Tickets and Get Ticket return its display ID; the other ticket endpoints return its internal ID. Example: Open ticket The conversation's current ticket. { \"id\": 903, \"channel name\": \"Channel::Api\", \"initiated by\": \"user\", \"resolved at\": null, \"ticket status\": \"open\", \"total time\": null, \"created at\": \"2026-11-12T08:40:00.000Z\", \"updated at\": \"2026-11-12T08:40:00.000Z\", \"account id\": 12, \"contact id\": 801, \"conversation id\": 1501, \"inbox id\": 31, \"resolved agent id\": null, \"resolved by id\": null, \"custom attributes\": {} } Example: Closed ticket A ticket that was closed when an agent resolved the conversation. { \"id\": 901, \"channel name\": \"Channel::Api\", \"initiated by\": \"user\", \"resolved at\": \"2026-11-12T08:20:00.000Z\", \"ticket status\": \"closed\", \"total time\": 600, \"created at\": \"2026-11-12T08:10:00.000Z\", \"updated at\": \"2026-11-12T08:20:00.004Z\", \"account id\": 12, \"contact id\": 801, \"conversation id\": 1501, \"inbox id\": 31, \"resolved agent id\": 51, \"resolved by id\": 51, \"custom attributes\": {} } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/get-current-ticket",
      "title": "Get Current Ticket",
      "url": "https://docs.99digital.co.il/online-api/tickets/get-current-ticket",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/tickets/get-current-ticket.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Tickets"
      ],
      "language": "en",
      "description": "Returns the conversation's open ticket.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/tickets/current",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/current"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The open ticket — or, when the conversation is not open, an error body.",
        "Example: Open ticket",
        "Example: Conversation not open",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "getCurrentTicket",
        "accounts",
        "conversations",
        "tickets",
        "current",
        "account_id",
        "conversation_id",
        "id",
        "ticket_status",
        "initiated_by",
        "channel_name",
        "created_at",
        "updated_at",
        "resolved_at",
        "total_time",
        "resolved_by_id",
        "resolved_agent_id",
        "custom_attributes",
        "contact_id",
        "inbox_id",
        "error",
        "status"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/tickets/current Returns the conversation's open ticket. If none exists yet, one is created. This works only while the conversation status is open (Bot). See List Tickets for what a ticket is. Setting Value Method GET Path /api/v1/accounts/{account id}/conversations/{conversation id}/tickets/current Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/current' \\ -H 'api access token: ' Example response ( 200 OK ). Here conversation id is the internal conversation ID ( 2301 ), not the display ID ( 1501 ). { \"id\": 903, \"account id\": 12, \"inbox id\": 31, \"channel name\": \"Channel::Api\", \"conversation id\": 2301, \"contact id\": 801, \"initiated by\": \"user\", \"resolved by id\": null, \"total time\": null, \"resolved at\": null, \"resolved agent id\": null, \"ticket status\": \"open\", \"created at\": \"2026-11-12T08:40:00.000Z\", \"updated at\": \"2026-11-12T08:40:00.000Z\", \"custom attributes\": {} } When the conversation is not open (for example pending / Manual, or resolved ) the response is still HTTP 200 , with an error body: { \"error\": \"No open conversation\", \"status\": \"unprocessable entity\" } Check for the error key instead of relying on the HTTP status. To find the open ticket of a Manual conversation, use List Tickets and pick the one with ticket status: \"open\" . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Responses 200 — The open ticket — or, when the conversation is not open , an error body. Content type: application/json Field Type Description id integer (one of: Ticket) The numeric ID of the ticket. ticket status string (one of: Ticket) Whether the ticket is open or closed. One of: open — The ticket is open — the conversation has not been resolved since the ticket opened; closed — The ticket was closed, because the conversation was resolved. initiated by string (one of: Ticket) Who started the conversation. One of: user — The contact; agent — An agent; agent bot — An agent bot. channel name string (one of: Ticket) The channel type of the inbox, for example Channel::Api or Channel::Whatsapp . created at string (one of: Ticket) When the ticket opened (ISO 8601). updated at string (one of: Ticket) The last update (ISO 8601). resolved at string \\ null (one of: Ticket) When the ticket was closed (ISO 8601), or null . total time integer \\ null (one of: Ticket) Seconds from opening to closing, or null while open. resolved by id integer \\ null (one of: Ticket) The ID of the agent who resolved the conversation, or null (for example when a bot or an automation closed it). resolved agent id integer \\ null (one of: Ticket) The same as resolved by id . custom attributes object (one of: Ticket) Your data for this ticket, as key-value pairs (for example a case type or a refund amount). account id integer (one of: Ticket) The numeric ID of the account. contact id integer (one of: Ticket) The numeric ID of the contact. inbox id integer (one of: Ticket) The numeric ID of the inbox. conversation id integer (one of: Ticket) The conversation. List Tickets and Get Ticket return its display ID; the other ticket endpoints return its internal ID. error string (one of: Conversation not open) Why there is no ticket: No open conversation — the conversation's status is not open (Bot). status string (one of: Conversation not open) Always unprocessable entity . The HTTP status itself is still 200 . Example: Open ticket The open ticket. conversation id is the internal ID. { \"id\": 903, \"account id\": 12, \"inbox id\": 31, \"channel name\": \"Channel::Api\", \"conversation id\": 2301, \"contact id\": 801, \"initiated by\": \"user\", \"resolved by id\": null, \"total time\": null, \"resolved at\": null, \"resolved agent id\": null, \"ticket status\": \"open\", \"created at\": \"2026-11-12T08:40:00.000Z\", \"updated at\": \"2026-11-12T08:40:00.000Z\", \"custom attributes\": {} } Example: Conversation not open The conversation is pending (Manual) or resolved . The HTTP status is still 200. { \"error\": \"No open conversation\", \"status\": \"unprocessable entity\" } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/set-ticket-custom-attributes",
      "title": "Set Ticket Custom Attributes",
      "url": "https://docs.99digital.co.il/online-api/tickets/set-ticket-custom-attributes",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/tickets/set-ticket-custom-attributes.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Tickets"
      ],
      "language": "en",
      "description": "Replaces the ticket's custom attributes with the given object.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The ticket, with its new custom attributes.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "setTicketCustomAttributes",
        "accounts",
        "conversations",
        "tickets",
        "account_id",
        "conversation_id",
        "ticket_id",
        "custom_attributes",
        "id",
        "ticket_status",
        "initiated_by",
        "channel_name",
        "created_at",
        "updated_at",
        "resolved_at",
        "total_time",
        "resolved_by_id",
        "resolved_agent_id",
        "contact_id",
        "inbox_id",
        "error"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/tickets/{ticket id} Replaces the ticket's custom attributes with the given object. The ticket's custom attributes are replaced : keys you leave out are removed, so send the full object. To remove only some keys, use Delete Ticket Custom Attributes. See List Tickets for what a ticket is. Setting Value Method PATCH (or PUT ) Path /api/v1/accounts/{account id}/conversations/{conversation id}/tickets/{ticket id} Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. ticket id integer Yes Ticket ID (must belong to this conversation). Body parameters (JSON) Name Type Required Description custom attributes object Yes Key/value pairs to store on the ticket. Keys not sent are removed. Example request curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/903' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"custom attributes\": { \"case type\": \"refund\", \"order id\": \"A-1001\", \"refund amount\": 85 } }' Example response ( 200 OK ). conversation id is the internal ID, not the display ID used in the path. { \"conversation id\": 2301, \"custom attributes\": { \"case type\": \"refund\", \"order id\": \"A-1001\", \"refund amount\": 85 }, \"id\": 903, \"account id\": 12, \"inbox id\": 31, \"channel name\": \"Channel::Api\", \"contact id\": 801, \"initiated by\": \"user\", \"resolved by id\": null, \"total time\": null, \"resolved at\": null, \"resolved agent id\": null, \"ticket status\": \"open\", \"created at\": \"2026-11-12T08:40:00.000Z\", \"updated at\": \"2026-11-12T08:55:00.000Z\" } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . ticket id path integer Yes The numeric ID of the ticket. The ticket must belong to the conversation. Example: 903 . Request body Content type: application/json (required) Field Type Required Description custom attributes object Yes Your data for the ticket, as key-value pairs — for example a case type or a refund amount. Replaces the ticket's current custom attributes: keys you leave out are removed. Example (generated from the schema) { \"custom attributes\": { \"case type\": \"refund\", \"order id\": \"A-1001\", \"refund amount\": 85 } } Responses 200 — The ticket, with its new custom attributes. Content type: application/json Field Type Description id integer The numeric ID of the ticket. ticket status string Whether the ticket is open or closed. One of: open — The ticket is open — the conversation has not been resolved since the ticket opened; closed — The ticket was closed, because the conversation was resolved. initiated by string Who started the conversation. One of: user — The contact; agent — An agent; agent bot — An agent bot. channel name string The channel type of the inbox, for example Channel::Api or Channel::Whatsapp . created at string When the ticket opened (ISO 8601). updated at string The last update (ISO 8601). resolved at string \\ null When the ticket was closed (ISO 8601), or null . total time integer \\ null Seconds from opening to closing, or null while open. resolved by id integer \\ null The ID of the agent who resolved the conversation, or null (for example when a bot or an automation closed it). resolved agent id integer \\ null The same as resolved by id . custom attributes object Your data for this ticket, as key-value pairs (for example a case type or a refund amount). account id integer The numeric ID of the account. contact id integer The numeric ID of the contact. inbox id integer The numeric ID of the inbox. conversation id integer The conversation. List Tickets and Get Ticket return its display ID; the other ticket endpoints return its internal ID. Example { \"custom attributes\": { \"case type\": \"refund\", \"order id\": \"A-1001\", \"refund amount\": 85 }, \"id\": 903, \"account id\": 12, \"inbox id\": 31, \"channel name\": \"Channel::Api\", \"conversation id\": 2301, \"contact id\": 801, \"initiated by\": \"user\", \"resolved by id\": null, \"total time\": null, \"resolved at\": null, \"resolved agent id\": null, \"ticket status\": \"open\", \"created at\": \"2026-11-12T08:40:00.000Z\", \"updated at\": \"2026-11-12T08:55:00.000Z\" } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/delete-ticket-custom-attributes",
      "title": "Delete Ticket Custom Attributes",
      "url": "https://docs.99digital.co.il/online-api/tickets/delete-ticket-custom-attributes",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/tickets/delete-ticket-custom-attributes.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Tickets"
      ],
      "language": "en",
      "description": "Removes the given keys from the ticket's custom attributes.",
      "endpoint": {
        "method": "PUT",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}/destroy_custom_attributes",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/tickets/{ticket_id}/destroy_custom_attributes"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The ticket, with its remaining custom attributes.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "deleteTicketCustomAttributes",
        "accounts",
        "conversations",
        "tickets",
        "destroy_custom_attributes",
        "account_id",
        "conversation_id",
        "ticket_id",
        "custom_attributes",
        "id",
        "ticket_status",
        "initiated_by",
        "channel_name",
        "created_at",
        "updated_at",
        "resolved_at",
        "total_time",
        "resolved_by_id",
        "resolved_agent_id",
        "contact_id",
        "inbox_id",
        "error"
      ],
      "content": "PUT https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/tickets/{ticket id}/destroy custom attributes Removes the given keys from the ticket's custom attributes. The other keys of the ticket's custom attributes are kept. To replace them all, use Set Ticket Custom Attributes. See List Tickets for what a ticket is. Setting Value Method PUT Path /api/v1/accounts/{account id}/conversations/{conversation id}/tickets/{ticket id}/destroy custom attributes Permissions: User token: any agent who can see the conversation — see Who can see a conversation. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. ticket id integer Yes Ticket ID (must belong to this conversation). Body parameters (JSON) Name Type Required Description custom attributes string[] Yes Keys to remove. Example request curl -X PUT 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/tickets/903/destroy custom attributes' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"custom attributes\": [\"refund amount\"] }' Example response ( 200 OK ): the ticket (same shape as Set Ticket Custom Attributes) with \"custom attributes\": {\"case type\": \"refund\", \"order id\": \"A-1001\"} . In the response, conversation id is the conversation's internal ID, not the display ID used in the path. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . ticket id path integer Yes The numeric ID of the ticket. The ticket must belong to the conversation. Example: 903 . Request body Content type: application/json (required) Field Type Required Description custom attributes array of string Yes The keys to remove from the ticket's custom attributes . Keys you do not list are kept. Example (generated from the schema) { \"custom attributes\": [ \"refund amount\" ] } Responses 200 — The ticket, with its remaining custom attributes. Content type: application/json Field Type Description id integer The numeric ID of the ticket. ticket status string Whether the ticket is open or closed. One of: open — The ticket is open — the conversation has not been resolved since the ticket opened; closed — The ticket was closed, because the conversation was resolved. initiated by string Who started the conversation. One of: user — The contact; agent — An agent; agent bot — An agent bot. channel name string The channel type of the inbox, for example Channel::Api or Channel::Whatsapp . created at string When the ticket opened (ISO 8601). updated at string The last update (ISO 8601). resolved at string \\ null When the ticket was closed (ISO 8601), or null . total time integer \\ null Seconds from opening to closing, or null while open. resolved by id integer \\ null The ID of the agent who resolved the conversation, or null (for example when a bot or an automation closed it). resolved agent id integer \\ null The same as resolved by id . custom attributes object Your data for this ticket, as key-value pairs (for example a case type or a refund amount). account id integer The numeric ID of the account. contact id integer The numeric ID of the contact. inbox id integer The numeric ID of the inbox. conversation id integer The conversation. List Tickets and Get Ticket return its display ID; the other ticket endpoints return its internal ID. Example { \"custom attributes\": { \"case type\": \"refund\", \"order id\": \"A-1001\" }, \"id\": 903, \"account id\": 12, \"inbox id\": 31, \"channel name\": \"Channel::Api\", \"conversation id\": 2301, \"contact id\": 801, \"initiated by\": \"user\", \"resolved by id\": null, \"total time\": null, \"resolved at\": null, \"resolved agent id\": null, \"ticket status\": \"open\", \"created at\": \"2026-11-12T08:40:00.000Z\", \"updated at\": \"2026-11-12T09:00:00.000Z\" } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-forms",
      "title": "List Forms",
      "url": "https://docs.99digital.co.il/online-api/forms/list-forms",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/forms/list-forms.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Forms"
      ],
      "language": "en",
      "description": "Retrieve the forms in an account.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/forms",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/forms"
      },
      "headings": [
        "Forms",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The account's forms, as an array of form summaries.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms → read.",
        "Example: Forms not enabled",
        "Example: No permission",
        "404 — The Forms app answered that the resource was not found.",
        "Example",
        "500 — An unexpected error while talking to the Forms app.",
        "Example",
        "502 — The Forms app returned an error.",
        "Example",
        "503 — The Forms integration is not configured on the server.",
        "Example"
      ],
      "keywords": [
        "listForms",
        "accounts",
        "forms",
        "account_id",
        "status",
        "publicId",
        "accountId",
        "name",
        "submissionCount",
        "updatedAt",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/forms Retrieve the forms in an account. Settings: URL Method https://online.99digital.co.il/api/v1/accounts/{account id}/forms JSON via GET Authorization: Header Parameter Description api access token User API key; access depends on the user's permissions. Permissions: These apply to every Forms endpoint. User token : on accounts with the new rules system, forms and fields need Forms → read ; submissions need Forms Responses → read . Accounts on the legacy role system are not restricted. Agent-bot token : all form endpoints are allowed (for example from Studio flows). Path Parameters: Parameter Description Required account id Account identifier. Yes Query Parameters: Parameter Description Required status Only forms with this status: published , draft or archived . Only published forms can be turned into links. No Request Example: curl -s -H \"api access token: \" \"https://online.99digital.co.il/api/v1/accounts/12/forms\" curl -s -H \"api access token: \" \"https://online.99digital.co.il/api/v1/accounts/12/forms?status=published\" Response: [ { \"publicId\": \"45\", \"accountId\": \"2c7e9a4b-1d3f-4b6a-8e5c-0f9d8b7a6c51\", \"name\": \"Event registration\", \"status\": \"published\", \"submissionCount\": 12, \"updatedAt\": \"2026-11-12T08:00:00.000Z\" }, { \"publicId\": \"46\", \"accountId\": \"2c7e9a4b-1d3f-4b6a-8e5c-0f9d8b7a6c51\", \"name\": \"Customer feedback\", \"status\": \"published\", \"submissionCount\": 3, \"updatedAt\": \"2026-11-10T14:47:31.886Z\" } ] Response-Explain: Parameter Description Root array Form summaries. publicId Public form identifier (string). This is the form ID to use as {form id} in all other Forms endpoints. accountId Account identifier (string): the account's ID in the Forms app. name Form name. status Form status. Enum: draft , published , archived . submissionCount Number of submissions reported for the form. updatedAt Last update timestamp in ISO 8601 format. Forms Forms are built in the 99digital Forms app and connected to the account through the Forms integration. Through this API you can list the account's forms, read their fields and submissions, and generate personal or public form links to send to contacts. When a contact submits a form, the submission is linked to the contact and conversation, and the form submitted webhook event fires. Generating a link fires form link generated . Form IDs in all paths are the form's publicId (as returned by List Forms ), not the Forms app's internal ID. The responses come from the Forms app and are passed through as-is; their timestamps are ISO 8601 strings. Endpoints in this section GET /api/v1/accounts/{account id}/forms : List Forms GET /api/v1/accounts/{account id}/forms/{form id} : Get a Form GET /api/v1/accounts/{account id}/forms/{form id}/fields : List Form Fields GET /api/v1/accounts/{account id}/forms/{form id}/submissions : List Form Submissions GET /api/v1/accounts/{account id}/forms/{form id}/submissions/{submission id} : Get Submission POST /api/v1/accounts/{account id}/forms/{form id}/links : Generate Form Link Common error responses (all form endpoints) Status When Body 403 Forms is not enabled for the account. {\"error\": \"Forms is not enabled for this account\"} 503 The Forms integration is not configured on the server. {\"error\": \"Forms is not configured on this server\"} 404 Form or submission not found in the Forms app. {\"error\": \"Not found\"} 502 The Forms app returned an error. {\"error\": \"Failed to retrieve forms\"} (message depends on the endpoint) 500 Unexpected error talking to the Forms app. {\"error\": \" : \"} Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . status query string No Return only the forms with this status. Only published forms can be turned into links. One of: published — Published forms — the only ones that can be turned into links; draft — Drafts, not published yet; archived — Archived forms. Example: published . Responses 200 — The account's forms, as an array of form summaries. Content type: application/json Field Type Description [].publicId string Public form identifier (a string): the form ID to use as {form id} in all other Forms endpoints. [].accountId string Account identifier (a string): the account's ID in the Forms app. [].name string The form's name. [].status string The form's status. Only published forms can be turned into links. One of: published — Published. Links can be generated for it; draft — A draft, not published yet. No links can be generated for it; archived — Archived. No links can be generated for it. [].submissionCount integer The number of submissions the form has received. [].updatedAt string The last change (ISO 8601). Example [ { \"publicId\": \"45\", \"accountId\": \"2c7e9a4b-1d3f-4b6a-8e5c-0f9d8b7a6c51\", \"name\": \"Event registration\", \"status\": \"published\", \"submissionCount\": 12, \"updatedAt\": \"2026-11-12T08:00:00.000Z\" }, { \"publicId\": \"46\", \"accountId\": \"2c7e9a4b-1d3f-4b6a-8e5c-0f9d8b7a6c51\", \"name\": \"Customer feedback\", \"status\": \"published\", \"submissionCount\": 3, \"updatedAt\": \"2026-11-10T14:47:31.886Z\" } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms → read . Content type: application/json Field Type Description error string The error message: Forms is not enabled for this account , or You are not authorized to do this action when the role lacks the permission. Example: Forms not enabled The account does not have Forms. { \"error\": \"Forms is not enabled for this account\" } Example: No permission The role lacks Forms → read. { \"error\": \"You are not authorized to do this action\" } 404 — The Forms app answered that the resource was not found. Content type: application/json Field Type Description error string The error message from the Forms app: Not found . Example { \"error\": \"Not found\" } 500 — An unexpected error while talking to the Forms app. Content type: application/json Field Type Description error string What failed, as : . Example { \"error\": \" : \" } 502 — The Forms app returned an error. Content type: application/json Field Type Description error string The error message: Failed to retrieve forms . Example { \"error\": \"Failed to retrieve forms\" } 503 — The Forms integration is not configured on the server. Content type: application/json Field Type Description error string The error message: Forms is not configured on this server . Example { \"error\": \"Forms is not configured on this server\" }"
    },
    {
      "id": "online-api/get-form",
      "title": "Get a Form",
      "url": "https://docs.99digital.co.il/online-api/forms/get-a-form",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/forms/get-a-form.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Forms"
      ],
      "language": "en",
      "description": "Retrieve a form and its field definitions.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/forms/{form_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/forms/{form_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The form, with its fields.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms → read.",
        "Example: Forms not enabled",
        "Example: No permission",
        "404 — The form was not found in the Forms app.",
        "Example",
        "500 — An unexpected error while talking to the Forms app.",
        "Example",
        "502 — The Forms app returned an error. error describes it.",
        "503 — The Forms integration is not configured on the server.",
        "Example"
      ],
      "keywords": [
        "getForm",
        "accounts",
        "forms",
        "account_id",
        "form_id",
        "id",
        "name",
        "description",
        "status",
        "created_at",
        "updated_at",
        "fields",
        "type",
        "label",
        "required",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/forms/{form id} Retrieve a form and its field definitions. Settings: URL Method https://online.99digital.co.il/api/v1/accounts/{account id}/forms/{form id} JSON via GET Authorization: Header Parameter Description api access token User API key; access depends on the user's permissions. Permissions: User token: on accounts with the new rules system, Forms → read . Accounts on the legacy role system are not restricted. Agent-bot token: allowed. Path Parameters: Parameter Description Required account id Account identifier. Yes form id Form identifier in the path: the form's publicId , as returned by List Forms. Yes Request Example: curl -s -H \"api access token: \" \"https://online.99digital.co.il/api/v1/accounts/12/forms/45\" Response: This abbreviated example shows three of the form's fields. { \"id\": \"45\", \"name\": \"Event registration\", \"description\": null, \"status\": \"published\", \"created at\": \"2026-11-05T09:30:12.019Z\", \"updated at\": \"2026-11-12T08:00:00.000Z\", \"fields\": [ {\"id\": \"text\", \"type\": \"text\", \"name\": \"text\", \"label\": \"Full name\", \"required\": true}, {\"id\": \"number\", \"type\": \"number\", \"name\": \"number\", \"label\": \"Age\", \"required\": false}, {\"id\": \"email\", \"type\": \"email\", \"name\": \"email\", \"label\": \"Email\", \"required\": true} ] } Response-Explain: Parameter Description id Form identifier (string): the form's publicId . name Form name. description Form description, or null . status Form status. Enum: draft , published , archived . Only published forms can be turned into links. created at Creation timestamp in ISO 8601 format. updated at Last update timestamp in ISO 8601 format. fields Array of field definitions. fields[].id Field identifier; corresponds to answers[].field id when the field is answered (see Get Submission). fields[].type Field type. Enum: text , email , phone , number , textarea , radio , checkbox , multi select , select , date , time , datetime , number rating , slider , file upload , star rating . fields[].name Field name. fields[].label Display label. fields[].required Boolean indicating whether the field is required. The response comes from the 99digital Forms app as it is. How forms work, and the errors every Forms endpoint can return, are explained in List Forms. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . form id path string Yes The form's publicId , as returned by List Forms. Example: 45 . Responses 200 — The form, with its fields. Content type: application/json Field Type Description id string Form identifier (a string): the form's publicId . name string The form's name. description string \\ null The form's description, or null . status string The form's status. Only published forms can be turned into links. One of: published — Published. Links can be generated for it; draft — A draft, not published yet. No links can be generated for it; archived — Archived. No links can be generated for it. created at string When the form was created (ISO 8601). updated at string The last change (ISO 8601). fields array of object The form's fields. fields[].id string The field's ID. When the field is answered, the answer refers to it as field id (see Get Submission). fields[].type string The field type: text , email , phone , number , textarea , radio , checkbox , multi select , select , date , time , datetime , number rating , slider , file upload or star rating . fields[].name string The field's name. The text shown on the form is label . fields[].label string The label shown on the form. fields[].required boolean Whether the field is required — must be filled in. Example { \"id\": \"45\", \"name\": \"Event registration\", \"description\": null, \"status\": \"published\", \"created at\": \"2026-11-05T09:30:12.019Z\", \"updated at\": \"2026-11-12T08:00:00.000Z\", \"fields\": [ { \"id\": \"text\", \"type\": \"text\", \"name\": \"text\", \"label\": \"Full name\", \"required\": true }, { \"id\": \"number\", \"type\": \"number\", \"name\": \"number\", \"label\": \"Age\", \"required\": false }, { \"id\": \"email\", \"type\": \"email\", \"name\": \"email\", \"label\": \"Email\", \"required\": true } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms → read . Content type: application/json Field Type Description error string The error message: Forms is not enabled for this account , or You are not authorized to do this action when the role lacks the permission. Example: Forms not enabled The account does not have Forms. { \"error\": \"Forms is not enabled for this account\" } Example: No permission The role lacks Forms → read. { \"error\": \"You are not authorized to do this action\" } 404 — The form was not found in the Forms app. Content type: application/json Field Type Description error string The error message from the Forms app: Not found . Example { \"error\": \"Not found\" } 500 — An unexpected error while talking to the Forms app. Content type: application/json Field Type Description error string What failed, as : . Example { \"error\": \" : \" } 502 — The Forms app returned an error. error describes it. Content type: application/json Field Type Description error string The error message, which says what failed. 503 — The Forms integration is not configured on the server. Content type: application/json Field Type Description error string The error message: Forms is not configured on this server . Example { \"error\": \"Forms is not configured on this server\" }"
    },
    {
      "id": "online-api/list-form-fields",
      "title": "List Form Fields",
      "url": "https://docs.99digital.co.il/online-api/forms/list-form-fields",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/forms/list-form-fields.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Forms"
      ],
      "language": "en",
      "description": "Returns the form's fields in a normalised format, as used by automation rules.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/forms/{form_id}/fields",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/forms/{form_id}/fields"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The form's fields.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms → read.",
        "Example: Forms not enabled",
        "Example: No permission",
        "404 — The form was not found in the Forms app.",
        "Example",
        "500 — An unexpected error while talking to the Forms app.",
        "Example",
        "502 — The Forms app returned an error. error describes it.",
        "503 — The Forms integration is not configured on the server.",
        "Example"
      ],
      "keywords": [
        "listFormFields",
        "accounts",
        "forms",
        "fields",
        "account_id",
        "form_id",
        "key",
        "name",
        "type",
        "options",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/forms/{form id}/fields Returns the form's fields in a normalised format, as used by automation rules. This is the format of the \"Form response\" conditions of automation rules, for the form response submitted event. For the fields as the form defines them, use Get a Form. How forms work, and the errors every Forms endpoint can return, are explained in List Forms. Setting Value Method GET Path /api/v1/accounts/{account id}/forms/{form id}/fields Permissions: User token: on accounts with the new rules system, Forms → read . Accounts on the legacy role system are not restricted. Agent-bot token: allowed. Path parameters Name Type Required Description account id integer Yes Account ID. form id string Yes Form publicId . Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/forms/45/fields' \\ -H 'api access token: ' Example response ( 200 OK ) { \"fields\": [ { \"key\": \"text\", \"name\": \"Full name\", \"type\": \"plain text\", \"options\": [] }, { \"key\": \"number\", \"name\": \"Age\", \"type\": \"number\", \"options\": [] }, { \"key\": \"email\", \"name\": \"Email\", \"type\": \"plain text\", \"options\": [] } ] } type is the automation-condition type ( plain text , number , list , ...); options lists the choices of select-type fields. Error responses : the common Forms errors ( 403 , 404 , 500 , 502 , 503 ) listed in List Forms. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . form id path string Yes The form's publicId , as returned by List Forms. Example: 45 . Responses 200 — The form's fields. Content type: application/json Field Type Description fields array of object The form's fields. fields[].key string The field's ID — the id of the field in Get a Form. fields[].name string The field's label, as shown on the form. fields[].type string The automation-condition type, for example plain text , number or list . fields[].options array The choices of a select-type field; empty for other fields. Example { \"fields\": [ { \"key\": \"text\", \"name\": \"Full name\", \"type\": \"plain text\", \"options\": [] }, { \"key\": \"number\", \"name\": \"Age\", \"type\": \"number\", \"options\": [] }, { \"key\": \"email\", \"name\": \"Email\", \"type\": \"plain text\", \"options\": [] } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms → read . Content type: application/json Field Type Description error string The error message: Forms is not enabled for this account , or You are not authorized to do this action when the role lacks the permission. Example: Forms not enabled The account does not have Forms. { \"error\": \"Forms is not enabled for this account\" } Example: No permission The role lacks Forms → read. { \"error\": \"You are not authorized to do this action\" } 404 — The form was not found in the Forms app. Content type: application/json Field Type Description error string The error message from the Forms app: Not found . Example { \"error\": \"Not found\" } 500 — An unexpected error while talking to the Forms app. Content type: application/json Field Type Description error string What failed, as : . Example { \"error\": \" : \" } 502 — The Forms app returned an error. error describes it. Content type: application/json Field Type Description error string The error message, which says what failed. 503 — The Forms integration is not configured on the server. Content type: application/json Field Type Description error string The error message: Forms is not configured on this server . Example { \"error\": \"Forms is not configured on this server\" }"
    },
    {
      "id": "online-api/generate-form-link",
      "title": "Generate Form Link",
      "url": "https://docs.99digital.co.il/online-api/forms/generate-form-link",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/forms/generate-form-link.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Forms"
      ],
      "language": "en",
      "description": "Generate a link for an existing conversation or for a contact on a new conversation screen.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/forms/{form_id}/links",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/forms/{form_id}/links"
      },
      "headings": [
        "Kinds of link",
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Conversation link",
        "Example: Contact link",
        "Example: Public link",
        "Responses",
        "200 — The form link.",
        "Example",
        "400 — contact was sent without phonenumber or email.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms → read.",
        "Example: Forms not enabled",
        "Example: No permission",
        "404 — The form, the conversation, its contact or the inbox was not found.",
        "Example: Form not found",
        "Example: Conversation not found",
        "Example: No contact",
        "Example: Inbox not found",
        "500 — An unexpected error while talking to the Forms app.",
        "Example",
        "502 — The form is not published (a draft or archived form), or the Forms app failed.",
        "Example",
        "503 — The Forms integration is not configured on the server.",
        "Example"
      ],
      "keywords": [
        "generateFormLink",
        "accounts",
        "forms",
        "links",
        "account_id",
        "form_id",
        "conversation_id",
        "contact",
        "phone_number",
        "email",
        "name",
        "inbox_id",
        "form_link",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/forms/{form id}/links Generate a link for an existing conversation or for a contact on a new conversation screen. Settings: URL Method https://online.99digital.co.il/api/v1/accounts/{account id}/forms/{form id}/links JSON via POST Authorization: Header Parameter Description api access token User API key; access depends on the user's permissions. Content-Type application/json Permissions: User token: on accounts with the new rules system, Forms → read . Accounts on the legacy role system are not restricted. Agent-bot token: allowed. Path Parameters: Parameter Description Required account id Account identifier. Yes form id Form identifier in the path: the form's publicId , as returned by List Forms. Yes Request Body: For an existing conversation, conversation id is the conversation display ID : {\"conversation id\": 1501} For a contact who may not exist yet: {\"inbox id\": 32, \"contact\": {\"email\": \"dana.cohen@example.com\", \"name\": \"Dana Cohen\"}} Parameter Description conversation id Conversation display ID (conversation link). inbox id Inbox identifier. Required for a contact link; optional for a public link, where it records which inbox the link came from. contact.phone number Contact phone (contact link). Phone or email is required for a contact link. contact.email Contact email address (contact link). contact.name Contact name, used for a new contact (contact link). Request Examples: curl -s -X POST -H \"api access token: \" -H \"Content-Type: application/json\" \\ \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/links\" \\ -d '{\"conversation id\": 1501}' curl -s -X POST -H \"api access token: \" -H \"Content-Type: application/json\" \\ \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/links\" \\ -d '{\"inbox id\": 32, \"contact\": {\"email\": \"dana.cohen@example.com\", \"name\": \"Dana Cohen\"}}' Response: {\"form link\": \"https://forms.example.com/forms/45/answer?t=X7kP2mQ9\"} Response-Explain: Parameter Description form link Generated URL for opening the form. Its domain is the Forms app's; t is the link's own token. Kinds of link Creates a link to fill in the form. What the body contains decides which kind of link you get: Conversation link ( conversation id ): tied to an existing conversation and its contact. The submission appears in that conversation. Contact link ( contact + inbox id ): the contact is found by email/phone, or created if missing. Use this before a conversation exists, for example together with an outbound WhatsApp template sent with Add Conversation. Public link (neither): an anonymous link that anyone can use. inbox id is optional and records which inbox it came from. The form must be published . Each link has a unique token. Generating a link fires the form link generated webhook event. Example: link for a contact (by phone) in an inbox curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/forms/45/links' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"inbox id\": 32, \"contact\": { \"phone number\": \"+972501234567\", \"name\": \"Dana Cohen\" } }' Response ( 200 OK ): { \"form link\": \"https://forms.example.com/forms/45/answer?t=X7kP2mQ9\" } Example: public link curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/forms/45/links' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{}' Response ( 200 OK ): { \"form link\": \"https://forms.example.com/forms/45/answer?t=Q4nR8sT2\" } Error responses Status When Body 400 contact sent without email or phone. {\"error\": \"Missing email or phone number\"} 404 conversation id not found. {\"error\": \"Conversation not found\"} 404 The conversation has no contact. {\"error\": \"Contact not found for conversation\"} 404 inbox id not found (contact link). {\"error\": \"Inbox not found\"} 502 The form is not published (draft/archived), or the Forms app failed. {\"error\": \"Failed to generate form link\"} The common Forms errors are listed in List Forms. Remarks A form that is not published (a draft or archived form) is answered with 502 , the same as a failure of the Forms app. Check the form's status with List Forms first. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . form id path string Yes The form's publicId , as returned by List Forms. Example: 45 . Request body Content type: application/json (required) Field Type Required Description conversation id integer No For a conversation link — the conversation's display ID. contact object No For a contact link — the contact to find, or to create if missing. Send phone number or email , and inbox id . contact.phone number string No The contact's phone number. phone number or email is required. contact.email string No The contact's email address. phone number or email is required. contact.name string No The name for a new contact. inbox id integer No The inbox identifier. Required for a contact link. Optional for a public link, where it records which inbox the link came from. Example: Conversation link A link for an existing conversation and its contact. { \"conversation id\": 1501 } Example: Contact link A link for a contact, found by phone number or created, in an inbox. { \"inbox id\": 32, \"contact\": { \"phone number\": \"+972501234567\", \"name\": \"Dana Cohen\" } } Example: Public link An anonymous link that anyone can use. {} Responses 200 — The form link. Content type: application/json Field Type Description form link string The generated URL for opening the form. Its domain is the Forms app's; t is the link's own token. Example { \"form link\": \"https://forms.example.com/forms/45/answer?t=X7kP2mQ9\" } 400 — contact was sent without phone number or email . Content type: application/json Field Type Description error string The error message: Missing email or phone number . Example { \"error\": \"Missing email or phone number\" } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms → read . Content type: application/json Field Type Description error string The error message: Forms is not enabled for this account , or You are not authorized to do this action when the role lacks the permission. Example: Forms not enabled The account does not have Forms. { \"error\": \"Forms is not enabled for this account\" } Example: No permission The role lacks Forms → read. { \"error\": \"You are not authorized to do this action\" } 404 — The form, the conversation, its contact or the inbox was not found. Content type: application/json Field Type Description error string The error message. It names what was not found: the form, the conversation, its contact or the inbox. Example: Form not found The form was not found in the Forms app. { \"error\": \"Not found\" } Example: Conversation not found conversation id does not exist in this account. { \"error\": \"Conversation not found\" } Example: No contact The conversation has no contact. { \"error\": \"Contact not found for conversation\" } Example: Inbox not found inbox id of a contact link does not exist in this account. { \"error\": \"Inbox not found\" } 500 — An unexpected error while talking to the Forms app. Content type: application/json Field Type Description error string What failed, as : . Example { \"error\": \" : \" } 502 — The form is not published (a draft or archived form), or the Forms app failed. Content type: application/json Field Type Description error string The error message: Failed to generate form link . Example { \"error\": \"Failed to generate form link\" } 503 — The Forms integration is not configured on the server. Content type: application/json Field Type Description error string The error message: Forms is not configured on this server . Example { \"error\": \"Forms is not configured on this server\" }"
    },
    {
      "id": "online-api/list-form-submissions",
      "title": "List Form Submissions",
      "url": "https://docs.99digital.co.il/online-api/forms/list-form-submissions",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/forms/list-form-submissions.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Forms"
      ],
      "language": "en",
      "description": "Retrieve submission summaries for a form, newest first, 50 per page.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/forms/{form_id}/submissions",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/forms/{form_id}/submissions"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — A page of the form's submissions, newest first.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms Responses → read.",
        "Example: Forms not enabled",
        "Example: No permission",
        "404 — The form was not found in the Forms app.",
        "Example",
        "500 — An unexpected error while talking to the Forms app.",
        "Example",
        "502 — The Forms app returned an error. error describes it.",
        "503 — The Forms integration is not configured on the server.",
        "Example"
      ],
      "keywords": [
        "listFormSubmissions",
        "accounts",
        "forms",
        "submissions",
        "account_id",
        "form_id",
        "page",
        "data",
        "id",
        "status",
        "created_at",
        "updated_at",
        "submitted_at",
        "pagination",
        "limit",
        "total",
        "total_pages",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/forms/{form id}/submissions Retrieve submission summaries for a form, newest first, 50 per page. Settings: URL Method https://online.99digital.co.il/api/v1/accounts/{account id}/forms/{form id}/submissions JSON via GET Authorization: Header Parameter Description api access token User API key; access depends on the user's permissions. Permissions: User token: on accounts with the new rules system, Forms Responses → read . Accounts on the legacy role system are not restricted. Agent-bot token: allowed. Path Parameters: Parameter Description Required account id Account identifier. Yes form id Form identifier in the path: the form's publicId , as returned by List Forms. Yes Query Parameters: Parameter Description Required page Page number, starting at 1. Invalid values mean page 1. No Request Example: curl -s -H \"api access token: \" \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/submissions\" curl -s -H \"api access token: \" \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/submissions?page=1\" Response: This example uses illustrative values. { \"data\": [ { \"id\": \"9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\", \"form id\": \"45\", \"status\": \"completed\", \"created at\": \"2026-11-12T08:04:51.210Z\", \"updated at\": \"2026-11-12T08:09:38.775Z\", \"submitted at\": \"2026-11-12T08:09:38.775Z\" }, { \"id\": \"7a1e5d2c-3b4f-4a6e-9d8c-1f2e3a4b5c6d\", \"form id\": \"45\", \"status\": \"completed\", \"created at\": \"2026-11-11T13:21:44.508Z\", \"updated at\": \"2026-11-11T13:24:10.092Z\", \"submitted at\": \"2026-11-11T13:24:10.092Z\" } ], \"pagination\": {\"page\": 1, \"limit\": 50, \"total\": 2, \"total pages\": 1} } Response-Explain: Parameter Description data Array of submission summaries for this page, newest first. data[].id Submission identifier (UUID string); use it as {submission id} in Get Submission. data[].form id Associated form identifier (string). data[].status Submission status. data[].created at Creation timestamp in ISO 8601 format. data[].updated at Last update timestamp in ISO 8601 format. data[].submitted at Submission timestamp in ISO 8601 format. pagination.page Page represented by data . pagination.limit Reported page size (50). pagination.total Total submissions across pages. pagination.total pages Total number of pages. Each summary has the submission's ID and times. For the answers, use Get Submission. How forms work, and the errors every Forms endpoint can return, are explained in List Forms. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . form id path string Yes The form's publicId , as returned by List Forms. Example: 45 . page query integer No The page number, starting at 1 . An invalid value means page 1. Default: 1 . Example: 1 . Responses 200 — A page of the form's submissions, newest first. Content type: application/json Field Type Description data array of object The submissions on this page. data[].id string The submission's ID (a UUID), to use as {submission id} in Get Submission. data[].form id string The form's publicId . data[].status string The submission's status, for example completed . data[].created at string When the submission was created (ISO 8601). data[].updated at string The last change (ISO 8601). data[].submitted at string When the form was submitted (ISO 8601). pagination object Where this page is. pagination.page integer This page's number. pagination.limit integer The page size ( 50 ). pagination.total integer The number of submissions, across all pages. pagination.total pages integer The number of pages. Example { \"data\": [ { \"id\": \"9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\", \"form id\": \"45\", \"status\": \"completed\", \"created at\": \"2026-11-12T08:04:51.210Z\", \"updated at\": \"2026-11-12T08:09:38.775Z\", \"submitted at\": \"2026-11-12T08:09:38.775Z\" }, { \"id\": \"7a1e5d2c-3b4f-4a6e-9d8c-1f2e3a4b5c6d\", \"form id\": \"45\", \"status\": \"completed\", \"created at\": \"2026-11-11T13:21:44.508Z\", \"updated at\": \"2026-11-11T13:24:10.092Z\", \"submitted at\": \"2026-11-11T13:24:10.092Z\" } ], \"pagination\": { \"page\": 1, \"limit\": 50, \"total\": 2, \"total pages\": 1 } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms Responses → read . Content type: application/json Field Type Description error string The error message: Forms is not enabled for this account , or You are not authorized to do this action when the role lacks the permission. Example: Forms not enabled The account does not have Forms. { \"error\": \"Forms is not enabled for this account\" } Example: No permission The role lacks Forms Responses → read. { \"error\": \"You are not authorized to do this action\" } 404 — The form was not found in the Forms app. Content type: application/json Field Type Description error string The error message from the Forms app: Not found . Example { \"error\": \"Not found\" } 500 — An unexpected error while talking to the Forms app. Content type: application/json Field Type Description error string What failed, as : . Example { \"error\": \" : \" } 502 — The Forms app returned an error. error describes it. Content type: application/json Field Type Description error string The error message, which says what failed. 503 — The Forms integration is not configured on the server. Content type: application/json Field Type Description error string The error message: Forms is not configured on this server . Example { \"error\": \"Forms is not configured on this server\" }"
    },
    {
      "id": "online-api/get-form-submission",
      "title": "Get Submission",
      "url": "https://docs.99digital.co.il/online-api/forms/get-submission",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/forms/get-submission.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Forms"
      ],
      "language": "en",
      "description": "Retrieve a submission and its answers.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/forms/{form_id}/submissions/{submission_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/forms/{form_id}/submissions/{submission_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The submission, with its answers.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms Responses → read.",
        "Example: Forms not enabled",
        "Example: No permission",
        "404 — The form or the submission was not found in the Forms app.",
        "Example",
        "500 — An unexpected error while talking to the Forms app.",
        "Example",
        "502 — The Forms app returned an error. error describes it.",
        "503 — The Forms integration is not configured on the server.",
        "Example"
      ],
      "keywords": [
        "getFormSubmission",
        "accounts",
        "forms",
        "submissions",
        "account_id",
        "form_id",
        "submission_id",
        "id",
        "status",
        "created_at",
        "updated_at",
        "submitted_at",
        "answers",
        "field_id",
        "value",
        "type",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/forms/{form id}/submissions/{submission id} Retrieve a submission and its answers. Settings: URL Method https://online.99digital.co.il/api/v1/accounts/{account id}/forms/{form id}/submissions/{submission id} JSON via GET Authorization: Header Parameter Description api access token User API key; access depends on the user's permissions. Permissions: User token: on accounts with the new rules system, Forms Responses → read . Accounts on the legacy role system are not restricted. Agent-bot token: allowed. Path Parameters: Parameter Description Required account id Account identifier. Yes form id Form identifier in the path: the form's publicId , as returned by List Forms. Yes submission id Submission identifier (UUID) from the list response (List Form Submissions). Yes Request Example: curl -s -H \"api access token: \" \\ \"https://online.99digital.co.il/api/v1/accounts/12/forms/45/submissions/9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\" Response: Contact details have been replaced with sample values. { \"id\": \"9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\", \"form id\": \"45\", \"status\": \"completed\", \"created at\": \"2026-11-12T08:04:51.210Z\", \"updated at\": \"2026-11-12T08:09:38.775Z\", \"submitted at\": \"2026-11-12T08:09:38.775Z\", \"answers\": [ {\"field id\": \"text\", \"value\": \"Dana Cohen\", \"type\": \"text\"}, {\"field id\": \"number\", \"value\": \"35\", \"type\": \"number\"}, {\"field id\": \"email\", \"value\": \"dana.cohen@example.com\", \"type\": \"email\"}, {\"field id\": \"contactPhone\", \"value\": \"+972501234567\", \"type\": null} ] } Response-Explain: Parameter Description id Submission identifier (UUID string). form id Associated form identifier (string). status Submission status. created at Creation timestamp in ISO 8601 format. updated at Last update timestamp in ISO 8601 format. submitted at Submission timestamp in ISO 8601 format. answers Array of recorded answers; may contain personal information. answers[].field id Identifier of the answered form field. answers[].value Answer value. answers[].type Field type. field id matches the id of the form's fields (see Get a Form). Fields filled automatically from the contact (such as contactPhone ) appear with type: null . How forms work, and the errors every Forms endpoint can return, are explained in List Forms. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . form id path string Yes The form's publicId , as returned by List Forms. Example: 45 . submission id path string Yes The submission's ID (a UUID), as returned by List Form Submissions. Example: 9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d . Responses 200 — The submission, with its answers. Content type: application/json Field Type Description id string The submission's ID (a UUID). form id string The form's publicId . status string The submission's status, for example completed . created at string When the submission was created (ISO 8601). updated at string The last change (ISO 8601). submitted at string When the form was submitted (ISO 8601). answers array of object The recorded answers, one per answered field. They may contain personal data. answers[].field id string The id of the form field. answers[].value any The answer's value. For a field filled in automatically, such as contactPhone , the value taken from the contact. answers[].type string \\ null The field type, or null for a field filled in automatically from the contact. Example { \"id\": \"9b2f6c1e-4d3a-4f8b-a1c2-5e6f7a8b9c0d\", \"form id\": \"45\", \"status\": \"completed\", \"created at\": \"2026-11-12T08:04:51.210Z\", \"updated at\": \"2026-11-12T08:09:38.775Z\", \"submitted at\": \"2026-11-12T08:09:38.775Z\", \"answers\": [ { \"field id\": \"text\", \"value\": \"Dana Cohen\", \"type\": \"text\" }, { \"field id\": \"number\", \"value\": \"35\", \"type\": \"number\" }, { \"field id\": \"email\", \"value\": \"dana.cohen@example.com\", \"type\": \"email\" }, { \"field id\": \"contactPhone\", \"value\": \"+972501234567\", \"type\": null } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — Forms is not enabled for the account, or (new rules system) the role lacks Forms Responses → read . Content type: application/json Field Type Description error string The error message: Forms is not enabled for this account , or You are not authorized to do this action when the role lacks the permission. Example: Forms not enabled The account does not have Forms. { \"error\": \"Forms is not enabled for this account\" } Example: No permission The role lacks Forms Responses → read. { \"error\": \"You are not authorized to do this action\" } 404 — The form or the submission was not found in the Forms app. Content type: application/json Field Type Description error string The error message from the Forms app: Not found . Example { \"error\": \"Not found\" } 500 — An unexpected error while talking to the Forms app. Content type: application/json Field Type Description error string What failed, as : . Example { \"error\": \" : \" } 502 — The Forms app returned an error. error describes it. Content type: application/json Field Type Description error string The error message, which says what failed. 503 — The Forms integration is not configured on the server. Content type: application/json Field Type Description error string The error message: Forms is not configured on this server . Example { \"error\": \"Forms is not configured on this server\" }"
    },
    {
      "id": "online-api/list-labels",
      "title": "List Labels",
      "url": "https://docs.99digital.co.il/online-api/labels/list-labels",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/labels/list-labels.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Labels"
      ],
      "language": "en",
      "description": "Returns all labels of the account, sorted by title.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/labels",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/labels"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The labels of the account, in payload.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "listLabels",
        "accounts",
        "labels",
        "account_id",
        "payload",
        "id",
        "title",
        "description",
        "color",
        "show_on_sidebar",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/labels Returns all labels of the account, sorted by title. To list or set the labels of one conversation, see List Conversation Labels and Set Conversation Labels. Labels are account-wide tags (with a color) that you attach to conversations and contacts. This section manages the label definitions . To attach labels to a record, use: Conversations: List Conversation Labels, Set Conversation Labels, or labels.add / labels.remove in Bulk Update Conversations. Contacts: List Contact Labels, Set Contact Labels. In those endpoints a label is referenced by its title . Setting Value Method GET Path /api/v1/accounts/{account id}/labels Authorization User token. Any agent or administrator of the account. Not available to agent-bot tokens. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/labels' \\ -H 'api access token: ' Example response ( 200 OK ). Truncated to two of the account's labels. { \"payload\": [ { \"id\": 16, \"title\": \"billing\", \"description\": \"Payments and invoices\", \"color\": \"#1f93ff\", \"show on sidebar\": true }, { \"id\": 15, \"title\": \"vip\", \"description\": \"High-value customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": true } ] } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Responses 200 — The labels of the account, in payload . Content type: application/json Field Type Description payload array of object The labels, sorted by title. payload[].id integer The numeric ID of the label. payload[].title string The label's name, unique in the account. Stored in lower case, and may contain only letters (any language), digits, - and — no spaces. Conversations and contacts reference a label by this title. payload[].description string The description of the label. payload[].color string The label's color, as a hex code, for example #1f93ff . payload[].show on sidebar boolean Whether the label is shown as a filter in the dashboard sidebar. Example { \"payload\": [ { \"id\": 16, \"title\": \"billing\", \"description\": \"Payments and invoices\", \"color\": \"#1f93ff\", \"show on sidebar\": true }, { \"id\": 17, \"title\": \"follow up\", \"description\": \"Needs a call back\", \"color\": \"#1f93ff\", \"show on sidebar\": false }, { \"id\": 15, \"title\": \"vip\", \"description\": \"High-value customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": true } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/add-label",
      "title": "Add Label",
      "url": "https://docs.99digital.co.il/online-api/labels/add-labels",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/labels/add-labels.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Labels"
      ],
      "language": "en",
      "description": "Create a label definition in the account.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/labels",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/labels"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Label",
        "Example: All fields",
        "Responses",
        "200 — The new label. The title is in lower case.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "422 — The title has invalid characters, or is already taken.",
        "Example: Invalid title",
        "Example: Title taken"
      ],
      "keywords": [
        "addLabel",
        "accounts",
        "labels",
        "account_id",
        "label",
        "title",
        "description",
        "color",
        "show_on_sidebar",
        "id",
        "error",
        "message",
        "attributes"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/labels Create a label definition in the account. To set or list the labels of a conversation, see Set Conversation Labels and List Conversation Labels. For a contact, see Set Contact Labels and List Contact Labels. Labels are account-wide tags, each with a color, that you attach to conversations and contacts. Once created, a label is attached by its title . Setting Value Method POST Path /api/v1/accounts/{account id}/labels Authorization User token. Legacy: administrator . New rules: Labels → create . Not available to agent-bot tokens. Body parameters (JSON) The fields go inside a label object. In a JSON request the wrapper is optional: top-level fields are wrapped for you. Name Type Required Description label.title string Yes Unique title: letters (any language), digits, - , — no spaces. Converted to lower case; unique regardless of case. label.description string No Description. label.color string No Hex color. Default #1f93ff . label.show on sidebar boolean No Show in the sidebar. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/labels' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"label\": { \"title\": \"VIP\", \"description\": \"High-value customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": true } }' Example response ( 200 OK ). The title was lower-cased. { \"id\": 15, \"title\": \"vip\", \"description\": \"High-value customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": true } Error responses Status When Body 422 Title contains spaces or other invalid characters. {\"message\": \"Title is invalid\", \"attributes\": [\"title\"]} 422 Title already exists (case-insensitive). {\"message\": \"Title has already been taken\", \"attributes\": [\"title\"]} Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description label object Yes The new label's details. In a JSON request the wrapper is optional: top-level fields are wrapped for you. label.title string Yes The label's name, by which it is attached to conversations and contacts. Only letters (any language), digits, - and — no spaces. Converted to lower case; must be unique in the account, regardless of case. Example: VIP . label.description string No A description of the label. Example: High-value customers . label.color string No The label's color, as a hex code. Defaults to #1f93ff . Default: #1f93ff . Example: #ff6b6b . label.show on sidebar boolean No Whether to show the label as a filter in the dashboard sidebar. Example: Label A label with a title only. It gets the default color. { \"label\": { \"title\": \"VIP\" } } Example: All fields A title, a description, a color and a sidebar filter. { \"label\": { \"title\": \"VIP\", \"description\": \"High-value customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": true } } Responses 200 — The new label. The title is in lower case. Content type: application/json Field Type Description id integer The numeric ID of the label. title string The label's name, unique in the account. Stored in lower case, and may contain only letters (any language), digits, - and — no spaces. Conversations and contacts reference a label by this title. description string The description of the label. color string The label's color, as a hex code, for example #1f93ff . show on sidebar boolean Whether the label is shown as a filter in the dashboard sidebar. Example { \"id\": 15, \"title\": \"vip\", \"description\": \"High-value customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": true } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 422 — The title has invalid characters, or is already taken. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example: Invalid title The title has spaces or other characters that are not allowed. { \"message\": \"Title is invalid\", \"attributes\": [ \"title\" ] } Example: Title taken A label with this title (regardless of case) already exists. { \"message\": \"Title has already been taken\", \"attributes\": [ \"title\" ] }"
    },
    {
      "id": "online-api/get-label",
      "title": "Get a Label",
      "url": "https://docs.99digital.co.il/online-api/labels/get-a-label",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/labels/get-a-label.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Labels"
      ],
      "language": "en",
      "description": "Retrieve one label definition of the account.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/labels/{label_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/labels/{label_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The label.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "getLabel",
        "accounts",
        "labels",
        "account_id",
        "label_id",
        "id",
        "title",
        "description",
        "color",
        "show_on_sidebar",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/labels/{label id} Retrieve one label definition of the account. Setting Value Method GET Path /api/v1/accounts/{account id}/labels/{label id} Authorization User token. Legacy: administrator . New rules: Labels → read . Not available to agent-bot tokens. Unlike List Labels, which any agent may call, this endpoint needs the permission above. Path parameters Name Type Required Description account id integer Yes Account ID. label id integer Yes Label ID. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/labels/15' \\ -H 'api access token: ' Example response ( 200 OK ) { \"id\": 15, \"title\": \"vip\", \"description\": \"High-value customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": true } Error responses : 404 {\"error\": \"Resource could not be found\"} . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . label id path integer Yes The numeric ID of the label. Example: 15 . Responses 200 — The label. Content type: application/json Field Type Description id integer The numeric ID of the label. title string The label's name, unique in the account. Stored in lower case, and may contain only letters (any language), digits, - and — no spaces. Conversations and contacts reference a label by this title. description string The description of the label. color string The label's color, as a hex code, for example #1f93ff . show on sidebar boolean Whether the label is shown as a filter in the dashboard sidebar. Example { \"id\": 15, \"title\": \"vip\", \"description\": \"High-value customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": true } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/update-label",
      "title": "Update a Label",
      "url": "https://docs.99digital.co.il/online-api/labels/update-a-label",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/labels/update-a-label.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Labels"
      ],
      "language": "en",
      "description": "Update a label definition.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/labels/{label_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/labels/{label_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Change the color",
        "Example: Several fields",
        "Responses",
        "200 — The updated label.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — The new title has invalid characters, or is already taken.",
        "Example: Invalid title",
        "Example: Title taken"
      ],
      "keywords": [
        "updateLabel",
        "accounts",
        "labels",
        "account_id",
        "label_id",
        "label",
        "title",
        "description",
        "color",
        "show_on_sidebar",
        "id",
        "error",
        "message",
        "attributes"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/labels/{label id} Update a label definition. Updates the fields you send. If you change the title , the new title is applied to all conversations and contacts that had the old one (in the background). Setting Value Method PATCH (or PUT ) Path /api/v1/accounts/{account id}/labels/{label id} Authorization User token. Legacy: administrator . New rules: Labels → update . Not available to agent-bot tokens. Body parameters (JSON) : the same fields as in Add Label, all optional, inside a label object (in a JSON request the wrapper is optional). A new title follows the same rules: letters, digits, - and only, stored in lower case, unique in the account. Example request curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/labels/15' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"label\": { \"description\": \"Top customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": false } }' Example response ( 200 OK ) { \"id\": 15, \"title\": \"vip\", \"description\": \"Top customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": false } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . label id path integer Yes The numeric ID of the label. Example: 15 . Request body Content type: application/json (required) Field Type Required Description label object Yes The fields to change. Every field is optional. label.title string No A new name for the label. Only letters (any language), digits, - and — no spaces. Converted to lower case; must be unique in the account, regardless of case. The new title replaces the old one on every conversation and contact that has the label, in the background. Example: vip . label.description string No A description of the label. Example: Top customers . label.color string No The label's color, as a hex code. Example: #ff6b6b . label.show on sidebar boolean No Whether to show the label as a filter in the dashboard sidebar. Example: Change the color A new color only. { \"label\": { \"color\": \"#ff6b6b\" } } Example: Several fields A new description and color, and hide it from the sidebar. { \"label\": { \"description\": \"Top customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": false } } Responses 200 — The updated label. Content type: application/json Field Type Description id integer The numeric ID of the label. title string The label's name, unique in the account. Stored in lower case, and may contain only letters (any language), digits, - and — no spaces. Conversations and contacts reference a label by this title. description string The description of the label. color string The label's color, as a hex code, for example #1f93ff . show on sidebar boolean Whether the label is shown as a filter in the dashboard sidebar. Example { \"id\": 15, \"title\": \"vip\", \"description\": \"Top customers\", \"color\": \"#ff6b6b\", \"show on sidebar\": false } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — The new title has invalid characters, or is already taken. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example: Invalid title The title has spaces or other characters that are not allowed. { \"message\": \"Title is invalid\", \"attributes\": [ \"title\" ] } Example: Title taken Another label has this title (regardless of case). { \"message\": \"Title has already been taken\", \"attributes\": [ \"title\" ] }"
    },
    {
      "id": "online-api/delete-label",
      "title": "Delete a Label",
      "url": "https://docs.99digital.co.il/online-api/labels/delete-a-label",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/labels/delete-a-label.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Labels"
      ],
      "language": "en",
      "description": "Delete a label definition from the account.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/labels/{label_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/labels/{label_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The label was deleted, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "deleteLabel",
        "accounts",
        "labels",
        "account_id",
        "label_id",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/labels/{label id} Delete a label definition from the account. Setting Value Method DELETE Path /api/v1/accounts/{account id}/labels/{label id} Authorization User token. Legacy: administrator . New rules: Labels → delete . Not available to agent-bot tokens. Example request curl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/labels/15' \\ -H 'api access token: ' Example response : 200 OK with an empty body. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . label id path integer Yes The numeric ID of the label. Example: 15 . Responses 200 — The label was deleted, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-messages",
      "title": "List of Messages",
      "url": "https://docs.99digital.co.il/online-api/messages/list-of-messages",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/messages/list-of-messages.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Messages"
      ],
      "language": "en",
      "description": "List of all messages in a conversation.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/messages",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The conversation's details and its messages, oldest first.",
        "Example: Latest messages",
        "Example: Page mode",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listMessages",
        "accounts",
        "conversations",
        "messages",
        "account_id",
        "conversation_id",
        "before",
        "after",
        "page",
        "ticket_id",
        "filter_internal_messages",
        "meta",
        "labels",
        "additional_attributes",
        "contact",
        "id",
        "name",
        "type",
        "available_name",
        "email",
        "phone_number",
        "identifier",
        "avatar_url",
        "logo_user_url",
        "thumbnail",
        "availability_status",
        "blocked",
        "custom_attributes",
        "agent_last_seen_at",
        "assignee_last_seen_at",
        "all_count",
        "total_pages",
        "current_page",
        "limit_value",
        "payload",
        "content",
        "inbox_id",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status",
        "status_history",
        "source_id",
        "echo_id",
        "sender",
        "sender_type",
        "sender_id",
        "attachments",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "delay_hours",
        "created_at",
        "created_at_exact",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages List of all messages in a conversation. Returns the messages of a conversation, oldest first. Without parameters you get the latest 20 messages. To page through older history, use before with the oldest ID you have. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — the caller must be able to see the conversation (see Who can see a conversation). New rules system: when the conversation was resolved before, messages from before the last resolution are returned only if the role has Inbox see conversations history for the inbox. Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes conversation id The numeric ID of the conversation (its display ID) Yes Query Parameters: Parameter Description Required before Return up to 20 messages with an ID lower than this one. No after Return up to 100 messages with an ID higher than this one. No before + after Return the messages between the two IDs ( after inclusive), up to 1000. No page Page-number mode instead of cursors (25 per page). Adds pagination counts to meta . No ticket id Only messages of this ticket. No filter internal messages true excludes private notes and activity messages. No Response: { \"meta\": { \"labels\": [\"vip\", \"billing\"], \"additional attributes\": { \"source\": \"crm\" }, \"contact\": { \"additional attributes\": { \"city\": \"Tel Aviv\", \"company name\": \"Example Ltd\" }, \"custom attributes\": { \"customer tier\": \"gold\" }, \"email\": \"dana.cohen@example.com\", \"id\": 801, \"identifier\": \"crm-801\", \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"thumbnail\": \"\", \"type\": \"contact\" }, \"agent last seen at\": \"2026-11-12T08:01:05.114Z\", \"assignee last seen at\": null }, \"payload\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470417 }, \"content attributes\": {}, \"created at\": 1794470417, \"private\": false, \"source id\": null, \"sender\": { \"additional attributes\": { \"city\": \"Tel Aviv\", \"company name\": \"Example Ltd\" }, \"custom attributes\": { \"customer tier\": \"gold\" }, \"email\": \"dana.cohen@example.com\", \"id\": 801, \"identifier\": \"crm-801\", \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"thumbnail\": \"\", \"type\": \"contact\" }, \"created at exact\": \"2026-11-12T08:00:17.903Z\", \"delay hours\": null, \"ticket id\": 903 } ] } Response-Explain: Parameter Description meta An object containing metadata about the conversation meta -> labels A list of labels associated with the conversation meta -> contact An object containing data about the contact related to the conversation meta -> contact -> id Contact numeric ID meta -> contact -> name The contact's name meta -> contact -> phone number The contact's phone number meta -> contact -> email The contact's email address meta -> contact -> identifier A unique identifier for the contact in an external system meta -> contact -> thumbnail Avatar URL of the contact meta -> contact -> additional attributes An object containing additional attributes associated with the contact meta -> contact -> custom attributes An object containing the different custom attributes associated with the contact meta -> contact -> type Contact type ( contact / user ) meta -> agent last seen at The last time at which an agent saw the conversation (ISO 8601 format), or null meta -> assignee last seen at The last time at which the assignee saw the conversation (ISO 8601 format), or null meta -> additional attributes An object containing additional attributes related to the conversation meta -> all count Page mode only: the number of messages that match meta -> total pages Page mode only: the number of pages meta -> current page Page mode only: this page's number meta -> limit value Page mode only: the page size (25) payload The messages, oldest first payload -> id Message numeric ID payload -> content The message text content (up to 160,000 characters). Deleted messages contain \"This message was deleted\". payload -> inbox id Inbox numeric ID payload -> conversation id Conversation numeric ID (the display ID) payload -> message type The type of the message: 0 - incoming (from the contact), 1 - outgoing (agent / bot / API), 2 - activity (system note such as \"Conversation was resolved\"), 3 - template payload -> content type The type of the message content. Enum: text , input select , buttons , cards , form , article , input text , input textarea , input email , input csat , incoming email , integrations , referral , contact info , request phone . Default: text payload -> status The status of the message. Enum: sent , delivered , read , failed , deleted payload -> status history Unix time of each status reached, e.g. {\"sent\": 1794470412, \"delivered\": 1794470447} payload -> content attributes An object containing content attributes for the content type: items (options), in reply to + reply data (quoted message), deleted , reaction icon , email (email headers/HTML), template info , buttons info , contact info , external error , translations , ... payload -> created at The time at which message was created (Unix timestamp) payload -> private A Boolean indicating whether the message is private or not (a private note is visible to agents only, never sent to the contact) payload -> source id Message source ID: the message ID on the external channel (e.g. the WhatsApp message ID), or null payload -> echo id Your own correlation ID, if you sent one payload -> attachments An array of objects (attachment). Present only when the message has files. payload -> attachments -> id File numeric ID payload -> attachments -> message id Message numeric ID payload -> attachments -> file type The type of file. Enum: image , video , audio , file , location , contact , share , story mention , fallback payload -> attachments -> account id Account numeric ID payload -> attachments -> extension The file extension, when known payload -> attachments -> filename The file name payload -> attachments -> data url File URL payload -> attachments -> thumb url Thumbnail URL, for images payload -> attachments -> file size The file size (in bytes) payload -> sender An object containing sender data (contact / user / agent bot). Activity messages have no sender. payload -> sender -> id Sender ID payload -> sender -> name Sender name payload -> sender -> phone number Sender phone number payload -> sender -> email Sender email address payload -> sender -> identifier A unique identifier for the contact in an external system payload -> sender -> type Sender type (contact / user / agent bot) payload -> sender -> thumbnail Avatar URL payload -> sender -> custom attributes An object containing custom attributes related to the sender payload -> sender -> additional attributes An object containing additional attributes related to the sender payload -> created at exact The time at which message was created (ISO 8601 format, with milliseconds) payload -> ticket id The ticket the message belongs to payload -> delay hours For scheduled messages: hours after created at when it will be sent. Otherwise null Example: latest messages curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages' \\ -H 'api access token: ' Response ( 200 OK ): the latest 20 messages, oldest first, in the shape above (see the Latest messages response example below). Example: older messages (cursor) curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages?before=40113' \\ -H 'api access token: ' Response ( 200 OK ): the 20 messages before 40113 , oldest first, in the same shape. Example: page mode without notes and activity messages curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages?page=1&filter internal messages=true' \\ -H 'api access token: ' Response ( 200 OK ). meta also contains the pagination counts: { \"meta\": { \"labels\": [\"vip\", \"billing\"], \"all count\": 6, \"total pages\": 1, \"current page\": 1, \"limit value\": 25 }, \"payload\": [] } ( meta also includes the other fields shown above, and payload held the 6 messages. Both are trimmed here.) Remarks Cursors are message IDs. Message IDs grow over time, so before walks back in history and after walks forward. The results are always oldest first, whichever cursor you send. Polling. This is a GET under /conversations : requesting the same URL more than 10 times a minute from one IP address is answered with 429 (see Rate limits). To follow new messages, subscribe to the message created webhook events instead. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . before query integer No Return up to 20 messages with an ID lower than this one. With after , return the messages between the two IDs (up to 1,000). Example: 40113 . after query integer No Return up to 100 messages with an ID higher than this one. With before , this ID is included. page query integer No Page-number mode instead of cursors: 25 messages per page, starting at 1 . Adds pagination counts to meta . ticket id query integer No Return only the messages of this ticket. filter internal messages query boolean No true leaves out private notes and activity messages. Responses 200 — The conversation's details and its messages, oldest first. Content type: application/json Field Type Description meta object The conversation's details. meta.labels array of string The titles of the conversation's labels. meta.additional attributes object The conversation's additional attributes: channel or system data, such as mail subject or source . meta.contact object An object containing the sender's data: who sent a message — the contact ( type contact ), an agent ( user ) or an agent bot ( agent bot ). Its fields follow the kind of sender — a contact has phone number and identifier , an agent has available name and availability status . Activity messages have no sender. meta.contact.id integer The sender's ID — the ID of the contact, agent or agent bot. meta.contact.name string The sender's name. meta.contact.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. meta.contact.available name string An agent's display name. meta.contact.email string \\ null The sender's email address. meta.contact.phone number string \\ null The sender's phone number (a contact's). meta.contact.identifier string \\ null A unique identifier for the contact in your external system (contacts only). meta.contact.avatar url string An agent's avatar image URL. meta.contact.logo user url string \\ null An agent's logo URL, or null . meta.contact.thumbnail string The sender's avatar URL, or an empty string. meta.contact.availability status string An agent's live presence ( online , busy or offline ). meta.contact.blocked boolean Whether a contact is blocked. meta.contact.additional attributes object An object containing the additional attributes related to the sender (a contact). meta.contact.custom attributes object An object containing the custom attributes related to the sender (a contact). meta.agent last seen at string \\ null When an agent last saw the conversation (ISO 8601), or null . meta.assignee last seen at string \\ null When the assignee last saw the conversation (ISO 8601), or null . meta.all count integer Page mode only — the number of messages that match. meta.total pages integer Page mode only — the number of pages. meta.current page integer Page mode only — this page's number. meta.limit value integer Page mode only — the page size ( 25 ). payload array of object The messages, oldest first. payload[].id integer The numeric ID of the message. payload[].content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". payload[].inbox id integer The numeric ID of the inbox. payload[].conversation id integer The numeric ID of the conversation (its display ID). payload[].message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. payload[].content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. payload[].content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. payload[].private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. payload[].status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. payload[].status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . payload[].source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . payload[].echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. payload[].sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. payload[].sender.id integer The sender's ID — the ID of the contact, agent or agent bot. payload[].sender.name string The sender's name. payload[].sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. payload[].sender.available name string An agent's display name. payload[].sender.email string \\ null The sender's email address. payload[].sender.phone number string \\ null The sender's phone number (a contact's). payload[].sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). payload[].sender.avatar url string An agent's avatar image URL. payload[].sender.logo user url string \\ null An agent's logo URL, or null . payload[].sender.thumbnail string The sender's avatar URL, or an empty string. payload[].sender.availability status string An agent's live presence ( online , busy or offline ). payload[].sender.blocked boolean Whether a contact is blocked. payload[].sender.additional attributes object An object containing the additional attributes related to the sender (a contact). payload[].sender.custom attributes object An object containing the custom attributes related to the sender (a contact). payload[].sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . payload[].sender id integer \\ null In a conversation's messages , the sender's ID. payload[].attachments array of object An array of attachment objects — the files of the message. Present only when it has files. payload[].attachments[].id integer The numeric ID of the file (attachment). payload[].attachments[].message id integer The numeric ID of the message the file belongs to. payload[].attachments[].account id integer The numeric ID of the account. payload[].attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. payload[].attachments[].filename string The name of the file. payload[].attachments[].extension string \\ null The file extension, when known. payload[].attachments[].data url string The URL of the file. payload[].attachments[].thumb url string The URL of the file's thumbnail (for images). payload[].attachments[].file size integer The file size, in bytes. payload[].ticket id integer The ticket the message belongs to. payload[].delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . payload[].created at integer The time at which the message was created, measured in seconds since the Unix epoch. payload[].created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. Example: Latest messages Without parameters. 2 of the 20 messages are shown, and meta.contact is shortened. { \"meta\": { \"labels\": [ \"vip\", \"billing\" ], \"additional attributes\": { \"source\": \"crm\" }, \"contact\": { \"id\": 801, \"name\": \"Dana Cohen\", \"type\": \"contact\" }, \"agent last seen at\": \"2026-11-12T08:01:05.114Z\", \"assignee last seen at\": null }, \"payload\": [ { \"id\": 40112, \"content\": \"Your order A-1001 is ready for pickup.\", \"inbox id\": 31, \"echo id\": \"crm-msg-1001\", \"conversation id\": 1501, \"message type\": 1, \"content type\": \"text\", \"status\": \"read\", \"status history\": { \"sent\": 1794470412, \"delivered\": 1794470447, \"read\": 1794470447 }, \"content attributes\": {}, \"created at\": 1794470412, \"private\": false, \"source id\": null, \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"avatar url\": \"\", \"type\": \"user\", \"availability status\": \"online\", \"thumbnail\": \"\" }, \"created at exact\": \"2026-11-12T08:00:12.417Z\", \"delay hours\": null, \"ticket id\": 903 }, { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470417 }, \"content attributes\": { \"reaction icon\": \"👍\" }, \"created at\": 1794470417, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"created at exact\": \"2026-11-12T08:00:17.903Z\", \"delay hours\": null, \"ticket id\": 903 } ] } Example: Page mode page=1&filter internal messages=true . meta holds the pagination counts; payload is shortened to one message. { \"meta\": { \"labels\": [ \"vip\", \"billing\" ], \"additional attributes\": { \"source\": \"crm\" }, \"contact\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false, \"additional attributes\": { \"city\": \"Tel Aviv\", \"company name\": \"Example Ltd\" }, \"custom attributes\": { \"customer tier\": \"gold\" } }, \"agent last seen at\": \"2026-11-12T08:01:05.114Z\", \"assignee last seen at\": null, \"all count\": 6, \"total pages\": 1, \"current page\": 1, \"limit value\": 25 }, \"payload\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470417 }, \"content attributes\": { \"reaction icon\": \"👍\" }, \"created at\": 1794470417, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"created at exact\": \"2026-11-12T08:00:17.903Z\", \"delay hours\": null, \"ticket id\": 903 } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/create-message",
      "title": "Create a Message",
      "url": "https://docs.99digital.co.il/online-api/messages/create-a-message",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/messages/create-a-message.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Messages"
      ],
      "language": "en",
      "description": "This endpoint allows you to create a new message in a conversation.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/messages",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages"
      },
      "headings": [
        "What to send",
        "WhatsApp templates",
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Reply",
        "Example: Private note",
        "Example: Incoming message",
        "Example: Options menu",
        "Example: Quoted reply",
        "Example: Scheduled message",
        "Example: Location",
        "Example: WhatsApp template",
        "Example: File by URL",
        "Responses",
        "200 — The new message. For an incoming message from a blocked contact, a warning instead: the message is not saved.",
        "Example: Reply",
        "Example: Incoming message",
        "Example: Quoted reply",
        "Example: File attachment",
        "Example: Blocked contact",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The caller cannot see the conversation, or the role lacks the inbox permission the message needs: Inbox reply, Inbox private notes, Inbox attach files or Inbox delay message.",
        "Example",
        "404 — The resource does not exist in this account.",
        "Example",
        "415 — A file was rejected by the account's upload policy (its type or size). Other error statuses are possible; error gives the reason.",
        "422 — The message is not allowed in this inbox, or failed validation. error says why.",
        "Example: Incoming in another inbox",
        "Example: Incoming-calls inbox"
      ],
      "keywords": [
        "createMessage",
        "accounts",
        "conversations",
        "messages",
        "account_id",
        "conversation_id",
        "content",
        "message_type",
        "private",
        "content_type",
        "content_attributes",
        "items",
        "title",
        "value",
        "in_reply_to",
        "buttons_info",
        "contact_info",
        "template_info",
        "name",
        "language",
        "category",
        "headerType",
        "text",
        "parameters",
        "key",
        "websiteVariable",
        "websiteVariable2",
        "attachments",
        "url",
        "filename",
        "template_params",
        "namespace",
        "processed_params",
        "echo_id",
        "delay_hours",
        "location",
        "latitude",
        "longitude",
        "address",
        "to_emails",
        "cc_emails",
        "bcc_emails",
        "forwarded",
        "forward_html_content",
        "from_email",
        "campaign_id",
        "sender_type",
        "sender_id",
        "external_created_at",
        "skip_duplicates",
        "wa_id",
        "id",
        "inbox_id",
        "status",
        "status_history",
        "source_id",
        "sender",
        "type",
        "available_name",
        "email",
        "phone_number",
        "identifier",
        "avatar_url",
        "logo_user_url",
        "thumbnail",
        "availability_status",
        "blocked",
        "additional_attributes",
        "custom_attributes",
        "message_id",
        "file_type",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "created_at",
        "created_at_exact",
        "warning",
        "message",
        "params",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages This endpoint allows you to create a new message in a conversation. It sends a message in a conversation: a reply to the contact, a private note, an interactive message, a file, a location, a scheduled message, a WhatsApp template, or (in API inboxes) an incoming message on behalf of the contact. Outgoing messages are delivered to the contact through the inbox's channel (WhatsApp, SMS, email, Facebook, API webhook, and so on). Every new message fires the message created webhook event, delivered to the message created agent , message created bot or message created customer subscription, depending on who sent it. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages Method JSON via POST (or multipart/form-data when uploading files) Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — any agent who can see the conversation (see Who can see a conversation). New rules system, per inbox: a reply needs Inbox reply , a private note Inbox private notes ; with attachments also Inbox attach files ; with delay hours also Inbox delay message . Agent-bot token: allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes conversation id The numeric ID of the conversation (its display ID) Yes Request body: Parameter type Description Required content string The content of the message (up to 160,000 characters). Required unless you send attachments, a location or an interactive payload. Conditional message type string The type of the message. Enum: outgoing (default), incoming . incoming is allowed only in API (and Line) inboxes, to post a message from the contact. No private boolean A Boolean indicating whether the message is private or not. true = private note (not sent to the contact). Default false . No content type string The type of the message content. Enum: text (default), input select , buttons , cards , form , article , input email , contact info , request phone (WhatsApp: ask the contact to share their phone number). No content attributes object Attributes based on the message content type (see the rows below). No content attributes.items array Options for input select / cards / form : [{\"title\": \"...\", \"value\": \"...\"}] . No content attributes.in reply to integer ID of a message in this conversation to reply to (quoted reply). No content attributes.buttons info / buttons info object Buttons definition for content type: buttons . No content attributes.contact info / contact info object Contact card for content type: contact info . No content attributes.template info object Online WhatsApp inboxes (API inboxes connected to the 99digital WhatsApp server): the approved template to send. Use a template object from GET /api/v1/accounts/{account id}/online wa/templates , plus parameters: [{\"key\": \"1\", \"value\": \"...\"}] and, for URL buttons, websiteVariable / websiteVariable2 . Required to message a contact outside the 24-hour window. Can also be sent top-level as template info . No attachments[] file / string Files to send. Send files with multipart/form-data , or signed blob IDs from POST /api/v1/accounts/{account id}/direct uploads , or public URLs (a string, or {\"url\": \"...\", \"filename\": \"...\"} ) that the server downloads. No template params object Native WhatsApp Cloud channel templates: {\"name\", \"category\", \"language\", \"namespace\", \"processed params\": {\"1\": \"value\"}} . No echo id string Your correlation ID, returned on the message and in webhooks. No delay hours integer Schedule the message to be sent this many hours from now. Until then it is stored with delay hours set, and webhooks/channel delivery happen only at send time. No location object Send a location: {\"latitude\": 32.08, \"longitude\": 34.78, \"name\": \"...\", \"address\": \"...\", \"url\": \"...\"} . No to emails , cc emails , bcc emails string Email inboxes: comma-separated addresses. No forwarded , forward html content , from email Email inboxes: forward a message (with original HTML), choose the sender alias. No campaign id integer Campaign the message belongs to. No sender type + sender id string + integer sender type: \"AgentBot\" and an agent-bot ID to send as that bot. No external created at integer Original timestamp on the external platform. No skip duplicates boolean Do not create the message if one with the same content and time already exists. No wa id string Incoming WhatsApp v2 messages: the sender's current WhatsApp ID, saved on the contact inbox. No Request body example: { \"content\": \"Your order A-1001 is ready for pickup.\", \"message type\": \"outgoing\", \"private\": false, \"content type\": \"text\", \"content attributes\": {} } Response: { \"id\": 40112, \"content\": \"Your order A-1001 is ready for pickup.\", \"inbox id\": 31, \"echo id\": \"crm-msg-1001\", \"conversation id\": 1501, \"message type\": 1, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470412 }, \"content attributes\": {}, \"created at\": 1794470412, \"private\": false, \"source id\": null, \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"avatar url\": \"\", \"logo user url\": null, \"type\": \"user\", \"availability status\": \"online\", \"thumbnail\": \"\" }, \"created at exact\": \"2026-11-12T08:00:12.417Z\", \"delay hours\": null, \"ticket id\": 903 } Response-Explain: Parameter Description id The numeric ID of the message content The message text content inbox id The numeric ID of the inbox conversation id The numeric ID of the conversation (the display ID) message type The type of the message: 0 - incoming, 1 - outgoing, 2 - activity, 3 - template. In the request it is a word ( outgoing , incoming ); in the response it is a number. content type The type of the message content. Enum: text , input select , buttons , cards , form , article , input text , input textarea , input email , input csat , incoming email , integrations , referral , contact info , request phone . Default: text status The status of the message. Enum: sent , delivered , read , failed , deleted status history Unix time of each status reached, e.g. {\"sent\": 1794470412} content attributes An object containing content attributes for the content type created at Time at which the message was created. Measured in seconds since the Unix epoch. private A Boolean indicating whether the message is private or not source id Message source ID: the message ID on the external channel (e.g. the WhatsApp message ID), or null echo id Your own correlation ID, if you sent one created at exact The time at which message was created (ISO 8601 format) sender An object containing sender data (contact / user / agent bot) attachments The files of the message (present only when it has files): id , message id , file type , filename , data url , thumb url , file size , extension delay hours For scheduled messages: hours after created at when it will be sent. Otherwise null ticket id The ticket the message belongs to If the contact is blocked , incoming messages are not saved: the response is 200 OK with {\"warning\": {\"message\": \"Contact is blocked. Message was ignored!\", \"params\": ...}} (see the Blocked contact response). What to send What the body contains decides the kind of message. Each kind has a ready example under the request body: To send Send A reply to the contact content A private note, seen by agents only content and private: true A message from the contact (API inboxes) content and message type: incoming An options menu content type: input select and content attributes.items A quoted reply content and content attributes.in reply to A scheduled message content and delay hours A location location A WhatsApp template content and content attributes.template info (see below) Files attachments : public URLs or signed blob IDs in JSON, or files from disk with multipart/form-data (see Remarks) WhatsApp templates In Online WhatsApp inboxes (API inboxes connected to the 99digital WhatsApp server), send an approved template in content attributes.template info , or in template info at the top level. A template is required to message a contact outside WhatsApp's 24-hour window. Take the template object from GET /api/v1/accounts/{account id}/online wa/templates . Add parameters , one {\"key\": \"1\", \"value\": \"…\"} per placeholder of the template text, and, for URL buttons, websiteVariable / websiteVariable2 . Set content to the rendered text. content is the rendered text shown in the conversation. The WhatsApp server sends the template named in template info.name with the given parameters. The same message object can be sent in the one-shot Add Conversation call to start a new WhatsApp conversation. Native WhatsApp Cloud inboxes take template params instead. Error responses Status When Body 422 incoming message in a non-API inbox. {\"error\": \"Incoming messages are only allowed in Api inboxes\"} 422 Outgoing message in an incoming-calls inbox. {\"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\"} 422 Other validation errors. {\"error\": \" \"} 403 Missing inbox permission ( Inbox reply , Inbox private notes , Inbox attach files or Inbox delay message ). {\"error\": \"You are not authorized to do this action\"} File types and sizes are checked against the account's upload policy. A rejected file returns an error status (for example 415 ) with {\"error\": \" \"} . Remarks Scheduled messages are stored at once, with delay hours set. Webhook events and delivery to the contact happen only at send time. To cancel one, delete it before then. Uploading files from disk. Send the request as multipart/form-data , with each file in an attachments[] field and the other body fields as form fields: curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages' \\ -H 'api access token: ' \\ -F 'content=Here is the invoice image' \\ -F 'attachments[]=@invoice.png;type=image/png' The response is the new message, with its attachments (see the File attachment response). Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . Request body Content type: application/json (required) Field Type Required Description content string No The content of the message: its text, up to 160,000 characters. Required unless you send attachments , a location or an interactive payload. Max length: 160000. Example: Your order A-1001 is ready for pickup. . message type string No The type of the message: who it is from. outgoing (the default) or incoming . In the response it is a number ( 1 , 0 ). One of: outgoing — From the caller to the contact; incoming — From the contact. Allowed only in API (and Line) inboxes, to post a message on the contact's behalf. Default: outgoing . private boolean No A Boolean indicating whether the message is private or not. true for a private note: seen by agents only, never sent to the contact. Default: false . content type string No The type of the message content. input select , cards and form take content attributes.items ; buttons takes buttons info ; contact info takes contact info ; request phone (WhatsApp) asks the contact to share their phone number. One of: text — Plain text. The default; input select — An options menu. The options go in content attributes.items ; buttons — A message with buttons, defined in buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input email — A request for the contact's email address; contact info — A contact card, given in contact info ; request phone — WhatsApp — asks the contact to share their phone number. Default: text . content attributes object No Attributes based on the message content type. content attributes.items array of object No The options of an input select , cards or form message. content attributes.items[].title string No The text the contact sees. content attributes.items[].value string No The value you get back when the contact chooses it. content attributes.in reply to integer No The ID of a message in this conversation to quote. The response adds reply data , a summary of the quoted message. content attributes.buttons info object No The buttons of a buttons message. Can also be sent at the top level. content attributes.contact info object No The contact card of a contact info message. Can also be sent at the top level. content attributes.template info object No Online WhatsApp inboxes : the approved template to send — the template object from GET /api/v1/accounts/{account id}/online wa/templates , plus parameters and, for URL buttons, websiteVariable / websiteVariable2 . Send the template object as you got it; its main fields are listed here. Required to message a contact outside the 24-hour window. Can also be sent at the top level as template info . content attributes.template info.name string No The template's name. content attributes.template info.language string No The template's language code, for example he or en . content attributes.template info.category integer No The template's category, as in the template object. content attributes.template info.headerType integer No The template's header type, as in the template object. content attributes.template info.text string No The template text, with numbered placeholders. content attributes.template info.parameters array of object No The value of each numbered placeholder. content attributes.template info.parameters[].key string No The placeholder's number, for example 1 . content attributes.template info.parameters[].value string No The text to put in its place. content attributes.template info.websiteVariable string No For a URL button, the variable part of its URL. content attributes.template info.websiteVariable2 string No For a second URL button, the variable part of its URL. attachments array of string or object No Files to send. In JSON, each item is a public URL that the server downloads, a signed blob ID from POST /api/v1/accounts/{account id}/direct uploads , or an object with the file's url and filename . To upload files from disk, use multipart/form-data (see Remarks). attachments[].url string Yes (one of: URL with file name) A public URL of the file. attachments[].filename string No (one of: URL with file name) The file name to give it. buttons info object No The same as content attributes.buttons info , at the top level. contact info object No The same as content attributes.contact info , at the top level. template info object No The same as content attributes.template info , at the top level. template params object No Native WhatsApp Cloud inboxes — the template to send. template params.name string No The template's name. template params.category string No The template's category. template params.language string No The template's language code. template params.namespace string No The template's namespace. template params.processed params object No The value of each numbered placeholder, for example {\"1\": \"Dana\"} . echo id string No Your own correlation ID, returned on the message and in webhook events. delay hours integer No Schedule the message to be sent this many hours from now. Until then it is stored with delay hours set; webhook events and delivery to the contact happen only at send time. location object No Send a location. location.latitude number No The latitude. location.longitude number No The longitude. location.name string No The place's name. location.address string No The place's address. location.url string No A link to the place. to emails string No Email inboxes — the recipients, comma-separated. cc emails string No Email inboxes — the Cc recipients, comma-separated. bcc emails string No Email inboxes — the Bcc recipients, comma-separated. forwarded boolean No Email inboxes — forward a message. forward html content string No Email inboxes — the original HTML of the forwarded message. from email string No Email inboxes — the sender alias to send from. campaign id integer No The campaign the message belongs to. sender type string No AgentBot , with sender id , sends the message as that agent bot. One of: AgentBot . sender id integer No The agent bot's ID, with sender type . external created at integer No The message's original time on the external platform (Unix time, seconds). skip duplicates boolean No true skips creating the message when one with the same content and time already exists. wa id string No Incoming WhatsApp v2 messages: the sender's current WhatsApp ID, saved on the contact inbox. Example: Reply A reply to the contact, with your own correlation ID. { \"content\": \"Your order A-1001 is ready for pickup.\", \"message type\": \"outgoing\", \"private\": false, \"echo id\": \"crm-msg-1001\" } Example: Private note A note for agents only. It is not sent to the contact. { \"content\": \"Customer is a VIP, handle with care.\", \"private\": true } Example: Incoming message In an API inbox, post a message from the contact. { \"content\": \"Hi, where is my order?\", \"message type\": \"incoming\" } Example: Options menu A question with options the contact can choose from. { \"content\": \"How can we help?\", \"content type\": \"input select\", \"content attributes\": { \"items\": [ { \"title\": \"Track my order\", \"value\": \"track\" }, { \"title\": \"Talk to an agent\", \"value\": \"agent\" } ] } } Example: Quoted reply A reply that quotes an earlier message of the conversation. { \"content\": \"It will arrive tomorrow.\", \"content attributes\": { \"in reply to\": 40113 } } Example: Scheduled message A message sent two hours from now. { \"content\": \"Reminder: your appointment is tomorrow.\", \"delay hours\": 2 } Example: Location A location, without text. { \"location\": { \"latitude\": 32.0853, \"longitude\": 34.7818, \"name\": \"Example Ltd\", \"address\": \"1 Example St, Tel Aviv\", \"url\": \"https://maps.example.com/?q=32.0853,34.7818\" } } Example: WhatsApp template An approved template in an Online WhatsApp inbox, with two parameters. content is the rendered text shown in the conversation. The WhatsApp server sends the template named in template info.name with the given parameters. { \"content\": \"Hello Dana, your order A-1001 is ready for pickup.\", \"private\": false, \"content attributes\": { \"template info\": { \"name\": \"order ready\", \"language\": \"en\", \"category\": 1, \"headerType\": 1, \"text\": \"Hello {{1}}, your order {{2}} is ready for pickup.\", \"parameters\": [ { \"key\": \"1\", \"value\": \"Dana\" }, { \"key\": \"2\", \"value\": \"A-1001\" } ] } } } Example: File by URL Files the server downloads from public URLs — one with a file name. { \"content\": \"Here is the invoice image\", \"attachments\": [ { \"url\": \"https://example.com/files/invoice-a1001.png\", \"filename\": \"invoice.png\" }, \"https://example.com/files/price-list.pdf\" ] } Responses 200 — The new message. For an incoming message from a blocked contact, a warning instead: the message is not saved. Content type: application/json Field Type Description id integer (one of: Message) The numeric ID of the message. content string \\ null (one of: Message) The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". inbox id integer (one of: Message) The numeric ID of the inbox. conversation id integer (one of: Message) The numeric ID of the conversation (its display ID). message type integer (one of: Message) The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. content type string (one of: Message) The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. content attributes object (one of: Message) An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. private boolean (one of: Message) Whether the message is private: true for a private note, seen by agents only and never sent to the contact. status string (one of: Message) The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. status history object (one of: Message) When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . source id string \\ null (one of: Message) The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . echo id string (one of: Message) Your own correlation ID, if you sent one. It is returned on the message and in webhooks. sender object (one of: Message) An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. sender.id integer (one of: Message) The sender's ID — the ID of the contact, agent or agent bot. sender.name string (one of: Message) The sender's name. sender.type string (one of: Message) The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. sender.available name string (one of: Message) An agent's display name. sender.email string \\ null (one of: Message) The sender's email address. sender.phone number string \\ null (one of: Message) The sender's phone number (a contact's). sender.identifier string \\ null (one of: Message) A unique identifier for the contact in your external system (contacts only). sender.avatar url string (one of: Message) An agent's avatar image URL. sender.logo user url string \\ null (one of: Message) An agent's logo URL, or null . sender.thumbnail string (one of: Message) The sender's avatar URL, or an empty string. sender.availability status string (one of: Message) An agent's live presence ( online , busy or offline ). sender.blocked boolean (one of: Message) Whether a contact is blocked. sender.additional attributes object (one of: Message) An object containing the additional attributes related to the sender (a contact). sender.custom attributes object (one of: Message) An object containing the custom attributes related to the sender (a contact). sender type string \\ null (one of: Message) In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . sender id integer \\ null (one of: Message) In a conversation's messages , the sender's ID. attachments array of object (one of: Message) An array of attachment objects — the files of the message. Present only when it has files. attachments[].id integer (one of: Message) The numeric ID of the file (attachment). attachments[].message id integer (one of: Message) The numeric ID of the message the file belongs to. attachments[].account id integer (one of: Message) The numeric ID of the account. attachments[].file type string (one of: Message) The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. attachments[].filename string (one of: Message) The name of the file. attachments[].extension string \\ null (one of: Message) The file extension, when known. attachments[].data url string (one of: Message) The URL of the file. attachments[].thumb url string (one of: Message) The URL of the file's thumbnail (for images). attachments[].file size integer (one of: Message) The file size, in bytes. ticket id integer (one of: Message) The ticket the message belongs to. delay hours integer \\ null (one of: Message) For a scheduled message, the number of hours after created at at which it is sent; otherwise null . created at integer (one of: Message) The time at which the message was created, measured in seconds since the Unix epoch. created at exact string (one of: Message) The time at which the message was created, in ISO 8601 format with milliseconds. warning object (one of: Blocked contact) The incoming message was ignored because the contact is blocked. warning.message string (one of: Blocked contact) What happened. warning.params object (one of: Blocked contact) The parameters of the ignored request. Example: Reply A reply sent by an agent. { \"id\": 40112, \"content\": \"Your order A-1001 is ready for pickup.\", \"inbox id\": 31, \"echo id\": \"crm-msg-1001\", \"conversation id\": 1501, \"message type\": 1, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470412 }, \"content attributes\": {}, \"created at\": 1794470412, \"private\": false, \"source id\": null, \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"avatar url\": \"\", \"type\": \"user\", \"availability status\": \"online\", \"thumbnail\": \"\" }, \"created at exact\": \"2026-11-12T08:00:12.417Z\", \"delay hours\": null, \"ticket id\": 903 } Example: Incoming message A message posted on the contact's behalf in an API inbox. The sender is the contact. { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470417 }, \"content attributes\": {}, \"created at\": 1794470417, \"private\": false, \"source id\": null, \"sender\": { \"additional attributes\": { \"city\": \"Tel Aviv\", \"company name\": \"Example Ltd\" }, \"custom attributes\": { \"customer tier\": \"gold\" }, \"email\": \"dana.cohen@example.com\", \"id\": 801, \"identifier\": \"crm-801\", \"name\": \"Dana Cohen\", \"phone number\": \"+972501234567\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"created at exact\": \"2026-11-12T08:00:17.903Z\", \"delay hours\": null, \"ticket id\": 903 } Example: Quoted reply A quoted reply, shortened to the relevant fields. { \"id\": 40116, \"content\": \"It will arrive tomorrow.\", \"content attributes\": { \"in reply to\": 40113, \"reply data\": { \"sender\": { \"name\": \"Dana Cohen\" }, \"content\": \"Hi, where is my order?\", \"message type\": 0, \"file type\": null, \"thumb url\": null, \"source id\": null }, \"in reply to external id\": null } } Example: File attachment A message with an image. The sender is shortened. { \"id\": 40117, \"content\": \"Here is the invoice image\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 1, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470430 }, \"content attributes\": {}, \"created at\": 1794470430, \"private\": false, \"source id\": null, \"sender\": { \"id\": 51, \"type\": \"user\" }, \"attachments\": [ { \"id\": 3201, \"message id\": 40117, \"file type\": \"image\", \"account id\": 12, \"extension\": null, \"filename\": \"invoice.png\", \"data url\": \"https://online.99digital.co.il/rails/active storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"thumb url\": \"https://online.99digital.co.il/rails/active storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"file size\": 48213 } ], \"created at exact\": \"2026-11-12T08:00:30.256Z\", \"delay hours\": null, \"ticket id\": 903 } Example: Blocked contact An incoming message from a blocked contact was not saved. params is left out here. { \"warning\": { \"message\": \"Contact is blocked. Message was ignored!\" } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The caller cannot see the conversation, or the role lacks the inbox permission the message needs: Inbox reply , Inbox private notes , Inbox attach files or Inbox delay message . Content type: application/json Field Type Description error string The error message: You are not authorized to do this action . Example { \"error\": \"You are not authorized to do this action\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 415 — A file was rejected by the account's upload policy (its type or size). Other error statuses are possible; error gives the reason. Content type: application/json Field Type Description error string Why the file was rejected. 422 — The message is not allowed in this inbox, or failed validation. error says why. Content type: application/json Field Type Description error string What failed. Example: Incoming in another inbox message type: incoming in an inbox that is not an API inbox. { \"error\": \"Incoming messages are only allowed in Api inboxes\" } Example: Incoming-calls inbox An outgoing message in an incoming-calls inbox, which takes private notes only. { \"error\": \"Validation failed: Only private notes can be added in an incoming calls inbox\" }"
    },
    {
      "id": "online-api/delete-message",
      "title": "Delete a Message",
      "url": "https://docs.99digital.co.il/online-api/messages/delete-a-message",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/messages/delete-a-message.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Messages"
      ],
      "language": "en",
      "description": "This endpoint allows you to delete a message and its attachments from the conversation.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}"
      },
      "headings": [
        "What is deleted",
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The deleted message. For a scheduled message, the message as it was before the deletion.",
        "Example: Sent message",
        "Example: Scheduled message",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "deleteMessage",
        "accounts",
        "conversations",
        "messages",
        "account_id",
        "conversation_id",
        "message_id",
        "id",
        "content",
        "inbox_id",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status",
        "status_history",
        "source_id",
        "echo_id",
        "sender",
        "name",
        "type",
        "available_name",
        "email",
        "phone_number",
        "identifier",
        "avatar_url",
        "logo_user_url",
        "thumbnail",
        "availability_status",
        "blocked",
        "additional_attributes",
        "custom_attributes",
        "sender_type",
        "sender_id",
        "attachments",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at",
        "created_at_exact",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id} This endpoint allows you to delete a message and its attachments from the conversation. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id} Method JSON via DELETE Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page. Permissions: User token — any agent who can see the conversation (see Who can see a conversation). New rules system: Inbox delete message for the inbox. Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes conversation id The numeric ID of the conversation (its display ID) Yes message id The numeric ID of the message Yes What is deleted A normal message is kept with its text replaced by \"This message was deleted\", content attributes.deleted: true , and its attachments removed. A scheduled message that has not been sent yet is removed completely, so it will not be sent. On Facebook pages, TikTok and 99Hub Facebook comments the message is also deleted on the platform. On other channels (e.g. WhatsApp) the contact keeps the message they received. Example request curl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40116' \\ -H 'api access token: ' Example response ( 200 OK ). The sender is omitted here. { \"id\": 40116, \"content\": \"This message was deleted\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 1, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470424 }, \"content attributes\": { \"deleted\": true }, \"created at\": 1794470424, \"private\": false, \"source id\": null, \"created at exact\": \"2026-11-12T08:00:24.640Z\", \"delay hours\": null, \"ticket id\": 903 } For a scheduled message the response is the message as it was before deletion (still with delay hours set). Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . message id path integer Yes The numeric ID of the message. Example: 40112 . Responses 200 — The deleted message. For a scheduled message, the message as it was before the deletion. Content type: application/json Field Type Description id integer The numeric ID of the message. content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". inbox id integer The numeric ID of the inbox. conversation id integer The numeric ID of the conversation (its display ID). message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. sender.id integer The sender's ID — the ID of the contact, agent or agent bot. sender.name string The sender's name. sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. sender.available name string An agent's display name. sender.email string \\ null The sender's email address. sender.phone number string \\ null The sender's phone number (a contact's). sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). sender.avatar url string An agent's avatar image URL. sender.logo user url string \\ null An agent's logo URL, or null . sender.thumbnail string The sender's avatar URL, or an empty string. sender.availability status string An agent's live presence ( online , busy or offline ). sender.blocked boolean Whether a contact is blocked. sender.additional attributes object An object containing the additional attributes related to the sender (a contact). sender.custom attributes object An object containing the custom attributes related to the sender (a contact). sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . sender id integer \\ null In a conversation's messages , the sender's ID. attachments array of object An array of attachment objects — the files of the message. Present only when it has files. attachments[].id integer The numeric ID of the file (attachment). attachments[].message id integer The numeric ID of the message the file belongs to. attachments[].account id integer The numeric ID of the account. attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. attachments[].filename string The name of the file. attachments[].extension string \\ null The file extension, when known. attachments[].data url string The URL of the file. attachments[].thumb url string The URL of the file's thumbnail (for images). attachments[].file size integer The file size, in bytes. ticket id integer The ticket the message belongs to. delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . created at integer The time at which the message was created, measured in seconds since the Unix epoch. created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. Example: Sent message The message is kept, marked as deleted. The sender is left out here. { \"id\": 40116, \"content\": \"This message was deleted\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 1, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470424 }, \"content attributes\": { \"deleted\": true }, \"created at\": 1794470424, \"private\": false, \"source id\": null, \"created at exact\": \"2026-11-12T08:00:24.640Z\", \"delay hours\": null, \"ticket id\": 903 } Example: Scheduled message A scheduled message that was not sent yet, as it was before the deletion. Shortened to the relevant fields. { \"id\": 40118, \"content\": \"Reminder: your appointment is tomorrow.\", \"status\": \"sent\", \"delay hours\": 2, \"created at\": 1794470435 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/update-message-status",
      "title": "Update Message Status",
      "url": "https://docs.99digital.co.il/online-api/messages/update-message-status",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/messages/update-message-status.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Messages"
      ],
      "language": "en",
      "description": "Sets the delivery status of a message.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/status",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/status"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The message, with its new status.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — The new status is not after the message's current status.",
        "Example"
      ],
      "keywords": [
        "updateMessageStatus",
        "accounts",
        "conversations",
        "messages",
        "status",
        "account_id",
        "conversation_id",
        "message_id",
        "id",
        "content",
        "inbox_id",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status_history",
        "source_id",
        "echo_id",
        "sender",
        "name",
        "type",
        "available_name",
        "email",
        "phone_number",
        "identifier",
        "avatar_url",
        "logo_user_url",
        "thumbnail",
        "availability_status",
        "blocked",
        "additional_attributes",
        "custom_attributes",
        "sender_type",
        "sender_id",
        "attachments",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at",
        "created_at_exact",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id}/status Sets the delivery status of a message. Channel integrations (such as the WhatsApp API server) use it to report delivery and read receipts. The status can only move forward : sent → delivered → read → failed → deleted . Each status reached is recorded in status history . Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id}/status Authorization User token. Permissions: User token — any agent who can see the conversation (see Who can see a conversation). Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. message id integer Yes Message ID. Body parameters (JSON) Name Type Required Description status string Yes delivered , read , failed or deleted . Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40112/status' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"status\": \"read\" }' Example response ( 200 OK ): the full message object. The relevant fields: { \"id\": 40112, \"status\": \"read\", \"status history\": { \"sent\": 1794470412, \"delivered\": 1794470447, \"read\": 1794470447 } } Error responses : 422 {\"error\": \"New status must be greater than current status\"} (for example delivered after read ). Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . message id path integer Yes The numeric ID of the message. Example: 40112 . Request body Content type: application/json (required) Field Type Required Description status string Yes The new status. It must come after the current status in the order sent → delivered → read → failed → deleted . One of: delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. Example (generated from the schema) { \"status\": \"read\" } Responses 200 — The message, with its new status. Content type: application/json Field Type Description id integer The numeric ID of the message. content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". inbox id integer The numeric ID of the inbox. conversation id integer The numeric ID of the conversation (its display ID). message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. sender.id integer The sender's ID — the ID of the contact, agent or agent bot. sender.name string The sender's name. sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. sender.available name string An agent's display name. sender.email string \\ null The sender's email address. sender.phone number string \\ null The sender's phone number (a contact's). sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). sender.avatar url string An agent's avatar image URL. sender.logo user url string \\ null An agent's logo URL, or null . sender.thumbnail string The sender's avatar URL, or an empty string. sender.availability status string An agent's live presence ( online , busy or offline ). sender.blocked boolean Whether a contact is blocked. sender.additional attributes object An object containing the additional attributes related to the sender (a contact). sender.custom attributes object An object containing the custom attributes related to the sender (a contact). sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . sender id integer \\ null In a conversation's messages , the sender's ID. attachments array of object An array of attachment objects — the files of the message. Present only when it has files. attachments[].id integer The numeric ID of the file (attachment). attachments[].message id integer The numeric ID of the message the file belongs to. attachments[].account id integer The numeric ID of the account. attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. attachments[].filename string The name of the file. attachments[].extension string \\ null The file extension, when known. attachments[].data url string The URL of the file. attachments[].thumb url string The URL of the file's thumbnail (for images). attachments[].file size integer The file size, in bytes. ticket id integer The ticket the message belongs to. delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . created at integer The time at which the message was created, measured in seconds since the Unix epoch. created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. Example { \"id\": 40112, \"content\": \"Your order A-1001 is ready for pickup.\", \"inbox id\": 31, \"echo id\": \"crm-msg-1001\", \"conversation id\": 1501, \"message type\": 1, \"content type\": \"text\", \"status\": \"read\", \"status history\": { \"sent\": 1794470412, \"delivered\": 1794470447, \"read\": 1794470447 }, \"content attributes\": {}, \"created at\": 1794470412, \"private\": false, \"source id\": null, \"sender\": { \"id\": 51, \"name\": \"Jane Agent\", \"available name\": \"Jane Agent\", \"email\": \"jane.agent@example.com\", \"avatar url\": \"\", \"type\": \"user\", \"availability status\": \"online\", \"thumbnail\": \"\" }, \"created at exact\": \"2026-11-12T08:00:12.417Z\", \"delay hours\": null, \"ticket id\": 903 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — The new status is not after the message's current status. Content type: application/json Field Type Description error string The error message: New status must be greater than current status . Example { \"error\": \"New status must be greater than current status\" }"
    },
    {
      "id": "online-api/set-message-reaction",
      "title": "Set Message Reaction",
      "url": "https://docs.99digital.co.il/online-api/messages/set-message-reaction",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/messages/set-message-reaction.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Messages"
      ],
      "language": "en",
      "description": "Stores an emoji reaction on a message.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/reaction",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/reaction"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Add a reaction",
        "Example: Clear the reaction",
        "Responses",
        "200 — The message, with the reaction in contentattributes.reactionicon.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "setMessageReaction",
        "accounts",
        "conversations",
        "messages",
        "reaction",
        "account_id",
        "conversation_id",
        "message_id",
        "reaction_icon",
        "id",
        "content",
        "inbox_id",
        "message_type",
        "content_type",
        "content_attributes",
        "private",
        "status",
        "status_history",
        "source_id",
        "echo_id",
        "sender",
        "name",
        "type",
        "available_name",
        "email",
        "phone_number",
        "identifier",
        "avatar_url",
        "logo_user_url",
        "thumbnail",
        "availability_status",
        "blocked",
        "additional_attributes",
        "custom_attributes",
        "sender_type",
        "sender_id",
        "attachments",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "ticket_id",
        "delay_hours",
        "created_at",
        "created_at_exact",
        "error"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id}/reaction Stores an emoji reaction on a message. The reaction is stored in content attributes.reaction icon . Send an empty string to clear it. Setting Value Method PATCH Path /api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id}/reaction Authorization User token. Permissions: User token — any agent who can see the conversation (see Who can see a conversation). Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. message id integer Yes Message ID. Body parameters (JSON) Name Type Required Description reaction icon string Yes A single emoji, e.g. 👍 . Send an empty string to clear the reaction. Example request curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40113/reaction' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"reaction icon\": \"👍\" }' Example response ( 200 OK ): the full message object, with: { \"id\": 40113, \"content attributes\": { \"reaction icon\": \"👍\" } } Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . message id path integer Yes The numeric ID of the message. Example: 40112 . Request body Content type: application/json (required) Field Type Required Description reaction icon string Yes A single emoji, for example 👍 , or an empty string to clear the reaction. Example: Add a reaction React with a thumbs-up. { \"reaction icon\": \"👍\" } Example: Clear the reaction Remove the message's reaction. { \"reaction icon\": \"\" } Responses 200 — The message, with the reaction in content attributes.reaction icon . Content type: application/json Field Type Description id integer The numeric ID of the message. content string \\ null The message text content, up to 160,000 characters. A deleted message reads \"This message was deleted\". inbox id integer The numeric ID of the inbox. conversation id integer The numeric ID of the conversation (its display ID). message type integer The type of the message — who the message is from. One of: 0 — Incoming — from the contact; 1 — Outgoing — from an agent, a bot or the API; 2 — Activity — a system note, such as \"Conversation was resolved\"; 3 — Template. content type string The type of the message content. Default: text ; the other types are interactive or special messages. One of: text — Plain text. The default; input select — An options menu. The options are in content attributes.items ; buttons — A message with buttons, defined in content attributes.buttons info ; cards — Cards, given in content attributes.items ; form — A form, given in content attributes.items ; article — An article message; input text — A request for a text answer from the contact; input textarea — A request for a longer text answer from the contact; input email — A request for the contact's email address; input csat — A CSAT survey (customer satisfaction rating); incoming email — An email received in an email inbox. The headers and HTML are in content attributes.email ; integrations — A message created by an integration; referral — A referral — information about where the contact came from, such as an ad; contact info — A contact card, given in content attributes.contact info ; request phone — WhatsApp — asks the contact to share their phone number. content attributes object An object containing the content attributes for the content type : items (options), in reply to and reply data (a quoted message), deleted , reaction icon , email (email headers and HTML), template info , buttons info , contact info , external error , translations , …. private boolean Whether the message is private: true for a private note, seen by agents only and never sent to the contact. status string The delivery status of the message. One of: sent — The message was sent; delivered — The message was delivered to the contact; read — The contact read the message; failed — The message could not be delivered; deleted — The message was deleted. status history object When each status was reached (Unix timestamp, in seconds), for example {\"sent\": 1794500000, \"delivered\": 1794500035} . source id string \\ null The message's source ID: its ID on the external channel (for example the WhatsApp message ID), or null . echo id string Your own correlation ID, if you sent one. It is returned on the message and in webhooks. sender object An object containing the sender's data: the contact ( type contact ), an agent ( type user ) or an agent bot ( type agent bot ). Activity messages have no sender. sender.id integer The sender's ID — the ID of the contact, agent or agent bot. sender.name string The sender's name. sender.type string The sender type. One of: contact — The contact; user — An agent; agent bot — An agent bot. sender.available name string An agent's display name. sender.email string \\ null The sender's email address. sender.phone number string \\ null The sender's phone number (a contact's). sender.identifier string \\ null A unique identifier for the contact in your external system (contacts only). sender.avatar url string An agent's avatar image URL. sender.logo user url string \\ null An agent's logo URL, or null . sender.thumbnail string The sender's avatar URL, or an empty string. sender.availability status string An agent's live presence ( online , busy or offline ). sender.blocked boolean Whether a contact is blocked. sender.additional attributes object An object containing the additional attributes related to the sender (a contact). sender.custom attributes object An object containing the custom attributes related to the sender (a contact). sender type string \\ null In a conversation's messages , the kind of sender instead of the sender object: User (an agent), Contact or AgentBot . sender id integer \\ null In a conversation's messages , the sender's ID. attachments array of object An array of attachment objects — the files of the message. Present only when it has files. attachments[].id integer The numeric ID of the file (attachment). attachments[].message id integer The numeric ID of the message the file belongs to. attachments[].account id integer The numeric ID of the account. attachments[].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. attachments[].filename string The name of the file. attachments[].extension string \\ null The file extension, when known. attachments[].data url string The URL of the file. attachments[].thumb url string The URL of the file's thumbnail (for images). attachments[].file size integer The file size, in bytes. ticket id integer The ticket the message belongs to. delay hours integer \\ null For a scheduled message, the number of hours after created at at which it is sent; otherwise null . created at integer The time at which the message was created, measured in seconds since the Unix epoch. created at exact string The time at which the message was created, in ISO 8601 format with milliseconds. Example { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"inbox id\": 31, \"conversation id\": 1501, \"message type\": 0, \"content type\": \"text\", \"status\": \"sent\", \"status history\": { \"sent\": 1794470417 }, \"content attributes\": { \"reaction icon\": \"👍\" }, \"created at\": 1794470417, \"private\": false, \"source id\": null, \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"thumbnail\": \"\", \"type\": \"contact\", \"blocked\": false }, \"created at exact\": \"2026-11-12T08:00:17.903Z\", \"delay hours\": null, \"ticket id\": 903 } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/translate-message",
      "title": "Translate a Message",
      "url": "https://docs.99digital.co.il/online-api/messages/translate-a-message",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/messages/translate-a-message.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Messages"
      ],
      "language": "en",
      "description": "Translates a message with the account's OpenAI integration.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/translate",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/translate"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The translation. If the message already has a translation to targetlanguage, an empty body.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — The account's OpenAI integration is not enabled.",
        "Example"
      ],
      "keywords": [
        "translateMessage",
        "accounts",
        "conversations",
        "messages",
        "translate",
        "account_id",
        "conversation_id",
        "message_id",
        "target_language",
        "content",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id}/translate Translates a message with the account's OpenAI integration. The translation is stored in content attributes.translations . If a translation to that language already exists, it returns 200 with an empty body; the stored translation is then in the message's content attributes.translations , for example in List of Messages. Setting Value Method POST Path /api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id}/translate Authorization User token. New rules: Inbox ai assistance for the inbox. Permissions: User token — any agent who can see the conversation (see Who can see a conversation). New rules system: also Inbox ai assistance for the conversation's inbox. Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. message id integer Yes Message ID. Body parameters (JSON) Name Type Required Description target language string Yes Language code, e.g. he , en , ar , ru . Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40113/translate' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"target language\": \"he\" }' Example response ( 200 OK ) { \"content\": \"היי, איפה ההזמנה שלי?\" } Error responses : 422 {\"error\": \"OpenAI integration is not enabled\"} . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . message id path integer Yes The numeric ID of the message. Example: 40112 . Request body Content type: application/json (required) Field Type Required Description target language string Yes The language code to translate to, for example he , en , ar or ru . Example (generated from the schema) { \"target language\": \"he\" } Responses 200 — The translation. If the message already has a translation to target language , an empty body. Content type: application/json Field Type Description content string The translated text. Example { \"content\": \"היי, איפה ההזמנה שלי?\" } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — The account's OpenAI integration is not enabled. Content type: application/json Field Type Description error string The error message: OpenAI integration is not enabled . Example { \"error\": \"OpenAI integration is not enabled\" }"
    },
    {
      "id": "online-api/list-conversation-files",
      "title": "List Conversation Files",
      "url": "https://docs.99digital.co.il/online-api/messages/list-conversation-files",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/messages/list-conversation-files.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Messages"
      ],
      "language": "en",
      "description": "Returns the attachments of all messages in the conversation, newest first.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/messages/files",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/files"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The conversation's files, newest first. Each file has id, messageid, accountid, filetype, dataurl and thumburl.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listConversationFiles",
        "accounts",
        "conversations",
        "messages",
        "files",
        "account_id",
        "conversation_id",
        "limit",
        "before",
        "id",
        "message_id",
        "file_type",
        "filename",
        "extension",
        "data_url",
        "thumb_url",
        "file_size",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages/files Returns the attachments of all messages in the conversation, newest first. The list is paginated with a cursor: up to limit files per request (200 by default). For the next page, send the lowest id you received as before . Setting Value Method GET Path /api/v1/accounts/{account id}/conversations/{conversation id}/messages/files Authorization User token. Permissions: User token — any agent who can see the conversation (see Who can see a conversation). Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. Query parameters Name Type Required Description limit integer No Page size, 1–200. Default 200. before integer No Return attachments with an ID lower than this one (next page). Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/files?limit=10' \\ -H 'api access token: ' Example response ( 200 OK ) [ { \"id\": 3201, \"message id\": 40117, \"account id\": 12, \"file type\": \"image\", \"data url\": \"https://online.99digital.co.il/rails/active storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"thumb url\": \"https://online.99digital.co.il/rails/active storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\" } ] Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . limit query integer No The number of files to return, from 1 to 200. The default is 200. Default: 200 . Minimum: 1. Maximum: 200. Example: 10 . before query integer No Return files with an ID lower than this one — the lowest id of the previous page — to get the next page. Responses 200 — The conversation's files, newest first. Each file has id , message id , account id , file type , data url and thumb url . Content type: application/json Field Type Description [].id integer The numeric ID of the file (attachment). [].message id integer The numeric ID of the message the file belongs to. [].account id integer The numeric ID of the account. [].file type string The type of file: image , video , audio , file , location , contact , share , story mention , fallback , …. [].filename string The name of the file. [].extension string \\ null The file extension, when known. [].data url string The URL of the file. [].thumb url string The URL of the file's thumbnail (for images). [].file size integer The file size, in bytes. Example [ { \"id\": 3201, \"message id\": 40117, \"account id\": 12, \"file type\": \"image\", \"data url\": \"https://online.99digital.co.il/rails/active storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\", \"thumb url\": \"https://online.99digital.co.il/rails/active storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIwMX19--b7c1/invoice.png\" } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/get-forward-quotes",
      "title": "Get Forward Quotes",
      "url": "https://docs.99digital.co.il/online-api/messages/get-forward-quotes",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/messages/get-forward-quotes.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Messages"
      ],
      "language": "en",
      "description": "Returns the public incoming and outgoing messages before a given message, for building a quoted history when forwarding (mainly email).",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/forward_quotes",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/forward_quotes"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The messages before the given message.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The conversation or the message does not exist.",
        "Example: Message not found",
        "Example: Conversation not found"
      ],
      "keywords": [
        "getForwardQuotes",
        "accounts",
        "conversations",
        "messages",
        "forward_quotes",
        "account_id",
        "conversation_id",
        "message_id",
        "limit",
        "payload",
        "sender",
        "email",
        "name",
        "from_original",
        "created_at",
        "private",
        "content",
        "html_content",
        "forwarded",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id}/forward quotes Returns the public incoming and outgoing messages before a given message, for building a quoted history when forwarding (mainly email). Only the messages before the given message are returned, oldest first. Private notes and activity messages are left out. Very long histories are cut down to the most recent messages; send limit to get only the last few. Setting Value Method GET Path /api/v1/accounts/{account id}/conversations/{conversation id}/messages/{message id}/forward quotes Authorization User token. Permissions: User token — any agent who can see the conversation (see Who can see a conversation). Agent-bot token: not allowed. Path parameters Name Type Required Description account id integer Yes Account ID. conversation id integer Yes Conversation display ID. message id integer Yes Message ID. The messages before this one are returned. Query parameters Name Type Required Description limit integer No Return only the last N messages. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40117/forward quotes?limit=2' \\ -H 'api access token: ' Example response ( 200 OK ) { \"payload\": [ { \"sender\": { \"email\": null, \"name\": \"Jane Agent\", \"from original\": \"Jane Agent <>\" }, \"created at\": 1794470423, \"private\": false, \"content\": \"How can we help?\", \"html content\": null, \"forwarded\": null }, { \"sender\": { \"email\": null, \"name\": \"Jane Agent\", \"from original\": \"Jane Agent <>\" }, \"created at\": 1794470424, \"private\": false, \"content\": \"It will arrive tomorrow.\", \"html content\": null, \"forwarded\": null } ] } Error responses : 404 {\"error\": \"Message not found\"} . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . conversation id path integer Yes The numeric ID of the conversation: its display ID, which is the id in conversation responses and the number in the dashboard URL. Example: 1501 . message id path integer Yes The numeric ID of the message. Example: 40112 . limit query integer No Return only the last N messages. Example: 2 . Responses 200 — The messages before the given message. Content type: application/json Field Type Description payload array of object The messages, oldest first. payload[].sender object Who sent the message. payload[].sender.email string \\ null The sender's email address, or null . payload[].sender.name string The sender's name. payload[].sender.from original string The sender as an email From value — the name, then the email address in angle brackets. payload[].created at integer When the message was created (Unix time, seconds). payload[].private boolean Whether the message is a private note. payload[].content string \\ null The message text. payload[].html content string \\ null The message's HTML (email messages), or null . payload[].forwarded any The message's forwarding data, or null . Example { \"payload\": [ { \"sender\": { \"email\": null, \"name\": \"Jane Agent\", \"from original\": \"Jane Agent <>\" }, \"created at\": 1794470423, \"private\": false, \"content\": \"How can we help?\", \"html content\": null, \"forwarded\": null }, { \"sender\": { \"email\": null, \"name\": \"Jane Agent\", \"from original\": \"Jane Agent <>\" }, \"created at\": 1794470424, \"private\": false, \"content\": \"It will arrive tomorrow.\", \"html content\": null, \"forwarded\": null } ] } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The conversation or the message does not exist. Content type: application/json Field Type Description error string The error message: Message not found for the message, or Resource could not be found for the conversation. Example: Message not found The message does not exist in this conversation. { \"error\": \"Message not found\" } Example: Conversation not found The conversation does not exist in this account. { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-teams",
      "title": "List of all Teams",
      "url": "https://docs.99digital.co.il/online-api/teams/list-of-all-teams",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/teams/list-of-all-teams.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Teams"
      ],
      "language": "en",
      "description": "List of all teams available in the account.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/teams",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/teams"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The teams of the account.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "listTeams",
        "accounts",
        "teams",
        "account_id",
        "id",
        "name",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/teams List of all teams available in the account. A team is a group of agents. You can assign a conversation to a team, and with allow auto assign the conversation is then assigned to one of the team's available members automatically. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/teams Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token: any agent of the account. Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Response: [ { \"id\": 7, \"name\": \"support\", \"description\": \"Customer support\", \"allow auto assign\": true, \"account id\": 12, \"members count\": 2, \"is member\": true }, {...}, {...} ] Response-Explain: Parameter Description id The numeric ID of the team name The name of the team. Stored in lower case, and unique in the account. description The description about the team allow auto assign Indicates whether the auto assignment setting is enabled: a conversation assigned to the team is then assigned to one of its available members automatically account id The numeric ID of the account members count The number of members in the team is member Indicates whether the current user is a member of the team Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Responses 200 — The teams of the account. Content type: application/json Field Type Description [].id integer The numeric ID of the team. [].name string The name of the team. Stored in lower case, and unique in the account. [].description string The description of the team. [].allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. [].account id integer The numeric ID of the account. [].members count integer The number of agents in the team. [].is member boolean Indicates whether the current user (the caller) is a member of the team. Example [ { \"id\": 7, \"name\": \"support\", \"description\": \"Customer support\", \"allow auto assign\": true, \"account id\": 12, \"members count\": 2, \"is member\": true }, { \"id\": 8, \"name\": \"sales\", \"description\": \"\", \"allow auto assign\": false, \"account id\": 12, \"members count\": 1, \"is member\": false } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/create-team",
      "title": "Create a Team",
      "url": "https://docs.99digital.co.il/online-api/teams/create-a-team",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/teams/create-a-team.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Teams"
      ],
      "language": "en",
      "description": "Create a new team in an account.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/teams",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/teams"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Team",
        "Example: All fields",
        "Responses",
        "200 — The new team. The name is in lower case.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "422 — A team with the same name (regardless of case) already exists.",
        "Example"
      ],
      "keywords": [
        "createTeam",
        "accounts",
        "teams",
        "account_id",
        "team",
        "name",
        "description",
        "allow_auto_assign",
        "id",
        "members_count",
        "is_member",
        "error",
        "message",
        "attributes"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/teams Create a new team in an account. The new team has no members. Add agents with Add Team Members. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/teams Method JSON via POST Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Teams → create . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Request body: The fields go inside a team object. In a JSON request the wrapper is optional: top-level fields, as in the example below, are wrapped for you. Parameter Type Description Required name string The name of the team. It is converted to lower case before saving, and must be unique in the account (regardless of case). Yes description string The description of the team No allow auto assign boolean If set to true , the system automatically assigns the conversation to an agent in the team when the conversation is assigned to the team. Default true . No Request body example: { \"name\": \"Support\", \"description\": \"Customer support\", \"allow auto assign\": true } Response: The name is returned in lower case. { \"id\": 7, \"name\": \"support\", \"description\": \"Customer support\", \"allow auto assign\": true, \"account id\": 12, \"members count\": 0, \"is member\": false } Response-Explain: Parameter Description id The numeric ID of the team name The name of the team. Stored in lower case, and unique in the account. description The description about the team allow auto assign Indicates whether the auto assignment setting is enabled: a conversation assigned to the team is then assigned to one of its available members automatically account id The numeric ID of the account members count The number of members in the team is member Indicates whether the current user is a member of the team Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description team object Yes The new team's details. In a JSON request the wrapper is optional: top-level fields are wrapped for you. team.name string Yes The name of the team. It is converted to lower case before saving, and must be unique in the account, regardless of case. Example: Support . team.description string No The description of the team. Example: Customer support . team.allow auto assign boolean No If set to true , the system automatically assigns the conversation to an available agent in the team when the conversation is assigned to the team. Default true . Default: true . Example: Team A team with a name only. { \"team\": { \"name\": \"Support\" } } Example: All fields A name, a description and automatic assignment. { \"team\": { \"name\": \"Support\", \"description\": \"Customer support\", \"allow auto assign\": true } } Responses 200 — The new team. The name is in lower case. Content type: application/json Field Type Description id integer The numeric ID of the team. name string The name of the team. Stored in lower case, and unique in the account. description string The description of the team. allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. account id integer The numeric ID of the account. members count integer The number of agents in the team. is member boolean Indicates whether the current user (the caller) is a member of the team. Example { \"id\": 7, \"name\": \"support\", \"description\": \"Customer support\", \"allow auto assign\": true, \"account id\": 12, \"members count\": 0, \"is member\": false } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 422 — A team with the same name (regardless of case) already exists. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example { \"message\": \"Name has already been taken\", \"attributes\": [ \"name\" ] }"
    },
    {
      "id": "online-api/get-team",
      "title": "Get a Team",
      "url": "https://docs.99digital.co.il/online-api/teams/get-a-team",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/teams/get-a-team.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Teams"
      ],
      "language": "en",
      "description": "Retrieve details about a team in an account.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/teams/{team_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The team.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "getTeam",
        "accounts",
        "teams",
        "account_id",
        "team_id",
        "id",
        "name",
        "description",
        "allow_auto_assign",
        "members_count",
        "is_member",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id} Retrieve details about a team in an account. To get the team's agents, use List Team Members. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id} Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token: any agent of the account. Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes team id The numeric ID of the team Yes Response: { \"id\": 7, \"name\": \"support\", \"description\": \"Customer support\", \"allow auto assign\": true, \"account id\": 12, \"members count\": 2, \"is member\": true } Response-Explain: Parameter Description id The numeric ID of the team name The name of the team. Stored in lower case, and unique in the account. description The description about the team allow auto assign Indicates whether the auto assignment setting is enabled: a conversation assigned to the team is then assigned to one of its available members automatically account id The numeric ID of the account members count The number of members in the team is member Indicates whether the current user is a member of the team Error responses: 404 {\"error\": \"Resource could not be found\"} when the team does not exist in the account. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . team id path integer Yes The numeric ID of the team. Example: 7 . Responses 200 — The team. Content type: application/json Field Type Description id integer The numeric ID of the team. name string The name of the team. Stored in lower case, and unique in the account. description string The description of the team. allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. account id integer The numeric ID of the account. members count integer The number of agents in the team. is member boolean Indicates whether the current user (the caller) is a member of the team. Example { \"id\": 7, \"name\": \"support\", \"description\": \"Customer support\", \"allow auto assign\": true, \"account id\": 12, \"members count\": 2, \"is member\": true } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/update-team",
      "title": "Update a Team",
      "url": "https://docs.99digital.co.il/online-api/teams/update-a-team",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/teams/update-a-team.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Teams"
      ],
      "language": "en",
      "description": "Update team details.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/teams/{team_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Turn off auto-assignment",
        "Example: Description and auto-assignment",
        "Responses",
        "200 — The updated team.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — Another team already has this name (regardless of case).",
        "Example"
      ],
      "keywords": [
        "updateTeam",
        "accounts",
        "teams",
        "account_id",
        "team_id",
        "team",
        "name",
        "description",
        "allow_auto_assign",
        "id",
        "members_count",
        "is_member",
        "error",
        "message",
        "attributes"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id} Update team details. Only the fields you send are changed. To change the members, use Replace Team Members. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id} Method JSON via PATCH ( PUT works the same way) Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Teams → update . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes team id The numeric ID of the team Yes Request body: The fields go inside a team object. In a JSON request the wrapper is optional: top-level fields, as in the example below, are wrapped for you. Parameter Type Description Required name string The name of the team. It is converted to lower case before saving, and must be unique in the account (regardless of case). No description string The description of the team No allow auto assign boolean If set to true , the system automatically assigns the conversation to an agent in the team when the conversation is assigned to the team No Request body example: { \"allow auto assign\": false } Response: { \"id\": 7, \"name\": \"support\", \"description\": \"Customer support\", \"allow auto assign\": false, \"account id\": 12, \"members count\": 2, \"is member\": true } Response-Explain: Parameter Description id The numeric ID of the team name The name of the team. Stored in lower case, and unique in the account. description The description about the team allow auto assign Indicates whether the auto assignment setting is enabled: a conversation assigned to the team is then assigned to one of its available members automatically account id The numeric ID of the account members count The number of members in the team is member Indicates whether the current user is a member of the team Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . team id path integer Yes The numeric ID of the team. Example: 7 . Request body Content type: application/json (required) Field Type Required Description team object Yes The fields to change. Every field is optional. In a JSON request the wrapper is optional: top-level fields are wrapped for you. team.name string No The name of the team. It is converted to lower case before saving, and must be unique in the account, regardless of case. Example: Support . team.description string No The description of the team. Example: Customer support and returns . team.allow auto assign boolean No If set to true , the system automatically assigns the conversation to an available agent in the team when the conversation is assigned to the team. Example: Turn off auto-assignment Stop assigning the team's conversations automatically. { \"team\": { \"allow auto assign\": false } } Example: Description and auto-assignment Change two fields at once. { \"team\": { \"description\": \"Customer support and returns\", \"allow auto assign\": false } } Responses 200 — The updated team. Content type: application/json Field Type Description id integer The numeric ID of the team. name string The name of the team. Stored in lower case, and unique in the account. description string The description of the team. allow auto assign boolean Indicates whether the auto-assignment setting is enabled: when true , a conversation assigned to the team is automatically assigned to one of the team's available members. account id integer The numeric ID of the account. members count integer The number of agents in the team. is member boolean Indicates whether the current user (the caller) is a member of the team. Example { \"id\": 7, \"name\": \"support\", \"description\": \"Customer support and returns\", \"allow auto assign\": false, \"account id\": 12, \"members count\": 2, \"is member\": true } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — Another team already has this name (regardless of case). Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example { \"message\": \"Name has already been taken\", \"attributes\": [ \"name\" ] }"
    },
    {
      "id": "online-api/delete-team",
      "title": "Delete a Team",
      "url": "https://docs.99digital.co.il/online-api/teams/delete-a-team",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/teams/delete-a-team.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Teams"
      ],
      "language": "en",
      "description": "Delete a team from an account.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/teams/{team_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The team was deleted, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "deleteTeam",
        "accounts",
        "teams",
        "account_id",
        "team_id",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id} Delete a team from an account. Conversations assigned to the team are kept, and their team is cleared. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id} Method JSON via DELETE Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Teams → delete . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes team id The numeric ID of the team Yes Response: 200 OK with an empty body. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . team id path integer Yes The numeric ID of the team. Example: 7 . Responses 200 — The team was deleted, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/list-team-members",
      "title": "List Team Members",
      "url": "https://docs.99digital.co.il/online-api/teams/members/list-team-members",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/teams/members/list-team-members.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Teams",
        "Members"
      ],
      "language": "en",
      "description": "Returns the team's members as agent objects.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/teams/{team_id}/team_members",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}/team_members"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The team's members.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example"
      ],
      "keywords": [
        "listTeamMembers",
        "accounts",
        "teams",
        "team_members",
        "account_id",
        "team_id",
        "id",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id}/team members Returns the team's members as agent objects. Each member is a full agent object; see the response schema below. Setting Value Method GET Path /api/v1/accounts/{account id}/teams/{team id}/team members Authorization User token. Any agent of the account. Not available to agent-bot tokens. Path parameters Name Type Required Description account id integer Yes Account ID. team id integer Yes Team ID. Example request curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/teams/7/team members' \\ -H 'api access token: ' Example response ( 200 OK ). One member is shown. [ { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [31, 32], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } ] Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . team id path integer Yes The numeric ID of the team. Example: 7 . Responses 200 — The team's members. Content type: application/json Field Type Description [].id integer The agent's numeric ID (user ID). [].account id integer The numeric ID of the account. [].availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. [].auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). [].confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). [].email string The agent's login email address. [].available name string The agent's display name. [].custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. [].name string The agent's full name. [].role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). [].operation bot boolean true for internal operation-bot users. [].see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). [].assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . [].new role string \\ null The agent's custom role name, or null on accounts with legacy roles. [].thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. [].capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. [].two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. [].phone1 string \\ null The phone number that receives two-factor codes by SMS. [].email1 string \\ null The email address that receives two-factor codes by email. [].create time integer When the agent was created (Unix timestamp, in seconds). Example [ { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"custom attributes\": {}, \"name\": \"Jane Agent\", \"role\": \"General Manager\", \"operation bot\": false, \"see all conversations\": true, \"assignable to inbox\": [ 31, 32, 33 ], \"new role\": \"General Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": \"sms\", \"phone1\": \"+972541234567\", \"email1\": null, \"create time\": 1790000000 }, { \"id\": 53, \"account id\": 12, \"availability status\": \"busy\", \"auto offline\": true, \"confirmed\": true, \"email\": \"omer.katz@example.com\", \"available name\": \"Omer Katz\", \"custom attributes\": {}, \"name\": \"Omer Katz\", \"role\": \"Agent\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [ 31 ], \"new role\": \"Agent\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": null, \"email1\": null, \"create time\": 1794470700 } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/add-team-members",
      "title": "Add Team Members",
      "url": "https://docs.99digital.co.il/online-api/teams/members/add-team-members",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/teams/members/add-team-members.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Teams",
        "Members"
      ],
      "language": "en",
      "description": "Adds agents to the team.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/teams/{team_id}/team_members",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}/team_members"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The agents that were added to the team.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — One of the IDs is not an agent of this account.",
        "Example"
      ],
      "keywords": [
        "addTeamMembers",
        "accounts",
        "teams",
        "team_members",
        "account_id",
        "team_id",
        "user_ids",
        "id",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "error"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id}/team members Adds agents to the team. Agents who are already members are ignored. Returns only the newly added agents. Setting Value Method POST Path /api/v1/accounts/{account id}/teams/{team id}/team members Authorization User token. Legacy: administrator . New rules: Teams → create . Not available to agent-bot tokens. Path parameters Name Type Required Description account id integer Yes Account ID. team id integer Yes Team ID. Body parameters (JSON) Name Type Required Description user ids integer[] Yes Agent (user) IDs to add. Every ID must belong to the account. Example request curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/teams/7/team members' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"user ids\": [52] }' Example response ( 200 OK ): an array with the added agent objects, in the same shape as List Team Members. Error responses Status When Body 422 One of the IDs is not a user of this account. {\"error\": \"Invalid User IDs\"} Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . team id path integer Yes The numeric ID of the team. Example: 7 . Request body Content type: application/json (required) Field Type Required Description user ids array of integer Yes The user IDs of the agents to add. Every ID must be an agent of the account; agents who are already members are ignored. Example (generated from the schema) { \"user ids\": [ 52 ] } Responses 200 — The agents that were added to the team. Content type: application/json Field Type Description [].id integer The agent's numeric ID (user ID). [].account id integer The numeric ID of the account. [].availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. [].auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). [].confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). [].email string The agent's login email address. [].available name string The agent's display name. [].custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. [].name string The agent's full name. [].role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). [].operation bot boolean true for internal operation-bot users. [].see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). [].assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . [].new role string \\ null The agent's custom role name, or null on accounts with legacy roles. [].thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. [].capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. [].two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. [].phone1 string \\ null The phone number that receives two-factor codes by SMS. [].email1 string \\ null The email address that receives two-factor codes by email. [].create time integer When the agent was created (Unix timestamp, in seconds). Example [ { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [ 31, 32 ], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — One of the IDs is not an agent of this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Invalid User IDs\" }"
    },
    {
      "id": "online-api/replace-team-members",
      "title": "Replace Team Members",
      "url": "https://docs.99digital.co.il/online-api/teams/members/replace-team-members",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/teams/members/replace-team-members.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Teams",
        "Members"
      ],
      "language": "en",
      "description": "Sets the team's member list to exactly the agents you send.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/teams/{team_id}/team_members",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}/team_members"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — All the team's members after the change.",
        "Example: Members after the change",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — One of the IDs is not an agent of this account.",
        "Example"
      ],
      "keywords": [
        "replaceTeamMembers",
        "accounts",
        "teams",
        "team_members",
        "account_id",
        "team_id",
        "user_ids",
        "id",
        "availability_status",
        "auto_offline",
        "confirmed",
        "email",
        "available_name",
        "custom_attributes",
        "name",
        "role",
        "operation_bot",
        "see_all_conversations",
        "assignable_to_inbox",
        "new_role",
        "thumbnail",
        "capacity_cap",
        "two_factor_type",
        "phone1",
        "email1",
        "create_time",
        "error"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id}/team members Sets the team's member list to exactly the agents you send. The list becomes exactly user ids : missing agents are added, and members not in the list are removed. Returns the full member list after the change. Setting Value Method PATCH Path /api/v1/accounts/{account id}/teams/{team id}/team members Authorization User token. Legacy: administrator . New rules: Teams → update . Not available to agent-bot tokens. Path parameters Name Type Required Description account id integer Yes Account ID. team id integer Yes Team ID. Body parameters (JSON) Name Type Required Description user ids integer[] Yes The complete list of member IDs. Example request : the team had members 51 and 53 ; after this call it has 51 and 52 . curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/teams/7/team members' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"user ids\": [51, 52] }' Example response ( 200 OK ): an array of agent objects for all current members (here the agents with \"id\": 51 and \"id\": 52 ). Error responses : 422 {\"error\": \"Invalid User IDs\"} . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . team id path integer Yes The numeric ID of the team. Example: 7 . Request body Content type: application/json (required) Field Type Required Description user ids array of integer Yes The complete list of the team's members, as user IDs. Every ID must be an agent of the account. Example (generated from the schema) { \"user ids\": [ 51, 52 ] } Responses 200 — All the team's members after the change. Content type: application/json Field Type Description [].id integer The agent's numeric ID (user ID). [].account id integer The numeric ID of the account. [].availability status string The availability status of the agent: their live presence, computed from the agent's connection — not only the availability the agent chose ( availability in Add Agent and Update Agent). One of: online — Available — connected, with availability set to online; busy — Connected, with availability set to busy; offline — Not available — availability set to offline, or not connected. [].auto offline boolean Whether the agent's availability is configured to go offline automatically when they are away (when they disconnect). [].confirmed boolean Whether the agent's account has been validated: true once the agent clicked the link in the invitation email they received (confirmed their email). [].email string The agent's login email address. [].available name string The agent's display name. [].custom attributes object Free-form attributes (key-value pairs) stored on the agent's membership in this account. [].name string The agent's full name. [].role string The agent's role. Legacy roles: whether the agent is an administrator or an agent . New rules system: the name of the agent's custom role (for example Shift Manager ). [].operation bot boolean true for internal operation-bot users. [].see all conversations boolean Whether the agent can see all the conversations in the account. On accounts with the new rules system the role decides this ( Inbox read all conversations in every inbox). [].assignable to inbox array \\ null The IDs of the inboxes in which the agent's role grants Inbox can be assigned (the agent may be assigned conversations there), or null . [].new role string \\ null The agent's custom role name, or null on accounts with legacy roles. [].thumbnail string The agent's thumbnail (avatar image) URL, or an empty string. [].capacity cap integer \\ null The agent's own cap of open tickets for queue routing. null means the account default (unlimited). Returned only when the account has the queue management ( queue management ) feature. [].two factor type string \\ null The agent's two-factor authentication method, or null when two-factor authentication is disabled. One of: sms — Two-factor codes are sent by SMS to phone1 ; email — Two-factor codes are sent by email to email1 ; null — Two-factor authentication is disabled. [].phone1 string \\ null The phone number that receives two-factor codes by SMS. [].email1 string \\ null The email address that receives two-factor codes by email. [].create time integer When the agent was created (Unix timestamp, in seconds). Example: Members after the change The team had agents 51 and 53; now it has 51 and 52. [ { \"id\": 51, \"account id\": 12, \"availability status\": \"online\", \"auto offline\": true, \"confirmed\": true, \"email\": \"jane.agent@example.com\", \"available name\": \"Jane Agent\", \"custom attributes\": {}, \"name\": \"Jane Agent\", \"role\": \"General Manager\", \"operation bot\": false, \"see all conversations\": true, \"assignable to inbox\": [ 31, 32, 33 ], \"new role\": \"General Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": \"sms\", \"phone1\": \"+972541234567\", \"email1\": null, \"create time\": 1790000000 }, { \"id\": 52, \"account id\": 12, \"availability status\": \"offline\", \"auto offline\": true, \"confirmed\": true, \"email\": \"dana.levi@example.com\", \"available name\": \"Dana Levi\", \"custom attributes\": { \"department\": \"sales\" }, \"name\": \"Dana Levi\", \"role\": \"Shift Manager\", \"operation bot\": false, \"see all conversations\": false, \"assignable to inbox\": [ 31, 32 ], \"new role\": \"Shift Manager\", \"thumbnail\": \"\", \"capacity cap\": null, \"two factor type\": null, \"phone1\": \"+972507654321\", \"email1\": null, \"create time\": 1794470400 } ] 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — One of the IDs is not an agent of this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Invalid User IDs\" }"
    },
    {
      "id": "online-api/remove-team-members",
      "title": "Remove Team Members",
      "url": "https://docs.99digital.co.il/online-api/teams/members/remove-team-members",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/teams/members/remove-team-members.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Teams",
        "Members"
      ],
      "language": "en",
      "description": "Removes agents from the team.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/teams/{team_id}/team_members",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/teams/{team_id}/team_members"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The agents were removed from the team, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — One of the IDs is not an agent of this account.",
        "Example"
      ],
      "keywords": [
        "removeTeamMembers",
        "accounts",
        "teams",
        "team_members",
        "account_id",
        "team_id",
        "user_ids",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/teams/{team id}/team members Removes agents from the team. IDs of agents who are not members are ignored. The IDs go in the JSON body of the DELETE request. Setting Value Method DELETE Path /api/v1/accounts/{account id}/teams/{team id}/team members Authorization User token. Legacy: administrator . New rules: Teams → delete . Not available to agent-bot tokens. Path parameters Name Type Required Description account id integer Yes Account ID. team id integer Yes Team ID. Body parameters (JSON) Name Type Required Description user ids integer[] Yes Agent IDs to remove. IDs that are not members are ignored. Example request curl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/teams/7/team members' \\ -H 'api access token: ' \\ -H 'Content-Type: application/json' \\ -d '{ \"user ids\": [53] }' Example response : 200 OK with an empty body. Error responses : 422 {\"error\": \"Invalid User IDs\"} . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . team id path integer Yes The numeric ID of the team. Example: 7 . Request body Content type: application/json (required) Field Type Required Description user ids array of integer Yes The user IDs of the agents to remove. Every ID must be an agent of the account; agents who are not members of the team are ignored. Example (generated from the schema) { \"user ids\": [ 53 ] } Responses 200 — The agents were removed from the team, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — One of the IDs is not an agent of this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Invalid User IDs\" }"
    },
    {
      "id": "online-api/list-webhooks",
      "title": "List Webhooks",
      "url": "https://docs.99digital.co.il/online-api/webhooks/list-webhooks",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/list-webhooks.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks"
      ],
      "language": "en",
      "description": "List all webhooks in the account.",
      "endpoint": {
        "method": "GET",
        "path": "/accounts/{account_id}/webhooks",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/webhooks"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The webhooks of the account, in payload.webhooks.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot"
      ],
      "keywords": [
        "listWebhooks",
        "accounts",
        "webhooks",
        "account_id",
        "payload",
        "id",
        "name",
        "url",
        "subscriptions",
        "inbox_ids",
        "updated_at",
        "error"
      ],
      "content": "GET https://online.99digital.co.il/api/v1/accounts/{account id}/webhooks List all webhooks in the account. A webhook sends an HTTP POST with a JSON body to its URL whenever one of its subscribed events happens in the account, optionally only for some inboxes. Webhook Events describes the events and their payloads. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/webhooks Method JSON via GET Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Webhooks → read . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Response: { \"payload\": { \"webhooks\": [ { \"id\": 6, \"url\": \"https://example.com/hooks/online-7f3k9\", \"name\": \"CRM sync\", \"account id\": 12, \"subscriptions\": [ \"conversation created\", \"conversation status changed\", \"conversation updated\", \"message created customer\", \"webwidget triggered\", \"message updated\", \"contact created\" ], \"inbox ids\": [31], \"updated at\": 1794470400 } ] } } Response-Explain: Parameter Description payload -> webhooks Array of objects (webhook) payload -> webhooks -> id The numeric ID of the webhook payload -> webhooks -> url The URL to which the events will be sent payload -> webhooks -> name The display name of the webhook payload -> webhooks -> account id The numeric ID of the account payload -> webhooks -> subscriptions Array of strings (subscribed events) payload -> webhooks -> inbox ids Only events that belong to these inboxes are sent. Empty means all inboxes. payload -> webhooks -> updated at The last update, as a Unix timestamp Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Responses 200 — The webhooks of the account, in payload.webhooks . Content type: application/json Field Type Description payload object Holds the list of webhooks. payload.webhooks array of object The webhooks of the account, each with its details. payload.webhooks[].id integer The numeric ID of the webhook. payload.webhooks[].name string The webhook's display name. payload.webhooks[].url string The URL to which the events are sent ( http or https ). Unique in the account. payload.webhooks[].subscriptions array of string Array of strings — the subscribed events the webhook receives. See Webhook Events. payload.webhooks[].inbox ids array of integer Only events that belong to these inboxes are sent. Empty means every inbox. Account-wide events (contacts, the block list, inboxes, agents and signing links) are always sent. payload.webhooks[].account id integer The numeric ID of the account. payload.webhooks[].updated at integer When the webhook was last updated (Unix timestamp, in seconds). Example { \"payload\": { \"webhooks\": [ { \"id\": 6, \"url\": \"https://example.com/hooks/online-7f3k9\", \"name\": \"CRM sync\", \"account id\": 12, \"subscriptions\": [ \"conversation created\", \"message created customer\", \"ticket resolved\" ], \"inbox ids\": [ 31 ], \"updated at\": 1794470400 } ] } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" }"
    },
    {
      "id": "online-api/add-webhook",
      "title": "Add Webhook",
      "url": "https://docs.99digital.co.il/online-api/webhooks/add-webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/add-webhook.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks"
      ],
      "language": "en",
      "description": "Add a new webhook subscription to the account.",
      "endpoint": {
        "method": "POST",
        "path": "/accounts/{account_id}/webhooks",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/webhooks"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Webhook",
        "Example: One inbox",
        "Responses",
        "200 — The new webhook, in payload.webhook.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "422 — The URL is invalid or already used, or the subscriptions are invalid.",
        "Example: URL taken",
        "Example: Invalid URL",
        "Example: Invalid subscriptions"
      ],
      "keywords": [
        "addWebhook",
        "accounts",
        "webhooks",
        "account_id",
        "webhook",
        "url",
        "subscriptions",
        "name",
        "inbox_ids",
        "payload",
        "id",
        "updated_at",
        "error",
        "message",
        "attributes"
      ],
      "content": "POST https://online.99digital.co.il/api/v1/accounts/{account id}/webhooks Add a new webhook subscription to the account. From now on, Online sends an HTTP POST with a JSON body to url whenever one of the subscriptions happens. Send inbox ids to get the events of some inboxes only. Webhook Events describes every event, its payload and how it is delivered. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/webhooks Method JSON via POST Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Webhooks → create . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes Request body: The fields go inside a webhook object. In a JSON request the wrapper is optional: top-level fields, as in the example below, are wrapped for you. Parameter Type Description Required url string The URL where the events should be sent. An http:// or https:// URL, unique in the account. Yes subscriptions array of strings The events to which you want to be subscribed — at least one. Enum: conversation created , conversation status changed , conversation updated , message created customer , message created agent , message created bot , message updated , csat survey submitted , ticket resolved , webwidget triggered , form link generated , form submitted , contact created , contact updated , contact deleted , block list.contact blocked , block list.contact unblocked , inbox created , inbox updated , agent status changed , signing link updated Yes name string Display name. No inbox ids array of integers Limit inbox-related events to these inboxes. Omit or [] for all inboxes. Account-wide events (contacts, block list, inboxes, agents, signing links) are always sent. No Request body example: { \"url\": \"https://example.com/hooks/online-7f3k9\", \"subscriptions\": [ \"conversation created\", \"conversation status changed\", \"conversation updated\", \"message created customer\", \"message created agent\", \"message created bot\", \"message updated\", \"webwidget triggered\", \"contact created\", \"contact updated\" ] } Response: { \"payload\": { \"webhook\": { \"id\": 6, \"url\": \"https://example.com/hooks/online-7f3k9\", \"name\": \"\", \"account id\": 12, \"subscriptions\": [ \"conversation created\", \"conversation status changed\", \"conversation updated\", \"message created customer\", \"message created agent\", \"message created bot\", \"message updated\", \"webwidget triggered\", \"contact created\", \"contact updated\" ], \"inbox ids\": [], \"updated at\": 1794470400 } } } Response-Explain: Parameter Description payload -> webhook Object containing the webhook details payload -> webhook -> id The numeric ID of the webhook payload -> webhook -> url The URL to which the events will be sent payload -> webhook -> name The display name of the webhook payload -> webhook -> account id The numeric ID of the account payload -> webhook -> subscriptions Array of strings (subscribed events) payload -> webhook -> inbox ids Only events that belong to these inboxes are sent. Empty means all inboxes. payload -> webhook -> updated at The last update, as a Unix timestamp Remarks The three message created subscriptions all deliver a payload with \"event\": \"message created\" . Subscribe to each source you need. message created itself is not a valid subscription, and message created (with a trailing underscore) is accepted but matches no event. Online does not sign its requests and does not retry them, and waits up to 5 seconds for an answer. Use a hard-to-guess URL (for example with a secret token in the path), answer quickly with a 2xx , and process the event afterwards. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . Request body Content type: application/json (required) Field Type Required Description webhook object Yes The new webhook's details. In a JSON request the wrapper is optional: top-level fields are wrapped for you. webhook.url string Yes The URL where the events should be sent, as an HTTP POST with a JSON body. An http:// or https:// URL, unique in the account. Example: https://example.com/hooks/online-7f3k9 . webhook.subscriptions array of string Yes The events to which you want to be subscribed — at least one. See Webhook Events for each event's payload. Min items: 1. webhook.name string No The display name of the webhook. Example: CRM sync . webhook.inbox ids array of integer No Send the inbox-related events of these inboxes only. Omit it, or send [] , for every inbox. Account-wide events (contacts, block list, inboxes, agents, signing links) are always sent. Example: Webhook Get every message the contacts send, in every inbox. { \"webhook\": { \"url\": \"https://example.com/hooks/online-7f3k9\", \"subscriptions\": [ \"message created customer\" ] } } Example: One inbox Conversation and message events of one inbox, with a name. { \"webhook\": { \"name\": \"CRM sync\", \"url\": \"https://example.com/hooks/online-7f3k9\", \"subscriptions\": [ \"conversation created\", \"conversation status changed\", \"message created customer\", \"message created agent\" ], \"inbox ids\": [ 31 ] } } Responses 200 — The new webhook, in payload.webhook . Content type: application/json Field Type Description payload object Holds the webhook. payload.webhook object An account webhook: it sends an HTTP POST with a JSON body to your URL whenever one of the subscribed events happens in the account, optionally limited to specific inboxes. payload.webhook.id integer The numeric ID of the webhook. payload.webhook.name string The webhook's display name. payload.webhook.url string The URL to which the events are sent ( http or https ). Unique in the account. payload.webhook.subscriptions array of string Array of strings — the subscribed events the webhook receives. See Webhook Events. payload.webhook.inbox ids array of integer Only events that belong to these inboxes are sent. Empty means every inbox. Account-wide events (contacts, the block list, inboxes, agents and signing links) are always sent. payload.webhook.account id integer The numeric ID of the account. payload.webhook.updated at integer When the webhook was last updated (Unix timestamp, in seconds). Example { \"payload\": { \"webhook\": { \"id\": 6, \"url\": \"https://example.com/hooks/online-7f3k9\", \"name\": \"CRM sync\", \"account id\": 12, \"subscriptions\": [ \"conversation created\", \"conversation status changed\", \"message created customer\", \"message created agent\" ], \"inbox ids\": [ 31 ], \"updated at\": 1794470400 } } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 422 — The URL is invalid or already used, or the subscriptions are invalid. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example: URL taken Another webhook of the account already uses this URL. { \"message\": \"Url has already been taken\", \"attributes\": [ \"url\" ] } Example: Invalid URL The URL is not a valid http:// or https:// URL. { \"message\": \"Url is invalid\", \"attributes\": [ \"url\" ] } Example: Invalid subscriptions An unknown event, or an empty subscriptions list. { \"message\": \"Subscriptions Invalid events\", \"attributes\": [ \"subscriptions\" ] }"
    },
    {
      "id": "online-api/update-webhook",
      "title": "Update Webhook",
      "url": "https://docs.99digital.co.il/online-api/webhooks/update-webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/update-webhook.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks"
      ],
      "language": "en",
      "description": "Update a webhook in the account.",
      "endpoint": {
        "method": "PATCH",
        "path": "/accounts/{account_id}/webhooks/{webhook_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/webhooks/{webhook_id}"
      },
      "headings": [
        "Remarks",
        "Authentication",
        "Parameters",
        "Request body",
        "Example: Change the events",
        "Example: All inboxes",
        "Example: Name, events and inboxes",
        "Responses",
        "200 — The updated webhook, in payload.webhook.",
        "Example",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The resource does not exist in this account.",
        "Example",
        "422 — The new URL is invalid or already used, or the subscriptions are invalid.",
        "Example: URL taken",
        "Example: Invalid URL",
        "Example: Invalid subscriptions"
      ],
      "keywords": [
        "updateWebhook",
        "accounts",
        "webhooks",
        "account_id",
        "webhook_id",
        "webhook",
        "url",
        "subscriptions",
        "name",
        "inbox_ids",
        "payload",
        "id",
        "updated_at",
        "error",
        "message",
        "attributes"
      ],
      "content": "PATCH https://online.99digital.co.il/api/v1/accounts/{account id}/webhooks/{webhook id} Update a webhook in the account. Only the fields you send are changed. subscriptions and inbox ids replace the current lists, so send each list in full. Webhook Events describes every event and its payload. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/webhooks/{webhook id} Method JSON via PATCH ( PUT works the same way) Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Webhooks → update . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes webhook id The numeric ID of the webhook Yes Request body: The fields go inside a webhook object. In a JSON request the wrapper is optional: top-level fields, as in the example below, are wrapped for you. Parameter Type Description Required url string The URL where the events should be sent. An http:// or https:// URL, unique in the account. No subscriptions array of strings The events to which you want to be subscribed — at least one. Replaces the current list. Enum: conversation created , conversation status changed , conversation updated , message created customer , message created agent , message created bot , message updated , csat survey submitted , ticket resolved , webwidget triggered , form link generated , form submitted , contact created , contact updated , contact deleted , block list.contact blocked , block list.contact unblocked , inbox created , inbox updated , agent status changed , signing link updated No name string Display name. No inbox ids array of integers Limit inbox-related events to these inboxes; replaces the current list. Send [] for all inboxes. Account-wide events (contacts, block list, inboxes, agents, signing links) are always sent. No Request body example: { \"subscriptions\": [\"conversation created\", \"message created customer\"] } Response: { \"payload\": { \"webhook\": { \"id\": 6, \"url\": \"https://example.com/hooks/online-7f3k9\", \"name\": \"CRM sync\", \"account id\": 12, \"subscriptions\": [ \"conversation created\", \"message created customer\" ], \"inbox ids\": [31], \"updated at\": 1794474000 } } } Response-Explain: Parameter Description payload -> webhook Object containing the webhook details payload -> webhook -> id The numeric ID of the webhook payload -> webhook -> url The URL to which the events will be sent payload -> webhook -> name The display name of the webhook payload -> webhook -> account id The numeric ID of the account payload -> webhook -> subscriptions Array of strings (subscribed events) payload -> webhook -> inbox ids Only events that belong to these inboxes are sent. Empty means all inboxes. payload -> webhook -> updated at The last update, as a Unix timestamp Remarks The three message created subscriptions all deliver a payload with \"event\": \"message created\" . Subscribe to each source you need. message created itself is not a valid subscription, and message created (with a trailing underscore) is accepted but matches no event. Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . webhook id path integer Yes The numeric ID of the webhook. Example: 6 . Request body Content type: application/json (required) Field Type Required Description webhook object Yes The fields to change. Every field is optional. In a JSON request the wrapper is optional: top-level fields are wrapped for you. webhook.url string No The URL where the events should be sent, as an HTTP POST with a JSON body. An http:// or https:// URL, unique in the account. Example: https://example.com/hooks/online-7f3k9 . webhook.subscriptions array of string No The events to which you want to be subscribed — at least one. Replaces the current list, so send it in full. See Webhook Events for each event's payload. Min items: 1. webhook.name string No The display name of the webhook. Example: CRM sync . webhook.inbox ids array of integer No Send the inbox-related events of these inboxes only; replaces the current list. Send [] for every inbox. Account-wide events (contacts, block list, inboxes, agents, signing links) are always sent. Example: Change the events Replace the list of subscriptions. { \"webhook\": { \"subscriptions\": [ \"conversation created\", \"message created customer\", \"ticket resolved\" ] } } Example: All inboxes Remove the inbox filter, so every inbox's events are sent. { \"webhook\": { \"inbox ids\": [] } } Example: Name, events and inboxes Change three fields at once. { \"webhook\": { \"name\": \"CRM sync\", \"subscriptions\": [ \"conversation created\", \"message created customer\", \"ticket resolved\" ], \"inbox ids\": [ 31 ] } } Responses 200 — The updated webhook, in payload.webhook . Content type: application/json Field Type Description payload object Holds the webhook. payload.webhook object An account webhook: it sends an HTTP POST with a JSON body to your URL whenever one of the subscribed events happens in the account, optionally limited to specific inboxes. payload.webhook.id integer The numeric ID of the webhook. payload.webhook.name string The webhook's display name. payload.webhook.url string The URL to which the events are sent ( http or https ). Unique in the account. payload.webhook.subscriptions array of string Array of strings — the subscribed events the webhook receives. See Webhook Events. payload.webhook.inbox ids array of integer Only events that belong to these inboxes are sent. Empty means every inbox. Account-wide events (contacts, the block list, inboxes, agents and signing links) are always sent. payload.webhook.account id integer The numeric ID of the account. payload.webhook.updated at integer When the webhook was last updated (Unix timestamp, in seconds). Example { \"payload\": { \"webhook\": { \"id\": 6, \"url\": \"https://example.com/hooks/online-7f3k9\", \"name\": \"CRM sync\", \"account id\": 12, \"subscriptions\": [ \"conversation created\", \"message created customer\", \"ticket resolved\" ], \"inbox ids\": [ 31 ], \"updated at\": 1794474000 } } } 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The resource does not exist in this account. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" } 422 — The new URL is invalid or already used, or the subscriptions are invalid. Content type: application/json Field Type Description message string What failed, in the account's language. attributes array of string The fields that failed. Example: URL taken Another webhook of the account already uses this URL. { \"message\": \"Url has already been taken\", \"attributes\": [ \"url\" ] } Example: Invalid URL The URL is not a valid http:// or https:// URL. { \"message\": \"Url is invalid\", \"attributes\": [ \"url\" ] } Example: Invalid subscriptions An unknown event, or an empty subscriptions list. { \"message\": \"Subscriptions Invalid events\", \"attributes\": [ \"subscriptions\" ] }"
    },
    {
      "id": "online-api/delete-webhook",
      "title": "Delete Webhook",
      "url": "https://docs.99digital.co.il/online-api/webhooks/delete-webhook",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/delete-webhook.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks"
      ],
      "language": "en",
      "description": "Delete a webhook from the account.",
      "endpoint": {
        "method": "DELETE",
        "path": "/accounts/{account_id}/webhooks/{webhook_id}",
        "url": "https://online.99digital.co.il/api/v1/accounts/{account_id}/webhooks/{webhook_id}"
      },
      "headings": [
        "Authentication",
        "Parameters",
        "Responses",
        "200 — The webhook was deleted, with an empty body.",
        "401 — The access token is missing or wrong, or its user does not belong to this account.",
        "Example: Invalid token",
        "Example: Another account",
        "403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.",
        "Example: No permission",
        "Example: Agent bot",
        "404 — The webhook does not exist in this account — for example, it was already deleted.",
        "Example"
      ],
      "keywords": [
        "deleteWebhook",
        "accounts",
        "webhooks",
        "account_id",
        "webhook_id",
        "error"
      ],
      "content": "DELETE https://online.99digital.co.il/api/v1/accounts/{account id}/webhooks/{webhook id} Delete a webhook from the account. Online stops sending events to the webhook's URL. Settings: Setting Value URL https://online.99digital.co.il/api/v1/accounts/{account id}/webhooks/{webhook id} Method JSON via DELETE Authorization: Header Parameter Description api access token User API key The user API key provides access to endpoints based on the user's permission level, and can be obtained by visiting the profile page. Permissions: User token — legacy roles: administrator . New rules system: Webhooks → delete . Agent-bot token: not allowed. Path Parameters: Parameter Description Required account id The numeric ID of the account Yes webhook id The numeric ID of the webhook Yes Response: 200 OK with an empty body. A second delete returns 404 {\"error\": \"Resource could not be found\"} . Authentication api access token in the header — Your access token. A user token is in the dashboard under Profile settings → Access Token , and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See Getting Started. Parameters Name In Type Required Description account id path integer Yes The numeric ID of your account: the number after /app/accounts/ in the dashboard URL. Example: 12 . webhook id path integer Yes The numeric ID of the webhook. Example: 6 . Responses 200 — The webhook was deleted, with an empty body. 401 — The access token is missing or wrong, or its user does not belong to this account. Content type: application/json Field Type Description error string The error message. Example: Invalid token The api access token header is missing or wrong. { \"error\": \"Invalid Access Token\" } Example: Another account A valid token, for a user who is not in this account. { \"error\": \"You are not authorized to access this account\" } 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization. Content type: application/json Field Type Description error string The error message. Example: No permission The role lacks the permission. { \"error\": \"You are not authorized to do this action\" } Example: Agent bot An agent-bot token on an endpoint that is not open to bots. { \"error\": \"Access to this endpoint is not authorized for bots\" } 404 — The webhook does not exist in this account — for example, it was already deleted. Content type: application/json Field Type Description error string The error message. Example { \"error\": \"Resource could not be found\" }"
    },
    {
      "id": "online-api/webhooks/overview",
      "title": "Webhook Events",
      "url": "https://docs.99digital.co.il/online-api/webhooks/webhook-events",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/webhook-events.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks",
        "Webhook Events"
      ],
      "language": "en",
      "description": "The JSON payloads Online sends to your webhook URL when a subscribed event happens — message, conversation, contact, block-list, ticket, agent status and form events — and how they are delivered.",
      "headings": [
        "Events",
        "Delivery",
        "Remarks"
      ],
      "keywords": [
        "webhook",
        "webhook events",
        "subscriptions",
        "message_created",
        "conversation_updated",
        "contact_created",
        "ticket_resolved",
        "agent_status_changed",
        "form_submitted",
        "payload"
      ],
      "content": "A webhook sends an HTTP POST with a JSON body to your URL whenever one of the subscribed events happens in the account. Optionally it can be limited to specific inboxes. Create a webhook with Add Webhook and choose its events in subscriptions . Every payload has event , which tells you what happened. Settings: Setting Value URL Your webhook URL Method JSON via POST Events Every kind of payload has its own page, with an example and every field explained: Subscription Sent when Inbox filter applies Payload conversation created A conversation is created. Yes Conversation Events conversation status changed A conversation's status changes (Bot, Manual, snoozed or resolved). Yes Conversation Events conversation updated A conversation changes — assignee, team, labels, custom attributes, priority, … Includes changed attributes . Yes Conversation Events message created customer The contact sent a message ( message type incoming ). Yes Message Events message created agent An agent or an API user sent a message. Yes Message Events message created bot An agent bot sent a message. Yes Message Events message updated A message changed — status, content, deletion, … Yes Message Events csat survey submitted The contact answered a CSAT survey. Yes Message Events ticket resolved A ticket was closed (the conversation was resolved). Yes Ticket Resolved webwidget triggered A visitor opened the website widget. Yes Not described yet form link generated A form link was generated. Yes, when the link belongs to a conversation Form Events form submitted A contact submitted a form. Yes, when the submission belongs to a conversation Form Events contact created A contact was created. No (account-wide) Contact Events contact updated A contact changed. Includes changed attributes . No Contact Events contact deleted A contact was deleted. No Contact Events block list.contact blocked A contact was blocked. No Block-List Events block list.contact unblocked A contact was unblocked. No Block-List Events inbox created , inbox updated An inbox was created or changed. No Not described yet agent status changed An agent's availability changed (online, busy or offline). No Agent Status Changed signing link updated A Docal signing link changed status. No Not described yet When the inbox filter applies, the event is sent only if its inbox is in the webhook's inbox ids , or inbox ids is empty. Account-wide events are always sent. The three message created subscriptions all deliver a payload with \"event\": \"message created\" : subscribe to each source you need. message created itself is not a valid subscription. Delivery Online sends a POST to the webhook's url , with the headers Content-Type: application/json and Accept: application/json , and waits up to 5 seconds for your answer. There are no retries and no signature header . Use a hard-to-guess URL (for example with a secret token in the path), answer quickly with a 2xx , and process the event asynchronously. Every payload has event . Online also adds allow unverified ssl ( true or false ). For API inboxes, the same conversation and message events are also sent to the inbox's own Webhook URL (set in the inbox settings), independently of the account webhooks. Remarks The payloads of webwidget triggered , inbox created , inbox updated and signing link updated are not described yet. Like every payload, they have event . Some examples are shortened; each page says so."
    },
    {
      "id": "online-api/message-events",
      "title": "Message Events",
      "url": "https://docs.99digital.co.il/online-api/webhooks/message-events",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/message-events.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks",
        "Webhook Events"
      ],
      "language": "en",
      "description": "Online sends a message event to your webhook when a message is created or changed, or when the contact answers a CSAT survey.",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Payload explained",
        "event",
        "messagetype",
        "Webhook payload",
        "Example (generated from the schema)",
        "Responses",
        "200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
      ],
      "keywords": [
        "messageEvents",
        "event",
        "id",
        "content",
        "content_type",
        "content_attributes",
        "additional_attributes",
        "message_type",
        "private",
        "source_id",
        "created_at",
        "account",
        "name",
        "inbox",
        "sender",
        "type",
        "email",
        "phone_number",
        "identifier",
        "custom_attributes",
        "avatar",
        "thumbnail",
        "conversation",
        "inbox_id",
        "channel",
        "status",
        "priority",
        "labels",
        "contact_inbox",
        "messages",
        "meta",
        "assignee",
        "team",
        "hmac_verified",
        "unread_count",
        "snoozed_until",
        "waiting_since",
        "last_activity_at",
        "agent_last_seen_at",
        "contact_last_seen_at",
        "assignee_last_seen_at",
        "timestamp",
        "allow_unverified_ssl"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. Online sends a message event to your webhook when a message is created or changed, or when the contact answers a CSAT survey. Subscription Sent when event in the payload message created customer The contact sent a message ( message type incoming ). message created message created agent An agent or an API user sent a message. message created message created bot An agent bot sent a message. message created message updated A message changed — status, content, deletion, … message updated csat survey submitted The contact answered a CSAT survey. csat survey submitted The three message created subscriptions all deliver a payload with \"event\": \"message created\" : subscribe to each source you need. message created itself is not a valid subscription. The event is sent only if its inbox is in the webhook's inbox ids , or inbox ids is empty. Settings: Setting Value URL Your webhook URL — create the webhook with Add Webhook and choose its events in subscriptions Method JSON via POST Example — message created , a customer message (the conversation's last message is shortened): { \"event\": \"message created\", \"id\": 40113, \"content\": \"Hi, where is my order?\", \"content type\": \"text\", \"content attributes\": {}, \"additional attributes\": {}, \"message type\": \"incoming\", \"private\": false, \"source id\": null, \"created at\": \"2026-11-12T08:05:00.000Z\", \"account\": { \"id\": 12, \"name\": \"Example Account\" }, \"inbox\": { \"id\": 31, \"name\": \"Website API\" }, \"sender\": { \"type\": \"contact\", \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"custom attributes\": { \"customer tier\": \"gold\" }, \"avatar\": \"\", \"thumbnail\": \"\", \"account\": { \"id\": 12, \"name\": \"Example Account\" } }, \"conversation\": { \"id\": 1501, \"inbox id\": 31, \"channel\": \"Channel::Api\", \"status\": \"open\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": {}, \"additional attributes\": {}, \"contact inbox\": { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" }, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"message type\": 0 } ], \"meta\": { \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"type\": \"contact\" }, \"assignee\": null, \"team\": null, \"hmac verified\": false }, \"unread count\": 1, \"snoozed until\": null, \"waiting since\": 1794470700, \"last activity at\": 1794470700, \"agent last seen at\": 0, \"contact last seen at\": 0, \"assignee last seen at\": 0, \"timestamp\": 1794470700, \"created at\": 1794470400 }, \"allow unverified ssl\": false } Payload explained Parameter Description / Example event What happened. See the values below. id The message ID. content The text. content type The kind of content — text unless the message is interactive. The values are those of the message object (see List of Messages). content attributes Data for the content type, as in the message object. additional attributes Extra data of the message. message type Who the message is from, as a word. See the values below. private true for a private note: seen by agents only, never sent to the contact. source id The message's ID on the external channel, or null . created at When the message was created (ISO 8601, with milliseconds). account The account. inbox The inbox. sender Who sent the message. The fields listed are a contact's ( type contact ). conversation The conversation the message belongs to. allow unverified ssl Added by Online to every payload. event Value Explanation message created A message was created. Sent for the sources you subscribed to: message created customer , message created agent , message created bot . message updated A message changed — status, content, deletion, … csat survey submitted The contact answered a CSAT survey. message type Value Explanation incoming From the contact. outgoing From an agent, a bot or the API. activity A system note, such as \"Conversation was resolved\". template A template message. Webhook payload Content type: application/json (required) Field Type Required Description event string Yes What happened. One of: message created — A message was created. Sent for the sources you subscribed to: message created customer , message created agent , message created bot ; message updated — A message changed — status, content, deletion, …; csat survey submitted — The contact answered a CSAT survey. id integer No The message ID. content string \\ null No The text. content type string No The kind of content — text unless the message is interactive. The values are those of the message object (see List of Messages). content attributes object No Data for the content type, as in the message object. additional attributes object No Extra data of the message. message type string No Who the message is from, as a word. One of: incoming — From the contact; outgoing — From an agent, a bot or the API; activity — A system note, such as \"Conversation was resolved\"; template — A template message. private boolean No true for a private note: seen by agents only, never sent to the contact. source id string \\ null No The message's ID on the external channel, or null . created at string No When the message was created (ISO 8601, with milliseconds). account object No The account. account.id integer No The account ID. account.name string No The account name. inbox object No The inbox. inbox.id integer No The inbox ID. inbox.name string No The inbox name. sender object No Who sent the message. The fields listed are a contact's ( type contact ). sender.type string No The kind of sender — user is an agent. One of: contact , user , agent bot . sender.id integer No The ID of the contact, agent or agent bot. sender.name string No The name. sender.email string \\ null No The email. sender.phone number string \\ null No The phone number in E.164 format. sender.identifier string \\ null No Your own external ID for the contact. sender.additional attributes object No The contact's additional attributes. sender.custom attributes object No The contact's custom attributes. sender.avatar string No The avatar URL, or an empty string. sender.thumbnail string No The avatar thumbnail URL, or an empty string. sender.account object No The account, as {id, name} . sender.account.id integer No sender.account.name string No conversation object No The conversation the message belongs to. conversation.id integer No The conversation's display ID. conversation.inbox id integer No The inbox ID. conversation.channel string No The inbox's channel type, for example Channel::Api . conversation.status string No The status. The dashboard calls open Bot and pending Manual . One of: open , pending , snoozed , resolved . conversation.priority string \\ null No The priority, or null . One of: low , medium , high , urgent , null . conversation.labels array of string No The titles of the conversation's labels. conversation.custom attributes object No The conversation's custom attributes. conversation.additional attributes object No Channel or system data of the conversation. conversation.contact inbox object No The contact's link to the inbox. conversation.contact inbox.source id string No The contact's ID on the inbox's channel. conversation.messages array of object No The conversation's last message. conversation.messages[].id integer No The message ID. conversation.messages[].content string \\ null No The text. conversation.messages[].message type integer No Who the message is from, as a number: 0 incoming, 1 outgoing, 2 activity, 3 template. One of: 0 , 1 , 2 , 3 . conversation.meta object No The conversation's people. conversation.meta.sender object No The contact, as {id, name, type} . conversation.meta.sender.id integer No conversation.meta.sender.name string No conversation.meta.sender.type string No conversation.meta.assignee object \\ null No The assigned agent, or null . conversation.meta.team object \\ null No The assigned team, or null . conversation.meta.hmac verified boolean No Whether the contact's identity was HMAC-verified (website widget). conversation.unread count integer No Incoming messages the agents have not read. conversation.snoozed until any No When a snoozed conversation reopens, or null . conversation.waiting since integer No Since when the contact has been waiting for a reply (Unix time, seconds), or 0 . conversation.last activity at integer No The last activity (Unix time, seconds). conversation.agent last seen at integer No When an agent last read the conversation (Unix time, seconds), or 0 . conversation.contact last seen at integer No When the contact last read the conversation (Unix time, seconds), or 0 . conversation.assignee last seen at integer No When the assignee last read the conversation (Unix time, seconds), or 0 . conversation.timestamp integer No The same as last activity at . conversation.created at integer No When the conversation was created (Unix time, seconds). allow unverified ssl boolean Yes Added by Online to every payload. Example (generated from the schema) { \"event\": \"message created\", \"id\": 40113, \"content\": \"Hi, where is my order?\", \"content type\": \"text\", \"content attributes\": {}, \"additional attributes\": {}, \"message type\": \"incoming\", \"private\": false, \"source id\": null, \"created at\": \"2026-11-12T08:05:00.000Z\", \"account\": { \"id\": 12, \"name\": \"Example Account\" }, \"inbox\": { \"id\": 31, \"name\": \"Website API\" }, \"sender\": { \"type\": \"contact\", \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"custom attributes\": { \"customer tier\": \"gold\" }, \"avatar\": \"\", \"thumbnail\": \"\", \"account\": { \"id\": 12, \"name\": \"Example Account\" } }, \"conversation\": { \"id\": 1501, \"inbox id\": 31, \"channel\": \"Channel::Api\", \"status\": \"open\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": {}, \"additional attributes\": {}, \"contact inbox\": { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" }, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\", \"message type\": 0 } ], \"meta\": { \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"type\": \"contact\" }, \"assignee\": null, \"team\": null, \"hmac verified\": false }, \"unread count\": 1, \"snoozed until\": null, \"waiting since\": 1794470700, \"last activity at\": 1794470700, \"agent last seen at\": 0, \"contact last seen at\": 0, \"assignee last seen at\": 0, \"timestamp\": 1794470700, \"created at\": 1794470400 }, \"allow unverified ssl\": false } Responses 200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
    },
    {
      "id": "online-api/conversation-events",
      "title": "Conversation Events",
      "url": "https://docs.99digital.co.il/online-api/webhooks/conversation-events",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/conversation-events.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks",
        "Webhook Events"
      ],
      "language": "en",
      "description": "Online sends a conversation event to your webhook when a conversation is created, its status changes, or it changes in any other way.",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Payload explained",
        "event",
        "status",
        "Webhook payload",
        "Example (generated from the schema)",
        "Responses",
        "200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
      ],
      "keywords": [
        "conversationEvents",
        "event",
        "id",
        "inbox_id",
        "channel",
        "status",
        "priority",
        "labels",
        "custom_attributes",
        "additional_attributes",
        "contact_inbox",
        "source_id",
        "messages",
        "content",
        "message_type",
        "meta",
        "sender",
        "name",
        "type",
        "assignee",
        "team",
        "hmac_verified",
        "unread_count",
        "snoozed_until",
        "waiting_since",
        "last_activity_at",
        "agent_last_seen_at",
        "contact_last_seen_at",
        "assignee_last_seen_at",
        "timestamp",
        "created_at",
        "changed_attributes",
        "allow_unverified_ssl"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. Online sends a conversation event to your webhook when a conversation is created, its status changes, or it changes in any other way. Subscription Sent when conversation created A conversation is created. conversation status changed A conversation's status changes (Bot, Manual, snoozed or resolved). conversation updated A conversation changes — assignee, team, labels, custom attributes, priority, … Includes changed attributes , and also sender . The payload is the conversation's fields, at the top level. changed attributes lists the changes, for example [{\"status\": {\"previous value\": \"open\", \"current value\": \"resolved\"}}] . The event is sent only if its inbox is in the webhook's inbox ids , or inbox ids is empty. Settings: Setting Value URL Your webhook URL — create the webhook with Add Webhook and choose its events in subscriptions Method JSON via POST Example — conversation status changed (the last message is shortened): { \"event\": \"conversation status changed\", \"id\": 1501, \"inbox id\": 31, \"channel\": \"Channel::Api\", \"status\": \"resolved\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": {}, \"additional attributes\": {}, \"contact inbox\": { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" }, \"messages\": [ { \"id\": 40114, \"content\": \"Your order A-1001 is ready for pickup.\", \"message type\": 1 } ], \"meta\": { \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"type\": \"contact\" }, \"assignee\": null, \"team\": null, \"hmac verified\": false }, \"unread count\": 0, \"snoozed until\": null, \"waiting since\": 0, \"last activity at\": 1794474000, \"agent last seen at\": 1794473900, \"contact last seen at\": 0, \"assignee last seen at\": 0, \"timestamp\": 1794474000, \"created at\": 1794470400, \"changed attributes\": [ { \"status\": { \"previous value\": \"open\", \"current value\": \"resolved\" } } ], \"allow unverified ssl\": false } Payload explained Parameter Description / Example event What happened. See the values below. id The conversation's display ID. inbox id The inbox ID. channel The inbox's channel type, for example Channel::Api . status The status. The dashboard calls open Bot and pending Manual . See the values below. priority The priority, or null . labels The titles of the conversation's labels. custom attributes The conversation's custom attributes. additional attributes Channel or system data of the conversation. contact inbox The contact's link to the inbox. messages The conversation's last message. meta The conversation's people. unread count Incoming messages the agents have not read. snoozed until When a snoozed conversation reopens, or null . waiting since Since when the contact has been waiting for a reply (Unix time, seconds), or 0 . last activity at The last activity (Unix time, seconds). agent last seen at When an agent last read the conversation (Unix time, seconds), or 0 . contact last seen at When the contact last read the conversation (Unix time, seconds), or 0 . assignee last seen at When the assignee last read the conversation (Unix time, seconds), or 0 . timestamp The same as last activity at . created at When the conversation was created (Unix time, seconds). changed attributes What changed: one object per attribute, keyed by its name, with its previous value and current value . sender Included with conversation updated . allow unverified ssl Added by Online to every payload. event Value Explanation conversation created A conversation was created. conversation status changed The conversation's status changed. conversation updated The conversation changed — assignee, team, labels, custom attributes, priority, … status Value Explanation open Bot — handled by the bot or automation. pending Manual — handled by a human agent. snoozed Hidden until it is reopened. resolved Closed. Webhook payload Content type: application/json (required) Field Type Required Description event string Yes What happened. One of: conversation created — A conversation was created; conversation status changed — The conversation's status changed; conversation updated — The conversation changed — assignee, team, labels, custom attributes, priority, …. id integer No The conversation's display ID. inbox id integer No The inbox ID. channel string No The inbox's channel type, for example Channel::Api . status string No The status. The dashboard calls open Bot and pending Manual . One of: open — Bot — handled by the bot or automation; pending — Manual — handled by a human agent; snoozed — Hidden until it is reopened; resolved — Closed. priority string \\ null No The priority, or null . One of: low , medium , high , urgent , null . labels array of string No The titles of the conversation's labels. custom attributes object No The conversation's custom attributes. additional attributes object No Channel or system data of the conversation. contact inbox object No The contact's link to the inbox. contact inbox.source id string No The contact's ID on the inbox's channel. messages array of object No The conversation's last message. messages[].id integer No The message ID. messages[].content string \\ null No The text. messages[].message type integer No Who the message is from, as a number: 0 incoming, 1 outgoing, 2 activity, 3 template. One of: 0 , 1 , 2 , 3 . meta object No The conversation's people. meta.sender object No The contact, as {id, name, type} . meta.sender.id integer No meta.sender.name string No meta.sender.type string No meta.assignee object \\ null No The assigned agent, or null . meta.team object \\ null No The assigned team, or null . meta.hmac verified boolean No Whether the contact's identity was HMAC-verified (website widget). unread count integer No Incoming messages the agents have not read. snoozed until any No When a snoozed conversation reopens, or null . waiting since integer No Since when the contact has been waiting for a reply (Unix time, seconds), or 0 . last activity at integer No The last activity (Unix time, seconds). agent last seen at integer No When an agent last read the conversation (Unix time, seconds), or 0 . contact last seen at integer No When the contact last read the conversation (Unix time, seconds), or 0 . assignee last seen at integer No When the assignee last read the conversation (Unix time, seconds), or 0 . timestamp integer No The same as last activity at . created at integer No When the conversation was created (Unix time, seconds). changed attributes array of object No What changed: one object per attribute, keyed by its name, with its previous value and current value . sender object No Included with conversation updated . allow unverified ssl boolean Yes Added by Online to every payload. Example (generated from the schema) { \"event\": \"conversation status changed\", \"id\": 1501, \"inbox id\": 31, \"channel\": \"Channel::Api\", \"status\": \"resolved\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": {}, \"additional attributes\": {}, \"contact inbox\": { \"source id\": \"5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b\" }, \"messages\": [ { \"id\": 40114, \"content\": \"Your order A-1001 is ready for pickup.\", \"message type\": 1 } ], \"meta\": { \"sender\": { \"id\": 801, \"name\": \"Dana Cohen\", \"type\": \"contact\" }, \"assignee\": null, \"team\": null, \"hmac verified\": false }, \"unread count\": 0, \"snoozed until\": null, \"waiting since\": 0, \"last activity at\": 1794474000, \"agent last seen at\": 1794473900, \"contact last seen at\": 0, \"assignee last seen at\": 0, \"timestamp\": 1794474000, \"created at\": 1794470400, \"changed attributes\": [ { \"status\": { \"previous value\": \"open\", \"current value\": \"resolved\" } } ], \"allow unverified ssl\": false } Responses 200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
    },
    {
      "id": "online-api/contact-events",
      "title": "Contact Events",
      "url": "https://docs.99digital.co.il/online-api/webhooks/contact-events",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/contact-events.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks",
        "Webhook Events"
      ],
      "language": "en",
      "description": "Online sends a contact event to your webhook when a contact is created, changed or deleted.",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Payload explained",
        "event",
        "Webhook payload",
        "Example (generated from the schema)",
        "Responses",
        "200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
      ],
      "keywords": [
        "contactEvents",
        "event",
        "type",
        "id",
        "name",
        "email",
        "phone_number",
        "identifier",
        "additional_attributes",
        "custom_attributes",
        "avatar",
        "thumbnail",
        "account",
        "changed_attributes",
        "allow_unverified_ssl"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. Online sends a contact event to your webhook when a contact is created, changed or deleted. Subscription Sent when contact created A contact was created. contact updated A contact changed. Includes changed attributes . contact deleted A contact was deleted. The payload is the contact. Contact events are account-wide: they are sent for every inbox, whatever the webhook's inbox ids . Settings: Setting Value URL Your webhook URL — create the webhook with Add Webhook and choose its events in subscriptions Method JSON via POST Example — contact updated : { \"event\": \"contact updated\", \"type\": \"contact\", \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"custom attributes\": { \"customer tier\": \"gold\" }, \"avatar\": \"\", \"thumbnail\": \"\", \"account\": { \"id\": 12, \"name\": \"Example Account\" }, \"changed attributes\": [ { \"name\": { \"previous value\": \"Dana\", \"current value\": \"Dana Cohen\" } } ], \"allow unverified ssl\": false } Payload explained Parameter Description / Example event What happened. See the values below. type Always contact . id The contact ID. name The name. email The email. phone number The phone number in E.164 format. identifier Your own external ID for the contact. additional attributes Standard extra fields, such as company name and city . custom attributes The contact's custom attributes. avatar The avatar URL, or an empty string. thumbnail The avatar thumbnail URL, or an empty string. account The account. changed attributes contact updated only. What changed: one object per attribute, keyed by its name, with its previous value and current value . allow unverified ssl Added by Online to every payload. event Value Explanation contact created A contact was created. contact updated A contact changed. contact deleted A contact was deleted. Webhook payload Content type: application/json (required) Field Type Required Description event string Yes What happened. One of: contact created — A contact was created; contact updated — A contact changed; contact deleted — A contact was deleted. type string No Always contact . id integer No The contact ID. name string No The name. email string \\ null No The email. phone number string \\ null No The phone number in E.164 format. identifier string \\ null No Your own external ID for the contact. additional attributes object No Standard extra fields, such as company name and city . custom attributes object No The contact's custom attributes. avatar string No The avatar URL, or an empty string. thumbnail string No The avatar thumbnail URL, or an empty string. account object No The account. account.id integer No The account ID. account.name string No The account name. changed attributes array of object No contact updated only. What changed: one object per attribute, keyed by its name, with its previous value and current value . allow unverified ssl boolean Yes Added by Online to every payload. Example (generated from the schema) { \"event\": \"contact updated\", \"type\": \"contact\", \"id\": 801, \"name\": \"Dana Cohen\", \"email\": \"dana.cohen@example.com\", \"phone number\": \"+972501234567\", \"identifier\": \"crm-801\", \"additional attributes\": { \"company name\": \"Example Ltd\", \"city\": \"Tel Aviv\" }, \"custom attributes\": { \"customer tier\": \"gold\" }, \"avatar\": \"\", \"thumbnail\": \"\", \"account\": { \"id\": 12, \"name\": \"Example Account\" }, \"changed attributes\": [ { \"name\": { \"previous value\": \"Dana\", \"current value\": \"Dana Cohen\" } } ], \"allow unverified ssl\": false } Responses 200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
    },
    {
      "id": "online-api/block-list-events",
      "title": "Block-List Events",
      "url": "https://docs.99digital.co.il/online-api/webhooks/block-list-events",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/block-list-events.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks",
        "Webhook Events"
      ],
      "language": "en",
      "description": "Online sends a block-list event to your webhook when a contact is [blocked](/online-api/contacts/block-contact) or [unblocked](/online-api/contacts/unblock-contact).",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Payload explained",
        "event",
        "source",
        "Webhook payload",
        "Example (generated from the schema)",
        "Responses",
        "200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
      ],
      "keywords": [
        "blockListEvents",
        "event",
        "account_id",
        "timestamp",
        "contact",
        "id",
        "phone_number",
        "normalized_phone",
        "source",
        "allow_unverified_ssl"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. Online sends a block-list event to your webhook when a contact is blocked or unblocked. Subscription Sent when block list.contact blocked A contact was blocked. block list.contact unblocked A contact was unblocked. Block-list events are account-wide: they are sent for every inbox, whatever the webhook's inbox ids . Settings: Setting Value URL Your webhook URL — create the webhook with Add Webhook and choose its events in subscriptions Method JSON via POST Example — block list.contact blocked : { \"event\": \"block list.contact blocked\", \"account id\": 12, \"timestamp\": 1794471000, \"contact\": { \"id\": 801, \"phone number\": \"+972501234567\", \"normalized phone\": \"972501234567\" }, \"source\": \"api\", \"allow unverified ssl\": false } Payload explained Parameter Description / Example event What happened. See the values below. account id The account ID. timestamp When it happened (Unix time, seconds). contact The contact. source How the contact was blocked or unblocked. See the values below. allow unverified ssl Added by Online to every payload. event Value Explanation block list.contact blocked A contact was blocked. block list.contact unblocked A contact was unblocked. source Value Explanation api With an access token, through the API. manual Not through the API — for example by an agent in the dashboard. Webhook payload Content type: application/json (required) Field Type Required Description event string Yes What happened. One of: block list.contact blocked — A contact was blocked; block list.contact unblocked — A contact was unblocked. account id integer No The account ID. timestamp integer No When it happened (Unix time, seconds). contact object No The contact. contact.id integer No The contact ID. contact.phone number string \\ null No The phone number. contact.normalized phone string \\ null No The phone number in normalized form. source string No How the contact was blocked or unblocked. One of: api — With an access token, through the API; manual — Not through the API — for example by an agent in the dashboard. allow unverified ssl boolean Yes Added by Online to every payload. Example (generated from the schema) { \"event\": \"block list.contact blocked\", \"account id\": 12, \"timestamp\": 1794471000, \"contact\": { \"id\": 801, \"phone number\": \"+972501234567\", \"normalized phone\": \"972501234567\" }, \"source\": \"api\", \"allow unverified ssl\": false } Responses 200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
    },
    {
      "id": "online-api/ticket-resolved",
      "title": "Ticket Resolved",
      "url": "https://docs.99digital.co.il/online-api/webhooks/ticket-resolved",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/ticket-resolved.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks",
        "Webhook Events"
      ],
      "language": "en",
      "description": "Online sends `ticket_resolved` to your webhook when a [ticket](/online-api/tickets/list-tickets) was closed (the conversation was resolved).",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Payload explained",
        "Webhook payload",
        "Example (generated from the schema)",
        "Responses",
        "200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
      ],
      "keywords": [
        "ticketResolved",
        "event",
        "ticket",
        "id",
        "status",
        "conversation_id",
        "inbox_id",
        "opened_at",
        "resolved_at",
        "closed_by",
        "channel",
        "priority",
        "labels",
        "team",
        "custom_attributes",
        "additional_attributes",
        "ticket_custom_attributes",
        "metrics",
        "duration_seconds",
        "conversation",
        "messages",
        "contact",
        "assignee",
        "allow_unverified_ssl"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. Online sends ticket resolved to your webhook when a ticket was closed (the conversation was resolved). Subscription Sent when ticket resolved A ticket was closed (the conversation was resolved). The payload is the closed ticket, with its conversation, messages, contact and assignee. The event is sent only if its inbox is in the webhook's inbox ids , or inbox ids is empty. Settings: Setting Value URL Your webhook URL — create the webhook with Add Webhook and choose its events in subscriptions Method JSON via POST Example ( conversation , messages , contact and assignee are shortened): { \"event\": \"ticket resolved\", \"ticket\": { \"id\": 902, \"status\": \"closed\", \"conversation id\": 1501, \"inbox id\": 31, \"opened at\": 1794470400, \"resolved at\": 1794474000, \"channel\": \"Channel::Api\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": {}, \"additional attributes\": {}, \"ticket custom attributes\": { \"case type\": \"delivery\" }, \"metrics\": { \"duration seconds\": 3600 } }, \"conversation\": { \"id\": 1501 }, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\" } ], \"contact\": { \"id\": 801, \"name\": \"Dana Cohen\" }, \"assignee\": { \"id\": 51, \"name\": \"Jane Agent\" }, \"allow unverified ssl\": false } Payload explained Parameter Description / Example event A ticket was closed (the conversation was resolved). ticket The ticket. See List Tickets. conversation The conversation. messages The messages. contact The contact. assignee The assigned agent, or null . allow unverified ssl Added by Online to every payload. Webhook payload Content type: application/json (required) Field Type Required Description event string Yes A ticket was closed (the conversation was resolved). Always ticket resolved . ticket object No The ticket. See List Tickets. ticket.id integer No The ticket ID. ticket.status string No The ticket's status. ticket.conversation id integer No The conversation's ID. ticket.inbox id integer No The inbox ID. ticket.opened at integer No When the ticket opened. ticket.resolved at integer No When the ticket was closed. ticket.closed by any No Who closed the ticket. ticket.channel string No The inbox's channel type, for example Channel::Api . ticket.priority string \\ null No The conversation's priority, or null . ticket.labels array of string No The titles of the conversation's labels. ticket.team any No The conversation's team. ticket.custom attributes object No The conversation's custom attributes. ticket.additional attributes object No The conversation's additional attributes. ticket.ticket custom attributes object No The ticket's own custom attributes — see Set Ticket Custom Attributes. ticket.metrics object No Measurements of the ticket. ticket.metrics.duration seconds integer No Seconds from opening to closing. conversation object No The conversation. messages array of object No The messages. contact object No The contact. assignee object \\ null No The assigned agent, or null . allow unverified ssl boolean Yes Added by Online to every payload. Example (generated from the schema) { \"event\": \"ticket resolved\", \"ticket\": { \"id\": 902, \"status\": \"closed\", \"conversation id\": 1501, \"inbox id\": 31, \"opened at\": 1794470400, \"resolved at\": 1794474000, \"channel\": \"Channel::Api\", \"priority\": null, \"labels\": [ \"vip\" ], \"custom attributes\": {}, \"additional attributes\": {}, \"ticket custom attributes\": { \"case type\": \"delivery\" }, \"metrics\": { \"duration seconds\": 3600 } }, \"conversation\": { \"id\": 1501 }, \"messages\": [ { \"id\": 40113, \"content\": \"Hi, where is my order?\" } ], \"contact\": { \"id\": 801, \"name\": \"Dana Cohen\" }, \"assignee\": { \"id\": 51, \"name\": \"Jane Agent\" }, \"allow unverified ssl\": false } Responses 200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
    },
    {
      "id": "online-api/agent-status-changed",
      "title": "Agent Status Changed",
      "url": "https://docs.99digital.co.il/online-api/webhooks/agent-status-changed",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/agent-status-changed.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks",
        "Webhook Events"
      ],
      "language": "en",
      "description": "Online sends `agent_status_changed` to your webhook when an agent's availability changed (online, busy or offline).",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Payload explained",
        "Webhook payload",
        "Example (generated from the schema)",
        "Responses",
        "200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
      ],
      "keywords": [
        "agentStatusChanged",
        "event",
        "occurred_at",
        "account",
        "id",
        "name",
        "agent",
        "status_change",
        "previous_status",
        "new_status",
        "allow_unverified_ssl"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. Online sends agent status changed to your webhook when an agent's availability changed (online, busy or offline). Subscription Sent when agent status changed An agent's availability changed (online, busy or offline). This event is account-wide: it is sent for every inbox, whatever the webhook's inbox ids . Settings: Setting Value URL Your webhook URL — create the webhook with Add Webhook and choose its events in subscriptions Method JSON via POST Example ( agent is shortened): { \"event\": \"agent status changed\", \"occurred at\": 1794471000, \"account\": { \"id\": 12, \"name\": \"Example Account\" }, \"agent\": { \"id\": 53, \"name\": \"Omer Katz\" }, \"status change\": { \"previous status\": \"online\", \"new status\": \"busy\" }, \"allow unverified ssl\": false } Payload explained Parameter Description / Example event An agent's availability changed. occurred at When it happened. account The account. agent The agent. status change The availability before and after the change. allow unverified ssl Added by Online to every payload. Webhook payload Content type: application/json (required) Field Type Required Description event string Yes An agent's availability changed. Always agent status changed . occurred at integer No When it happened. account object No The account. account.id integer No The account ID. account.name string No The account name. agent object No The agent. status change object No The availability before and after the change. status change.previous status string No The availability before the change. One of: online , busy , offline . status change.new status string No The availability after the change. One of: online , busy , offline . allow unverified ssl boolean Yes Added by Online to every payload. Example (generated from the schema) { \"event\": \"agent status changed\", \"occurred at\": 1794471000, \"account\": { \"id\": 12, \"name\": \"Example Account\" }, \"agent\": { \"id\": 53, \"name\": \"Omer Katz\" }, \"status change\": { \"previous status\": \"online\", \"new status\": \"busy\" }, \"allow unverified ssl\": false } Responses 200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
    },
    {
      "id": "online-api/form-events",
      "title": "Form Events",
      "url": "https://docs.99digital.co.il/online-api/webhooks/form-events",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/webhooks/form-events.md",
      "section": "Online API",
      "section_path": [
        "Online API",
        "Webhooks",
        "Webhook Events"
      ],
      "language": "en",
      "description": "Online sends a form event to your webhook when a [form link](/online-api/forms/generate-form-link) is generated, and when a contact submits a form.",
      "endpoint": {
        "webhook": true
      },
      "headings": [
        "Payload explained",
        "event",
        "Webhook payload",
        "Example (generated from the schema)",
        "Responses",
        "200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
      ],
      "keywords": [
        "formEvents",
        "event",
        "form",
        "link",
        "contact",
        "conversation",
        "answers",
        "allow_unverified_ssl"
      ],
      "content": "Webhook. Sent to the webhook URL you configure. Online sends a form event to your webhook when a form link is generated, and when a contact submits a form. Subscription Sent when form link generated A form link was generated. form submitted A contact submitted a form. The payload is the form submission: its form, link, contact and conversation, plus the answers for form submitted . When the link or the submission belongs to a conversation, the event is sent only if its inbox is in the webhook's inbox ids , or inbox ids is empty. Settings: Setting Value URL Your webhook URL — create the webhook with Add Webhook and choose its events in subscriptions Method JSON via POST Example — form submitted (shortened: link is left out, and the other objects show a few fields): { \"event\": \"form submitted\", \"form\": { \"id\": \"45\", \"name\": \"Event registration\" }, \"contact\": { \"id\": 801, \"name\": \"Dana Cohen\" }, \"conversation\": { \"id\": 1501 }, \"answers\": [ { \"field id\": \"email\", \"value\": \"dana.cohen@example.com\", \"type\": \"email\" } ], \"allow unverified ssl\": false } Payload explained Parameter Description / Example event What happened. See the values below. form The form. link The form link. contact The contact. conversation The conversation, when the link belongs to one. answers form submitted only: the contact's answers. allow unverified ssl Added by Online to every payload. event Value Explanation form link generated A form link was generated with Generate Form Link. form submitted A contact submitted a form. Webhook payload Content type: application/json (required) Field Type Required Description event string Yes What happened. One of: form link generated — A form link was generated with Generate Form Link; form submitted — A contact submitted a form. form object No The form. link object No The form link. contact object No The contact. conversation object \\ null No The conversation, when the link belongs to one. answers array of object No form submitted only: the contact's answers. allow unverified ssl boolean Yes Added by Online to every payload. Example (generated from the schema) { \"event\": \"form submitted\", \"form\": { \"id\": \"45\", \"name\": \"Event registration\" }, \"contact\": { \"id\": 801, \"name\": \"Dana Cohen\" }, \"conversation\": { \"id\": 1501 }, \"answers\": [ { \"field id\": \"email\", \"value\": \"dana.cohen@example.com\", \"type\": \"email\" } ], \"allow unverified ssl\": false } Responses 200 — Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again."
    },
    {
      "id": "online-api/postman-collection",
      "title": "Postman Collection",
      "url": "https://docs.99digital.co.il/online-api/postman-collection",
      "markdown_url": "https://docs.99digital.co.il/markdown/online-api/postman-collection.md",
      "section": "Online API",
      "section_path": [
        "Online API"
      ],
      "language": "en",
      "description": "Download the Online API Postman collection, with ready-to-send sample requests for every endpoint.",
      "headings": [
        "Import it",
        "IDs in the requests",
        "Webhooks"
      ],
      "keywords": [
        "Postman",
        "Postman collection",
        "Online API collection",
        "download",
        "import"
      ],
      "content": "Download the Online API Postman Collection The collection is built from this documentation every time it changes, so it always has every endpoint, with one sample request per example on the endpoint pages and the documented responses saved as examples. Download it again to get the latest version. Import it In Postman, select Import and choose the downloaded file. You can also copy the download link above and paste it under Import → Link . Open the collection's Variables tab and fill in: api access token — your access token: in the Online dashboard, Profile settings → Access Token . account id — the number after /app/accounts/ in your dashboard URL. base url — change it only if your account runs on its own Online domain. Send Conversations → Conversation Counts to check the token, then open any folder and press Send . IDs in the requests The paths use variables — {{contact id}} , {{conversation id}} , {{team id}} and so on — which start empty. Fill them in with IDs from your account. The create requests store the new ID for you: after Create Contact , contact id is set; after Add Conversation , conversation id ; and so on. The sample bodies use example IDs of inboxes, agents, teams and conversations. Replace them with your own before you send a request that changes data — the requests run against your live account. Webhooks Webhooks → Webhook Events holds a sample of every payload Online sends to a webhook. Set webhook url to your endpoint to see how it handles them."
    },
    {
      "id": "facebook-api/overview",
      "title": "Facebook API",
      "url": "https://docs.99digital.co.il/facebook-api",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API"
      ],
      "language": "en",
      "description": "Publish and manage posts and comments on your Facebook Pages and Instagram accounts.",
      "headings": [
        "Base URL",
        "Authentication",
        "Where to start"
      ],
      "keywords": [
        "Facebook API",
        "Facebook Page API",
        "Instagram API",
        "comments API"
      ],
      "content": "Publish and manage posts and comments on your Facebook Pages and Instagram accounts. Base URL https://api.99digital.co.il Facebook Page endpoints are under /facebook/page/ and Instagram endpoints under /instagram/page/ . Authentication Every request is a POST with a JSON body. Send your API key in the apiKey header, and the ID of your connection in from : apiKey: Content-Type: application/json Where to start Facebook Pages: Create Post, All Posts and All Comments. Instagram: Create Post, All Posts and All Comments. Try every endpoint in Postman: Postman Collection."
    },
    {
      "id": "facebook-api/postman-collection",
      "title": "Postman Collection",
      "url": "https://docs.99digital.co.il/facebook-api/postman-collection",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/postman-collection.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API"
      ],
      "language": "en",
      "description": "Download the Facebook API Postman collection, with ready-to-send sample requests for Facebook Pages and Instagram.",
      "headings": [],
      "keywords": [
        "Postman",
        "Postman collection",
        "Facebook API collection",
        "Instagram API collection",
        "download",
        "import"
      ],
      "content": "Download the Postman collection for the Facebook API. The Postman collection is always updated with every change to the API, so make sure you always download the latest version. To use it, select Import in Postman and choose the downloaded file. Then, in the collection's Variables tab, fill in apiKey and the connection IDs you received — from fb page for Facebook Pages and from ig page for Instagram — and replace the sample media links with your own public https links."
    },
    {
      "id": "facebook-api/facebook-all-posts",
      "title": "All Posts",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/all-posts",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/all-posts.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to see all the posts in your page (posts that were created by the API or directly on Facebook).",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/getPosts",
        "url": "https://api.99digital.co.il/facebook/page/getPosts"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: First batch",
        "Example: Next batch",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "Example: Reason 6",
        "Example: Reason 10"
      ],
      "keywords": [
        "facebookAllPosts",
        "facebook",
        "page",
        "getPosts",
        "from",
        "limit",
        "after",
        "status",
        "count",
        "posts",
        "id",
        "message",
        "created_time",
        "updated_time",
        "permalink_url",
        "full_picture",
        "is_published",
        "scheduled_publish_time",
        "shares",
        "total_comments",
        "total_reactions",
        "attachments",
        "data",
        "media_type",
        "url",
        "paging",
        "hasNext",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/getPosts This endpoint allows you to see all the posts in your page (posts that were created by the API or directly on Facebook). Settings : Setting Value URL https://api.99digital.co.il/facebook/page/getPosts Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 limit How many posts to get (limit pagination), between 1 and 100. Default if not provided: 25 no 25 after If you are using limit paging, you can provide the \"after\" value from the previous response to load the next batch no U56WDF34FA4TER3DA..... Response : { \"status\": \"OK\", \"from\": \"463745743546345\", \"count\": 25, \"posts\": [{ \"id\": \"119324881085321 122093459712345\", \"message\": \"Hello fans!\", \"created time\": 1783596120, \"updated time\": 1783596120, \"permalink url\": \"https://www.facebook.com/...\", \"full picture\": \"https://scontent...\", \"is published\": true, \"shares\": 3, \"total comments\": 3, \"total reactions\": 5, \"attachments\": { \"data\": [ { \"media type\": \"photo\", \"url\": \"...\" } ] } }], \"paging\": { \"after\": \"QVFIU...\", \"hasNext\": true }, \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL count Total posts in this batch from Your ID for the service posts and paging : Value Information id This is the postId message The body of the post created time Post create time. UNIX UTC timestamp (int seconds) updated time If the post was edited, this is the time. More exactly, it is the last time the post was updated: when it was created, edited or commented on. UNIX UTC timestamp (int seconds) permalink url Link directly to the post full picture Image that you provided for the post, if any is published true - the post is live in the page. false - this is a scheduled future post and not published yet scheduled publish time Will only appear if \"is published\" = false. This will show the future UNIX timestamp for when the post will be published shares The total amount of shares this post has (int) total comments The total amount of comments this post has (int). For getting the actual comments, use the All Comments (getComments) API endpoint total reactions The total reactions (like) for the post attachments An array of objects that contains media type and url, to provide all the media that was uploaded for the post (photos/videos) paging Key that contains two values: \"after\", which represents the parameter to send if you wish to get the next batch, and \"hasNext\", which is true if you have more data to load, or false if this is the last data reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The postId is invalid or wrong: the Page or post was not found, or you have no access to it 15 The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content 18 General error, try again Remarks : The list also holds the posts you scheduled that are not published yet ( is published is false ). The scheduled posts come first, in the first batch only, on top of limit . Posts that visitors write on your Page are not part of the list. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . limit integer No How many posts to get (limit pagination), between 1 and 100. Default if not provided: 25. Default: 25 . Minimum: 1. Maximum: 100. Example: 25 . after string No If you are using limit paging, you can provide the after value from the previous response ( paging.after ) to load the next batch. Example: QVFIUmRfZA2xYzRkNmJmWjNh . Example: First batch The latest 25 posts of your Page. { \"from\": \"463745743546345\", \"limit\": 25 } Example: Next batch The next 25 posts — after is paging.after from the previous response. { \"from\": \"463745743546345\", \"limit\": 25, \"after\": \"QVFIUmRfZA2xYzRkNmJmWjNh\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the request succeeded, and the posts of this batch are in posts . Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . count integer (one of: OK) Total posts in this batch. Example: 25 . posts array of object (one of: OK) The posts of this batch. Empty when there are none. posts[].id string (one of: OK) This is the postId , for Edit Post, Delete Post, All Comments and Create Comment. Example: 119324881085321 122093459712345 . posts[].message string (one of: OK) The body of the post. Empty when the post has no text. Example: Hello fans! . posts[].created time integer (one of: OK) Post create time. UNIX UTC timestamp (int seconds). Example: 1783596120 . posts[].updated time integer (one of: OK) If the post was edited, this is the time. More exactly, it is the last time the post was updated: when it was created, edited or commented on. UNIX UTC timestamp (int seconds). Example: 1783596120 . posts[].permalink url string (one of: OK) Link directly to the post. posts[].full picture string (one of: OK) Image that you provided for the post, if any (empty otherwise). posts[].is published boolean (one of: OK) true — the post is live in the page. false — this is a scheduled future post and not published yet. posts[].scheduled publish time integer (one of: OK) Will only appear if is published is false . This will show the future UNIX timestamp for when the post will be published. Example: 1786000000 . posts[].shares integer (one of: OK) The total amount of shares this post has (int). Example: 3 . posts[].total comments integer (one of: OK) The total amount of comments this post has (int). For getting the actual comments, use the All Comments (getComments) API endpoint. Example: 3 . posts[].total reactions integer (one of: OK) The total reactions (like, and all other reactions) for the post. Example: 5 . posts[].attachments object (one of: OK) An array of objects that contains media type and url , to provide all the media that was uploaded for the post (photos/videos), in data . Appears only when the post has media. posts[].attachments.data array of object (one of: OK) The media items, each with its media type and url . posts[].attachments.data[].media type string (one of: OK) The kind of media, for example photo or video . posts[].attachments.data[].url string (one of: OK) Link to the media. paging object (one of: OK) Key that contains two values: after , which represents the parameter to send if you wish to get the next batch, and hasNext , which is true if you have more data to load, or false if this is the last data. paging.after string (one of: OK) The parameter to send (as after ) if you wish to get the next batch. Example: QVFIUmRfZA2xYzRkNmJmWjNh . paging.hasNext boolean (one of: OK) true if you have more data to load, or false if this is the last data. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The postId is invalid or wrong: the Page or post was not found, or you have no access to it; 15 — The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK A scheduled post (always listed first) and a published post with a photo. { \"status\": \"OK\", \"from\": \"463745743546345\", \"count\": 2, \"posts\": [ { \"id\": \"119324881085321 122093459799999\", \"message\": \"Our summer sale starts next week!\", \"created time\": 1783600000, \"updated time\": 1783600000, \"permalink url\": \"https://www.facebook.com/119324881085321/posts/122093459799999\", \"full picture\": \"\", \"is published\": false, \"scheduled publish time\": 1786000000, \"shares\": 0, \"total comments\": 0, \"total reactions\": 0 }, { \"id\": \"119324881085321 122093459712345\", \"message\": \"Hello fans!\", \"created time\": 1783596120, \"updated time\": 1783603417, \"permalink url\": \"https://www.facebook.com/119324881085321/posts/122093459712345\", \"full picture\": \"https://scontent.xx.fbcdn.net/v/t39.30808-6/photo.jpg\", \"is published\": true, \"shares\": 3, \"total comments\": 3, \"total reactions\": 5, \"attachments\": { \"data\": [ { \"media type\": \"photo\", \"url\": \"https://www.facebook.com/photo.php?fbid=122093459712345\" } ] } } ], \"paging\": { \"after\": \"QVFIUmRfZA2xYzRkNmJmWjNh\", \"hasNext\": true }, \"reason\": 1 } Example: Reason 3 Wrong apiKey. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 6 Wrong connection type — this is not a Facebook Pages connection. { \"status\": \"FAIL\", \"reason\": 6 } Example: Reason 10 The connection has expired — do the onboarding again. { \"status\": \"FAIL\", \"reason\": 10, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/facebook-create-post",
      "title": "Create Post",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/create-post",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/create-post.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to create a post on your Facebook page.",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/createPost",
        "url": "https://api.99digital.co.il/facebook/page/createPost"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Text post",
        "Example: Photo post",
        "Example: Photo album",
        "Example: Video post",
        "Example: Scheduled post",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — photo album",
        "Example: OK — scheduled",
        "Example: Reason 5",
        "Example: Reason 8",
        "Example: Reason 6",
        "Example: Reason 15"
      ],
      "keywords": [
        "facebookCreatePost",
        "facebook",
        "page",
        "createPost",
        "from",
        "type",
        "body",
        "links",
        "title",
        "scheduleTime",
        "status",
        "postId",
        "photos",
        "timestamp",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/createPost This endpoint allows you to create a post on your Facebook page. Settings : Setting Value URL https://api.99digital.co.il/facebook/page/createPost Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 type Can be any of the following: text - for creating a post with only text. video - if you wish to have a video type post. photo - if you wish to have a photo type post. If you leave it out, it is set by \"links\": no links make a text post, a single link to a video file (.mp4, .mov, .webm, .avi, .3gp or .mkv) a video post, and any other links a photo post no text body The body of the post, based on the 'type' value. It can have plain text only (no Markdown or HTML) and \\n for a line break. If type is 'text', here you put all your post text. If type is 'video', here you put the video description. If type is 'photo', here you put the photo caption. Maximum 63,206 characters only for 'text' Welcome to my first Post! links Array of public HTTPS links. Only use if \"type\" is video or photo. If type is 'video' you must provide 1 link only. If type is 'photo' you can choose if you wish 1 image in the post or an album of up to 10 images only for 'video' / 'photo' [\"https://example.com/image.jpg\",\"https://example.com/image2.jpg\"] title If 'type' = video, you can provide the video title no Here is my video title scheduleTime You can schedule the post to be in a future time. If omitted, the post will publish immediately. UNIX time in seconds. Must be between 11 minutes and 30 days from now no 1786000000 Response : { \"status\": \"OK\", \"postId\": \"15234562345623 952362434423178\", \"body\": \"your message\", \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"type\": \"text\", \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL postId The post ID that was created. You can use it for future webhooks / comments / post changes (Edit Post, Delete Post, Create Comment, All Comments) body The text you sent timestamp Time stamp of the message from Your ID for the service type The type of the post that was created: text, photo or video photos Only relevant if photos were used. This will return the amount of photos you provided (int) scheduleTime The future time that you provided, if provided reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 5 Missing or invalid content: the 'body' (for a text post) or the 'links' (for a photo or video post), or a link that is not https:// 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 8 Invalid \"type\" or \"links\": a wrong \"type\", more than 1 link for a video or more than 10 for photos. Also a \"body\" longer than 63,206 characters, or a \"scheduleTime\" that is not 11 minutes to 30 days from now 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 15 The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content 18 General error / wrong information / unknown error. Please check all the payload again and try again Remarks : If one photo of an album fails, the photos already uploaded are deleted: nothing is published, and you get the failure's reason. A scheduled post returns its postId right away and goes live at scheduleTime . Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . type string No The kind of post. Can be any of the following: text , video or photo . If you leave it out, it is set by links : no links make a text post, a single link to a video file ( .mp4 , .mov , .webm , .avi , .3gp or .mkv ) a video post, and any other links a photo post. One of: text — For creating a post with only text; photo — If you wish to have a photo type post — one photo, or an album of up to 10 photos; video — If you wish to have a video type post — one video. Example: text . body string No The body of the post, based on the type value. It can have plain text only (no Markdown or HTML) and \\n for a line break. If type is text , here you put all your post text (required). If type is video , here you put the video description; if type is photo , here you put the photo caption (optional for both). Maximum 63,206 characters. Max length: 63206. Example: Welcome to my first Post! . links array of string (uri) No Array of public HTTPS links. Only use if type is video or photo (and required for them). If type is video , you must provide 1 link only. If type is photo , you can choose if you wish 1 image in the post or an album of up to 10 images. Max items: 10. title string No If type is video , you can provide the video title. Example: Here is my video title . scheduleTime integer No You can schedule the post to be in a future time. If omitted, the post will publish immediately. UNIX time in seconds. Must be between 11 minutes and 30 days from now. Example: 1786000000 . Example: Text post A post with only text. { \"from\": \"463745743546345\", \"type\": \"text\", \"body\": \"Welcome to my first Post!\" } Example: Photo post A post with one photo; body is the caption. { \"from\": \"463745743546345\", \"type\": \"photo\", \"body\": \"Our new collection is here!\", \"links\": [ \"https://example.com/image.jpg\" ] } Example: Photo album A post with an album of up to 10 photos. { \"from\": \"463745743546345\", \"type\": \"photo\", \"body\": \"Photos from our launch event\", \"links\": [ \"https://example.com/image.jpg\", \"https://example.com/image2.jpg\", \"https://example.com/image3.jpg\" ] } Example: Video post A post with one video; body is the description, title the video title. { \"from\": \"463745743546345\", \"type\": \"video\", \"body\": \"A quick tour of our new store.\", \"title\": \"Here is my video title\", \"links\": [ \"https://example.com/video.mp4\" ] } Example: Scheduled post A text post that goes live at scheduleTime (11 minutes to 30 days from now). { \"from\": \"463745743546345\", \"type\": \"text\", \"body\": \"Our summer sale starts today!\", \"scheduleTime\": 1786000000 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the post was created on your Page (or scheduled). Always OK . postId string (one of: OK) The post ID that was created. You can use it for future webhooks / comments / post changes. Example: 15234562345623 952362434423178 . type string (one of: OK) The kind of post that was created. One of: text — A post with only text; photo — A post with one photo or an album; video — A post with one video. body string (one of: OK) The text you sent. Left out when you sent no body . Example: Welcome to my first Post! . photos integer (one of: OK) Only relevant if photos were used. This will return the amount of photos you provided (int). Example: 3 . scheduleTime integer (one of: OK) The future time that you provided, if provided. Example: 1786000000 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1785500000 . from string (one of: OK) Your ID for the service. Example: 463745743546345 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 5 — Missing or invalid content: the \"body\" (for a text post) or the \"links\" (for a photo or video post), or a link that is not https://; 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 8 — Invalid \"type\" or \"links\": a wrong \"type\", more than 1 link for a video or more than 10 for photos. Also a \"body\" longer than 63,206 characters, or a \"scheduleTime\" that is not 11 minutes to 30 days from now; 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 15 — The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content; 18 — General error / wrong information / unknown error. Please check all the payload again and try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK A text post was created. { \"status\": \"OK\", \"postId\": \"15234562345623 952362434423178\", \"type\": \"text\", \"body\": \"Welcome to my first Post!\", \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1 } Example: OK — photo album An album post with 3 photos; photos is the amount of photos. { \"status\": \"OK\", \"postId\": \"15234562345623 952362434423179\", \"type\": \"photo\", \"body\": \"Photos from our launch event\", \"photos\": 3, \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1 } Example: OK — scheduled A scheduled post; scheduleTime is the time it goes live. { \"status\": \"OK\", \"postId\": \"15234562345623 952362434423180\", \"type\": \"text\", \"body\": \"Our summer sale starts today!\", \"scheduleTime\": 1786000000, \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1 } Example: Reason 5 Missing content — no body for a text post, or no links for a photo or video post. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 8 Invalid value — for example, two links for a video post, or a scheduleTime less than 11 minutes from now. { \"status\": \"FAIL\", \"reason\": 8 } Example: Reason 6 Wrong connection type — this is not a Facebook Pages connection. { \"status\": \"FAIL\", \"reason\": 6 } Example: Reason 15 Meta rejected the content — bad media, format or size, or a policy violation. { \"status\": \"FAIL\", \"reason\": 15, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/facebook-edit-post",
      "title": "Edit Post",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/edit-post",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/edit-post.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to edit a post you previously created (using our API or directly on Facebook).",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/editPost",
        "url": "https://api.99digital.co.il/facebook/page/editPost"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 5",
        "Example: Reason 13"
      ],
      "keywords": [
        "facebookEditPost",
        "facebook",
        "page",
        "editPost",
        "from",
        "postId",
        "body",
        "status",
        "timestamp",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/editPost This endpoint allows you to edit a post you previously created (using our API or directly on Facebook). You can't change the media after publish, this endpoint only allows changing the body text. To change the media, delete the post and create a new one. Settings : Setting Value URL https://api.99digital.co.il/facebook/page/editPost Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 postId The post ID you wish to edit (from Create Post or All Posts) yes 15625364215 56994166514 body The new body of the post. It replaces the old body. It can have plain text only (no Markdown or HTML) and \\n for a line break. Maximum 63,206 characters yes Welcome to my edited Post! Response : { \"status\": \"OK\", \"postId\": \"15234562345623 952362434423178\", \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL postId The post ID that you changed timestamp Time stamp of the message from Your ID for the service reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 5 Missing or invalid content: the 'body' is missing or empty 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The postId is invalid or wrong: the post was not found (for example, it was deleted), or you have no access to it 15 The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content 18 General error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . postId string Yes The post ID you wish to edit (from Create Post or All Posts). Example: 15625364215 56994166514 . body string Yes The new body of the post. It replaces the old body. It can have plain text only (no Markdown or HTML) and \\n for a line break. Maximum 63,206 characters. Max length: 63206. Example: Welcome to my edited Post! . Example (generated from the schema) { \"from\": \"463745743546345\", \"postId\": \"15625364215 56994166514\", \"body\": \"Welcome to my edited Post!\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the post was changed. Always OK . postId string (one of: OK) The post ID that you changed. Example: 15625364215 56994166514 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1785500000 . from string (one of: OK) Your ID for the service. Example: 463745743546345 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 5 — Missing or invalid content — the \"body\" is missing or empty; 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The postId is invalid or wrong: the post was not found (for example, it was deleted), or you have no access to it; 15 — The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK The post text was changed. { \"status\": \"OK\", \"postId\": \"15625364215 56994166514\", \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1 } Example: Reason 5 The body is empty. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 13 The post was not found, or you have no access to it. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/facebook-delete-post",
      "title": "Delete Post",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/delete-post",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/delete-post.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to delete a post you previously created (using our API or directly on Facebook).",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/deletePost",
        "url": "https://api.99digital.co.il/facebook/page/deletePost"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 13",
        "Example: Reason 3"
      ],
      "keywords": [
        "facebookDeletePost",
        "facebook",
        "page",
        "deletePost",
        "from",
        "postId",
        "status",
        "timestamp",
        "reason",
        "deleted"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/deletePost This endpoint allows you to delete a post you previously created (using our API or directly on Facebook). This is a permanent action and can't be undone. Settings : Setting Value URL https://api.99digital.co.il/facebook/page/deletePost Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 postId The post ID you wish to delete (from Create Post or All Posts) yes 15625364215 56994166514 Response : { \"status\": \"OK\", \"postId\": \"15234562345623 952362434423178\", \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"reason\": 1, \"deleted\": true } Response-Explain : Parameter Description status OK or FAIL postId The post ID that you deleted timestamp Time stamp of the message from Your ID for the service deleted true if the delete was successful. A delete that fails answers with status FAIL and a reason instead, so in an OK response it is always true reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The postId you provided is invalid or wrong: the post was not found (for example, it was already deleted), or you have no access to it 18 General error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . postId string Yes The post ID you wish to delete (from Create Post or All Posts). Example: 15625364215 56994166514 . Example (generated from the schema) { \"from\": \"463745743546345\", \"postId\": \"15625364215 56994166514\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the post was deleted. Always OK . postId string (one of: OK) The post ID that you deleted. Example: 15625364215 56994166514 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1785500000 . from string (one of: OK) Your ID for the service. Example: 463745743546345 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . deleted boolean (one of: OK) true if the delete was successful. A delete that fails answers with status FAIL and a reason instead, so in an OK response it is always true . Always true . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The postId you provided is invalid or wrong: the post was not found (for example, it was already deleted), or you have no access to it; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK The post was deleted. { \"status\": \"OK\", \"postId\": \"15625364215 56994166514\", \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1, \"deleted\": true } Example: Reason 13 The post was not found, or you have no access to it. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" } Example: Reason 3 Wrong apiKey. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "facebook-api/facebook-all-comments",
      "title": "All Comments",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/all-comments",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/all-comments.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to see all the comments of a post or a comment in your page (comments that were created by the API or directly on Facebook).",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/getComments",
        "url": "https://api.99digital.co.il/facebook/page/getComments"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Comments of a post",
        "Example: Replies to a comment",
        "Example: Everything, newest first",
        "Example: Next batch",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: No comments",
        "Example: Reason 13",
        "Example: Reason 3"
      ],
      "keywords": [
        "facebookAllComments",
        "facebook",
        "page",
        "getComments",
        "from",
        "postId",
        "commentId",
        "filter",
        "order",
        "limit",
        "after",
        "status",
        "target",
        "count",
        "comments",
        "id",
        "message",
        "name",
        "picture",
        "data",
        "url",
        "created_time",
        "permalink_url",
        "like_count",
        "is_hidden",
        "comment_count",
        "paging",
        "hasNext",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/getComments This endpoint allows you to see all the comments of a post or a comment in your page (comments that were created by the API or directly on Facebook). Settings : Setting Value URL https://api.99digital.co.il/facebook/page/getComments Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 postId The post ID you want to get the comments from no\\ 15625364215 56994166514 commentId The comment ID you wish to get all the comments inside it (its replies) no\\ 634645636423 5675674565 filter \"toplevel\" if you wish only top level comments. \"stream\" if you wish to get everything (the comments and their replies, in one list). Default is \"toplevel\" no toplevel order Options: \"chronological\" (oldest first), \"reverse chronological\" (newest first). Default is \"chronological\" no chronological limit How many comments to get (limit pagination), between 1 and 100. Default if not provided: 25 no 25 after If you are using limit paging, you can provide the \"after\" value from the previous response to load the next batch no U56WDF34FA4TER3DA..... \\ Either postId or commentId is required, not both. If you send both, the commentId is used. Response : { \"status\": \"OK\", \"from\": \"463745743546345\", \"target\": \"15625364215 56994166514\", \"count\": 25, \"comments\": [{ \"id\": \"119324881085321 122093459712345\", \"message\": \"Hello fans!\", \"from\": { \"id\": \"1234567890\", \"name\": \"Israel Israeli\", \"picture\": { \"data\": { \"url\": \"...\" } } }, \"created time\": 1783596120, \"permalink url\": \"https://www.facebook.com/...\", \"is hidden\": false, \"like count\": 3, \"comment count\": 3 }], \"paging\": { \"after\": \"QVFIU...\", \"hasNext\": true }, \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL count Total comments in this batch target The commentId or postId you provided from Your ID for the service comments and paging : Value Information id This is the commentId message The body of the comment created time Comment create time. UNIX UTC timestamp (int seconds) from id, name and profile picture of the comment creator permalink url Link directly to the comment like count The total likes this comment has is hidden true - the comment is hidden in the page. false - this comment is live on Facebook comment count The total comment replies this comment has paging Key that contains two values: \"after\", which represents the parameter to send if you wish to get the next batch, and \"hasNext\", which is true if you have more data to load, or false if this is the last data reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The postId or commentId is invalid or wrong: the post or comment was not found (for example, it was deleted), or you have no access to it 15 The content you provided was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content 18 General error, try again Remarks : Each comment's id is the commentId for Create Comment, Hide Comment, Delete Comment, Like Comment and Private Reply. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . postId string No The post ID you want to get the comments from. Either postId or commentId is required, not both. Example: 15625364215 56994166514 . commentId string No The comment ID you wish to get all the comments inside it (its replies). Either postId or commentId is required, not both; if you send both, the commentId is used. Example: 634645636423 5675674565 . filter string No Which comments to get. Default is toplevel . One of: toplevel — If you wish only top level comments; stream — If you wish to get everything — the comments and their replies, in one list. Default: toplevel . Example: toplevel . order string No The order of the comments. Default is chronological . One of: chronological — Chronological order — oldest first; reverse chronological — Reverse chronological order — newest first. Default: chronological . Example: chronological . limit integer No How many comments to get (limit pagination), between 1 and 100. Default if not provided: 25. Default: 25 . Minimum: 1. Maximum: 100. Example: 25 . after string No If you are using limit paging, you can provide the after value from the previous response ( paging.after ) to load the next batch. Example: QVFIUmRfZA2xYzRkNmJmWjNh . Example: Comments of a post The top level comments of a post, oldest first. { \"from\": \"463745743546345\", \"postId\": \"15625364215 56994166514\" } Example: Replies to a comment The replies to one comment. { \"from\": \"463745743546345\", \"commentId\": \"634645636423 5675674565\" } Example: Everything, newest first All the comments of a post with their replies, newest first. { \"from\": \"463745743546345\", \"postId\": \"15625364215 56994166514\", \"filter\": \"stream\", \"order\": \"reverse chronological\" } Example: Next batch The next 25 comments — after is paging.after from the previous response. { \"from\": \"463745743546345\", \"postId\": \"15625364215 56994166514\", \"limit\": 25, \"after\": \"QVFIUmRfZA2xYzRkNmJmWjNh\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the request succeeded, and the comments of this batch are in comments . Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . target string (one of: OK) The commentId or postId you provided. Example: 15625364215 56994166514 . count integer (one of: OK) Total comments in this batch. Example: 25 . comments array of object (one of: OK) The comments of this batch. Empty when there are none. comments[].id string (one of: OK) This is the commentId . Example: 56994166514 122093459712345 . comments[].message string (one of: OK) The body (text) of the comment. Example: Great post! . comments[].from object (one of: OK) The id, name and profile picture of the comment creator. comments[].from.id string (one of: OK) The ID of the comment creator. comments[].from.name string (one of: OK) The name of the comment creator. comments[].from.picture object (one of: OK) The profile picture of the comment creator. comments[].from.picture.data object (one of: OK) The picture's details. comments[].from.picture.data.url string (one of: OK) Link to the profile picture. comments[].created time integer (one of: OK) Comment create time. UNIX UTC timestamp (int seconds). Example: 1783596120 . comments[].permalink url string (one of: OK) Link directly to the comment. comments[].like count integer (one of: OK) The total likes this comment has. Example: 3 . comments[].is hidden boolean (one of: OK) true — the comment is hidden in the page. false — this comment is live on Facebook. comments[].comment count integer (one of: OK) The total comment replies this comment has. Example: 1 . paging object (one of: OK) Key that contains two values: after , which represents the parameter to send if you wish to get the next batch, and hasNext , which is true if you have more data to load, or false if this is the last data. paging.after string (one of: OK) The parameter to send (as after ) if you wish to get the next batch. Example: QVFIUmRfZA2xYzRkNmJmWjNh . paging.hasNext boolean (one of: OK) true if you have more data to load, or false if this is the last data. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The postId or commentId is invalid or wrong: the post or comment was not found (for example, it was deleted), or you have no access to it; 15 — The content you provided was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK Two comments of a post, and more to load. { \"status\": \"OK\", \"from\": \"463745743546345\", \"target\": \"15625364215 56994166514\", \"count\": 2, \"comments\": [ { \"id\": \"56994166514 122093459712345\", \"message\": \"Great post!\", \"from\": { \"id\": \"1234567890\", \"name\": \"Israel Israeli\", \"picture\": { \"data\": { \"url\": \"https://platform-lookaside.fbsbx.com/platform/profilepic/?psid=1234567890\" } } }, \"created time\": 1783596120, \"permalink url\": \"https://www.facebook.com/15625364215/posts/56994166514?comment id=122093459712345\", \"like count\": 3, \"is hidden\": false, \"comment count\": 1 }, { \"id\": \"56994166514 122093459754321\", \"message\": \"When does the sale start?\", \"from\": { \"id\": \"9876543210\", \"name\": \"Dana Cohen\", \"picture\": { \"data\": { \"url\": \"https://platform-lookaside.fbsbx.com/platform/profilepic/?psid=9876543210\" } } }, \"created time\": 1783599720, \"permalink url\": \"https://www.facebook.com/15625364215/posts/56994166514?comment id=122093459754321\", \"like count\": 0, \"is hidden\": false, \"comment count\": 0 } ], \"paging\": { \"after\": \"QVFIUmRfZA2xYzRkNmJmWjNh\", \"hasNext\": true }, \"reason\": 1 } Example: No comments The post has no comments. { \"status\": \"OK\", \"from\": \"463745743546345\", \"target\": \"15625364215 56994166514\", \"count\": 0, \"comments\": [], \"paging\": { \"after\": \"\", \"hasNext\": false }, \"reason\": 1 } Example: Reason 13 The post or comment was not found, or you have no access to it. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" } Example: Reason 3 Wrong apiKey. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "facebook-api/facebook-create-comment",
      "title": "Create Comment",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/create-comment",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/create-comment.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to create a comment on an existing post.",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/createComment",
        "url": "https://api.99digital.co.il/facebook/page/createComment"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Top level comment",
        "Example: Reply comment",
        "Example: Comment with image",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 4",
        "Example: Reason 5",
        "Example: Reason 13"
      ],
      "keywords": [
        "facebookCreateComment",
        "facebook",
        "page",
        "createComment",
        "from",
        "postId",
        "commentId",
        "body",
        "url",
        "status",
        "target",
        "timestamp",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/createComment This endpoint allows you to create a comment on an existing post. You can either comment on the post itself (it is called \"top level comment\") or comment on a comment (it is called \"reply comment\"). Settings : Setting Value URL https://api.99digital.co.il/facebook/page/createComment Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 postId The post ID you wish to comment on (if top level comment), from Create Post or All Posts no\\ 15625364215 56994166514 commentId The comment ID you wish to comment on (if reply comment), from All Comments no\\ 652346734563 3463234623 body The body of the comment. It can have plain text only (no Markdown or HTML) and \\n for a line break. Maximum 8,000 characters yes, unless you provide a \"url\" Thank you for the comment! url You can provide an image with the comment. Here you can provide the URL (HTTPS only, public) no https://example.com/image.jpg \\ You need to provide either the postId or the commentId, not both. If both are provided, the system will use the commentId (reply comment). Response : { \"status\": \"OK\", \"commentId\": \"15234562345623 952362434423178\", \"target\": \"15234562345623 425235245346\", \"body\": \"Thank you for the comment!\", \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL target The original postId or commentId provided in the request commentId The new commentId created. You can use it to reply to the comment timestamp Time stamp of the message from Your ID for the service body The comment you wrote (empty for an image-only comment) reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 4 commentId or postId is missing (or is not a valid ID) 5 Missing or invalid content: the 'body' or \"url\" is missing, invalid or wrong (no \"body\" and no \"url\", or a \"url\" that is not https://) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 8 The \"body\" is more than 8,000 characters long 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The postId or commentId is invalid or wrong: the post or comment was not found (for example, it was deleted), or you have no access to it 15 The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content 18 General error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . postId string No The post ID you wish to comment on (if top level comment). You need to provide either the postId or the commentId , not both. Example: 15625364215 56994166514 . commentId string No The comment ID you wish to comment on (if reply comment). You need to provide either the postId or the commentId , not both; if both are provided, the system uses the commentId . Example: 652346734563 3463234623 . body string No The body of the comment. It can have plain text only (no Markdown or HTML) and \\n for a line break. Maximum 8,000 characters. Required, unless you provide an image in url . Max length: 8000. Example: Thank you for the comment! . url string (uri) No You can provide an image with the comment. Here you can provide the URL (HTTPS only, public). Example: https://example.com/image.jpg . Example: Top level comment A comment on the post itself. { \"from\": \"463745743546345\", \"postId\": \"15625364215 56994166514\", \"body\": \"Thank you all for the great response!\" } Example: Reply comment A reply to a comment on your post. { \"from\": \"463745743546345\", \"commentId\": \"652346734563 3463234623\", \"body\": \"Thank you for the comment!\" } Example: Comment with image A comment with an image, from the link in url . { \"from\": \"463745743546345\", \"postId\": \"15625364215 56994166514\", \"body\": \"Here is the full menu.\", \"url\": \"https://example.com/image.jpg\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the comment was created. Always OK . commentId string (one of: OK) The new commentId created. You can use it to reply to the comment. Example: 652346734563 952362434423178 . target string (one of: OK) The original postId or commentId provided in the request. Example: 652346734563 3463234623 . body string (one of: OK) The comment you wrote (empty for an image-only comment). Example: Thank you for the comment! . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1785500000 . from string (one of: OK) Your ID for the service. Example: 463745743546345 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 4 — The \"commentId\" or \"postId\" is missing (or is not a valid ID); 5 — Missing or invalid content: the \"body\" or \"url\" is missing, invalid or wrong (no \"body\" and no \"url\", or a \"url\" that is not https://); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 8 — The \"body\" is more than 8,000 characters long; 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The postId or commentId is invalid or wrong: the post or comment was not found (for example, it was deleted), or you have no access to it; 15 — The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK The reply comment was created. { \"status\": \"OK\", \"commentId\": \"652346734563 952362434423178\", \"target\": \"652346734563 3463234623\", \"body\": \"Thank you for the comment!\", \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1 } Example: Reason 4 No postId and no commentId , or an ID that is not valid. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 5 No body and no url . { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 13 The post or comment was not found, or you have no access to it. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/facebook-hide-comment",
      "title": "Hide Comment",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/hide-comment",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/hide-comment.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "Hide a comment allows you to make a comment hidden (or back to visible) from the public, so it stays visible only to the writer of the comment, their friends and the admin of the page.",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/hideComment",
        "url": "https://api.99digital.co.il/facebook/page/hideComment"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Hide",
        "Example: Unhide",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — unhide",
        "Example: Reason 4",
        "Example: Reason 3"
      ],
      "keywords": [
        "facebookHideComment",
        "facebook",
        "page",
        "hideComment",
        "from",
        "commentId",
        "hide",
        "status",
        "hidden",
        "timestamp",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/hideComment Hide a comment allows you to make a comment hidden (or back to visible) from the public, so it stays visible only to the writer of the comment, their friends and the admin of the page. Settings : Setting Value URL https://api.99digital.co.il/facebook/page/hideComment Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 commentId The comment ID you wish to do the action on (from All Comments) yes 652346734563 3463234623 hide 1 - hide. 0 - unhide. If you leave it out, the comment is hidden. true / false work too, as a number or a string; any other value returns reason 8 no (default 1) 1 Response : { \"status\": \"OK\", \"commentId\": \"15234562345623 952362434423178\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"hidden\": true, \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL commentId The comment ID you did the action on from Your ID for the service timestamp Time stamp of the message hidden true if the comment was hidden. false if the comment is not hidden reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 4 commentId is invalid or wrong (missing, or not a valid comment ID) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 8 'hide' is not 1 or 0 (or true / false) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 18 General error, try again Remarks : To remove a comment for good, use Delete Comment instead. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . commentId string Yes The comment ID you wish to do the action on (from All Comments). Example: 652346734563 3463234623 . hide integer No 1 - hide, 0 - unhide. If you leave it out, the comment is hidden. true / false work too, as a number or a string; any other value returns reason 8. One of: 1 — Hide — the comment stays visible only to its writer, their friends and the admin of the page; 0 — Unhide — the comment is visible to the public again. Default: 1 . Example: 1 . Example: Hide Hide the comment from the public. { \"from\": \"463745743546345\", \"commentId\": \"652346734563 3463234623\", \"hide\": 1 } Example: Unhide Make a hidden comment visible again. { \"from\": \"463745743546345\", \"commentId\": \"652346734563 3463234623\", \"hide\": 0 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the action was done. Always OK . commentId string (one of: OK) The comment ID you did the action on. Example: 652346734563 3463234623 . hidden boolean (one of: OK) true if the comment was hidden. false if the comment is not hidden (you unhid it). timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1785500000 . from string (one of: OK) Your ID for the service. Example: 463745743546345 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 4 — The \"commentId\" is invalid or wrong (missing, or not a valid comment ID); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 8 — 'hide' is not 1 or 0 (or true / false); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK The comment is hidden. { \"status\": \"OK\", \"commentId\": \"652346734563 3463234623\", \"hidden\": true, \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1 } Example: OK — unhide The comment is visible again. { \"status\": \"OK\", \"commentId\": \"652346734563 3463234623\", \"hidden\": false, \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1 } Example: Reason 4 The commentId is missing or not a valid ID. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 3 Wrong apiKey. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "facebook-api/facebook-delete-comment",
      "title": "Delete Comment",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/delete-comment",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/delete-comment.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to delete a comment, either written by you or by anyone else.",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/deleteComment",
        "url": "https://api.99digital.co.il/facebook/page/deleteComment"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 13",
        "Example: Reason 3"
      ],
      "keywords": [
        "facebookDeleteComment",
        "facebook",
        "page",
        "deleteComment",
        "from",
        "commentId",
        "status",
        "timestamp",
        "reason",
        "deleted"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/deleteComment This endpoint allows you to delete a comment, either written by you or by anyone else. This is a permanent action and can't be undone. To only hide a comment from the public, use Hide Comment instead. Settings : Setting Value URL https://api.99digital.co.il/facebook/page/deleteComment Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 commentId The comment ID you wish to delete (from All Comments) yes 15625364215 56994166514 Response : { \"status\": \"OK\", \"commentId\": \"15234562345623 952362434423178\", \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"reason\": 1, \"deleted\": true } Response-Explain : Parameter Description status OK or FAIL commentId The comment ID that you deleted timestamp Time stamp of the message from Your ID for the service deleted true if the delete was successful. A delete that fails answers with status FAIL and a reason instead, so in an OK response it is always true reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The commentId you provided is invalid or wrong: the comment was not found (for example, it was already deleted), or you have no access to it 18 General error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . commentId string Yes The comment ID you wish to delete (from All Comments). It can be a comment written by you or by anyone else. Example: 652346734563 3463234623 . Example (generated from the schema) { \"from\": \"463745743546345\", \"commentId\": \"652346734563 3463234623\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the comment was deleted. Always OK . commentId string (one of: OK) The comment ID that you deleted. Example: 652346734563 3463234623 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1785500000 . from string (one of: OK) Your ID for the service. Example: 463745743546345 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . deleted boolean (one of: OK) true if the delete was successful. A delete that fails answers with status FAIL and a reason instead, so in an OK response it is always true . Always true . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The commentId you provided is invalid or wrong: the comment was not found (for example, it was already deleted), or you have no access to it; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK The comment was deleted. { \"status\": \"OK\", \"commentId\": \"652346734563 3463234623\", \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1, \"deleted\": true } Example: Reason 13 The comment was not found, or you have no access to it. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" } Example: Reason 3 Wrong apiKey. { \"status\": \"FAIL\", \"reason\": 3 }"
    },
    {
      "id": "facebook-api/facebook-like-comment",
      "title": "Like Comment",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/like-comment",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/like-comment.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to like or unlike a comment in a post.",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/likeComment",
        "url": "https://api.99digital.co.il/facebook/page/likeComment"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Like",
        "Example: Unlike",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — unlike",
        "Example: Reason 13",
        "Example: Reason 18"
      ],
      "keywords": [
        "facebookLikeComment",
        "facebook",
        "page",
        "likeComment",
        "from",
        "commentId",
        "like",
        "status",
        "timestamp",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/likeComment This endpoint allows you to like or unlike a comment in a post. Settings : Setting Value URL https://api.99digital.co.il/facebook/page/likeComment Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 commentId The comment ID you wish to like (from All Comments) yes 15625364215 56994166514 like 1 for like. 0 for unlike. If you leave it out, the comment is liked. true / false work too, as a number or a string; any other value returns reason 8 no (default 1) 1 Response : { \"status\": \"OK\", \"commentId\": \"15234562345623 952362434423178\", \"timestamp\": 1700115719, \"from\": \"463745743546345\", \"reason\": 1, \"like\": true } Response-Explain : Parameter Description status OK or FAIL commentId The comment ID that you liked or unliked timestamp Time stamp of the message from Your ID for the service like true if you liked the comment. false if you unliked it. When the action fails, the response is FAIL with a reason instead reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 8 'like' is not 1 or 0 (or true / false) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The commentId you provided is invalid or wrong: the comment was not found (for example, it was deleted), or you have no access to it 18 General error / wrong information or bad payload. Please check the payload again and try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . commentId string Yes The comment ID you wish to like or unlike (from All Comments). Example: 652346734563 3463234623 . like integer No 1 for like, 0 for unlike. If you leave it out, the comment is liked. true / false work too, as a number or a string; any other value returns reason 8. One of: 1 — Like the comment, as your Page; 0 — Unlike — remove your Page's like from the comment. Default: 1 . Example: 1 . Example: Like Like the comment as your Page. { \"from\": \"463745743546345\", \"commentId\": \"652346734563 3463234623\", \"like\": 1 } Example: Unlike Remove your Page's like from the comment. { \"from\": \"463745743546345\", \"commentId\": \"652346734563 3463234623\", \"like\": 0 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the action was done. Always OK . commentId string (one of: OK) The comment ID that you liked or unliked. Example: 652346734563 3463234623 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1785500000 . from string (one of: OK) Your ID for the service. Example: 463745743546345 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . like boolean (one of: OK) true if you liked the comment. false if you unliked it. When the action fails, the response is FAIL with a reason instead. status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 8 — 'like' is not 1 or 0 (or true / false); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The commentId you provided is invalid or wrong: the comment was not found (for example, it was deleted), or you have no access to it; 18 — General error / wrong information or bad payload. Please check the payload again and try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK The comment is liked. { \"status\": \"OK\", \"commentId\": \"652346734563 3463234623\", \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1, \"like\": true } Example: OK — unlike The like was removed. { \"status\": \"OK\", \"commentId\": \"652346734563 3463234623\", \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1, \"like\": false } Example: Reason 13 The comment was not found, or you have no access to it. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" } Example: Reason 18 General or unknown error — check the request and try again. { \"status\": \"FAIL\", \"reason\": 18, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/facebook-private-reply",
      "title": "Private Reply",
      "url": "https://docs.99digital.co.il/facebook-api/facebook-pages/private-reply",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/facebook-pages/private-reply.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Facebook Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to send a Messenger private reply to a user that left a comment on your post.",
      "endpoint": {
        "method": "POST",
        "path": "/facebook/page/privateReply",
        "url": "https://api.99digital.co.il/facebook/page/privateReply"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Reply to a comment",
        "Example: Reply to a visitor post",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 4",
        "Example: Reason 8",
        "Example: Reason 13"
      ],
      "keywords": [
        "facebookPrivateReply",
        "facebook",
        "page",
        "privateReply",
        "from",
        "commentId",
        "postId",
        "body",
        "status",
        "target",
        "messageId",
        "timestamp",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/facebook/page/privateReply This endpoint allows you to send a Messenger private reply to a user that left a comment on your post. You are allowed to send a one-time private reply to a person who wrote a public comment: you can only send one private reply per comment, within 7 days of when it was written. If the user answers, you can keep chatting with them (if you connected the Facebook Messenger API too). This private reply does not need a Facebook Messenger connection to work. Settings : Setting Value URL https://api.99digital.co.il/facebook/page/privateReply Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 commentId The comment ID that was posted on your post, of which you wish to send the private reply to the visitor yes\\ 652346734563 3463234623 postId If someone wrote a post on your page and you wish to private reply to them, you need to provide the postId instead of the commentId no\\ 634634634 7447345 body The private message (DM) you want to send to the visitor that wrote the comment (or the post). 2,000 characters maximum yes Thank you for the comment! Here are our special deals \\ Provide either the commentId or the postId. If you send both, the commentId is used. Response : { \"status\": \"OK\", \"target\": \"15234562345623 425235245346\", \"from\": \"463745743546345\", \"messageId\": \"m Hk2aZ5q8RkWm1vYb3pXo7Q\", \"body\": \"Thank you for the comment! Here are our special deals\", \"timestamp\": 1600115719, \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL target The original postId or commentId provided in the request messageId The DM message ID (the ID of the private message that was sent) timestamp Time stamp of the message from Your ID for the service body The private message you wrote reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 4 commentId or postId is missing (or is not a valid ID) 5 Missing or invalid content: the 'body' is missing or empty 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint) 7 Onboarding is still in progress (the connection is not active) 8 The \"body\" is more than 2,000 characters long 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The postId or commentId is invalid or wrong: the post or comment was not found (for example, it was deleted), or you have no access to it 14 You already sent a private reply to this comment or post, or it is more than 7 days old. Meta allows one private reply, within 7 days 15 The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content 18 General error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . commentId string No The comment ID that was posted on your post, of which you wish to send the private reply to the visitor. Either commentId or postId is required; if you send both, the commentId is used. Example: 652346734563 3463234623 . postId string No If someone wrote a post on your page and you wish to private reply to them, you need to provide the postId (of their post) instead of the commentId . Example: 634634634 7447345 . body string Yes The private message (DM) you want to send to the visitor that wrote the comment or the post. 2,000 characters maximum. Max length: 2000. Example: Thank you for the comment! Here are our special deals. . Example: Reply to a comment A private message to the writer of a comment on your post. { \"from\": \"463745743546345\", \"commentId\": \"652346734563 3463234623\", \"body\": \"Thank you for the comment! Here are our special deals.\" } Example: Reply to a visitor post A private message to a visitor who wrote a post on your page. { \"from\": \"463745743546345\", \"postId\": \"634634634 7447345\", \"body\": \"Thanks for your post! We sent you the details here.\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the private reply was sent. Always OK . target string (one of: OK) The original postId or commentId provided in the request. Example: 652346734563 3463234623 . messageId string (one of: OK) The DM message ID (the ID of the private message that was sent). Example: m Hk2aZ5q8RkWm1vYb3pXo7Q . body string (one of: OK) The private message you wrote. Example: Thank you for the comment! Here are our special deals. . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1785500000 . from string (one of: OK) Your ID for the service. Example: 463745743546345 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 4 — The \"commentId\" or \"postId\" is missing (or is not a valid ID); 5 — Missing or invalid content — the \"body\" is missing or empty; 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Facebook posts endpoint); 7 — Onboarding is still in progress (the connection is not active); 8 — The \"body\" is more than 2,000 characters long; 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The postId or commentId is invalid or wrong: the post or comment was not found (for example, it was deleted), or you have no access to it; 14 — You already sent a private reply to this comment or post, or it is more than 7 days old — Meta allows one private reply, within 7 days; 15 — The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Returned when Meta rejected the request (reason 10 and above). Example: 463745743546345 . Example: OK The private reply was sent. { \"status\": \"OK\", \"target\": \"652346734563 3463234623\", \"messageId\": \"m Hk2aZ5q8RkWm1vYb3pXo7Q\", \"body\": \"Thank you for the comment! Here are our special deals.\", \"timestamp\": 1785500000, \"from\": \"463745743546345\", \"reason\": 1 } Example: Reason 4 No commentId and no postId , or an ID that is not valid. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 8 The body is more than 2,000 characters long. { \"status\": \"FAIL\", \"reason\": 8 } Example: Reason 13 The comment or post was not found, or you have no access to it. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/instagram-all-posts",
      "title": "All Posts",
      "url": "https://docs.99digital.co.il/facebook-api/instagram-pages/all-posts",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/instagram-pages/all-posts.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Instagram Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to see all the posts in your Instagram page (posts that were created by the API or directly on Instagram).",
      "endpoint": {
        "method": "POST",
        "path": "/instagram/page/getPosts",
        "url": "https://api.99digital.co.il/instagram/page/getPosts"
      },
      "headings": [
        "Stories",
        "Authentication",
        "Request body",
        "Example: All posts",
        "Example: Next batch",
        "Example: Stories",
        "Example: One post",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Stories",
        "Example: One post",
        "Example: Reason 3",
        "Example: Reason 13"
      ],
      "keywords": [
        "instagramAllPosts",
        "instagram",
        "page",
        "getPosts",
        "from",
        "type",
        "limit",
        "after",
        "mediaId",
        "status",
        "count",
        "posts",
        "id",
        "caption",
        "media_type",
        "media_product_type",
        "media_url",
        "permalink",
        "thumbnail_url",
        "created_time",
        "like_count",
        "comments_count",
        "is_comment_enabled",
        "children",
        "data",
        "paging",
        "hasNext",
        "reason",
        "post"
      ],
      "content": "POST https://api.99digital.co.il/instagram/page/getPosts This endpoint allows you to see all the posts in your Instagram page (posts that were created by the API or directly on Instagram). Settings : Setting Value URL https://api.99digital.co.il/instagram/page/getPosts Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 limit How many posts to get (limit pagination), between 1 and 100. Default if not provided: 25 no 25 type Two options: media - all posts, reels, videos, carousels. stories - live stories. Default if not provided: media no media mediaId If you prefer to get information on one post and not all of them, here is where you put the mediaId. The response then holds that one post in \"post\" (not a \"posts\" list, and without \"type\", \"count\" and \"paging\"), and \"type\", \"limit\" and \"after\" are ignored no 5634634 634634563 after If you are using limit paging, you can provide the \"after\" value from the previous response to load the next batch no U56WDF34FA4TER3DA..... Response : { \"status\": \"OK\", \"from\": \"463745743546345\", \"type\": \"media\", \"count\": 25, \"posts\": [{ \"id\": \"119324881085321 122093459712345\", \"caption\": \"Hello fans!\", \"media type\": \"CAROUSEL ALBUM\", \"media product type\": \"FEED\", \"media url\": \"https://www.scontent.com/...\", \"permalink\": \"https://instagram.com/p/...\", \"created time\": 1783596120, \"children\": { \"data\": [ { \"id\": \"17998877665544332\", \"media type\": \"IMAGE\", \"media url\": \"https://www.scontent.com/...\" }, { \"id\": \"17998877665544333\", \"media type\": \"VIDEO\", \"media url\": \"https://www.scontent.com/...\", \"thumbnail url\": \"https://www.scontent.com/...\" } ] }, \"like count\": 10, \"comments count\": 3, \"is comment enabled\": true }], \"paging\": { \"after\": \"QVFIU...\", \"hasNext\": true }, \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL type The type you asked for: media or stories count Total posts in this batch from Your ID for the service posts and paging : Value Information id This is the postId (the mediaId of the post) caption The body of the post media type IMAGE / VIDEO / CAROUSEL ALBUM media product type FEED / REELS / STORY media url Link to the media permalink Link directly to the post thumbnail url Thumbnail image link (only for videos) created time The post create time. UNIX UTC timestamp (int seconds) like count The total likes of the post comments count The total amount of comments this post has (int). For getting the actual comments, use the All Comments (getComments) API endpoint is comment enabled true or false: whether comments are enabled on the post children List of media URLs for carousel items (media type = CAROUSEL ALBUM): each item in \"data\" has its id, media type, media url, and thumbnail url for a video paging Key that contains two values: \"after\", which represents the parameter to send if you wish to get the next batch, and \"hasNext\", which is true if you have more data to load, or false if this is the last data reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) 7 Onboarding is still in progress, or the connection was disabled (the connection is not active) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The postId (mediaId) is invalid or wrong: the post was not found, or it is not accessible 15 The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content 18 General error, try again Stories For the \"stories\" type from the table above, only those will return in the response: id , media type , media url , permalink and created time . Remarks : A field without a value is left out of the post: for example caption on a post without a caption, thumbnail url on anything but a video, and children on anything but a carousel. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . type string No What to list. Two options: media or stories . Default if not provided: media . Ignored when you send mediaId . One of: media — All posts, reels, videos and carousels; stories — Live stories — the stories that are live right now. Default: media . limit integer No How many posts to get (limit pagination), between 1 and 100. Default if not provided: 25. Default: 25 . Minimum: 1. Maximum: 100. Example: 25 . after string No If you are using limit paging, you can provide the after value from the previous response ( paging.after ) to load the next batch. Example: QVFIUmF4YWJjZGVmZ2hpams . mediaId string No If you prefer to get information on one post and not all of them, here is where you put the mediaId. The response then holds that one post in post (not a posts list, and without type , count and paging ), and type , limit and after are ignored. Example: 17895695668004550 . Example: All posts The last 25 posts — images, reels, videos and carousels. { \"from\": \"463745743546345\", \"type\": \"media\", \"limit\": 25 } Example: Next batch The next 25 posts, with the paging.after value of the previous response. { \"from\": \"463745743546345\", \"type\": \"media\", \"limit\": 25, \"after\": \"QVFIUmF4YWJjZGVmZ2hpams\" } Example: Stories The stories that are live right now. { \"from\": \"463745743546345\", \"type\": \"stories\" } Example: One post The details of one post, by its mediaId . { \"from\": \"463745743546345\", \"mediaId\": \"17895695668004550\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the request succeeded, and the posts of this batch are in posts . One of: OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . type string (one of: OK) The type you asked for — media or stories . One of: media — All posts, reels, videos and carousels; stories — Live stories. count integer (one of: OK) Total posts in this batch. Example: 25 . posts array of object (one of: OK) The posts of this batch. Empty when there are none. posts[].id string (one of: OK) This is the postId (the mediaId of the post). Use it with All Comments, Create Comment, Toggle Comments and Delete Post. Example: 17895695668004550 . posts[].caption string (one of: OK) The body of the post. posts[].media type string (one of: OK) The kind of media — IMAGE / VIDEO / CAROUSEL ALBUM. One of: IMAGE — An image; VIDEO — A video (a reel, or a video story); CAROUSEL ALBUM — A carousel — its items are in children . posts[].media product type string (one of: OK) Where the post appears — FEED / REELS / STORY. One of: FEED — A regular post in the feed; REELS — A reel; STORY — A story. posts[].media url string (one of: OK) Link to the media. posts[].permalink string (one of: OK) Link directly to the post. posts[].thumbnail url string (one of: OK) Thumbnail image link (only for videos). posts[].created time integer (one of: OK) The post create time. UNIX UTC timestamp (int seconds). Example: 1783596120 . posts[].like count integer (one of: OK) The total likes of the post. posts[].comments count integer (one of: OK) The total amount of comments this post has (int). For getting the actual comments, use the All Comments (getComments) API endpoint. posts[].is comment enabled boolean (one of: OK) true or false : whether comments are enabled on the post. posts[].children object (one of: OK) List of media URLs for carousel items ( media type = CAROUSEL ALBUM): each item in data has its own id , media type , media url , and thumbnail url for a video. posts[].children.data array of object (one of: OK) The carousel items, in their order in the carousel. posts[].children.data[].id string (one of: OK) The media ID of the carousel item. posts[].children.data[].media type string (one of: OK) The kind of the carousel item. One of: IMAGE — The item is an image; VIDEO — The item is a video (with its thumbnail url ). posts[].children.data[].media url string (one of: OK) Link to the media of the carousel item. posts[].children.data[].thumbnail url string (one of: OK) Thumbnail image link (only for videos). paging object (one of: OK) Key that contains two values: after , which represents the parameter to send if you wish to get the next batch, and hasNext , which is true if you have more data to load, or false if this is the last data. paging.after string (one of: OK) The parameter to send (as after ) if you wish to get the next batch. Empty when there is nothing after this batch. paging.hasNext boolean (one of: OK) true if you have more data to load, or false if this is the last data. reason integer (one of: OK) 1 — not FAIL, the status is OK. One of: 1 . status string (one of: OK — one post) OK or FAIL. OK — the request succeeded, and the post is in post . One of: OK . from string (one of: OK — one post) Your ID for the service. Example: 463745743546345 . post object (one of: OK — one post) The post, with the same fields as an item of posts . post.id string (one of: OK — one post) This is the postId (the mediaId of the post). Example: 17895695668004550 . post.caption string (one of: OK — one post) The body of the post. post.media type string (one of: OK — one post) The kind of media — IMAGE / VIDEO / CAROUSEL ALBUM. One of: IMAGE — An image; VIDEO — A video (a reel, or a video story); CAROUSEL ALBUM — A carousel — its items are in children . post.media product type string (one of: OK — one post) Where the post appears — FEED / REELS / STORY. One of: FEED — A regular post in the feed; REELS — A reel; STORY — A story. post.media url string (one of: OK — one post) Link to the media. post.permalink string (one of: OK — one post) Link directly to the post. post.thumbnail url string (one of: OK — one post) Thumbnail image link (only for videos). post.created time integer (one of: OK — one post) The post create time. UNIX UTC timestamp (int seconds). Example: 1783596120 . post.like count integer (one of: OK — one post) The total likes of the post. post.comments count integer (one of: OK — one post) The total amount of comments this post has (int). post.is comment enabled boolean (one of: OK — one post) true or false : whether comments are enabled on the post. post.children object (one of: OK — one post) List of media URLs for carousel items ( media type = CAROUSEL ALBUM): each item in data has its own id , media type , media url , and thumbnail url for a video. post.children.data array of object (one of: OK — one post) The carousel items, in their order in the carousel. post.children.data[].id string (one of: OK — one post) The media ID of the carousel item. post.children.data[].media type string (one of: OK — one post) The kind of the carousel item. One of: IMAGE — The item is an image; VIDEO — The item is a video (with its thumbnail url ). post.children.data[].media url string (one of: OK — one post) Link to the media of the carousel item. post.children.data[].thumbnail url string (one of: OK — one post) Thumbnail image link (only for videos). reason integer (one of: OK — one post) 1 — not FAIL, the status is OK. One of: 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint); 7 — Onboarding is still in progress, or the connection was disabled (the connection is not active); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The postId ( mediaId ) is invalid or wrong: the post was not found, or it is not accessible; 15 — The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Included only when Meta rejected the request (reasons 10 and up). Example: 463745743546345 . Example: OK A batch of posts — an image and a carousel — with more to load. { \"status\": \"OK\", \"from\": \"463745743546345\", \"type\": \"media\", \"count\": 2, \"posts\": [ { \"id\": \"17895695668004550\", \"caption\": \"Hello fans!\", \"media type\": \"IMAGE\", \"media product type\": \"FEED\", \"media url\": \"https://scontent.cdninstagram.com/v/example-image.jpg\", \"permalink\": \"https://www.instagram.com/p/C8xYz12AbCd/\", \"like count\": 10, \"comments count\": 3, \"is comment enabled\": true, \"created time\": 1783596120 }, { \"id\": \"17912345678904321\", \"caption\": \"Swipe to see both colors\", \"media type\": \"CAROUSEL ALBUM\", \"media product type\": \"FEED\", \"media url\": \"https://scontent.cdninstagram.com/v/example-first-item.jpg\", \"permalink\": \"https://www.instagram.com/p/C8wXy34BcDe/\", \"like count\": 42, \"comments count\": 7, \"is comment enabled\": true, \"children\": { \"data\": [ { \"id\": \"17998877665544332\", \"media type\": \"IMAGE\", \"media url\": \"https://scontent.cdninstagram.com/v/example-first-item.jpg\" }, { \"id\": \"17998877665544333\", \"media type\": \"VIDEO\", \"media url\": \"https://scontent.cdninstagram.com/v/example-second-item.mp4\", \"thumbnail url\": \"https://scontent.cdninstagram.com/v/example-second-item-thumb.jpg\" } ] }, \"created time\": 1783509720 } ], \"paging\": { \"after\": \"QVFIUmF4YWJjZGVmZ2hpams\", \"hasNext\": true }, \"reason\": 1 } Example: Stories The stories that are live right now — a smaller set of fields. { \"status\": \"OK\", \"from\": \"463745743546345\", \"type\": \"stories\", \"count\": 1, \"posts\": [ { \"id\": \"17923456789012345\", \"media type\": \"IMAGE\", \"media url\": \"https://scontent.cdninstagram.com/v/example-story.jpg\", \"permalink\": \"https://www.instagram.com/stories/example shop/3412345678901234567/\", \"created time\": 1783599720 } ], \"paging\": { \"after\": \"QVFIUnN0b3JpZXNhYmNkZWY\", \"hasNext\": false }, \"reason\": 1 } Example: One post With mediaId , the post comes back in post . { \"status\": \"OK\", \"from\": \"463745743546345\", \"post\": { \"id\": \"17895695668004550\", \"caption\": \"Hello fans!\", \"media type\": \"VIDEO\", \"media product type\": \"REELS\", \"media url\": \"https://scontent.cdninstagram.com/v/example-reel.mp4\", \"permalink\": \"https://www.instagram.com/reel/C8xYz12AbCd/\", \"thumbnail url\": \"https://scontent.cdninstagram.com/v/example-reel-thumb.jpg\", \"like count\": 10, \"comments count\": 3, \"is comment enabled\": true, \"created time\": 1783596120 }, \"reason\": 1 } Example: Reason 3 Wrong apiKey. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 13 The post was not found, or it is not accessible. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/instagram-create-post",
      "title": "Create Post",
      "url": "https://docs.99digital.co.il/facebook-api/instagram-pages/create-post",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/instagram-pages/create-post.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Instagram Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to create a post on your Instagram page.",
      "endpoint": {
        "method": "POST",
        "path": "/instagram/page/createPost",
        "url": "https://api.99digital.co.il/instagram/page/createPost"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Image",
        "Example: Reel",
        "Example: Video",
        "Example: Story",
        "Example: Carousel",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — carousel",
        "Example: Reason 5",
        "Example: Reason 8",
        "Example: Reason 15",
        "Example: Reason 16",
        "Example: Reason 17"
      ],
      "keywords": [
        "instagramCreatePost",
        "instagram",
        "page",
        "createPost",
        "from",
        "mediaType",
        "links",
        "caption",
        "shareToFeed",
        "status",
        "timestamp",
        "url",
        "items",
        "mediaId",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/instagram/page/createPost This endpoint allows you to create a post on your Instagram page. Here you have one endpoint for all media types. All media must be public HTTPS URLs (Meta will try to download them), JPEG images only, maximum of 8 MB. Settings : Setting Value URL https://api.99digital.co.il/instagram/page/createPost Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 mediaType Can be any of the following: image - for creating a post with only an image. reel - for creating a reel. video - for creating a video (Instagram publishes every single video as a reel, so it is the same as reel, and the response's mediaType is reel). story - for creating a story. carousel - for creating carousel images/videos. If you leave it out, it is taken from \"links\": two links or more make a carousel, one video link (mp4/mov/webm/avi) a reel, and any other link an image. A story is created only when you set mediaType to story no image links Array of public HTTPS links, depending on the \"mediaType\" you provided. image - provide 1 link only (JPEG). reel - provide 1 video link only (mp4/mov/webm/avi), up to 90 seconds. video - provide 1 video link only (mp4/mov/webm/avi). story - 1 link of either an image or a video (a story lives 24 hours). carousel - minimum 2 links, maximum 10. An image and video combination is possible yes [\"https://example.com/image.jpg\",\"https://example.com/image2.jpg\"] caption A string text that comes with the image/reel/video/carousel. Up to 2,200 characters, up to 30 #hashtags, up to 20 @mentions. No Markdown, no HTML. Does not work for the 'story' mediaType no Here is my video title shareToFeed int. Relevant for reels only. 1 - show in the main feed grid. 0 - show in the Reels tab only no 1 Response : { \"status\": \"OK\", \"mediaType\": \"image\", \"caption\": \"your message\", \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"mediaId\": \"52342352345\", \"url\": \"https://example.com/image.jpg\", \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL mediaType The mediaType you chose (or the one taken from \"links\"; video comes back as reel) caption The caption text you provided (left out when you sent none, and for a story) timestamp Time stamp of the message from Your ID for the service url For a single URL mediaType, this will show the URL provided items Total items provided (relevant for the carousel mediaType, instead of url) mediaId The published media ID. This is relevant for Toggle Comments (toggleComments), Delete Post (deletePost), Create Comment (createComment), sendMediaShare and All Comments (getComments) reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 5 Missing or invalid content: 'links' is missing or empty, or one of the links is not https:// 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) 7 Onboarding is still in progress, or the connection was disabled (the connection is not active) 8 Wrong mediaType, the wrong number of links for the mediaType, or a caption longer than 2,200 characters 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 15 The content you posted was rejected by Meta, or bad media / format / size (for example, an image that is not JPEG, or a video Meta could not process). It could also indicate a policy violation inside the content. Don't retry the same file 16 You reached Instagram's daily publishing limit (100 posts in 24 hours). Try again later 17 Meta is still processing the video. Nothing was published: send the same request again in a minute 18 General error / wrong information / unknown error. Please check all the payload again and try again Remarks : In a story or a carousel, a link that ends with .mp4 , .mov , .webm or .avi is published as a video, and any other link as an image. The response comes once the post is published. A video is processed by Meta first, so a reel, a video story or a carousel with videos can take a minute or more: set your HTTP timeout accordingly. If Meta is still processing the video after about 90 seconds, you get reason 17: nothing was published, so send the same request again in a minute. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . mediaType string No The kind of post. Can be any of the following: image , reel , video , story or carousel . If you leave it out, it is taken from links : two links or more make a carousel, one video link (mp4/mov/webm/avi) a reel, and any other link an image. A story is created only when you set mediaType to story . One of: image — For creating a post with only an image; reel — For creating a reel; video — For creating a video — Instagram publishes every single video as a reel, so it is the same as reel , and the response's mediaType is reel ; story — For creating a story (a story lives 24 hours); carousel — For creating carousel images/videos (2 to 10 items). Example: image . links array of string Yes Array of public HTTPS links (Meta will try to download them), depending on the mediaType you provided: - image — 1 link only (JPEG). - reel — 1 video link only (mp4/mov/webm/avi), up to 90 seconds. - video — 1 video link only (mp4/mov/webm/avi). - story — 1 link of either an image or a video (a story lives 24 hours). - carousel — minimum 2 links, maximum 10. An image and video combination is possible. Images must be JPEG, maximum of 8 MB. Min items: 1. Max items: 10. caption string No A string text that comes with the image / reel / video / carousel. Up to 2,200 characters, up to 30 #hashtags and up to 20 @mentions. No Markdown, no HTML. Does not work for the story mediaType. Max length: 2200. Example: Here is my video title . shareToFeed integer No Int. Relevant for reels only. One of: 0 — Show in the Reels tab only; 1 — Show in the main feed grid (as well as in the Reels tab). Example: 1 . Example: Image A post with one JPEG image and a caption. { \"from\": \"463745743546345\", \"mediaType\": \"image\", \"links\": [ \"https://example.com/image.jpg\" ], \"caption\": \"Our new collection is here\" } Example: Reel A reel from one video link, shown in the main feed grid as well. { \"from\": \"463745743546345\", \"mediaType\": \"reel\", \"links\": [ \"https://example.com/video.mp4\" ], \"caption\": \"Here is my video title\", \"shareToFeed\": 1 } Example: Video A video — Instagram publishes it as a reel, exactly like reel . { \"from\": \"463745743546345\", \"mediaType\": \"video\", \"links\": [ \"https://example.com/video.mp4\" ], \"caption\": \"Here is my video title\" } Example: Story A story from one image or video link. It lives 24 hours, without a caption. { \"from\": \"463745743546345\", \"mediaType\": \"story\", \"links\": [ \"https://example.com/story.jpg\" ] } Example: Carousel A carousel of 2 to 10 links — here two images and a video. { \"from\": \"463745743546345\", \"mediaType\": \"carousel\", \"links\": [ \"https://example.com/image.jpg\", \"https://example.com/image2.jpg\", \"https://example.com/video.mp4\" ], \"caption\": \"Swipe to see the whole collection\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the post was published. Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . mediaType string (one of: OK) The mediaType you chose, or the one taken from links . video comes back as reel . One of: image — A post with only an image; reel — A reel (also for video ); story — A story; carousel — A carousel of images/videos. url string (one of: OK) For a single URL mediaType ( image , reel , video , story ), this will show the URL provided. Not in a carousel's response. Example: https://example.com/image.jpg . items integer (one of: OK) Total items provided (relevant for the carousel mediaType) — in a carousel's response only, instead of url . Example: 3 . caption string (one of: OK) The caption text you provided. Left out when you sent none, and for a story (stories publish no caption). mediaId string (one of: OK) The published media ID. This is relevant for toggleComments, deletePost, createComment, sendMediaShare and getComments. Example: 17895695668004550 . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 5 — Missing or invalid content: 'links' is missing or empty, or one of the links is not https://; 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint); 7 — Onboarding is still in progress, or the connection was disabled (the connection is not active); 8 — Wrong mediaType, the wrong number of links for the mediaType, or a caption longer than 2,200 characters; 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 15 — The content you posted was rejected by Meta, or bad media / format / size (for example, an image that is not JPEG, or a video Meta could not process). It could also indicate a policy violation inside the content. Don't retry the same file; 16 — You reached Instagram's daily publishing limit (100 posts in 24 hours). Try again later; 17 — Meta is still processing the video. Nothing was published — send the same request again in a minute; 18 — General error / wrong information / unknown error. Please check all the payload again and try again. from string (one of: FAIL) Your ID for the service. Included only when Meta rejected the request (reasons 10 and up). Example: 463745743546345 . Example: OK The image was published. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"mediaType\": \"image\", \"url\": \"https://example.com/image.jpg\", \"mediaId\": \"17895695668004550\", \"caption\": \"Our new collection is here\" } Example: OK — carousel A carousel's response has items (the number of links) instead of url . { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"mediaType\": \"carousel\", \"items\": 3, \"mediaId\": \"17895695668004551\", \"caption\": \"Swipe to see the whole collection\" } Example: Reason 5 'links' is missing or empty, or a link is not https://. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 8 Wrong mediaType, the wrong number of links, or a caption that is too long. { \"status\": \"FAIL\", \"reason\": 8 } Example: Reason 15 Meta rejected the media — for example, an image that is not JPEG. { \"status\": \"FAIL\", \"reason\": 15, \"from\": \"463745743546345\" } Example: Reason 16 The daily publishing limit (100 posts in 24 hours) is reached. { \"status\": \"FAIL\", \"reason\": 16, \"from\": \"463745743546345\" } Example: Reason 17 The video is still processing at Meta. Nothing was published; send the request again in a minute. { \"status\": \"FAIL\", \"reason\": 17, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/instagram-delete-post",
      "title": "Delete Post",
      "url": "https://docs.99digital.co.il/facebook-api/instagram-pages/delete-post",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/instagram-pages/delete-post.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Instagram Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to delete a post you previously created (using our API or directly on Instagram).",
      "endpoint": {
        "method": "POST",
        "path": "/instagram/page/deletePost",
        "url": "https://api.99digital.co.il/instagram/page/deletePost"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "Example: Reason 13"
      ],
      "keywords": [
        "instagramDeletePost",
        "instagram",
        "page",
        "deletePost",
        "from",
        "mediaId",
        "status",
        "timestamp",
        "deleted",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/instagram/page/deletePost This endpoint allows you to delete a post you previously created (using our API or directly on Instagram). This is a permanent action and can't be undone. Settings : Setting Value URL https://api.99digital.co.il/instagram/page/deletePost Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 mediaId The media ID you wish to delete: the mediaId you received from Create Post, or the post's id in All Posts yes 15625364215 56994166514 Response : { \"status\": \"OK\", \"mediaId\": \"15234562345623 952362434423178\", \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"reason\": 1, \"deleted\": true } Response-Explain : Parameter Description status OK or FAIL mediaId The media ID of the post that you deleted timestamp Time stamp of the message from Your ID for the service deleted true if the delete was successful. A delete that fails answers with status FAIL and a reason instead, so in an OK response it is always true reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) 7 Onboarding is still in progress, or the connection was disabled (the connection is not active) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The mediaId you provided is invalid or wrong: the post was not found, or it is not accessible 18 General error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . mediaId string Yes The media ID you wish to delete: the mediaId you received from Create Post, or the post's id in All Posts. Example: 17895695668004550 . Example (generated from the schema) { \"from\": \"463745743546345\", \"mediaId\": \"17895695668004550\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the post was deleted. Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . mediaId string (one of: OK) The media ID of the post that you deleted. Example: 17895695668004550 . deleted boolean (one of: OK) true if the delete was successful. A delete that fails answers with status FAIL and a reason instead, so in an OK response it is always true . Always true . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint); 7 — Onboarding is still in progress, or the connection was disabled (the connection is not active); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The mediaId you provided is invalid or wrong: the post was not found, or it is not accessible; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Included only when Meta rejected the request (reasons 10 and up). Example: 463745743546345 . Example: OK The post was deleted. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"mediaId\": \"17895695668004550\", \"deleted\": true } Example: Reason 3 Wrong apiKey. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 13 The post was not found, or it is not accessible. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/instagram-all-comments",
      "title": "All Comments",
      "url": "https://docs.99digital.co.il/facebook-api/instagram-pages/all-comments",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/instagram-pages/all-comments.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Instagram Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to see all the comments of a post or a comment in your page (comments that were created by the API or directly on Instagram).",
      "endpoint": {
        "method": "POST",
        "path": "/instagram/page/getComments",
        "url": "https://api.99digital.co.il/instagram/page/getComments"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Comments of a post",
        "Example: Replies to a comment",
        "Example: Next batch",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Replies",
        "Example: No comments",
        "Example: Reason 13"
      ],
      "keywords": [
        "instagramAllComments",
        "instagram",
        "page",
        "getComments",
        "from",
        "mediaId",
        "commentId",
        "limit",
        "after",
        "status",
        "target",
        "count",
        "comments",
        "id",
        "text",
        "username",
        "created_time",
        "like_count",
        "hidden",
        "parent_id",
        "paging",
        "hasNext",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/instagram/page/getComments This endpoint allows you to see all the comments of a post or a comment in your page (comments that were created by the API or directly on Instagram). Settings : Setting Value URL https://api.99digital.co.il/instagram/page/getComments Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 mediaId The post ID (media ID) you want to get the comments from no\\ 15625364215 56994166514 commentId The comment ID you wish to get all the comments inside it (its replies) no\\ 634645636423 5675674565 limit How many comments to get (limit pagination), between 1 and 100. Default if not provided: 25 no 25 after If you are using limit paging, you can provide the \"after\" value from the previous response to load the next batch no U56WDF34FA4TER3DA..... \\ Either mediaId or commentId is required, not both. If you send both, the commentId is used. Response : { \"status\": \"OK\", \"from\": \"463745743546345\", \"target\": \"15625364215 56994166514\", \"count\": 25, \"comments\": [{ \"id\": \"119324881085321 122093459712345\", \"text\": \"Hello fans!\", \"username\": \"some user\", \"from\": { \"id\": \"1234567890\", \"username\": \"some user\" }, \"created time\": 1783596120, \"like count\": 3, \"hidden\": false, \"parent id\": \"634532636346\" }], \"paging\": { \"after\": \"QVFIU...\", \"hasNext\": true }, \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL count Total comments in this batch target The mediaId or commentId you provided (the commentId, if you sent both) from Your ID for the service comments and paging : Value Information id This is the commentId text The body of the comment username The username of the person that wrote the comment from id, username of the comment creator created time Comment create time. UNIX UTC timestamp (int seconds) like count The total likes this comment has hidden true - the comment is hidden in the page. false - this comment is live on Instagram parent id The parent comment id (in case this is a comment to a comment). It is part of a reply only (when you send commentId) paging Key that contains two values: \"after\", which represents the parameter to send if you wish to get the next batch, and \"hasNext\", which is true if you have more data to load, or false if this is the last data reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) 7 Onboarding is still in progress, or the connection was disabled (the connection is not active) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The mediaId or commentId is invalid or wrong: the post or comment was not found, or it is not accessible 18 General error, try again Remarks : Each comment's id is the commentId for Create Comment, Hide Comment, Delete Comment and Private Reply. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . mediaId string No The post ID (media ID) you want to get the comments from. Either mediaId or commentId is required, not both. Example: 17895695668004550 . commentId string No The comment ID you wish to get all the comments inside it (its replies). Either mediaId or commentId is required, not both; if you send both, commentId is used. Example: 17870913679156914 . limit integer No How many comments to get (limit pagination), between 1 and 100. Default if not provided: 25. Default: 25 . Minimum: 1. Maximum: 100. Example: 25 . after string No If you are using limit paging, you can provide the after value from the previous response ( paging.after ) to load the next batch. Example: QVFIUmF4YWJjZGVmZ2hpams . Example: Comments of a post The comments of a post, by its mediaId . { \"from\": \"463745743546345\", \"mediaId\": \"17895695668004550\" } Example: Replies to a comment The comments inside a comment (its replies), by its commentId . { \"from\": \"463745743546345\", \"commentId\": \"17870913679156914\" } Example: Next batch The next 25 comments, with the paging.after value of the previous response. { \"from\": \"463745743546345\", \"mediaId\": \"17895695668004550\", \"limit\": 25, \"after\": \"QVFIUmF4YWJjZGVmZ2hpams\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the request succeeded, and the comments of this batch are in comments . Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . target string (one of: OK) The mediaId or commentId you provided (the commentId, if you sent both). Example: 17895695668004550 . count integer (one of: OK) Total comments in this batch. Example: 25 . comments array of object (one of: OK) The comments of this batch. Empty when there are none. comments[].id string (one of: OK) This is the commentId. Use it with Create Comment, Hide Comment, Delete Comment and Private Reply. Example: 17870913679156914 . comments[].text string (one of: OK) The body (text) of the comment. comments[].username string (one of: OK) The username of the person that wrote the comment. comments[].from object (one of: OK) The id and username of the comment creator. comments[].from.id string (one of: OK) The ID of the comment creator. comments[].from.username string (one of: OK) The username of the comment creator. comments[].created time integer (one of: OK) Comment create time. UNIX UTC timestamp (int seconds). Example: 1783596120 . comments[].like count integer (one of: OK) The total likes this comment has. comments[].hidden boolean (one of: OK) true — the comment is hidden in the page. false — this comment is live on Instagram. comments[].parent id string (one of: OK) The parent comment id (in case this is a comment to a comment). It is part of a reply only (when you send commentId ). paging object (one of: OK) Key that contains two values: after , which represents the parameter to send if you wish to get the next batch, and hasNext , which is true if you have more data to load, or false if this is the last data. paging.after string (one of: OK) The parameter to send (as after ) if you wish to get the next batch. Empty when there is nothing after this batch. paging.hasNext boolean (one of: OK) true if you have more data to load, or false if this is the last data. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint); 7 — Onboarding is still in progress, or the connection was disabled (the connection is not active); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The mediaId or commentId is invalid or wrong: the post or comment was not found, or it is not accessible; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Included only when Meta rejected the request (reasons 10 and up). Example: 463745743546345 . Example: OK The comments of a post, with more to load. { \"status\": \"OK\", \"from\": \"463745743546345\", \"target\": \"17895695668004550\", \"count\": 2, \"comments\": [ { \"id\": \"17870913679156914\", \"text\": \"Hello fans!\", \"username\": \"some user\", \"from\": { \"id\": \"1234567890\", \"username\": \"some user\" }, \"like count\": 3, \"hidden\": false, \"created time\": 1783596120 }, { \"id\": \"17870913679156999\", \"text\": \"Is this available in blue?\", \"username\": \"another user\", \"from\": { \"id\": \"1234567891\", \"username\": \"another user\" }, \"like count\": 0, \"hidden\": false, \"created time\": 1783592520 } ], \"paging\": { \"after\": \"QVFIUmF4YWJjZGVmZ2hpams\", \"hasNext\": true }, \"reason\": 1 } Example: Replies The replies to a comment — each with its parent id . { \"status\": \"OK\", \"from\": \"463745743546345\", \"target\": \"17870913679156914\", \"count\": 1, \"comments\": [ { \"id\": \"17870913679157777\", \"text\": \"Thank you for the comment!\", \"username\": \"my business\", \"from\": { \"id\": \"17841400000000000\", \"username\": \"my business\" }, \"like count\": 1, \"hidden\": false, \"parent id\": \"17870913679156914\", \"created time\": 1783599720 } ], \"paging\": { \"after\": \"QVFIUmVwbGllc2FiY2RlZg\", \"hasNext\": false }, \"reason\": 1 } Example: No comments Nothing to show. { \"status\": \"OK\", \"from\": \"463745743546345\", \"target\": \"17895695668004550\", \"count\": 0, \"comments\": [], \"paging\": { \"after\": \"\", \"hasNext\": false }, \"reason\": 1 } Example: Reason 13 The post or comment was not found, or it is not accessible. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/instagram-create-comment",
      "title": "Create Comment",
      "url": "https://docs.99digital.co.il/facebook-api/instagram-pages/create-comment",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/instagram-pages/create-comment.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Instagram Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to create a comment on an existing post.",
      "endpoint": {
        "method": "POST",
        "path": "/instagram/page/createComment",
        "url": "https://api.99digital.co.il/instagram/page/createComment"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Top level comment",
        "Example: Reply comment",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — reply comment",
        "Example: Reason 4",
        "Example: Reason 5",
        "Example: Reason 8",
        "Example: Reason 13"
      ],
      "keywords": [
        "instagramCreateComment",
        "instagram",
        "page",
        "createComment",
        "from",
        "mediaId",
        "commentId",
        "body",
        "status",
        "timestamp",
        "target",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/instagram/page/createComment This endpoint allows you to create a comment on an existing post. You can either comment on the post itself (it is called \"top level comment\") or comment on a comment (it is called \"reply comment\"). Settings : Setting Value URL https://api.99digital.co.il/instagram/page/createComment Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 mediaId The media ID you wish to comment on (if top level comment) no\\ 15625364215 56994166514 commentId The comment ID you wish to comment on (if reply comment) no\\ 652346734563 3463234623 body The body of the comment. It can have plain text only and \\n for a line break. Maximum 2,200 characters yes Thank you for the comment! \\ You need to provide either the mediaId or the commentId, not both. If both are provided, the system will use the commentId (reply comment). Response : { \"status\": \"OK\", \"commentId\": \"15234562345623 952362434423178\", \"target\": \"15234562345623 425235245346\", \"body\": \"Thank you for the comment!\", \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL target The original mediaId or commentId provided in the request (the commentId, if you sent both) commentId The new commentId created. You can use it to reply to the comment timestamp Time stamp of the message from Your ID for the service body The comment you wrote reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 4 mediaId or commentId is missing (or is not a valid ID) 5 Missing or invalid content: the 'body' is missing or empty 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) 7 Onboarding is still in progress, or the connection was disabled (the connection is not active) 8 The \"body\" is more than 2,200 characters long 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The mediaId or commentId is invalid or wrong: the post or comment was not found, or it is not accessible 15 The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content 18 General error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . mediaId string No The media ID you wish to comment on (if top level comment). You need to provide either the mediaId or the commentId , not both. Example: 17895695668004550 . commentId string No The comment ID you wish to comment on (if reply comment). You need to provide either the mediaId or the commentId , not both; if both are provided, the system uses the commentId . Example: 17870913679156914 . body string Yes The body of the comment. It can have plain text only and \\n for a line break. Maximum 2,200 characters. Max length: 2200. Example: Thank you for the comment! . Example: Top level comment A comment on the post itself, by its mediaId . { \"from\": \"463745743546345\", \"mediaId\": \"17895695668004550\", \"body\": \"Thank you for the comment!\" } Example: Reply comment A comment on a comment, by its commentId . { \"from\": \"463745743546345\", \"commentId\": \"17870913679156914\", \"body\": \"Thank you for the comment!\\nWe will send you the details soon.\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the comment was created. Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . target string (one of: OK) The original mediaId or commentId provided in the request (the commentId, if you sent both). Example: 17895695668004550 . commentId string (one of: OK) The new commentId created. You can use it to reply to the comment. Example: 17870913679157777 . body string (one of: OK) The comment you wrote. Example: Thank you for the comment! . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 4 — 'mediaId' or 'commentId' is missing (or is not a valid ID); 5 — Missing or invalid content — the 'body' is missing or empty; 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint); 7 — Onboarding is still in progress, or the connection was disabled (the connection is not active); 8 — The 'body' is more than 2,200 characters long; 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The mediaId or commentId is invalid or wrong: the post or comment was not found, or it is not accessible; 15 — The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Included only when Meta rejected the request (reasons 10 and up). Example: 463745743546345 . Example: OK The top level comment was created. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"target\": \"17895695668004550\", \"commentId\": \"17870913679157777\", \"body\": \"Thank you for the comment!\" } Example: OK — reply comment The reply was created; target is the comment you replied to. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"target\": \"17870913679156914\", \"commentId\": \"17870913679158888\", \"body\": \"Thank you for the comment!\\nWe will send you the details soon.\" } Example: Reason 4 'mediaId' or 'commentId' is missing. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 5 'body' is missing or empty. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 8 'body' is more than 2,200 characters long. { \"status\": \"FAIL\", \"reason\": 8 } Example: Reason 13 The post or comment was not found, or it is not accessible. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/instagram-delete-comment",
      "title": "Delete Comment",
      "url": "https://docs.99digital.co.il/facebook-api/instagram-pages/delete-comment",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/instagram-pages/delete-comment.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Instagram Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to delete a comment on your posts, either written by you or by anyone else.",
      "endpoint": {
        "method": "POST",
        "path": "/instagram/page/deleteComment",
        "url": "https://api.99digital.co.il/instagram/page/deleteComment"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 3",
        "Example: Reason 13"
      ],
      "keywords": [
        "instagramDeleteComment",
        "instagram",
        "page",
        "deleteComment",
        "from",
        "commentId",
        "status",
        "timestamp",
        "deleted",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/instagram/page/deleteComment This endpoint allows you to delete a comment on your posts, either written by you or by anyone else. This is a permanent action and can't be undone. To take a comment out of public view without deleting it, use Hide Comment. Settings : Setting Value URL https://api.99digital.co.il/instagram/page/deleteComment Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 commentId The comment ID you wish to delete (the id of the comment in All Comments) yes 15625364215 56994166514 Response : { \"status\": \"OK\", \"commentId\": \"15234562345623 952362434423178\", \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"reason\": 1, \"deleted\": true } Response-Explain : Parameter Description status OK or FAIL commentId The comment ID that you deleted timestamp Time stamp of the message from Your ID for the service deleted true if the delete was successful. A delete that fails answers with status FAIL and a reason instead, so in an OK response it is always true reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) 7 Onboarding is still in progress, or the connection was disabled (the connection is not active) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The commentId you provided is invalid or wrong: the comment was not found, or it is not accessible 18 General error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . commentId string Yes The comment ID you wish to delete (the id of the comment in All Comments). It can be a comment written by you or by anyone else. Example: 17870913679156914 . Example (generated from the schema) { \"from\": \"463745743546345\", \"commentId\": \"17870913679156914\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the comment was deleted. Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . commentId string (one of: OK) The comment ID that you deleted. Example: 17870913679156914 . deleted boolean (one of: OK) true if the delete was successful. A delete that fails answers with status FAIL and a reason instead, so in an OK response it is always true . Always true . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint); 7 — Onboarding is still in progress, or the connection was disabled (the connection is not active); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The commentId you provided is invalid or wrong: the comment was not found, or it is not accessible; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Included only when Meta rejected the request (reasons 10 and up). Example: 463745743546345 . Example: OK The comment was deleted. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"commentId\": \"17870913679156914\", \"deleted\": true } Example: Reason 3 Wrong apiKey. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 13 The comment was not found, or it is not accessible. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/instagram-toggle-comments",
      "title": "Toggle Comments",
      "url": "https://docs.99digital.co.il/facebook-api/instagram-pages/toggle-comments",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/instagram-pages/toggle-comments.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Instagram Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to enable or disable comments on an Instagram post.",
      "endpoint": {
        "method": "POST",
        "path": "/instagram/page/toggleComments",
        "url": "https://api.99digital.co.il/instagram/page/toggleComments"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Disable comments",
        "Example: Enable comments",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — enabled",
        "Example: Reason 3",
        "Example: Reason 13"
      ],
      "keywords": [
        "instagramToggleComments",
        "instagram",
        "page",
        "toggleComments",
        "from",
        "mediaId",
        "enabled",
        "status",
        "timestamp",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/instagram/page/toggleComments This endpoint allows you to enable or disable comments on an Instagram post. Settings : Setting Value URL https://api.99digital.co.il/instagram/page/toggleComments Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 mediaId The media ID you wish to do the action on: the mediaId you received from Create Post, or the post's id in All Posts yes 15625364215 56994166514 enabled 1 for allow comments. 0 for disable comments. If you leave it out, comments are allowed. true / false work too, as a number or a string; any other value returns reason 8 no (default 1) 1 Response : { \"status\": \"OK\", \"mediaId\": \"15234562345623 952362434423178\", \"enabled\": true, \"timestamp\": 1600115719, \"from\": \"463745743546345\", \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL mediaId The media ID of the post you changed timestamp Time stamp of the message from Your ID for the service enabled true if comments are now allowed on the post. false if they are disabled reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) 7 Onboarding is still in progress, or the connection was disabled (the connection is not active) 8 'enabled' is not 1 or 0 (or true / false) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The media ID you provided is invalid or wrong: the post was not found, or it is not accessible 18 General error / wrong information or bad payload. Please check the payload again and try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . mediaId string Yes The media ID you wish to do the action on — the mediaId you received from Create Post, or the post's id in All Posts. Example: 17895695668004550 . enabled integer No Whether people can comment on the post: 1 for allow comments, 0 for disable comments. If you leave it out, comments are allowed. true / false work too, as a number or a string; any other value returns reason 8. One of: 0 — Disable comments — nobody can comment on the post; 1 — Allow comments — people can comment on the post. Default: 1 . Example: Disable comments Nobody can comment on the post. { \"from\": \"463745743546345\", \"mediaId\": \"17895695668004550\", \"enabled\": 0 } Example: Enable comments People can comment on the post again. { \"from\": \"463745743546345\", \"mediaId\": \"17895695668004550\", \"enabled\": 1 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the change was made. Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . mediaId string (one of: OK) The media ID of the post you changed. Example: 17895695668004550 . enabled boolean (one of: OK) true if comments are now allowed on the post. false if they are disabled. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint); 7 — Onboarding is still in progress, or the connection was disabled (the connection is not active); 8 — 'enabled' is not 1 or 0 (or true / false); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The media ID you provided is invalid or wrong: the post was not found, or it is not accessible; 18 — General error / wrong information or bad payload. Please check the payload again and try again. from string (one of: FAIL) Your ID for the service. Included only when Meta rejected the request (reasons 10 and up). Example: 463745743546345 . Example: OK Comments are disabled on the post. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"mediaId\": \"17895695668004550\", \"enabled\": false } Example: OK — enabled Comments are allowed on the post again. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"mediaId\": \"17895695668004550\", \"enabled\": true } Example: Reason 3 Wrong apiKey. { \"status\": \"FAIL\", \"reason\": 3 } Example: Reason 13 The post was not found, or it is not accessible. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/instagram-hide-comment",
      "title": "Hide Comment",
      "url": "https://docs.99digital.co.il/facebook-api/instagram-pages/hide-comment",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/instagram-pages/hide-comment.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Instagram Pages"
      ],
      "language": "en",
      "description": "Hide a comment allows you to make a comment hidden (or back to visible) from the public, so it stays visible only to the writer of the comment, their friends and the admin of the page.",
      "endpoint": {
        "method": "POST",
        "path": "/instagram/page/hideComment",
        "url": "https://api.99digital.co.il/instagram/page/hideComment"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example: Hide",
        "Example: Unhide",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: OK — unhidden",
        "Example: Reason 4",
        "Example: Reason 10"
      ],
      "keywords": [
        "instagramHideComment",
        "instagram",
        "page",
        "hideComment",
        "from",
        "commentId",
        "hide",
        "status",
        "timestamp",
        "hidden",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/instagram/page/hideComment Hide a comment allows you to make a comment hidden (or back to visible) from the public, so it stays visible only to the writer of the comment, their friends and the admin of the page. Settings : Setting Value URL https://api.99digital.co.il/instagram/page/hideComment Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 commentId The comment ID you wish to do the action on (the id of the comment in All Comments) yes 652346734563 3463234623 hide 1 - hide. 0 - unhide. If you leave it out, the comment is hidden. true / false work too, as a number or a string; any other value returns reason 8 no (default 1) 1 Response : { \"status\": \"OK\", \"commentId\": \"15234562345623 952362434423178\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"hidden\": true, \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL commentId The comment ID you did the action on (hid or unhid) from Your ID for the service timestamp Time stamp of the message hidden true if the comment was hidden. false if the comment is not hidden reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 4 commentId is invalid or wrong (missing, or not a valid comment ID) 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) 7 Onboarding is still in progress, or the connection was disabled (the connection is not active) 8 'hide' is not 1 or 0 (or true / false) 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 18 General error, try again Remarks : Hiding is reversible: send hide 0 to make the comment visible again. To remove a comment for good, use Delete Comment. Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . commentId string Yes The comment ID you wish to do the action on — the id of the comment in All Comments. Example: 17870913679156914 . hide integer No 1 - hide, 0 - unhide. If you leave it out, the comment is hidden. true / false work too, as a number or a string; any other value returns reason 8. One of: 0 — Unhide — the comment is visible to the public again; 1 — Hide — the comment stays visible only to its writer, their friends and the admin of the page. Default: 1 . Example: Hide Hide the comment from the public. { \"from\": \"463745743546345\", \"commentId\": \"17870913679156914\", \"hide\": 1 } Example: Unhide Make the comment visible to the public again. { \"from\": \"463745743546345\", \"commentId\": \"17870913679156914\", \"hide\": 0 } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the change was made. Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . commentId string (one of: OK) The comment ID you did the action on (hid or unhid). Example: 17870913679156914 . hidden boolean (one of: OK) true if the comment was hidden. false if the comment is not hidden. reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 4 — The 'commentId' is invalid or wrong (missing, or not a valid comment ID); 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint); 7 — Onboarding is still in progress, or the connection was disabled (the connection is not active); 8 — 'hide' is not 1 or 0 (or true / false); 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Included only when Meta rejected the request (reasons 10 and up). Example: 463745743546345 . Example: OK The comment is hidden. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"commentId\": \"17870913679156914\", \"hidden\": true } Example: OK — unhidden The comment is visible to the public again. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"commentId\": \"17870913679156914\", \"hidden\": false } Example: Reason 4 'commentId' is missing or is not a valid comment ID. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 10 The connection has expired — do onboarding again. { \"status\": \"FAIL\", \"reason\": 10, \"from\": \"463745743546345\" }"
    },
    {
      "id": "facebook-api/instagram-private-reply",
      "title": "Private Reply",
      "url": "https://docs.99digital.co.il/facebook-api/instagram-pages/private-reply",
      "markdown_url": "https://docs.99digital.co.il/markdown/facebook-api/instagram-pages/private-reply.md",
      "section": "Facebook API",
      "section_path": [
        "Facebook API",
        "Instagram Pages"
      ],
      "language": "en",
      "description": "This endpoint allows you to send a direct message private reply (DM) to a user that left a comment on your post.",
      "endpoint": {
        "method": "POST",
        "path": "/instagram/page/privateReply",
        "url": "https://api.99digital.co.il/instagram/page/privateReply"
      },
      "headings": [
        "Authentication",
        "Request body",
        "Example (generated from the schema)",
        "Responses",
        "200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.",
        "Example: OK",
        "Example: Reason 4",
        "Example: Reason 5",
        "Example: Reason 8",
        "Example: Reason 13"
      ],
      "keywords": [
        "instagramPrivateReply",
        "instagram",
        "page",
        "privateReply",
        "from",
        "commentId",
        "body",
        "status",
        "timestamp",
        "messageId",
        "reason"
      ],
      "content": "POST https://api.99digital.co.il/instagram/page/privateReply This endpoint allows you to send a direct message private reply (DM) to a user that left a comment on your post. You are allowed to send a one-time private reply to a person who wrote a public comment on your media post: you can only send one private reply per comment, within 7 days of when it was written. If the user replies, you can keep chatting with them during a 24-hour open session. You can reply to them directly in Instagram DM, or using the Instagram Messenger API if you connected it. Settings : Setting Value URL https://api.99digital.co.il/instagram/page/privateReply Method JSON via POST Header Your API key for the service (the apiKey header) Body : Parameter Description / Example Mandatory Example from The ID you received for the connection yes 463745743546345 commentId The comment ID that was posted on your media post, of which you wish to send the private reply to the visitor (the id of the comment in All Comments) yes 652346734563 3463234623 body The private message (DM) you want to send to the visitor that wrote the comment. 1,000 bytes maximum (UTF-8): an English letter, a digit or a space is 1 byte, a Hebrew letter 2 bytes, and an emoji usually 4 bytes yes Thank you for the comment! Here are our special deals Response : { \"status\": \"OK\", \"commentId\": \"15234562345623 425235245346\", \"from\": \"463745743546345\", \"messageId\": \"aWdfZG06MTpnaDoxMjM0NTY3ODkwOjM0\", \"body\": \"Thank you for the comment! Here are our special deals\", \"timestamp\": 1600115719, \"reason\": 1 } Response-Explain : Parameter Description status OK or FAIL commentId The original commentId provided in the request (the comment you replied to) messageId The DM message ID (the ID of the private message that was sent) timestamp Time stamp of the message from Your ID for the service body The message you wrote reason : Value Information 1 Not FAIL. The status is OK 2 Your \"from\" account does not exist (or is missing), or JSON syntax error 3 Wrong apiKey (the apiKey header is missing or wrong) 4 commentId is missing (or is not a valid comment ID) 5 Missing or invalid content: the 'body' is missing or empty 6 Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) 7 Onboarding is still in progress, or the connection was disabled (the connection is not active) 8 The \"body\" is more than 1,000 bytes long 10 You must do the onboarding again, the connection has expired 12 Rate limit error. Too many requests. Please wait a few minutes and try again 13 The commentId is invalid or wrong: the comment was not found, or it is not accessible 14 You already sent a private reply to this comment, or it is more than 7 days old. Meta allows one private reply, within 7 days 15 The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content 18 General error, try again Authentication apiKey in the header — Your API key for the service. Request body Content type: application/json (required) Field Type Required Description from string Yes The ID you received for the connection. Example: 463745743546345 . commentId string Yes The comment ID that was posted on your media post, of which you wish to send the private reply to the visitor (the id of the comment in All Comments). Example: 17870913679156914 . body string Yes The private message (DM) you want to send to the visitor that wrote the comment. 1,000 bytes maximum (UTF-8): an English letter, a digit or a space is 1 byte, a Hebrew letter 2 bytes, and an emoji usually 4 bytes. Example: Thank you for the comment! Here are our special deals. . Example (generated from the schema) { \"from\": \"463745743546345\", \"commentId\": \"17870913679156914\", \"body\": \"Thank you for the comment! Here are our special deals.\" } Responses 200 — The request was processed. Both a successful and a failed request answer with HTTP 200 — check status , and reason when it is FAIL. Content type: application/json Field Type Description status string (one of: OK) OK or FAIL. OK — the private reply was sent. Always OK . from string (one of: OK) Your ID for the service. Example: 463745743546345 . timestamp integer (one of: OK) Time stamp of the message (Unix time, in seconds). Example: 1600115719 . commentId string (one of: OK) The original commentId provided in the request (the comment you replied to). Example: 17870913679156914 . messageId string (one of: OK) The DM message ID (the ID of the private message that was sent). Example: aWdfZG06MTpnaDoxMjM0NTY3ODkwOjM0 . body string (one of: OK) The message you wrote. Example: Thank you for the comment! Here are our special deals. . reason integer (one of: OK) 1 — not FAIL, the status is OK. Always 1 . status string (one of: FAIL) FAIL — the request was not carried out. reason says why. Always FAIL . reason integer (one of: FAIL) The status explanation in case of FAIL. One of: 2 — Your \"from\" account does not exist (or is missing), or JSON syntax error; 3 — Wrong apiKey (the apiKey header is missing or wrong); 4 — The 'commentId' is missing (or is not a valid comment ID); 5 — Missing or invalid content — the 'body' is missing or empty; 6 — Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint); 7 — Onboarding is still in progress, or the connection was disabled (the connection is not active); 8 — The 'body' is more than 1,000 bytes long; 10 — You must do the onboarding again, the connection has expired; 12 — Rate limit error. Too many requests. Please wait a few minutes and try again; 13 — The commentId is invalid or wrong: the comment was not found, or it is not accessible; 14 — You already sent a private reply to this comment, or it is more than 7 days old — Meta allows one private reply, within 7 days; 15 — The content you posted was rejected by Meta, or bad media / format / size, or an invalid parameter. It could also indicate a policy violation inside the content; 18 — General error, try again. from string (one of: FAIL) Your ID for the service. Included only when Meta rejected the request (reasons 10 and up). Example: 463745743546345 . Example: OK The private reply was sent to the person who wrote the comment. { \"status\": \"OK\", \"from\": \"463745743546345\", \"timestamp\": 1600115719, \"reason\": 1, \"commentId\": \"17870913679156914\", \"messageId\": \"aWdfZG06MTpnaDoxMjM0NTY3ODkwOjM0\", \"body\": \"Thank you for the comment! Here are our special deals.\" } Example: Reason 4 'commentId' is missing or is not a valid comment ID. { \"status\": \"FAIL\", \"reason\": 4 } Example: Reason 5 'body' is missing or empty. { \"status\": \"FAIL\", \"reason\": 5 } Example: Reason 8 'body' is more than 1,000 bytes long. { \"status\": \"FAIL\", \"reason\": 8 } Example: Reason 13 The comment was not found, or it is not accessible. { \"status\": \"FAIL\", \"reason\": 13, \"from\": \"463745743546345\" }"
    },
    {
      "id": "changelog",
      "title": "Change Log",
      "url": "https://docs.99digital.co.il/changelog",
      "markdown_url": "https://docs.99digital.co.il/markdown/changelog.md",
      "section": "Change Log",
      "section_path": [
        "Change Log"
      ],
      "language": "en",
      "description": "Every change to the 99 Digital API and its documentation, newest first.",
      "headings": [
        "2026",
        "12/11/2026",
        "30/09/2026",
        "29/09/2026 — WhatsApp Calls",
        "17/09/2026 — Carousel templates",
        "09/09/2026",
        "27/08/2026 — apiKey in the header",
        "23/07/2026",
        "03/07/2026",
        "15/06/2026",
        "28/05/2026 — Username",
        "13/05/2026",
        "08/05/2026 — Send Carousel",
        "13/02/2026 — Coexistence",
        "15/01/2026",
        "2025",
        "08/12/2025",
        "20/07/2025",
        "08/04/2025 — Builder",
        "23/03/2025",
        "09/02/2025",
        "15/01/2025",
        "2024",
        "03/12/2024",
        "01/12/2024",
        "27/11/2024",
        "14/11/2024",
        "21/07/2024",
        "28/06/2024",
        "18/06/2024",
        "06/06/2024",
        "21/03/2024",
        "04/03/2024",
        "14/01/2024",
        "2023",
        "27/11/2023",
        "30/06/2023",
        "11/05/2023",
        "08/03/2023 — System messages",
        "2022",
        "27/10/2022",
        "16/10/2022",
        "21/09/2022",
        "23/08/2022",
        "02/08/2022",
        "24/07/2022",
        "19/07/2022",
        "11/05/2022",
        "17/04/2022",
        "14/04/2022",
        "24/03/2022",
        "09/02/2022"
      ],
      "keywords": [
        "changelog",
        "change log",
        "release notes",
        "what's new"
      ],
      "content": "Every change to the 99 Digital API and its documentation, newest first. Register for documentation updates and we'll let you know about every new entry. 2026 12/11/2026 WhatsApp API You can now get a webhook when a display name is approved or rejected. In Webhook system notifications there is a new type , name , with two more parameters: name and rejectReason . 30/09/2026 WhatsApp API Set Profile can now change the display name of a WhatsApp number. 29/09/2026 — WhatsApp Calls WhatsApp API New feature: WhatsApp Calls! You can now accept incoming calls into your SIP trunk address (call center). See the new Set Call Configuration and Get Call Settings endpoints. 17/09/2026 — Carousel templates WhatsApp API You can now create a carousel template: in Create a Template, use header = 5. WhatsApp API You can now send a carousel template with Send a Template. WhatsApp API Send a Template has new error codes 29, 30, 31, 32, 33 and 34 (for carousel templates). WhatsApp API Send Multi Template now supports carousel templates. WhatsApp API Send Multi Template has new error codes 29, 30, 31, 32 and 33 (for carousel templates). WhatsApp API Added the WhatsApp API Postman Collection. 09/09/2026 WhatsApp API Send Multi Template has a new showBody parameter, and the response now includes accepted , rejected and failed . 27/08/2026 — apiKey in the header SMS API Updated the webhook for incoming SMS ( event = incoming ). SMS API Added a status update event for outgoing SMS messages on the webhook. WhatsApp API All WhatsApp endpoints (sendTemplate, sendMessage, sendList — everything) now take the apiKey in the header instead of the body. To give you time to adjust, apiKey is still accepted in the body as before, for backward compatibility. WhatsApp API New endpoint: Request Phone, to ask a client who hides their phone number to share it with you. WhatsApp API New type of webhook message: phone , sent after the client shared their phone number in reply to Request Phone. 23/07/2026 Partners API For Online, you can now get all notifications of an agent, mark one notification as read, or mark all of them as read. WhatsApp API In Send a Template and Send Multi Template, you can now set an ID for each quick reply button, returned on the webhook when the button is tapped. WhatsApp API The webhook returns that ID in caption for template quick reply taps, when you set one while sending the template. WhatsApp API The webhook has a new parameter, template , with the name of the template whose quick reply button was tapped. 03/07/2026 Partners API You can now onboard Facebook connections (Facebook Messenger, Facebook Page, Instagram Messenger, Instagram Page) with the new onboarding links. Partners API The webhook now sends the event type facebook for Facebook connections. 15/06/2026 WhatsApp API New fileName parameter in Send File. WhatsApp API New fileName parameter in Send Buttons. 28/05/2026 — Username Please read the following changes carefully. WhatsApp API Added the Username page to the Information folder. WhatsApp API Webhook, incoming messages: added from id , username , country and phone , and updated the description of from . WhatsApp API Webhook, acknowledge messages: added from id and country , and updated the description of from . WhatsApp API In sending a message, file, location, location request, buttons, list, contact, reaction, carousel and template, and in Type Effect, Get History, Get Contacts and Mark as Read, to now takes either the international phone number (as before) or the user ID. 13/05/2026 WhatsApp API Added error code 5 to Send Location. Partners API New endpoint: Login to a Conversation, under Online. 08/05/2026 — Send Carousel WhatsApp API Added error code 24 to Send a Template. WhatsApp API Send File now shows the maximum file size of each type. WhatsApp API New endpoint: Send Carousel! Check it out. WhatsApp API The webhook now returns the ID of the list option, button or carousel button that was chosen, in caption . WhatsApp API In Send Buttons and Send List you can now give each button an id , returned on the webhook (see the previous item). 13/02/2026 — Coexistence WhatsApp API Webhook, system notifications: added issue number 8. WhatsApp API Webhook, acknowledge: updated isBilledTemplate — newTemplateType now includes authentication templates. WhatsApp API Webhook: added the order type and the order parameter, with the list of products ordered from a WhatsApp store. WhatsApp API We now support coexistence: your clients can onboard a number that is in use in their WhatsApp Business app, and use it with the API too. The changes for this feature: Information folder → Coexistence: how the feature works and how to use it. Partners API → Step 2: Onboarding: the whatsapp parameter takes the value 1 to create a coexistence onboarding link. Partners API → Get Onboarding List shows when an onboarding number came from coexistence: whatsapp was updated and coexistence was added. Partners API → Get WhatsApp Numbers: added coexistence to the list. Webhook has two more event types: contacts and outgoing messages. Partners API → Online → Create a New WhatsApp Inbox: added the import history parameter. WhatsApp API Create a Template: added error code 34. WhatsApp API New page: Get Contacts. 15/01/2026 WhatsApp API Webhook, system notifications: added issue number 5. WhatsApp API bodyVariableSampleX is back in Create a Template. WhatsApp API Webhook, system messages: added templateUpdate code 8. WhatsApp API Webhook, system messages: added the templateCategory parameter. WhatsApp API Webhook, system messages: added issues code 7. WhatsApp API Webhook, system messages: added templateUpdate code 9. WhatsApp API Webhook, system messages: added templateUpdate codes 10 and 11. WhatsApp API Send a Template, Send Multi Template, Send Buttons and Send File take a new body variable: localStorage . WhatsApp API Updated the remarks of Create a Template. Partners API Updated the webhook IP address. 2025 08/12/2025 WhatsApp API The Template, Conversation and Message page has simpler explanations, and moved to the Information folder. Partners API Get Conversations Statistics can now filter by a specific WhatsApp number. WhatsApp API Create a Template: added error code 32. WhatsApp API Webhook, acknowledge: more explanation of isNewConversation . WhatsApp API The webhook for incoming messages has a new value: isNewConversation . WhatsApp API Get Webhook now returns retry and readStatus too. WhatsApp API Get Profile: added displayName , the WhatsApp display name. WhatsApp API Get Profile: added isVerifiedBusiness , which tells you whether the business manager of the WhatsApp account is verified. WhatsApp API Set Profile: added error code 12. WhatsApp API New endpoint: Type Effect! Check it out. WhatsApp API Mark as Read no longer needs the unique ID in the request, and unique in the response is deprecated. to is required instead. WhatsApp API New endpoint: Black List, to block end users. WhatsApp API Send Reaction requires to , and has a new error code 7. WhatsApp API Send Message now shows link previews: an https URL in the body gets a preview for the end user. WhatsApp API Fixed a bug that kept some WhatsApp numbers from sending % in bodyVariable . WhatsApp API New endpoint: Send Multi Template (in the Templates folder), to send many templates in a single API call. WhatsApp API Send a Template no longer requires language in the body. WhatsApp API You can now create authentication templates with Create a Template. WhatsApp API Send a Template has otp parameters for authentication templates. WhatsApp API Create a Template has a new remark on protecting a template from being deleted in the future. WhatsApp API Get Templates shows category 3: authentication template. WhatsApp API The Rate Limit page was updated, and moved to the Information folder. WhatsApp API Create a Template: new error code 33. Partners API Webhook, WhatsApp events: added daily limit , the daily limit the new account was given. 20/07/2025 WhatsApp API Added a new IP address for webhooks and removed an old one. See the list on Webhook. WhatsApp API Delete a Template: added error code 7. WhatsApp API WhatsApp API V1 was deprecated and removed from the documentation. Partners API The webhook now includes Online events. Partners API Get WhatsApp Numbers shows the server subdomain in onlineServer . WhatsApp API Create a Template: added error code 31. Partners API New: Online. You can now create Online accounts and WhatsApp inboxes, delete accounts, and more. 08/04/2025 — Builder Partners API New: the Builder system. You can now create builders, get the builders list, log in to a builder, reset user access and delete a builder — all from the API. Partners API The webhook now includes Builder events. 23/03/2025 Partners API Fixed a mistake on Delete WhatsApp Account: error 3 is about the token and error 4 about a wrong WhatsApp number. WhatsApp API Set Webhook has new features, and its response and response explanation were updated: added readStatus ; added a retry mechanism. WhatsApp API The system messages of the webhook have a few more error codes. WhatsApp API Important: conversationTimeLeft in the responses of sendMessage, sendTemplate, sendFile, sendLocation, requestLocation, sendButtons, sendList, sendReaction and getTimers is deprecated and no longer in use. The data is on the webhook instead. WhatsApp API Webhook read status: added three new values — conversationTimeLeft , isNewConversation and newConversationType . WhatsApp API Added timestamp to the system messages of the webhook. WhatsApp API Send a Template: the explanations of response codes 12 and 14 now reflect what actually happens. WhatsApp API Send a Template now takes a file name for a PDF header — the name the client sees. WhatsApp API sendTemplate, sendMessage, sendFile, sendLocation, requestLocation, sendButtons, sendList, sendReaction and sendContact have an optional showRequest body parameter, to get the original request back in the response. WhatsApp API Set Profile returns the data in the response, under returnedData . 09/02/2025 Partners API Added a free-text comment to Register Number (step 1). The comment also appears in Get Registered Numbers. WhatsApp API Send a Template: updated error code 15. Partners API You can now delete a WhatsApp account. Partners API You can now get conversation statistics for WhatsApp numbers. 15/01/2025 WhatsApp API Send a Template: added the size limits of image, video and document files in headerLink . WhatsApp API Rate Limit: added a link to the business verification page, in case you want to verify your business. Partners API New: Get Onboarding List, to see all your onboarding links. Partners API New: Delete Onboarding Account, to remove links you don't need. Partners API Get Registered Numbers now returns onboarding link . Partners API New: Get WhatsApp Numbers, to see all the WhatsApp numbers you onboarded. WhatsApp API Updated the list of IP addresses that may send you webhook messages, for your allowlist. Partners API You can now get and set your business parameters with Business Settings. 2024 03/12/2024 WhatsApp API Get Templates has two new template statuses: paused and deactivated. Partners API Get Registered Numbers: fixed the response example. 01/12/2024 WhatsApp API Added a rate-limit error to every sending endpoint. WhatsApp API Added the Rate Limit page. 27/11/2024 Partners API The Partners API is now ready. 14/11/2024 WhatsApp API Get Profile: added from , the WhatsApp number. WhatsApp API Send a Template: added error code 21. WhatsApp API Get History: state = 0 now means a failed message. WhatsApp API Create a Template: the template name must be lower case only. WhatsApp API checkWhatsApp is deprecated and no longer supported. To check that a number has WhatsApp, send it a template first: if it doesn't, you get a webhook with messageUpdate error code 7. WhatsApp API Send Location: removed error codes 5 and 9, which were irrelevant to sending a location. WhatsApp API Create a Template: error code 7 now covers more cases. WhatsApp API Create a Template no longer requires samples: bodyVariableSample1 – 10 , the headerSample URL and the dynamic-website callToActionWebsiteSample and callToActionWebsiteSample2 are all optional when you submit a template. 21/07/2024 WhatsApp API Send Buttons can now send buttonURL . 28/06/2024 WhatsApp API caption is now optional in Send File. 18/06/2024 WhatsApp API Added the template category — in the response of Create a Template, when creating a template, and in Get Templates. 06/06/2024 WhatsApp API Added ref image to the referral of the webhook. 21/03/2024 WhatsApp API Create a Template now supports a coupon code with a limited-time offer. WhatsApp API Send a Template supports a coupon code with a limited-time offer. 04/03/2024 WhatsApp API Create a Template now supports up to 10 buttons: website, call, quick reply, and combinations of them. WhatsApp API Create a Template now supports up to 10 variables (previously 5): {{1}} to {{10}} . WhatsApp API Send a Template supports 10 variables. 14/01/2024 WhatsApp API The webhook system messages support message type codes 12 and 13. Online API We now have a brand new API for our Online system: the Online API. WhatsApp API Added Request Location. 2023 27/11/2023 WhatsApp API Added timestampMS to the webhook. WhatsApp API messageUnique and unique changed in Send Reaction. WhatsApp API The webhook acknowledge now supports the \"failed\" ack. WhatsApp API The webhook acknowledge supports timestamp . Online API New: the Online API documentation is now available. WhatsApp API The webhook now supports referral . 30/06/2023 WhatsApp API Added codes 10 and 11 to the messageUpdate system messages of the webhook. WhatsApp API Added timestamp to the acks of the webhook. WhatsApp API Added timestamp to the system alerts of the webhook. 11/05/2023 Partners API The Partners API is updated with all the recent changes — adding an account is completely different now. Partners API Get WhatsApp Numbers can now show the API key when the number is connected. 08/03/2023 — System messages WhatsApp API System messages on the webhook are here! You can now get system messages. WhatsApp API Set Webhook was updated: you can turn system messages on and off, turn phone alerts on and off, and reset the webhook URL. WhatsApp API Get Webhook now shows whether system messages are on, and the phone alert numbers. 2022 27/10/2022 WhatsApp API You can now have up to 6000 templates. 16/10/2022 WhatsApp API Reversing item 5 of 19/07/2022: about is supported again in the profile settings. WhatsApp API New endpoint: Mark as Read. You can now mark incoming messages as read. WhatsApp API New endpoint: Send Reaction. You can now react with an emoji to incoming messages. WhatsApp API Added the reaction type to incoming webhook messages. 21/09/2022 Partners API Added the new Partners API, for creating WhatsApp accounts. 23/08/2022 WhatsApp API Create a Template has a new error code (22), following new Facebook guidelines. See the remarks on that page. 02/08/2022 WhatsApp API Get Profile: type is now returned as an integer instead of text. 24/07/2022 WhatsApp API replyTo now works in Send Message, Send File, Send Location, Send Buttons, Send List and Send Contact. It doesn't work yet when sending a template. WhatsApp API Added error code 19 to sending a template, for a text that is too long. 19/07/2022 WhatsApp API You no longer need to wait 15 minutes before using a new template you created. WhatsApp API Get Templates returns status in lower case only ( approved , rejected , submitted ). WhatsApp API Creating a template no longer needs a category. WhatsApp API Get Profile now shows the daily limit for new conversations. WhatsApp API Get and Set Profile don't support the about setting for now; it will return in the future. 11/05/2022 WhatsApp API Added Send List. WhatsApp API Added list as a webhook type. 17/04/2022 WhatsApp API Added quoteUnique to every incoming message on the webhook. WhatsApp API Added replyTo to Send Message. 14/04/2022 WhatsApp API Updated reason code 4 of sending a template: it also means a wrong WhatsApp number. WhatsApp API Added Get Profile, with all the WhatsApp account's information. WhatsApp API Added Set Profile, to configure the WhatsApp account's information. WhatsApp API Added Send Contact. WhatsApp API Added Check WhatsApp. WhatsApp API Added Get Timers. 24/03/2022 WhatsApp API Added Arabic, Russian, Spanish, Chinese, Hindi, Thai and French to the template languages (creating and sending a template). 09/02/2022 WhatsApp API Added Send Buttons. WhatsApp API Added Delete a Template."
    }
  ]
}
