{"items":[{"type":"link","label":"Messages","link":"/openapi/uinbox/v1/modules/messages","routeSlug":"/openapi/uinbox/v1/modules/messages","content":{"contentType":"overview","meta":{"name":"Messages"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"messages.json","url":"/_bundle/openapi/uinbox/v1/modules/messages.json?download"},{"kind":"download","label":"messages.yaml","url":"/_bundle/openapi/uinbox/v1/modules/messages.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"https://app.iclosed.io/support","url":"https://app.iclosed.io/support"},{"kind":"externallink","title":"License","titleTranslationKey":"info.license","label":"Proprietary","url":"https://app.iclosed.io/terms"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","description":"Mock server","isMockServer":true},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Messages (1.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Chat messages, and sending them."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"A send reaches a real person and there is no test mode."},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Before you build against it:"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is the channel's own payload. A text message is "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"{ \"type\": \"text\", \"text\": \"Hello\" }"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"; media and templates differ per channel."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"WhatsApp"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" only allows a free-form message within 24 hours of the contact's last inbound message. Outside that window the send must be an approved template, or it fails."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Instagram"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" cannot open a conversation. The contact has to message first."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"SMS"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" honours opt-out: once a contact has replied STOP, sends to them fail."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Each connection has its own limits — daily conversation caps and per-line rules. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"sendRules"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" on "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET /v1/connections/list"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is the current state for a connection, and "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"sendRestrictions"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" on "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET /v1/messages"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is the state for one chat."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"A rule that blocks a send returns 4xx with the reason in "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". A send that is accepted returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data.status: \"queued\""},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"; delivery or failure appears later on the message itself."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Retrying after a timeout? Send the same "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Idempotency-Key"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and the original response comes back instead of a second message."},"children":[],"type":"text"}],"type":"item"}],"type":"list"}]}],"sectionId":"/"}],"sectionId":"/"}]}]}},{"label":"Get messages","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/uinbox/v1/modules/messages/other/getmessages","routeSlug":"/openapi/uinbox/v1/modules/messages/other/getmessages","metadata":{"seo":{"title":"Get messages","description":"Returns one page of a chat's messages, newest first. page is zero-based and defaults to 0; limit defaults to 1000, which is also its maximum. data.list is the page, data.count is the total, data.currentPage is the page returned and data.hasMore is true when a later page exists. Media URLs are signed and short-lived. Reading a chat marks it read, so its unread counter drops to 0."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getMessages","name":"Get messages","isWebhook":false,"pointer":"/paths/~1v1~1messages/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get messages","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Returns one page of a chat's messages, newest first. page is zero-based and defaults to 0; limit defaults to 1000, which is also its maximum. data.list is the page, data.count is the total, data.currentPage is the page returned and data.hasMore is true when a later page exists. Media URLs are signed and short-lived. Reading a chat marks it read, so its unread counter drops to 0."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":["inbox.messages:read"],"type":"http","scheme":"bearer","bearerFormat":"API key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key required in Authorization header. Format: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"iclosed_<token>"},"children":[],"type":"code"}],"type":"paragraph"}]}]},{"schemes":[{"name":"oauth2","scopes":["inbox.messages:read"],"type":"oauth2","description":"OAuth 2.1 authorization code with PKCE. Tokens are issued by the iClosed authorization server and accepted by the Unified Inbox API.","flows":{"authorizationCode":{"authorizationUrl":"https://app.iclosed.io/oauth/authorize","tokenUrl":"https://public.api.iclosed.io/v1/oauth/token","refreshUrl":"https://public.api.iclosed.io/v1/oauth/token","scopes":{"inbox.chats:read":"Read inbox chats","inbox.chats:write":"Create, update and assign inbox chats","inbox.messages:read":"Read inbox messages","inbox.messages:write":"Send and retry inbox messages","inbox.connections:read":"Read channel connections","inbox.analytics:read":"Read inbox analytics","inbox.recordings:read":"Read call recordings","inbox.recordings:write":"Generate call recording summaries","inbox.workflows:read":"Read inbox workflows"}}}}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"chatId","in":"query","schemaId":"schema_0","required":true},{"name":"page","in":"query","schemaId":"schema_1","description":"Zero-based page index. The first page is 0."},{"name":"limit","in":"query","schemaId":"schema_2","description":"Number of messages to return. Maximum 1000."}],"pointer":"/paths/~1v1~1messages/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/v1/messages","servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","description":"Mock server","isMockServer":true},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"parameters":{"path":[],"query":[{"name":"chatId","in":"query","required":true,"schemaId":"schema_0"},{"name":"page","in":"query","example":0,"schemaId":"schema_1"},{"name":"limit","in":"query","schemaId":"schema_2"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"API key"}],"scopes":["inbox.messages:read"]},{"schemes":[{"id":"oauth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://app.iclosed.io/oauth/authorize","tokenUrl":"https://public.api.iclosed.io/v1/oauth/token","refreshUrl":"https://public.api.iclosed.io/v1/oauth/token","scopes":{"inbox.chats:read":"Read inbox chats","inbox.chats:write":"Create, update and assign inbox chats","inbox.messages:read":"Read inbox messages","inbox.messages:write":"Send and retry inbox messages","inbox.connections:read":"Read channel connections","inbox.analytics:read":"Read inbox analytics","inbox.recordings:read":"Read call recordings","inbox.recordings:write":"Generate call recording summaries","inbox.workflows:read":"Read inbox workflows"}}}}],"scopes":["inbox.messages:read"]}],"responseCodes":["200","400","401","403","404","429","500"],"pointer":"/v1/messages","href":"other/getmessages","openApiOperationId":"getMessages","summary":"Get messages","securityGroups":[{"bearerAuth":["inbox.messages:read"]},{"oauth2":["inbox.messages:read"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","description":"Mock server","isMockServer":true},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"One page of the chat's messages, newest first.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_3"}},"schemaId":"schema_3"},{"code":"400","description":"Bad request or validation failed","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages/get/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages/get/responses/400/content/application~1json/examples/unknownField"]}},"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages/get/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages/get/responses/400/content/application~1json/examples/unknownField"]},{"code":"401","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Unauthorized – missing, invalid, or expired API key (Bearer token required). An expired key returns message \"API key expired\"."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missingFromRateLimiter"]}},"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missingFromRateLimiter"]},{"code":"403","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Forbidden – insufficient permissions"},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages/get/responses/403/content/application~1json/example"]}},"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages/get/responses/403/content/application~1json/example"]},{"code":"404","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Resource not found (e.g. NOT_FOUND, RECORD_NOT_FOUND, EVENT_NOT_FOUND)"},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages/get/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages/get/responses/404/content/application~1json/examples/record"]}},"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages/get/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages/get/responses/404/content/application~1json/examples/record"]},{"code":"429","description":"Rate limit exceeded. Each plan has its own allowance per endpoint per 10 seconds: Startup 20, Growth 50, Business 100. Response includes RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, and Retry-After headers.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages/get/responses/429/content/application~1json/example"]}},"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages/get/responses/429/content/application~1json/example"],"headers":{"RateLimit-Limit":{"description":"Maximum requests allowed in the current window","schema":{"type":"string"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window","schema":{"type":"string"}},"RateLimit-Reset":{"description":"ISO 8601 timestamp when the rate limit window resets","schema":{"type":"string","format":"date-time"}},"Retry-After":{"description":"Seconds until the client can retry (when applicable)","schema":{"type":"string"}}},"headerSchemaId":"schema_9"},{"code":"500","description":"Internal server error. Unhandled errors return a generic message; no stack trace is ever returned.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages/get/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages/get/responses/500/content/application~1json/examples/withMessage"]}},"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages/get/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages/get/responses/500/content/application~1json/examples/withMessage"]}],"pointer":"/paths/~1v1~1messages/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_3","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_3"}}},{"code":"400","schemaId":"schema_4","exampleIds":["paths/~1v1~1messages/get/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages/get/responses/400/content/application~1json/examples/unknownField"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages/get/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages/get/responses/400/content/application~1json/examples/unknownField"]}}},{"code":"401","schemaId":"schema_5","exampleIds":["paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missingFromRateLimiter"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missingFromRateLimiter"]}}},{"code":"403","schemaId":"schema_6","exampleIds":["paths/~1v1~1messages/get/responses/403/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages/get/responses/403/content/application~1json/example"]}}},{"code":"404","schemaId":"schema_7","exampleIds":["paths/~1v1~1messages/get/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages/get/responses/404/content/application~1json/examples/record"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages/get/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages/get/responses/404/content/application~1json/examples/record"]}}},{"code":"429","schemaId":"schema_8","exampleIds":["paths/~1v1~1messages/get/responses/429/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages/get/responses/429/content/application~1json/example"]}}},{"code":"500","schemaId":"schema_10","exampleIds":["paths/~1v1~1messages/get/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages/get/responses/500/content/application~1json/examples/withMessage"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages/get/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages/get/responses/500/content/application~1json/examples/withMessage"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/getmessages"}],"panels":[]}]},"httpPath":"/v1/messages"},{"label":"Search messages","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/uinbox/v1/modules/messages/other/searchmessages","routeSlug":"/openapi/uinbox/v1/modules/messages/other/searchmessages","metadata":{"seo":{"title":"Search messages","description":"Returns one page of matches across the account. search is at most 200 characters; a longer value is rejected with 400 before the search runs. page is zero-based and defaults to 0. limit defaults to 20 and cannot exceed 500. data.count is the total number of matches, data.currentPage is the page that was returned, and data.hasMore is true when a later page exists."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"searchMessages","name":"Search messages","isWebhook":false,"pointer":"/paths/~1v1~1messages~1search/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Search messages","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Returns one page of matches across the account. search is at most 200 characters; a longer value is rejected with 400 before the search runs. page is zero-based and defaults to 0. limit defaults to 20 and cannot exceed 500. data.count is the total number of matches, data.currentPage is the page that was returned, and data.hasMore is true when a later page exists."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":["inbox.messages:read"],"type":"http","scheme":"bearer","bearerFormat":"API key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key required in Authorization header. Format: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"iclosed_<token>"},"children":[],"type":"code"}],"type":"paragraph"}]}]},{"schemes":[{"name":"oauth2","scopes":["inbox.messages:read"],"type":"oauth2","description":"OAuth 2.1 authorization code with PKCE. Tokens are issued by the iClosed authorization server and accepted by the Unified Inbox API.","flows":{"authorizationCode":{"authorizationUrl":"https://app.iclosed.io/oauth/authorize","tokenUrl":"https://public.api.iclosed.io/v1/oauth/token","refreshUrl":"https://public.api.iclosed.io/v1/oauth/token","scopes":{"inbox.chats:read":"Read inbox chats","inbox.chats:write":"Create, update and assign inbox chats","inbox.messages:read":"Read inbox messages","inbox.messages:write":"Send and retry inbox messages","inbox.connections:read":"Read channel connections","inbox.analytics:read":"Read inbox analytics","inbox.recordings:read":"Read call recordings","inbox.recordings:write":"Generate call recording summaries","inbox.workflows:read":"Read inbox workflows"}}}}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_11","exampleIds":["paths/~1v1~1messages~1search/post/requestBody/content/application~1json/example"]}},"schemaId":"schema_11","exampleIds":["paths/~1v1~1messages~1search/post/requestBody/content/application~1json/example"],"pointer":"/paths/~1v1~1messages~1search/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/messages/search","servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","description":"Mock server","isMockServer":true},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"API key"}],"scopes":["inbox.messages:read"]},{"schemes":[{"id":"oauth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://app.iclosed.io/oauth/authorize","tokenUrl":"https://public.api.iclosed.io/v1/oauth/token","refreshUrl":"https://public.api.iclosed.io/v1/oauth/token","scopes":{"inbox.chats:read":"Read inbox chats","inbox.chats:write":"Create, update and assign inbox chats","inbox.messages:read":"Read inbox messages","inbox.messages:write":"Send and retry inbox messages","inbox.connections:read":"Read channel connections","inbox.analytics:read":"Read inbox analytics","inbox.recordings:read":"Read call recordings","inbox.recordings:write":"Generate call recording summaries","inbox.workflows:read":"Read inbox workflows"}}}}],"scopes":["inbox.messages:read"]}],"requestBody":{"application/json":{"schemaId":"schema_11","exampleIds":["paths/~1v1~1messages~1search/post/requestBody/content/application~1json/example"]}},"responseCodes":["200","400","401","403","404","429","500"],"pointer":"/v1/messages/search","href":"other/searchmessages","openApiOperationId":"searchMessages","summary":"Search messages","securityGroups":[{"bearerAuth":["inbox.messages:read"]},{"oauth2":["inbox.messages:read"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","description":"Mock server","isMockServer":true},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"schemaId":"schema_11","exampleIds":["paths/~1v1~1messages~1search/post/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_11","exampleIds":["paths/~1v1~1messages~1search/post/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"One page of matching messages, with the total across all pages.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_12"}},"schemaId":"schema_12"},{"code":"400","description":"Bad request or validation failed","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/unknownField"]}},"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/unknownField"]},{"code":"401","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Unauthorized – missing, invalid, or expired API key (Bearer token required). An expired key returns message \"API key expired\"."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missingFromRateLimiter"]}},"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missingFromRateLimiter"]},{"code":"403","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Forbidden – insufficient permissions"},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1search/post/responses/403/content/application~1json/example"]}},"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1search/post/responses/403/content/application~1json/example"]},{"code":"404","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Resource not found (e.g. NOT_FOUND, RECORD_NOT_FOUND, EVENT_NOT_FOUND)"},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/record"]}},"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/record"]},{"code":"429","description":"Rate limit exceeded. Each plan has its own allowance per endpoint per 10 seconds: Startup 20, Growth 50, Business 100. Response includes RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, and Retry-After headers.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1search/post/responses/429/content/application~1json/example"]}},"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1search/post/responses/429/content/application~1json/example"],"headers":{"RateLimit-Limit":{"description":"Maximum requests allowed in the current window","schema":{"type":"string"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window","schema":{"type":"string"}},"RateLimit-Reset":{"description":"ISO 8601 timestamp when the rate limit window resets","schema":{"type":"string","format":"date-time"}},"Retry-After":{"description":"Seconds until the client can retry (when applicable)","schema":{"type":"string"}}},"headerSchemaId":"schema_9"},{"code":"500","description":"Internal server error. Unhandled errors return a generic message; no stack trace is ever returned.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/withMessage"]}},"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/withMessage"]}],"pointer":"/paths/~1v1~1messages~1search/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_12","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_12"}}},{"code":"400","schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/unknownField"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/unknownField"]}}},{"code":"401","schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missingFromRateLimiter"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missingFromRateLimiter"]}}},{"code":"403","schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1search/post/responses/403/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1search/post/responses/403/content/application~1json/example"]}}},{"code":"404","schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/record"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/record"]}}},{"code":"429","schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1search/post/responses/429/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1search/post/responses/429/content/application~1json/example"]}}},{"code":"500","schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/withMessage"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/withMessage"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/searchmessages"}],"panels":[]}]},"httpPath":"/v1/messages/search"},{"label":"Send message","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/uinbox/v1/modules/messages/other/sendmessage","routeSlug":"/openapi/uinbox/v1/modules/messages/other/sendmessage","metadata":{"seo":{"title":"Send message","description":"Sends a real message to a real person. There is no test mode. The send is queued and the response is data.messageId with data.status \"queued\"; delivery outcome arrives later on the message itself. message is the channel payload — a text message is { \"type\": \"text\", \"text\": \"Hello\" }. connectionId must be a connection on this account, and channel rules still apply (for example the WhatsApp 24-hour window and Instagram not being able to open a conversation)."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"sendMessage","name":"Send message","isWebhook":false,"pointer":"/paths/~1v1~1messages~1send/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Send message","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Sends a real message to a real person. There is no test mode. The send is queued and the response is data.messageId with data.status \"queued\"; delivery outcome arrives later on the message itself. message is the channel payload — a text message is { \"type\": \"text\", \"text\": \"Hello\" }. connectionId must be a connection on this account, and channel rules still apply (for example the WhatsApp 24-hour window and Instagram not being able to open a conversation)."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":["inbox.messages:write"],"type":"http","scheme":"bearer","bearerFormat":"API key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key required in Authorization header. Format: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"iclosed_<token>"},"children":[],"type":"code"}],"type":"paragraph"}]}]},{"schemes":[{"name":"oauth2","scopes":["inbox.messages:write"],"type":"oauth2","description":"OAuth 2.1 authorization code with PKCE. Tokens are issued by the iClosed authorization server and accepted by the Unified Inbox API.","flows":{"authorizationCode":{"authorizationUrl":"https://app.iclosed.io/oauth/authorize","tokenUrl":"https://public.api.iclosed.io/v1/oauth/token","refreshUrl":"https://public.api.iclosed.io/v1/oauth/token","scopes":{"inbox.chats:read":"Read inbox chats","inbox.chats:write":"Create, update and assign inbox chats","inbox.messages:read":"Read inbox messages","inbox.messages:write":"Send and retry inbox messages","inbox.connections:read":"Read channel connections","inbox.analytics:read":"Read inbox analytics","inbox.recordings:read":"Read call recordings","inbox.recordings:write":"Generate call recording summaries","inbox.workflows:read":"Read inbox workflows"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_13","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Optional. A unique value of your own, up to 255 printable characters without spaces — a UUID is ideal. The first request carrying it is processed; any later request with the same key returns that first response instead of repeating the work, for 24 hours. A replayed response carries Idempotency-Replayed: true. Reuse the key when you retry after a timeout, and change it when you mean to send again."},"children":[],"type":"text"}],"type":"paragraph"}]}],"pointer":"/paths/~1v1~1messages~1send/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_14","exampleIds":["paths/~1v1~1messages~1send/post/requestBody/content/application~1json/example"]}},"schemaId":"schema_14","exampleIds":["paths/~1v1~1messages~1send/post/requestBody/content/application~1json/example"],"pointer":"/paths/~1v1~1messages~1send/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/messages/send","servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","description":"Mock server","isMockServer":true},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","required":false,"schemaId":"schema_13"}],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"API key"}],"scopes":["inbox.messages:write"]},{"schemes":[{"id":"oauth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://app.iclosed.io/oauth/authorize","tokenUrl":"https://public.api.iclosed.io/v1/oauth/token","refreshUrl":"https://public.api.iclosed.io/v1/oauth/token","scopes":{"inbox.chats:read":"Read inbox chats","inbox.chats:write":"Create, update and assign inbox chats","inbox.messages:read":"Read inbox messages","inbox.messages:write":"Send and retry inbox messages","inbox.connections:read":"Read channel connections","inbox.analytics:read":"Read inbox analytics","inbox.recordings:read":"Read call recordings","inbox.recordings:write":"Generate call recording summaries","inbox.workflows:read":"Read inbox workflows"}}}}],"scopes":["inbox.messages:write"]}],"requestBody":{"application/json":{"schemaId":"schema_14","exampleIds":["paths/~1v1~1messages~1send/post/requestBody/content/application~1json/example"]}},"responseCodes":["200","400","401","403","404","409","429","500"],"pointer":"/v1/messages/send","href":"other/sendmessage","openApiOperationId":"sendMessage","summary":"Send message","securityGroups":[{"bearerAuth":["inbox.messages:write"]},{"oauth2":["inbox.messages:write"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","description":"Mock server","isMockServer":true},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"schemaId":"schema_14","exampleIds":["paths/~1v1~1messages~1send/post/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_14","exampleIds":["paths/~1v1~1messages~1send/post/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The send was accepted and queued.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_15"}},"schemaId":"schema_15"},{"code":"400","description":"Bad request or validation failed","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/unknownField"]}},"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/unknownField"]},{"code":"401","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Unauthorized – missing, invalid, or expired API key (Bearer token required). An expired key returns message \"API key expired\"."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missingFromRateLimiter"]}},"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missingFromRateLimiter"]},{"code":"403","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Forbidden – insufficient permissions"},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1send/post/responses/403/content/application~1json/example"]}},"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1send/post/responses/403/content/application~1json/example"]},{"code":"404","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Resource not found (e.g. NOT_FOUND, RECORD_NOT_FOUND, EVENT_NOT_FOUND)"},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/record"]}},"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/record"]},{"code":"409","description":"A request with the same Idempotency-Key is still in progress. Wait for it to finish and read the replayed response, rather than sending again.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16","exampleIds":["paths/~1v1~1messages~1send/post/responses/409/content/application~1json/example"]}},"schemaId":"schema_16","exampleIds":["paths/~1v1~1messages~1send/post/responses/409/content/application~1json/example"]},{"code":"429","description":"Rate limit exceeded. Each plan has its own allowance per endpoint per 10 seconds: Startup 20, Growth 50, Business 100. Response includes RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, and Retry-After headers.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1send/post/responses/429/content/application~1json/example"]}},"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1send/post/responses/429/content/application~1json/example"],"headers":{"RateLimit-Limit":{"description":"Maximum requests allowed in the current window","schema":{"type":"string"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window","schema":{"type":"string"}},"RateLimit-Reset":{"description":"ISO 8601 timestamp when the rate limit window resets","schema":{"type":"string","format":"date-time"}},"Retry-After":{"description":"Seconds until the client can retry (when applicable)","schema":{"type":"string"}}},"headerSchemaId":"schema_9"},{"code":"500","description":"Internal server error. Unhandled errors return a generic message; no stack trace is ever returned.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/withMessage"]}},"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/withMessage"]}],"pointer":"/paths/~1v1~1messages~1send/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_15","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_15"}}},{"code":"400","schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/unknownField"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/unknownField"]}}},{"code":"401","schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missingFromRateLimiter"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missingFromRateLimiter"]}}},{"code":"403","schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1send/post/responses/403/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1send/post/responses/403/content/application~1json/example"]}}},{"code":"404","schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/record"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/record"]}}},{"code":"409","schemaId":"schema_16","exampleIds":["paths/~1v1~1messages~1send/post/responses/409/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16","exampleIds":["paths/~1v1~1messages~1send/post/responses/409/content/application~1json/example"]}}},{"code":"429","schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1send/post/responses/429/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1send/post/responses/429/content/application~1json/example"]}}},{"code":"500","schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/withMessage"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/withMessage"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/sendmessage"}],"panels":[]}]},"httpPath":"/v1/messages/send"},{"label":"Retry message","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/openapi/uinbox/v1/modules/messages/other/retrymessage","routeSlug":"/openapi/uinbox/v1/modules/messages/other/retrymessage","metadata":{"seo":{"title":"Retry message","description":"Queues another send of the stored message. The recipient comes from the chat contact and the original message, and the account billed is the one the API key belongs to — the body carries neither, and sending accountId or phoneNumber is rejected with 400 rather than ignored."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"retryMessage","name":"Retry message","isWebhook":false,"pointer":"/paths/~1v1~1messages~1retry/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Retry message","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Queues another send of the stored message. The recipient comes from the chat contact and the original message, and the account billed is the one the API key belongs to — the body carries neither, and sending accountId or phoneNumber is rejected with 400 rather than ignored."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":["inbox.messages:write"],"type":"http","scheme":"bearer","bearerFormat":"API key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key required in Authorization header. Format: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"iclosed_<token>"},"children":[],"type":"code"}],"type":"paragraph"}]}]},{"schemes":[{"name":"oauth2","scopes":["inbox.messages:write"],"type":"oauth2","description":"OAuth 2.1 authorization code with PKCE. Tokens are issued by the iClosed authorization server and accepted by the Unified Inbox API.","flows":{"authorizationCode":{"authorizationUrl":"https://app.iclosed.io/oauth/authorize","tokenUrl":"https://public.api.iclosed.io/v1/oauth/token","refreshUrl":"https://public.api.iclosed.io/v1/oauth/token","scopes":{"inbox.chats:read":"Read inbox chats","inbox.chats:write":"Create, update and assign inbox chats","inbox.messages:read":"Read inbox messages","inbox.messages:write":"Send and retry inbox messages","inbox.connections:read":"Read channel connections","inbox.analytics:read":"Read inbox analytics","inbox.recordings:read":"Read call recordings","inbox.recordings:write":"Generate call recording summaries","inbox.workflows:read":"Read inbox workflows"}}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"Idempotency-Key","in":"header","schemaId":"schema_13","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Optional. A unique value of your own, up to 255 printable characters without spaces — a UUID is ideal. The first request carrying it is processed; any later request with the same key returns that first response instead of repeating the work, for 24 hours. A replayed response carries Idempotency-Replayed: true. Reuse the key when you retry after a timeout, and change it when you mean to send again."},"children":[],"type":"text"}],"type":"paragraph"}]}],"pointer":"/paths/~1v1~1messages~1retry/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_17","exampleIds":["paths/~1v1~1messages~1retry/post/requestBody/content/application~1json/example"]}},"schemaId":"schema_17","exampleIds":["paths/~1v1~1messages~1retry/post/requestBody/content/application~1json/example"],"pointer":"/paths/~1v1~1messages~1retry/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/messages/retry","servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","description":"Mock server","isMockServer":true},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"Idempotency-Key","in":"header","required":false,"schemaId":"schema_13"}],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"API key"}],"scopes":["inbox.messages:write"]},{"schemes":[{"id":"oauth2","type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://app.iclosed.io/oauth/authorize","tokenUrl":"https://public.api.iclosed.io/v1/oauth/token","refreshUrl":"https://public.api.iclosed.io/v1/oauth/token","scopes":{"inbox.chats:read":"Read inbox chats","inbox.chats:write":"Create, update and assign inbox chats","inbox.messages:read":"Read inbox messages","inbox.messages:write":"Send and retry inbox messages","inbox.connections:read":"Read channel connections","inbox.analytics:read":"Read inbox analytics","inbox.recordings:read":"Read call recordings","inbox.recordings:write":"Generate call recording summaries","inbox.workflows:read":"Read inbox workflows"}}}}],"scopes":["inbox.messages:write"]}],"requestBody":{"application/json":{"schemaId":"schema_17","exampleIds":["paths/~1v1~1messages~1retry/post/requestBody/content/application~1json/example"]}},"responseCodes":["200","400","401","403","404","409","429","500"],"pointer":"/v1/messages/retry","href":"other/retrymessage","openApiOperationId":"retryMessage","summary":"Retry message","securityGroups":[{"bearerAuth":["inbox.messages:write"]},{"oauth2":["inbox.messages:write"]}]},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","description":"Mock server","isMockServer":true},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"schemaId":"schema_17","exampleIds":["paths/~1v1~1messages~1retry/post/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_17","exampleIds":["paths/~1v1~1messages~1retry/post/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The retry was accepted and queued.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_15"}},"schemaId":"schema_15"},{"code":"400","description":"Bad request or validation failed","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/unknownField"]}},"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/unknownField"]},{"code":"401","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Unauthorized – missing, invalid, or expired API key (Bearer token required). An expired key returns message \"API key expired\"."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missingFromRateLimiter"]}},"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missingFromRateLimiter"]},{"code":"403","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Forbidden – insufficient permissions"},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1retry/post/responses/403/content/application~1json/example"]}},"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1retry/post/responses/403/content/application~1json/example"]},{"code":"404","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Resource not found (e.g. NOT_FOUND, RECORD_NOT_FOUND, EVENT_NOT_FOUND)"},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/record"]}},"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/record"]},{"code":"409","description":"A request with the same Idempotency-Key is still in progress. Wait for it to finish and read the replayed response, rather than sending again.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16","exampleIds":["paths/~1v1~1messages~1retry/post/responses/409/content/application~1json/example"]}},"schemaId":"schema_16","exampleIds":["paths/~1v1~1messages~1retry/post/responses/409/content/application~1json/example"]},{"code":"429","description":"Rate limit exceeded. Each plan has its own allowance per endpoint per 10 seconds: Startup 20, Growth 50, Business 100. Response includes RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, and Retry-After headers.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1retry/post/responses/429/content/application~1json/example"]}},"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1retry/post/responses/429/content/application~1json/example"],"headers":{"RateLimit-Limit":{"description":"Maximum requests allowed in the current window","schema":{"type":"string"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window","schema":{"type":"string"}},"RateLimit-Reset":{"description":"ISO 8601 timestamp when the rate limit window resets","schema":{"type":"string","format":"date-time"}},"Retry-After":{"description":"Seconds until the client can retry (when applicable)","schema":{"type":"string"}}},"headerSchemaId":"schema_9"},{"code":"500","description":"Internal server error. Unhandled errors return a generic message; no stack trace is ever returned.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/withMessage"]}},"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/withMessage"]}],"pointer":"/paths/~1v1~1messages~1retry/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_15","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_15"}}},{"code":"400","schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/unknownField"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_4","exampleIds":["paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/invalidValue","paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/unknownField"]}}},{"code":"401","schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missingFromRateLimiter"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_5","exampleIds":["paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missing","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/invalid","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/expired","paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missingFromRateLimiter"]}}},{"code":"403","schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1retry/post/responses/403/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1v1~1messages~1retry/post/responses/403/content/application~1json/example"]}}},{"code":"404","schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/record"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/generic","paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/record"]}}},{"code":"409","schemaId":"schema_16","exampleIds":["paths/~1v1~1messages~1retry/post/responses/409/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_16","exampleIds":["paths/~1v1~1messages~1retry/post/responses/409/content/application~1json/example"]}}},{"code":"429","schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1retry/post/responses/429/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8","exampleIds":["paths/~1v1~1messages~1retry/post/responses/429/content/application~1json/example"]}}},{"code":"500","schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/withMessage"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_10","exampleIds":["paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/generic","paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/withMessage"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/retrymessage"}],"panels":[]}]},"httpPath":"/v1/messages/retry"}],"store":{"schemaStore":{"schema_0":{"kind":"json-schema","data":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},"id":"schema_0"},"schema_1":{"kind":"json-schema","data":{"description":"Zero-based page index. The first page is 0.","example":0,"type":"integer","minimum":0,"maximum":2147483647},"id":"schema_1"},"schema_2":{"kind":"json-schema","data":{"description":"Number of messages to return. Maximum 1000.","type":"integer","minimum":1,"maximum":1000},"id":"schema_2"},"schema_3":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"data":{"type":"object","properties":{"list":{"description":"The page of messages, newest first.","type":"array","items":{"type":"object","properties":{"_id":{"type":"string"},"id":{"description":"The channel's own message id, e.g. a WhatsApp wamid.","type":"string"},"chatId":{"type":"string"},"source":{"description":"Channel the message went through, e.g. whatsappCloudApi.","type":"string"},"fromMe":{"description":"True for an outbound message.","type":"boolean"},"timestamp":{"description":"ISO 8601.","type":"string"},"type":{"description":"text, image, audio, video, document, template, and so on.","type":"string"},"status":{"description":"Delivery status, e.g. sent, delivered, read, failed.","type":"string"},"text":{"type":"string"},"subject":{"description":"Email only.","type":"string"},"body":{"description":"Email only.","type":"string"},"connectionId":{"type":"string"},"connectionName":{"type":"string"},"userId":{"description":"The teammate who sent it, for outbound messages.","type":"integer"},"user":{"type":"object","properties":{"displayName":{"type":"string"},"signedUrl":{"type":"string"}},"required":["displayName"],"additionalProperties":false},"isLocked":{"description":"True when the plan or quota hides the content. Only the metadata is returned.","type":"boolean"},"lockReason":{"type":"string","enum":["plan","quota"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["_id","id","chatId","source","fromMe","timestamp","type","status"],"additionalProperties":false}},"count":{"description":"Total messages in the chat within the retention window.","type":"integer"},"currentPage":{"description":"Zero-based index of the page returned.","type":"integer"},"hasMore":{"description":"True when an older page exists.","type":"boolean"},"hasLockedMessages":{"description":"Present only when messages older than the retention window exist.","type":"boolean"},"retentionDays":{"description":"The plan's message retention window, in days.","type":"integer"},"sendRestrictions":{"description":"Per-channel sending state for this chat, e.g. whether the WhatsApp 24-hour window is open.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["list","count","currentPage","hasMore"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"id":"schema_3"},"schema_4":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"message":{"description":"The first problem, as \"field: reason\". It is one of the entries in details, not a separate sentence.","type":"string"},"details":{"description":"Present on a validation failure.","type":"object","properties":{"formErrors":{"description":"Problems with the request as a whole, which no single field accounts for.","type":"array","items":{"type":"string"}},"fieldErrors":{"description":"Field name to the problems with it. A field the endpoint does not accept is listed here under its own name, with \"Unrecognized key\".","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["formErrors","fieldErrors"],"additionalProperties":false}},"required":["message"],"additionalProperties":false},"id":"schema_4"},"schema_5":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"message":{"description":"e.g. \"API key is required\", \"Invalid API key\", or \"API key expired\"","type":"string"},"code":{"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Optional code e.g. MISSING_API_KEY when rate limiter runs before valid auth"},"children":[],"type":"text"}],"type":"paragraph"}],"type":"string"}},"required":["message"],"additionalProperties":false},"id":"schema_5"},"schema_6":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false},"id":"schema_6"},"schema_7":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"message":{"description":"e.g. \"Resource not found!\" or \"Record not found!\"","type":"string"}},"required":["message"],"additionalProperties":false},"id":"schema_7"},"schema_8":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"code":{"description":"Fixed code for rate limit responses","type":"string","const":"RATE_LIMIT_EXCEEDED"},"message":{"description":"e.g. \"Too many requests, please try again later.\"","type":"string"},"retryAfter":{"description":"Seconds until the rate limit window resets","type":"number"},"limit":{"description":"The plan limit that was applied, per endpoint per 10 seconds: Startup 20, Growth 50, Business 100.","type":"object","properties":{"points":{"type":"number"},"windowSec":{"type":"number"}},"required":["points","windowSec"],"additionalProperties":false}},"required":["code","message"],"additionalProperties":false},"id":"schema_8"},"schema_9":{"kind":"json-schema","data":{"type":"object","properties":{"RateLimit-Limit":{"type":"string","description":"Maximum requests allowed in the current window"},"RateLimit-Remaining":{"type":"string","description":"Requests remaining in the current window"},"RateLimit-Reset":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the rate limit window resets"},"Retry-After":{"type":"string","description":"Seconds until the client can retry (when applicable)"}}},"id":"schema_9"},"schema_10":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"message":{"description":"Generic: \"Something went wrong\", or a safe error message","type":"string"}},"required":["message"],"additionalProperties":false},"id":"schema_10"},"schema_11":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"search":{"description":"Text to search for. Maximum 200 characters.","type":"string","minLength":1,"maxLength":200},"page":{"description":"Zero-based page index. The first page is 0. Defaults to 0 when omitted.","example":0,"type":"integer","minimum":0,"maximum":2147483647},"limit":{"description":"Number of messages to return. Defaults to 20 when omitted. Maximum 500.","type":"integer","minimum":1,"maximum":500}},"required":["search"],"additionalProperties":false,"example":{"search":"hello","page":0,"limit":20}},"id":"schema_11"},"schema_12":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"data":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"chatId":{"description":"Pass this to GET /v1/messages to read the conversation.","type":"string"},"chatName":{"type":"string"},"previewId":{"type":"string"},"timestamp":{"type":"string"},"text":{"type":"string"},"source":{"type":"string"}},"required":["id","chatId","chatName","previewId","timestamp","source"],"additionalProperties":false}},"count":{"description":"Total matches across all pages.","type":"integer"},"currentPage":{"description":"Zero-based index of the page returned.","type":"integer"},"hasMore":{"description":"True when a later page exists.","type":"boolean"}},"required":["messages","count","currentPage","hasMore"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"id":"schema_12"},"schema_13":{"kind":"json-schema","data":{"type":"string","maxLength":255,"pattern":"^[\\x21-\\x7e]{1,255}$"},"id":"schema_13"},"schema_14":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"chatId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},"connectionId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},"message":{"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Channel message payload. A text message is { \"type\": \"text\", \"text\": \"Hello\" }."},"children":[],"type":"text"}],"type":"paragraph"}],"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"connectionConfig":{"description":"Per-send channel overrides. Leave it out unless support has given you the keys to set.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["chatId","connectionId","message"],"additionalProperties":false,"example":{"chatId":"507f1f77bcf86cd799439011","connectionId":"507f191e810c19729de860ea","message":{"type":"text","text":"Hello"}}},"id":"schema_14"},"schema_15":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"data":{"type":"object","properties":{"messageId":{"description":"Id of the queued message. It appears on the message once it is stored.","type":"string"},"status":{"type":"string","const":"queued"}},"required":["messageId","status"],"additionalProperties":false}},"required":["data"],"additionalProperties":false},"id":"schema_15"},"schema_16":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"message":{"description":"e.g. \"A request with this Idempotency-Key is still in progress.\"","type":"string"}},"required":["message"],"additionalProperties":false},"id":"schema_16"},"schema_17":{"kind":"json-schema","data":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"messageId":{"type":"string","minLength":1},"chatId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"},"connectionId":{"type":"string","pattern":"^[0-9a-fA-F]{24}$"}},"required":["messageId","chatId","connectionId"],"additionalProperties":false,"example":{"messageId":"wamid.example","chatId":"507f1f77bcf86cd799439011","connectionId":"507f191e810c19729de860ea"}},"id":"schema_17"}},"exampleStore":{"paths/~1v1~1messages/get/responses/400/content/application~1json/examples/invalidValue":{"value":{"message":"limit: Too big: expected number to be <=500","details":{"formErrors":[],"fieldErrors":{"limit":["Too big: expected number to be <=500"]}}},"key":"invalidValue","summary":"A field was out of range","id":"paths/~1v1~1messages/get/responses/400/content/application~1json/examples/invalidValue"},"paths/~1v1~1messages/get/responses/400/content/application~1json/examples/unknownField":{"value":{"message":"notAField: Unrecognized key","details":{"formErrors":[],"fieldErrors":{"notAField":["Unrecognized key"]}}},"key":"unknownField","summary":"The body carried a field the endpoint does not accept","id":"paths/~1v1~1messages/get/responses/400/content/application~1json/examples/unknownField"},"paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missing":{"value":{"message":"API key is required"},"key":"missing","summary":"Missing API key","id":"paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missing"},"paths/~1v1~1messages/get/responses/401/content/application~1json/examples/invalid":{"value":{"message":"Invalid API key"},"key":"invalid","summary":"Invalid API key","id":"paths/~1v1~1messages/get/responses/401/content/application~1json/examples/invalid"},"paths/~1v1~1messages/get/responses/401/content/application~1json/examples/expired":{"value":{"message":"API key expired"},"key":"expired","summary":"Expired API key","id":"paths/~1v1~1messages/get/responses/401/content/application~1json/examples/expired"},"paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missingFromRateLimiter":{"value":{"code":"MISSING_API_KEY","message":"API key is required for this endpoint"},"key":"missingFromRateLimiter","summary":"Missing auth when rate limiter runs first","id":"paths/~1v1~1messages/get/responses/401/content/application~1json/examples/missingFromRateLimiter"},"paths/~1v1~1messages/get/responses/403/content/application~1json/example":{"value":{"message":"Forbidden access"},"id":"paths/~1v1~1messages/get/responses/403/content/application~1json/example"},"paths/~1v1~1messages/get/responses/404/content/application~1json/examples/generic":{"value":{"message":"Resource not found!"},"key":"generic","summary":"Generic not found","id":"paths/~1v1~1messages/get/responses/404/content/application~1json/examples/generic"},"paths/~1v1~1messages/get/responses/404/content/application~1json/examples/record":{"value":{"message":"Record not found!"},"key":"record","summary":"Record not found","id":"paths/~1v1~1messages/get/responses/404/content/application~1json/examples/record"},"paths/~1v1~1messages/get/responses/429/content/application~1json/example":{"value":{"code":"RATE_LIMIT_EXCEEDED","message":"Too many requests, please try again later.","retryAfter":10,"limit":{"points":20,"windowSec":10}},"id":"paths/~1v1~1messages/get/responses/429/content/application~1json/example"},"paths/~1v1~1messages/get/responses/500/content/application~1json/examples/generic":{"value":{"message":"Something went wrong"},"key":"generic","summary":"Generic","id":"paths/~1v1~1messages/get/responses/500/content/application~1json/examples/generic"},"paths/~1v1~1messages/get/responses/500/content/application~1json/examples/withMessage":{"value":{"message":"Database connection failed"},"key":"withMessage","summary":"Error with message","id":"paths/~1v1~1messages/get/responses/500/content/application~1json/examples/withMessage"},"paths/~1v1~1messages~1search/post/requestBody/content/application~1json/example":{"value":{"search":"hello","page":0,"limit":20},"id":"paths/~1v1~1messages~1search/post/requestBody/content/application~1json/example"},"paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/invalidValue":{"value":{"message":"limit: Too big: expected number to be <=500","details":{"formErrors":[],"fieldErrors":{"limit":["Too big: expected number to be <=500"]}}},"key":"invalidValue","summary":"A field was out of range","id":"paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/invalidValue"},"paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/unknownField":{"value":{"message":"notAField: Unrecognized key","details":{"formErrors":[],"fieldErrors":{"notAField":["Unrecognized key"]}}},"key":"unknownField","summary":"The body carried a field the endpoint does not accept","id":"paths/~1v1~1messages~1search/post/responses/400/content/application~1json/examples/unknownField"},"paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missing":{"value":{"message":"API key is required"},"key":"missing","summary":"Missing API key","id":"paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missing"},"paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/invalid":{"value":{"message":"Invalid API key"},"key":"invalid","summary":"Invalid API key","id":"paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/invalid"},"paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/expired":{"value":{"message":"API key expired"},"key":"expired","summary":"Expired API key","id":"paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/expired"},"paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missingFromRateLimiter":{"value":{"code":"MISSING_API_KEY","message":"API key is required for this endpoint"},"key":"missingFromRateLimiter","summary":"Missing auth when rate limiter runs first","id":"paths/~1v1~1messages~1search/post/responses/401/content/application~1json/examples/missingFromRateLimiter"},"paths/~1v1~1messages~1search/post/responses/403/content/application~1json/example":{"value":{"message":"Forbidden access"},"id":"paths/~1v1~1messages~1search/post/responses/403/content/application~1json/example"},"paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/generic":{"value":{"message":"Resource not found!"},"key":"generic","summary":"Generic not found","id":"paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/generic"},"paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/record":{"value":{"message":"Record not found!"},"key":"record","summary":"Record not found","id":"paths/~1v1~1messages~1search/post/responses/404/content/application~1json/examples/record"},"paths/~1v1~1messages~1search/post/responses/429/content/application~1json/example":{"value":{"code":"RATE_LIMIT_EXCEEDED","message":"Too many requests, please try again later.","retryAfter":10,"limit":{"points":20,"windowSec":10}},"id":"paths/~1v1~1messages~1search/post/responses/429/content/application~1json/example"},"paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/generic":{"value":{"message":"Something went wrong"},"key":"generic","summary":"Generic","id":"paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/generic"},"paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/withMessage":{"value":{"message":"Database connection failed"},"key":"withMessage","summary":"Error with message","id":"paths/~1v1~1messages~1search/post/responses/500/content/application~1json/examples/withMessage"},"paths/~1v1~1messages~1send/post/requestBody/content/application~1json/example":{"value":{"chatId":"507f1f77bcf86cd799439011","connectionId":"507f191e810c19729de860ea","message":{"type":"text","text":"Hello"}},"id":"paths/~1v1~1messages~1send/post/requestBody/content/application~1json/example"},"paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/invalidValue":{"value":{"message":"limit: Too big: expected number to be <=500","details":{"formErrors":[],"fieldErrors":{"limit":["Too big: expected number to be <=500"]}}},"key":"invalidValue","summary":"A field was out of range","id":"paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/invalidValue"},"paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/unknownField":{"value":{"message":"notAField: Unrecognized key","details":{"formErrors":[],"fieldErrors":{"notAField":["Unrecognized key"]}}},"key":"unknownField","summary":"The body carried a field the endpoint does not accept","id":"paths/~1v1~1messages~1send/post/responses/400/content/application~1json/examples/unknownField"},"paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missing":{"value":{"message":"API key is required"},"key":"missing","summary":"Missing API key","id":"paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missing"},"paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/invalid":{"value":{"message":"Invalid API key"},"key":"invalid","summary":"Invalid API key","id":"paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/invalid"},"paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/expired":{"value":{"message":"API key expired"},"key":"expired","summary":"Expired API key","id":"paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/expired"},"paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missingFromRateLimiter":{"value":{"code":"MISSING_API_KEY","message":"API key is required for this endpoint"},"key":"missingFromRateLimiter","summary":"Missing auth when rate limiter runs first","id":"paths/~1v1~1messages~1send/post/responses/401/content/application~1json/examples/missingFromRateLimiter"},"paths/~1v1~1messages~1send/post/responses/403/content/application~1json/example":{"value":{"message":"Forbidden access"},"id":"paths/~1v1~1messages~1send/post/responses/403/content/application~1json/example"},"paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/generic":{"value":{"message":"Resource not found!"},"key":"generic","summary":"Generic not found","id":"paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/generic"},"paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/record":{"value":{"message":"Record not found!"},"key":"record","summary":"Record not found","id":"paths/~1v1~1messages~1send/post/responses/404/content/application~1json/examples/record"},"paths/~1v1~1messages~1send/post/responses/409/content/application~1json/example":{"value":{"message":"A request with this Idempotency-Key is still in progress. Retry once it finishes."},"id":"paths/~1v1~1messages~1send/post/responses/409/content/application~1json/example"},"paths/~1v1~1messages~1send/post/responses/429/content/application~1json/example":{"value":{"code":"RATE_LIMIT_EXCEEDED","message":"Too many requests, please try again later.","retryAfter":10,"limit":{"points":20,"windowSec":10}},"id":"paths/~1v1~1messages~1send/post/responses/429/content/application~1json/example"},"paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/generic":{"value":{"message":"Something went wrong"},"key":"generic","summary":"Generic","id":"paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/generic"},"paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/withMessage":{"value":{"message":"Database connection failed"},"key":"withMessage","summary":"Error with message","id":"paths/~1v1~1messages~1send/post/responses/500/content/application~1json/examples/withMessage"},"paths/~1v1~1messages~1retry/post/requestBody/content/application~1json/example":{"value":{"messageId":"wamid.example","chatId":"507f1f77bcf86cd799439011","connectionId":"507f191e810c19729de860ea"},"id":"paths/~1v1~1messages~1retry/post/requestBody/content/application~1json/example"},"paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/invalidValue":{"value":{"message":"limit: Too big: expected number to be <=500","details":{"formErrors":[],"fieldErrors":{"limit":["Too big: expected number to be <=500"]}}},"key":"invalidValue","summary":"A field was out of range","id":"paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/invalidValue"},"paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/unknownField":{"value":{"message":"notAField: Unrecognized key","details":{"formErrors":[],"fieldErrors":{"notAField":["Unrecognized key"]}}},"key":"unknownField","summary":"The body carried a field the endpoint does not accept","id":"paths/~1v1~1messages~1retry/post/responses/400/content/application~1json/examples/unknownField"},"paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missing":{"value":{"message":"API key is required"},"key":"missing","summary":"Missing API key","id":"paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missing"},"paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/invalid":{"value":{"message":"Invalid API key"},"key":"invalid","summary":"Invalid API key","id":"paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/invalid"},"paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/expired":{"value":{"message":"API key expired"},"key":"expired","summary":"Expired API key","id":"paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/expired"},"paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missingFromRateLimiter":{"value":{"code":"MISSING_API_KEY","message":"API key is required for this endpoint"},"key":"missingFromRateLimiter","summary":"Missing auth when rate limiter runs first","id":"paths/~1v1~1messages~1retry/post/responses/401/content/application~1json/examples/missingFromRateLimiter"},"paths/~1v1~1messages~1retry/post/responses/403/content/application~1json/example":{"value":{"message":"Forbidden access"},"id":"paths/~1v1~1messages~1retry/post/responses/403/content/application~1json/example"},"paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/generic":{"value":{"message":"Resource not found!"},"key":"generic","summary":"Generic not found","id":"paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/generic"},"paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/record":{"value":{"message":"Record not found!"},"key":"record","summary":"Record not found","id":"paths/~1v1~1messages~1retry/post/responses/404/content/application~1json/examples/record"},"paths/~1v1~1messages~1retry/post/responses/409/content/application~1json/example":{"value":{"message":"A request with this Idempotency-Key is still in progress. Retry once it finishes."},"id":"paths/~1v1~1messages~1retry/post/responses/409/content/application~1json/example"},"paths/~1v1~1messages~1retry/post/responses/429/content/application~1json/example":{"value":{"code":"RATE_LIMIT_EXCEEDED","message":"Too many requests, please try again later.","retryAfter":10,"limit":{"points":20,"windowSec":10}},"id":"paths/~1v1~1messages~1retry/post/responses/429/content/application~1json/example"},"paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/generic":{"value":{"message":"Something went wrong"},"key":"generic","summary":"Generic","id":"paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/generic"},"paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/withMessage":{"value":{"message":"Database connection failed"},"key":"withMessage","summary":"Error with message","id":"paths/~1v1~1messages~1retry/post/responses/500/content/application~1json/examples/withMessage"}},"securitySchemeStore":{"bearerAuth":{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"API key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key required in Authorization header. Format: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"iclosed_<token>"},"children":[],"type":"code"}],"type":"paragraph"}]},"oauth2":{"id":"oauth2","type":"oauth2","description":"OAuth 2.1 authorization code with PKCE. Tokens are issued by the iClosed authorization server and accepted by the Unified Inbox API.","flows":{"authorizationCode":{"authorizationUrl":"https://app.iclosed.io/oauth/authorize","tokenUrl":"https://public.api.iclosed.io/v1/oauth/token","refreshUrl":"https://public.api.iclosed.io/v1/oauth/token","scopes":{"inbox.chats:read":"Read inbox chats","inbox.chats:write":"Create, update and assign inbox chats","inbox.messages:read":"Read inbox messages","inbox.messages:write":"Send and retry inbox messages","inbox.connections:read":"Read channel connections","inbox.analytics:read":"Read inbox analytics","inbox.recordings:read":"Read call recordings","inbox.recordings:write":"Generate call recording summaries","inbox.workflows:read":"Read inbox workflows"}}}}},"specVersion":"3.1.0","servers":[{"url":"/_mock/openapi/uinbox/v1/modules/messages","isMockServer":true,"description":"Mock server"},{"url":"https://uinboxpub.api.iclosed.io","description":"Production"}],"specType":"openapi"},"options":{"jsonSamplesExpandLevel":"all","mockServer":{"url":"/_mock/openapi/uinbox/v1/modules/messages","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/openapi/uinbox/v1/modules/messages.json?download"},{"url":"/_bundle/openapi/uinbox/v1/modules/messages.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false,"asyncapi":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Messages","description":"Chat messages, and sending them.\n\n**A send reaches a real person and there is no test mode.** Before you build against it:\n\n- `message` is the channel's own payload. A text message is `{ \"type\": \"text\", \"text\": \"Hello\" }`; media and templates differ per channel.\n- **WhatsApp** only allows a free-form message within 24 hours of the contact's last inbound message. Outside that window the send must be an approved template, or it fails.\n- **Instagram** cannot open a conversation. The contact has to message first.\n- **SMS** honours opt-out: once a contact has replied STOP, sends to them fail.\n- Each connection has its own limits — daily conversation caps and per-line rules. `sendRules` on `GET /v1/connections/list` is the current state for a connection, and `sendRestrictions` on `GET /v1/messages` is the state for one chat.\n- A rule that blocks a send returns 4xx with the reason in `message`. A send that is accepted returns `data.status: \"queued\"`; delivery or failure appears later on the message itself.\n- Retrying after a timeout? Send the same `Idempotency-Key` and the original response comes back instead of a second message."}},"baseSlug":"/openapi/uinbox/v1/modules/messages","routesMapping":{}}