{"info":{"_postman_id":"04d72265-d912-405c-b46e-b8afe2d5fddf","name":"Conversation API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Core REST Proxy","item":[{"name":"App Service","item":[{"name":"List all apps","id":"7604bec4-58a5-4dcc-b40f-cfbd9d84979e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"","disabled":true}],"url":"{{API_URL}}/apps","description":"Get a list of all apps in the specified project."},"response":[]},{"name":"Create an App","id":"ebf84ab2-7ab8-4d60-99eb-09ef65276e6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"channel_credentials\": [\n        {\n            \"channel\": \"WHATSAPP\",\n            \"static_bearer\": {\n                \"claimed_identity\": \"__whats_app_bot_id__\",\n                \"token\": \"__whats_app_bot_token__\"\n            }\n        },\n        {\n            \"channel\": \"MESSENGER\",\n            \"static_token\": {\n                \"token\": \"__messenger_token__\"\n            }\n        },\n        {\n            \"channel\": \"RCS\",\n            \"static_bearer\": {\n                \"claimed_identity\": \"__rcs_auth_id__\",\n                \"token\": \"__rcs_token__\"\n            }\n        },\n        {\n            \"channel\": \"SMS\",\n            \"static_bearer\": {\n                \"claimed_identity\": \"__sms_service_plan_id__\",\n                \"token\": \"__service_plan_token__\"\n            }\n        }\n    ],\n    \"display_name\": \"App name\"\n}"},"url":"{{API_URL}}/apps","description":"You can create a new Conversation API app using the API. You can create an app for one or more channels at once. The ID of the app is generated at creation and will be returned in the response."},"response":[]},{"name":"Update an app","id":"e9f07dc4-1ab3-44b4-a2b1-f82dbcb367bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"channel_credentials\": [\n        {\n            \"channel\": \"WHATSAPP\",\n            \"static_bearer\": {\n                \"claimed_identity\": \"__whats_app_bot_id__\",\n                \"token\": \"__whats_app_bot_token__\"\n            }\n        },\n        {\n            \"channel\": \"MESSENGER\",\n            \"static_token\": {\n                \"token\": \"__messenger_token__\"\n            }\n        },\n        {\n            \"channel\": \"RCS\",\n            \"static_bearer\": {\n                \"claimed_identity\": \"__rcs_auth_id__\",\n                \"token\": \"__rcs_token__\"\n            }\n        },\n        {\n            \"channel\": \"SMS\",\n            \"static_bearer\": {\n                \"claimed_identity\": \"__sms_service_plan_id__\",\n                \"token\": \"__service_plan_token__\"\n            }\n        }\n    ],\n    \"display_name\": \"Updated App name\"\n}"},"url":{"raw":"{{API_URL}}/apps/:app_id","host":["{{API_URL}}"],"path":["apps",":app_id"],"variable":[{"id":"9b4ab634-18ce-4982-9528-c7c8069dd696","key":"app_id","value":"{{APP}}","description":"(Required) The unique ID of the app."}]},"description":"Updates a particular app as specified by the App ID."},"response":[]},{"name":"Delete an app","id":"63834e47-74e4-4bf5-ab74-dc4316e3bf63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":{"raw":"{{API_URL}}/apps/:app_id","host":["{{API_URL}}"],"path":["apps",":app_id"],"variable":[{"id":"a2c4a126-b98e-4a1c-9e86-0585b8aae7f6","key":"app_id","value":"{{APP}}","description":"(Required) The unique ID of the app."}]},"description":"Deletes a particular app as specified by the App ID."},"response":[]},{"name":"Get an app","id":"2410b5b3-861e-4c8c-b6a2-8a958f7b5305","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{API_URL}}/apps/:app_id","host":["{{API_URL}}"],"path":["apps",":app_id"],"variable":[{"id":"1d1eee68-2ae3-427b-8f79-d48b151bf23b","key":"app_id","value":"{{APP}}","description":"(Required) The unique ID of the app."}]},"description":"Returns a particular app as specified by the App ID."},"response":[]}],"id":"7c9ab0fc-77a7-4cb7-a32b-8e2c31240c67","description":"Apps are created and configured through the Sinch Dashboard, are tied to the API user and come with a set of channel credentials for each underlying connected channel. The app has a list of conversations between itself and different contacts which share the same project.\n\nWebhooks, which the app is attached to, defines the destination for various events coming from the Conversation API.","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"fa176e97-7f85-44e7-971c-7f2c97d15a5b"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"b4714e50-21b6-440f-b7cf-4bc5509a262d"}}]},{"name":"Contact Management Service","item":[{"name":"Create Contact","id":"f11b3728-f23c-4e12-9f34-2f14d057d17c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"channel_identities\": [\n        {\n            \"channel\": \"MESSENGER\",\n            \"identity\": \"__messenger_id__\",\n            \"app_id\": \"{{APP}}\"\n        },\n        {\n            \"channel\": \"WHATSAPP\",\n            \"identity\": \"__whatsapp_id__\"\n        },\n        {\n            \"channel\": \"RCS\",\n            \"identity\": \"__rcs_id__\"\n        },\n        {\n            \"channel\": \"SMS\",\n            \"identity\": \"__sms_id__\"\n        }\n    ],\n    \"channel_priority\": [\n        \"MESSENGER\", \"RCS\", \"WHATSAPP\", \"SMS\"\n    ]\n}"},"url":"{{API_URL}}/contacts","description":"You can create a new contact."},"response":[]},{"name":"Get a Contact","id":"9a3b2c24-f32d-4feb-8a0b-aa21af6409cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/contacts/:contact_id","host":["{{API_URL}}"],"path":["contacts",":contact_id"],"query":[{"key":"","value":null,"disabled":true}],"variable":[{"id":"77f97467-844c-4864-bddb-53397dd08a84","key":"contact_id","value":"{{CONTACT}}","description":"(Required) The unique ID of the contact."}]},"description":"Returns a specific contact as specified by the contact ID."},"response":[]},{"name":"Delete a Contact","id":"92639986-b691-44a7-817c-138d7f10ed53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":{"raw":"{{API_URL}}/contacts/:contact_id","host":["{{API_URL}}"],"path":["contacts",":contact_id"],"variable":[{"id":"c904453e-0cfb-48fa-a99b-c90907445c39","key":"contact_id","value":"{{CONTACT}}","description":"(Required) The unique ID of the contact."}]},"description":"Delete a contact as specified by the contact ID."},"response":[]},{"name":"Delete all Contacts","id":"5b620aa2-a41e-46f6-bb21-985bc4ac472f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{API_URL}}/contacts:deleteAll","description":"This method **deletes all contacts under the Project** specified on the path, which can be in use across multiple Apps. It also **deletes conversations and messages** associated with the contacts.\n\n**This operation is not reversible**"},"response":[]},{"name":"Update a Contact","id":"e0b4feb9-3719-4e34-bb83-17eca1a95135","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"channel_identities\": [\n        {\n            \"channel\": \"MESSENGER\",\n            \"identity\": \"__messenger_id__\",\n            \"app_id\": \"{{APP}}\"\n        },\n        {\n            \"channel\": \"WHATSAPP\",\n            \"identity\": \"__whatsapp_id__\"\n        },\n        {\n            \"channel\": \"RCS\",\n            \"identity\": \"__rcs_id__\"\n        },\n        {\n            \"channel\": \"SMS\",\n            \"identity\": \"__sms_id__\"\n        }\n    ],\n    \"channel_priority\": [\n        \"MESSENGER\", \"RCS\", \"WHATSAPP\", \"SMS\"\n    ]\n}"},"url":{"raw":"{{API_URL}}/contacts/:contact_id","host":["{{API_URL}}"],"path":["contacts",":contact_id"],"variable":[{"id":"62e81038-f627-4c6f-a3d2-b8b54c7f1518","key":"contact_id","value":"{{CONTACT}}","description":"(Required) The unique ID of the contact."}]},"description":"Updates a contact as specified by the contact ID."},"response":[]},{"name":"List Contacts","id":"6bbbf99e-9fe2-431b-a313-663089a43556","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/contacts","host":["{{API_URL}}"],"path":["contacts"],"query":[{"key":"page_size","value":"10","description":"The maximum number of contacts to fetch. Defaults to 10 and the maximum is 20.","disabled":true},{"key":"page_token","value":"token","description":"Next page token previously returned if any.","disabled":true},{"key":"external_id","value":"externalId","description":"Optional. Contact identifier in an external system.","disabled":true},{"key":"channel","value":"WHATSAPP","description":"Optional. Conversation channel.","disabled":true},{"key":"identity","value":"__whatsapp_id__","description":"Optional. The channel identity e.g., a phone number for SMS, WhatsApp and Viber Business.","disabled":true}]},"description":"List all contacts in the project."},"response":[]},{"name":"Merge Two Contacts","id":"b1a80747-14a1-46c2-b4f3-434a3e7b4162","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"source_id\": \"{{MERGE_CONTACT}}\"\n}"},"url":"{{API_URL}}/contacts/{{CONTACT}}:merge","description":"The remaining contact will contain all conversations that the removed contact did. If both contacts had conversations within the same App, messages from the removed contact will be merged into corresponding active conversations in the destination contact. Channel identities will be moved from the source contact to the destination contact only for channels that weren't present there before. Moved channel identities will be placed at the bottom of the channel priority list. Optional fields from the source contact will be copied only if corresponding fields in the destination contact are empty The contact being removed cannot be referenced after this call."},"response":[]},{"name":"Get Contact Channel Profile","id":"d7868e7b-01ef-4bf7-ba81-a7cecf18e51e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"contact_id\": \"{{CONTACT}}\"\n    },\n    \"channel\": \"MESSENGER\"\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/contacts:getChannelProfile","description":"Get user profile from a specific channel."},"response":[]},{"name":"Lists Contact Identity Conflicts","id":"a0a7faff-b8ee-48a9-9b40-fc23087f5fa9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/contacts:identityConflicts?page_size=10","host":["{{API_URL}}"],"path":["contacts:identityConflicts"],"query":[{"key":"page_size","value":"10","description":"Maximum number of conflicts to return (max 20)."},{"key":"page_token","value":"token","description":"Pagination token for retrieving next page.","disabled":true}]},"description":"Lists contact identity conflicts across supported SIM-based channels (SMS, MMS, RCS). Use this to identify contact records sharing the same identity (e.g., phone number), which must be resolved before enabling the Unified Contact ID feature."},"response":[]}],"id":"44f1c102-1712-4e9b-b64d-88ffe1fded17","description":"A contact is a collection that groups together underlying connected channel recipient identities. It's tied to a specific project and is therefore considered public to all apps sharing the same project.","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"fda1521b-e46b-4a8a-a23f-c35ac32dded5"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"9179ff6b-652f-481b-be22-f97a9d6268b5"}}]},{"name":"Conversation Service","item":[{"name":"Get a conversation","id":"dae74a7b-7d2f-487a-8134-7fb2759e128f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/conversations/:conversation_id","host":["{{API_URL}}"],"path":["conversations",":conversation_id"],"variable":[{"id":"517538da-b737-4c7e-8af8-1a03150b7a6c","key":"conversation_id","value":"{{CONVERSATION}}","description":"(Required) The unique ID of the conversation."}]},"description":"Retrieves a conversation by id. A conversation has two participating entities, an app and a contact."},"response":[]},{"name":"Update a conversation","id":"42292f9e-9791-485a-8a7e-6dd2e7cb0d7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"metadata\": \"some metadata\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/conversations/:conversation_id","host":["{{API_URL}}"],"path":["conversations",":conversation_id"],"query":[{"key":"update_mask.paths","value":"<string>","description":"The set of field mask paths.","disabled":true},{"key":"metadata_update_strategy","value":"REPLACE","description":"Default: \"REPLACE\"\nEnum: \"REPLACE\" \"MERGE_PATCH\"","disabled":true},{"key":"","value":"","disabled":true}],"variable":[{"id":"9d6950d1-a84d-4309-bd00-9b8a7b1b87cd","key":"conversation_id","value":"{{CONVERSATION}}","description":"(Required) The unique ID of the conversation. This is generated by the system."}]},"description":"This operation updates a conversation which can, for instance, be used to update the metadata associated with a conversation."},"response":[]},{"name":"List Conversations","id":"413caff3-0cb2-4249-9075-be838ba7152e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/conversations?only_active=false&app_id={{APP}}","host":["{{API_URL}}"],"path":["conversations"],"query":[{"key":"only_active","value":"false","description":"(Required) True if only active conversations should be listed."},{"key":"app_id","value":"{{APP}}","description":"At least one of app_id or contact_id must be present."},{"key":"contact_id","value":"{{CONTACT}}","description":"At least one of app_id or contact_id must be present.","disabled":true},{"key":"page_size","value":"10","description":"The maximum number of conversations to fetch. Defaults to 10 and the maximum is 20.","disabled":true},{"key":"page_token","value":"token","description":"Next page token previously returned if any.","disabled":true}]},"description":"This operation lists all conversations that are associated with an app and/or a contact."},"response":[]},{"name":"Stop Active Connversation","id":"2489b2ce-0fc9-4590-bb66-c8ea27921c69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{API_URL}}/conversations/{{CONVERSATION}}:stop","description":"This operation stops the referenced conversation, if the conversation is still active. A new conversation will be created if a new message is exchanged between the app or contact that was part of the stopped conversation."},"response":[]},{"name":"Inject Message into Conversation","id":"a925e967-a565-4695-8aac-aa344e115256","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"direction\": \"TO_CONTACT\",\n\t\"app_message\": {\n    \t\"text_message\": {\n        \t\"text\": \"Text message from Sinch Conversation API.\"\n    \t}\n\t},\n\t\"channel\": \"{{CHANNEL_FOR_MESSAGE_SEND}}\",\n\t\"conversation_id\": \"{{CONVERSATION}}\",\n\t\"contact_id\": \"{{CONTACT}}\",\n\t\"accept_time\": \"2020-04-18T07:53:34.879Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/conversations/{{CONVERSATION}}:inject-message","description":"This operation injects a conversation message in to a specific conversation."},"response":[]},{"name":"Delete a conversation","id":"23d25f9e-daca-45ac-b616-93db4d576053","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":{"raw":"{{API_URL}}/conversations/:conversation_id","host":["{{API_URL}}"],"path":["conversations",":conversation_id"],"variable":[{"id":"8dc0473e-957b-471e-9f92-07fcf6a7f2a1","key":"conversation_id","value":"{{CONVERSATION}}","description":"(Required) The unique ID of the conversation."}]},"description":"Deletes a conversation together with all the messages sent as part of the conversation."},"response":[]},{"name":"Create a conversation","id":"55848300-32ea-4b2b-9534-34866caf165f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"active\": true,\n    \"active_channel\": \"{{CHANNEL_FOR_MESSAGE_SEND}}\",\n    \"app_id\": \"{{APP}}\",\n    \"contact_id\": \"{{CONTACT}}\",\n    \"metadata\": \"string\",\n    \"conversation_metadata\": { }\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/conversations","description":"Creates a new empty conversation. It is generally not needed to create a conversation explicitly since sending or receiving a message automatically creates a new conversation if it does not already exist between the given app and contact. Creating empty conversation is useful if the metadata of the conversation should be populated when the first message in the conversation is a contact message or the first message in the conversation comes out-of-band and needs to be injected with InjectMessage endpoint."},"response":[]}],"id":"77bfc4b1-a294-4c17-bfc9-dfee943265a3","description":"Endpoints for working with the conversation log.","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"c71e8a35-c301-416a-ba65-ea9c247d049b"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"edc90757-0fe9-462a-96f4-eadd428fa9f3"}}]},{"name":"Events Service","item":[{"name":"Send Event","id":"e73543d8-7ee1-4101-9fcc-a7810a89400a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"app_id\": \"{{APP}}\",\n    \"recipient\": {\n    \t\"contact_id\": \"{{CONTACT}}\"\n    },\n    \"event\": {\n\t\t\"composing_event\": {\n\t\t\t\n\t\t}\n\t}\n}"},"url":"{{API_URL}}/events:send","description":"Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queues so a successful response only indicates that the event has been queued."},"response":[]}],"id":"508de55b-57eb-4edd-b49d-e07ed79a04ea","description":"Endpoint for sending events.","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"4312b9b7-1261-4bb4-8eff-7f568d4bc1ed"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"750762d4-847f-4b2b-87c5-72b4d1aacb7c"}}]},{"name":"Messages Service","item":[{"name":"Messages","item":[{"name":"Text Message","id":"305b0c4e-36cb-494c-9f5a-0d744833ac3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"identified_by\": {\n            \"channel_identities\": [\n                {\n                    \"channel\": \"{{CHANNEL_FOR_MESSAGE_SEND}}\",\n                    \"identity\": \"{{CHANNEL_IDENTITY}}\"\n                }\n            ]\n        }\n    },\n    \"message\": {\n        \"text_message\": {\n            \"text\": \"Text message from Sinch Conversation API.\"\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"response":[{"id":"18e41653-5742-4692-aa32-261aabaa6e04","name":"Contact Based","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n    \t\"contact_id\": \"{{CONTACT}}\"\n    },\n    \"message\": {\n        \"text_message\": {\n            \"text\": \"Text message from Sinch Conversation API.\"\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/messages:send"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}]},{"name":"Media Message","id":"316ed899-7998-4ce0-9887-cc37c86db0b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"identified_by\": {\n            \"channel_identities\": [\n                {\n                    \"channel\": \"{{CHANNEL_FOR_MESSAGE_SEND}}\",\n                    \"identity\": \"{{CHANNEL_IDENTITY}}\"\n                }\n            ]\n        }\n    },\n    \"message\": {\n        \"media_message\": {\n            \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2018/12/favicon.png\"\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"response":[{"id":"f854f112-38bf-4d5f-99f9-88d2f1ae84f4","name":"Contact Based","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n    \t\"contact_id\": \"{{CONTACT}}\"\n    },\n    \"message\": {\n        \"media_message\": {\n            \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2018/12/favicon.png\"\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}]},{"name":"Choice Message","id":"cbc085b4-325b-4dcd-b0ef-6dd79c9d22e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"identified_by\": {\n            \"channel_identities\": [\n                {\n                    \"channel\": \"{{CHANNEL_FOR_MESSAGE_SEND}}\",\n                    \"identity\": \"{{CHANNEL_IDENTITY}}\"\n                }\n            ]\n        }\n    },\n    \"message\": {\n        \"choice_message\": {\n            \"text_message\": {\n                \"text\": \"What do you want to do?\"\n            },\n            \"choices\": [\n                {\n                    \"text_message\": {\n                        \"text\": \"Suggested Reply Text\"\n                    }\n                },\n                {\n                    \"url_message\": {\n                        \"title\": \"URL Choice Message:\",\n                        \"url\": \"https://www.sinch.com\"\n                    }\n                },\n                {\n                    \"call_message\": {\n                        \"title\": \"Call Choice Message:Q\",\n                        \"phone_number\": \"46732000000\"\n                    }\n                },\n                {\n                    \"location_message\": {\n                        \"title\": \"Location Choice Message\",\n                        \"label\": \"Enriching Engagement\",\n                        \"coordinates\": {\n                            \"latitude\": 55.610479,\n                            \"longitude\": 13.002873\n                        }\n                    }\n                }\n            ]\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"response":[{"id":"42f3ed3e-3715-44dc-be0f-f0ca497197f7","name":"Contact Based","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n    \t\"contact_id\": \"{{CONTACT}}\"\n    },\n    \"message\": {\n        \"choice_message\": {\n            \"text_message\": {\n                \"text\": \"What do you want to do?\"\n            },\n            \"choices\": [\n                {\n                    \"text_message\": {\n                        \"text\": \"Suggested Reply Text\"\n                    }\n                },\n                {\n                    \"url_message\": {\n                        \"title\": \"URL Choice Message:\",\n                        \"url\": \"https://www.sinch.com\"\n                    }\n                },\n                {\n                    \"call_message\": {\n                        \"title\": \"Call Choice Message:Q\",\n                        \"phone_number\": \"46732000000\"\n                    }\n                },\n                {\n                    \"location_message\": {\n                        \"title\": \"Location Choice Message\",\n                        \"label\": \"Enriching Engagement\",\n                        \"coordinates\": {\n                            \"latitude\": 55.610479,\n                            \"longitude\": 13.002873\n                        }\n                    }\n                }\n            ]\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}]},{"name":"Card Message","id":"7c64a8ef-846c-439d-953a-6a782704a156","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"identified_by\": {\n            \"channel_identities\": [\n                {\n                    \"channel\": \"{{CHANNEL_FOR_MESSAGE_SEND}}\",\n                    \"identity\": \"{{CHANNEL_IDENTITY}}\"\n                }\n            ]\n        }\n    },\n    \"message\": {\n        \"card_message\": {\n            \"title\": \"This is the card title\",\n            \"description\": \"This is the card description\",\n            \"media_message\": {\n                \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n            },\n            \"choices\": [\n                {\n                    \"text_message\": {\n                        \"text\": \"Suggested Reply Text\"\n                    }\n                },\n                {\n                    \"url_message\": {\n                        \"title\": \"URL Choice Message:\",\n                        \"url\": \"https://www.sinch.com\"\n                    }\n                },\n                {\n                    \"call_message\": {\n                        \"title\": \"Call Choice Message:Q\",\n                        \"phone_number\": \"46732000000\"\n                    }\n                },\n                {\n                    \"location_message\": {\n                        \"title\": \"Location Choice Message\",\n                        \"label\": \"Enriching Engagement\",\n                        \"coordinates\": {\n                            \"latitude\": 55.610479,\n                            \"longitude\": 13.002873\n                        }\n                    }\n                }\n            ]\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"response":[{"id":"cf804bc6-6eae-4eb3-b144-dc2073f542cd","name":"Contact Based","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n    \t\"contact_id\": \"{{CONTACT}}\"\n    },\n    \"message\": {\n        \"card_message\": {\n            \"title\": \"This is the card title\",\n            \"description\": \"This is the card description\",\n            \"media_message\": {\n                \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n            },\n            \"choices\": [\n                {\n                    \"text_message\": {\n                        \"text\": \"Suggested Reply Text\"\n                    }\n                },\n                {\n                    \"url_message\": {\n                        \"title\": \"URL Choice Message:\",\n                        \"url\": \"https://www.sinch.com\"\n                    }\n                },\n                {\n                    \"call_message\": {\n                        \"title\": \"Call Choice Message:Q\",\n                        \"phone_number\": \"46732000000\"\n                    }\n                },\n                {\n                    \"location_message\": {\n                        \"title\": \"Location Choice Message\",\n                        \"label\": \"Enriching Engagement\",\n                        \"coordinates\": {\n                            \"latitude\": 55.610479,\n                            \"longitude\": 13.002873\n                        }\n                    }\n                }\n            ]\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}]},{"name":"Carousel Message","id":"ef5c34a4-7a20-404a-a644-96b0fa5e05dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"identified_by\": {\n            \"channel_identities\": [\n                {\n                    \"channel\": \"{{CHANNEL_FOR_MESSAGE_SEND}}\",\n                    \"identity\": \"{{CHANNEL_IDENTITY}}\"\n                }\n            ]\n        }\n    },\n    \"message\": {\n        \"carousel_message\": {\n            \"cards\": [\n                {\n                    \"title\": \"This is the card 1 title\",\n                    \"description\": \"This is the card 1 description\",\n                    \"media_message\": {\n                        \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n                    },\n                    \"choices\": [\n                        {\n                            \"text_message\": {\n                                \"text\": \"Suggested Reply 1 Text\"\n                            }\n                        },\n                        {\n                            \"text_message\": {\n                                \"text\": \"Suggested Reply 2 Text\"\n                            }\n                        },\n                        {\n                            \"text_message\": {\n                                \"text\": \"Suggested Reply 3 Text\"\n                            }\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"This is the card 2 title\",\n                    \"description\": \"This is the card 2 description\",\n                    \"media_message\": {\n                        \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n                    },\n                    \"choices\": [\n                        {\n                            \"url_message\": {\n                                \"title\": \"URL Choice Message:\",\n                                \"url\": \"https://www.sinch.com\"\n                            }\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"This is the card 3 title\",\n                    \"description\": \"This is the card 3 description\",\n                    \"media_message\": {\n                        \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n                    },\n                    \"choices\": [\n                        {\n                            \"call_message\": {\n                                \"title\": \"Call Choice Message:Q\",\n                                \"phone_number\": \"46732000000\"\n                            }\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"This is the card 4 title\",\n                    \"description\": \"This is the card 4 description\",\n                    \"media_message\": {\n                        \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n                    },\n                    \"choices\": [\n                        {\n                            \"location_message\": {\n                                \"title\": \"Location Choice Message\",\n                                \"label\": \"Enriching Engagement\",\n                                \"coordinates\": {\n                                    \"latitude\": 55.610479,\n                                    \"longitude\": 13.002873\n                                }\n                            }\n                        }\n                    ]\n                }\n            ]\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"response":[{"id":"de82e7af-d23d-4e1a-93b3-cf188aaa4493","name":"Contact Based","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n    \t\"contact_id\": \"{{CONTACT}}\"\n    },\n    \"message\": {\n        \"carousel_message\": {\n            \"cards\": [\n                {\n                    \"title\": \"This is the card 1 title\",\n                    \"description\": \"This is the card 1 description\",\n                    \"media_message\": {\n                        \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n                    },\n                    \"choices\": [\n                        {\n                            \"text_message\": {\n                                \"text\": \"Suggested Reply 1 Text\"\n                            }\n                        },\n                        {\n                            \"text_message\": {\n                                \"text\": \"Suggested Reply 2 Text\"\n                            }\n                        },\n                        {\n                            \"text_message\": {\n                                \"text\": \"Suggested Reply 3 Text\"\n                            }\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"This is the card 2 title\",\n                    \"description\": \"This is the card 2 description\",\n                    \"media_message\": {\n                        \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n                    },\n                    \"choices\": [\n                        {\n                            \"url_message\": {\n                                \"title\": \"URL Choice Message:\",\n                                \"url\": \"https://www.sinch.com\"\n                            }\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"This is the card 3 title\",\n                    \"description\": \"This is the card 3 description\",\n                    \"media_message\": {\n                        \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n                    },\n                    \"choices\": [\n                        {\n                            \"call_message\": {\n                                \"title\": \"Call Choice Message:Q\",\n                                \"phone_number\": \"46732000000\"\n                            }\n                        }\n                    ]\n                },\n                {\n                    \"title\": \"This is the card 4 title\",\n                    \"description\": \"This is the card 4 description\",\n                    \"media_message\": {\n                        \"url\": \"https://1vxc0v12qhrm1e72gq1mmxkf-wpengine.netdna-ssl.com/wp-content/uploads/2019/05/Sinch-logo-Events.png\"\n                    },\n                    \"choices\": [\n                        {\n                            \"location_message\": {\n                                \"title\": \"Location Choice Message\",\n                                \"label\": \"Enriching Engagement\",\n                                \"coordinates\": {\n                                    \"latitude\": 55.610479,\n                                    \"longitude\": 13.002873\n                                }\n                            }\n                        }\n                    ]\n                }\n            ]\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}]},{"name":"Location Message","id":"04481a3c-18d2-4a33-8719-af3423d6a871","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"identified_by\": {\n            \"channel_identities\": [\n                {\n                    \"channel\": \"{{CHANNEL_FOR_MESSAGE_SEND}}\",\n                    \"identity\": \"{{CHANNEL_IDENTITY}}\"\n                }\n            ]\n        }\n    },\n    \"message\": {\n        \"location_message\": {\n            \"title\": \"Location Message\",\n            \"label\": \"Enriching Engagement\",\n            \"coordinates\": {\n                \"latitude\": 55.610479,\n                \"longitude\": 13.002873\n            }\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"response":[{"id":"12938970-c7dd-46dc-9f32-9dbb279afa68","name":"Contact Based","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n    \t\"contact_id\": \"{{CONTACT}}\"\n    },\n    \"message\": {\n        \"location_message\": {\n            \"title\": \"Location Message\",\n            \"label\": \"Enriching Engagement\",\n            \"coordinates\": {\n                \"latitude\": 55.610479,\n                \"longitude\": 13.002873\n            }\n        }\n    },\n    \"channel_priority_order\": [\n        \"{{CHANNEL_FOR_MESSAGE_SEND}}\"\n    ]\n}"},"url":"{{API_URL}}/messages:send"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}]},{"name":"Template message","id":"c6da20aa-ea40-46a5-9398-d89724aec546","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"identified_by\": {\n            \"channel_identities\": [\n                {\n                    \"channel\": \"{{CHANNEL_FOR_MESSAGE_SEND}}\",\n                    \"identity\": \"{{CHANNEL_IDENTITY}}\"\n                }\n            ]\n        }\n    },\n    \"message\": {\n        \"template_message\": {\n            \"omni_template\": {\n                \"template_id\": \"{{TEMPLATE}}\",\n                \"version\": \"1\",\n                \"language_code\": \"en-US\",\n                \"parameters\": {\n                    \"my_parameter\": \"123\"\n                }\n            }\n        }\n    }\n}"},"url":"{{API_URL}}/messages:send"},"response":[{"id":"96970222-23f5-4ef8-9c33-9c40051a0fed","name":"Contact Based","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"contact_id\": \"{{CONTACT}}\"\n    },\n    \"message\": {\n        \"template_message\": {\n            \"omni_template\": {\n                \"template_id\": \"{{TEMPLATE}}\",\n                \"version\": \"1\",\n                \"language_code\": \"en-US\",\n                \"parameters\": {\n                    \"my_parameter\": \"123\"\n                }\n            }\n        }\n    }\n}"},"url":"{{API_URL}}/messages:send"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}]}],"id":"6a32c1f3-402b-48c1-8658-494c763817c9"},{"name":"List Messages","id":"94867b1f-3685-49cd-a8ec-6c80d5747a8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/messages?channel_identity={{CHANNEL_IDENTITY}}&messages_source=DISPATCH_SOURCE","host":["{{API_URL}}"],"path":["messages"],"query":[{"key":"channel_identity","value":"{{CHANNEL_IDENTITY}}"},{"key":"contact_id","value":"{{CONTACT}}","description":"One of conversation_id or contact_id needs to be present if messages_source is CONVERSATION_SOURCE.","disabled":true},{"key":"conversation_id","value":"{{CONVERSATION}}","description":"One of conversation_id or contact_id needs to be present if messages_source is CONVERSATION_SOURCE.","disabled":true},{"key":"app_id","value":"{{APP}}","description":"Id of the app. Required only when messages_source is DISPATCH_SOURCE.","disabled":true},{"key":"page_size","value":"10","description":"Maximum number of messages to fetch. Defaults to 10 and the maximum is 20.","disabled":true},{"key":"page_token","value":"token","description":"Next page token previously returned if any.","disabled":true},{"key":"start_time","value":"DATETIME","description":"List messages after this dateTime(inclusive). e.g. 2023-03-10T09:39:26Z","disabled":true},{"key":"end_time","value":"DATETIME","description":"List messages before this dateTime(inclusive). e.g. 2050-04-10T09:39:26Z","disabled":true},{"key":"view","value":"WITH_METADATA","description":"Default: \"WITH_METADATA\"\nEnum: \"WITH_METADATA\" \"WITHOUT_METADATA\"","disabled":true},{"key":"messages_source","value":"DISPATCH_SOURCE","description":"Default: \"CONVERSATION_SOURCE\"\nEnum: \"CONVERSATION_SOURCE\" \"DISPATCH_SOURCE\""},{"key":"only_recipient_originated","value":"false","description":"If true, fetch only recipient originated messages. Available only when messages_source is DISPATCH_SOURCE.","disabled":true}]},"description":"This operation lists all messages sent or received via particular Processing Modes.\n\n- When using CONVERSATION mode, this operation lists messages associated with a conversation or a contact.\n- When using DISPATCH mode, this operation lists messages associated with an app.\n\nThe messages are ordered by their accept_time property in descending order, where accept_time is a timestamp of when the message was enqueued by the Conversation API. This means messages received most recently will be listed first.\n"},"response":[]},{"name":"Get Message","id":"39f04a13-93b5-4ecf-8615-c753a79ad0ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/messages/:message_id?messages_source=DISPATCH_SOURCE","host":["{{API_URL}}"],"path":["messages",":message_id"],"query":[{"key":"messages_source","value":"DISPATCH_SOURCE","description":"Default: \"CONVERSATION_SOURCE\"\nEnum: \"CONVERSATION_SOURCE\" \"DISPATCH_SOURCE\""}],"variable":[{"id":"159b3146-32f2-48c5-a2b5-2ee792348604","key":"message_id","value":"message_id","description":"(Required) The unique ID of the message."}]},"description":"Retrieves a specific message by its ID."},"response":[]},{"name":"Delete Message","id":"75e1ee60-c093-4e24-a0a6-84c6ab574e6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":{"raw":"{{API_URL}}/messages/:message_id?messages_source=DISPATCH_SOURCE","host":["{{API_URL}}"],"path":["messages",":message_id"],"query":[{"key":"messages_source","value":"DISPATCH_SOURCE","description":"Default: \"CONVERSATION_SOURCE\"\nEnum: \"CONVERSATION_SOURCE\" \"DISPATCH_SOURCE\""}],"variable":[{"id":"07f426fb-df8c-42ac-a96a-c5aa4e690ffd","key":"message_id","value":"message_id","description":"(Required) The unique ID of the message."}]},"description":"Delete a specific message by its ID."},"response":[]}],"id":"d4df2de5-958b-4cbf-8204-87925ee33702","description":"To start sending messages you must have a Conversation API app. The app holds information about the channel credentials and registered webhooks to which the API delivers callbacks such as message delivery reports and contact messages. If you don't already have an app please follow the instructions in the getting started guide available in the Sinch Dashboard to create one.","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"7a0560cc-38bb-47c1-a0f1-6ee42f3fb9ed"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"dc8f78bf-f68c-48f9-ae10-8a239b1d5342"}}]},{"name":"Webhook Service","item":[{"name":"Create Webhook","id":"a2ef9d2d-c747-4d71-b789-81e2de9b5ad2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"app_id\": \"{{APP}}\",\n\t\"target\": \"{{WEBHOOK_URL}}\",\n\t\"target_type\": \"HTTP\",\n\t\"triggers\": [\n\t\t\"MESSAGE_DELIVERY\",\n\t\t\"EVENT_DELIVERY\",\n\t\t\"MESSAGE_INBOUND\",\n\t\t\"EVENT_INBOUND\",\n\t\t\"CONVERSATION_START\",\n\t\t\"CONVERSATION_STOP\",\n        \"CONTACT_CREATE\",\n        \"CONTACT_DELETE\",\n        \"CONTACT_MERGE\",\n        \"OPT_IN\",\n        \"OPT_OUT\",\n        \"CAPABILITY\",\n        \"CONVERSATION_DELETE\",\n\t\t\"UNSUPPORTED\"\n\t]\n\t\n}"},"url":"{{API_URL}}/webhooks","description":"Creates a webhook for receiving callbacks on specific triggers. You can create up to 20 webhooks per app."},"response":[]},{"name":"Update Webhook","id":"47536cf8-13f6-4428-8fcb-e9fceca656d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"app_id\": \"{{APP}}\",\n\t\"target\": \"{{WEBHOOK_URL}}\",\n\t\"target_type\": \"HTTP\",\n\t\"triggers\": [\n\t\t\"MESSAGE_DELIVERY\",\n\t\t\"EVENT_DELIVERY\",\n\t\t\"MESSAGE_INBOUND\",\n\t\t\"EVENT_INBOUND\",\n\t\t\"CONVERSATION_START\",\n\t\t\"CONVERSATION_STOP\",\n\t\t\"UNSUPPORTED\"\n\t]\n\t\n}"},"url":{"raw":"{{API_URL}}/webhooks/:webhook_id","host":["{{API_URL}}"],"path":["webhooks",":webhook_id"],"variable":[{"id":"6e1a5e89-f28c-4b73-a2c2-dfbe10993e06","key":"webhook_id","value":"{{WEBHOOK_ID}}","description":"(Required) The unique ID of the webhook."}]},"description":"Updates an existing webhook as specified by the webhook ID."},"response":[]},{"name":"Delete Webhook","id":"52bd9e1c-7325-4b6f-a77d-4ae0e45d4742","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{API_URL}}/webhooks/:webhook_id","host":["{{API_URL}}"],"path":["webhooks",":webhook_id"],"variable":[{"id":"55f10baa-a346-4eea-85b4-55268a077100","key":"webhook_id","value":"{{WEBHOOK_ID}}","description":"(Required) The unique ID of the webhook."}]},"description":"Deletes a webhook as specified by the webhook ID."},"response":[]},{"name":"Get Webhook","id":"484c516d-2ae4-4dd8-9850-822b8ff8251a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/webhooks/:webhook_id","host":["{{API_URL}}"],"path":["webhooks",":webhook_id"],"variable":[{"id":"a3d2498d-c2b4-49d5-8ffe-14d343a5db26","key":"webhook_id","value":"{{WEBHOOK_ID}}","description":"(Required) The unique ID of the webhook."}]},"description":"Get a webhook as specified by the webhook ID."},"response":[]},{"name":"List Webhooks","id":"7e2d6702-7eb0-42f4-922f-29c1c12b44f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/apps/:app_id/webhooks","host":["{{API_URL}}"],"path":["apps",":app_id","webhooks"],"variable":[{"id":"a03908e6-3914-466d-a75b-13936595c3fd","key":"app_id","value":"{{APP}}","description":"(Required) The unique ID of the app."}]},"description":"List all webhooks for a given app as specified by the App ID."},"response":[]}],"id":"59f5cfb7-7fa0-4358-9ab7-a38ed4738f58","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"f67ab1f3-0389-488c-8f00-fa21f4e7fe43"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"68bca5d4-9d51-455e-b8d3-078678d8b556"}}]},{"name":"Capability Service","item":[{"name":"Get Capability","id":"a3deeade-7248-4a1f-9534-b620f97702b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"app_id\": \"{{APP}}\",\n    \"recipient\": {\n        \"contact_id\": \"{{CONTACT}}\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/capability:query","description":"This method is asynchronous - it immediately returns the requested Capability registration. Capability check is then delivered as a callback to registered webhooks with trigger CAPABILITY for every reachable channel."},"response":[]}],"id":"a80eb7af-17d1-4299-abc6-b0175188a58d","description":"A Capability Query means checking the available options to reach the contact on the channels where it has a channel identity. Capability Queries can only be executed for contacts that already exist in a project/app. For executing the request, it's required to provide either the contactId or the channel recipient identities of the contact. The request is executed asynchronously, therefore the service responds immediately. The result of the Capability Query is sent to the registered webhook for the CAPABILITY trigger.","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"acb2caae-8154-4077-970f-4b36f9987133"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"3b3f02cc-e5df-4a53-820c-b0a0fdb0efe0"}}]},{"name":"Template Service","item":[{"name":"Create Template","id":"d4256ba4-a6b1-4ebc-a0f0-8be0405a0a52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"test_template\",\n    \"translations\": [\n        {\n            \"language_code\": \"en-US\",\n            \"content\": \"{\\\"text_message\\\":{\\\"text\\\":\\\"your discount code is ${my_parameter}\\\"}}\",\n            \"variables\": [\n                {\n                    \"key\": \"my_parameter\",\n                    \"preview_value\": \"\"\n                }\n            ]\n        }\n    ],\n    \"default_translation\": \"en-US\"\n}","options":{"raw":{"language":"json"}}},"url":"{{TEMPLATE_API_URL}}/templates"},"response":[]},{"name":"Get Template","id":"4cbb458a-81c4-437f-9a8c-80c830ebfbc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{TEMPLATE_API_URL}}/templates/:template_id","host":["{{TEMPLATE_API_URL}}"],"path":["templates",":template_id"],"variable":[{"id":"52ce0cbb-b06c-43b7-972e-56f6281606dd","key":"template_id","value":"{{TEMPLATE}}","description":"(Required) The ID of the template to fetch."}]}},"response":[]},{"name":"Delete Template","id":"16b8d6d9-3ab9-4fc1-9387-2a80bf7ffd1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":{"raw":"{{TEMPLATE_API_URL}}/templates/:template_id","host":["{{TEMPLATE_API_URL}}"],"path":["templates",":template_id"],"variable":[{"id":"1f67a2d7-409e-4261-b08e-c25805b66324","key":"template_id","value":"{{TEMPLATE}}","description":"(Required) The ID of the template to delete."}]}},"response":[]},{"name":"Update Template","id":"29cd0ac4-b912-4214-a7e8-32afeb5cdfa4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"updated_test_template\",\n    \"translations\": [\n        {\n            \"language_code\": \"en-US\",\n            \"content\": \"{\\\"text_message\\\":{\\\"text\\\":\\\"your discount code is ${my_parameter}\\\"}}\",\n            \"variables\": [\n                {\n                    \"key\": \"my_parameter\",\n                    \"preview_value\": \"\"\n                }\n            ]\n        }\n    ],\n    \"default_translation\": \"en-US\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{TEMPLATE_API_URL}}/templates/:template_id","host":["{{TEMPLATE_API_URL}}"],"path":["templates",":template_id"],"variable":[{"id":"dfdb1439-2de0-4680-8cf1-1be74774ec96","key":"template_id","value":"{{TEMPLATE}}","description":"(Required) The id of the template. Specify this yourself during creation otherwise we will generate an ID for you. This has to be unique for a given project."}]}},"response":[]},{"name":"List Templates","id":"11e268d6-d59b-49e7-aa21-c23646b7e8ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{TEMPLATE_API_URL}}/templates"},"response":[]}],"id":"32738e18-70d3-48b3-8842-25f14b42b300","description":"Endpoints for managing message templates.","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"13230676-815f-4b73-9b43-14aa080a33f2"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"234e1368-a1bb-4393-9665-0a02be6a935c"}}]},{"name":"Transcode Service","item":[{"name":"Transcode a Message","id":"12e465ea-7a4c-4b74-8324-83c4c46bcf7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"app_id\": \"{{APP}}\",\n    \"app_message\": {\n\t\t\"text_message\": {\n\t\t    \"text\": \"Text message from Sinch Conversation API.\"\n\t\t}\n    },\n    \"channels\": [\n        \"MESSENGER\",\n        \"RCS\",\n        \"WHATSAPP\",\n        \"SMS\"\n    ]\n}"},"url":"{{API_URL}}/messages:transcode","description":"Transcodes the message from the Conversation API format to the channel-specific formats for the requested channels. No message is sent to the contact."},"response":[]}],"id":"039abd17-6139-437a-bc89-df34276e97e7","description":"Endpoint for transcoding generic message format to channel-specific one.","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"80b28196-b94c-4621-9eaf-ef979e672b47"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"8ce9baae-c81f-4bdc-9d21-81b9c4db45d8"}}]},{"name":"Project Settings","item":[{"name":"Get Project Settings","id":"1a1e91ed-0f8a-4b4e-8939-50b5f6dfd00a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/settings","description":"Retrieves the current settings for the specified project."},"response":[]},{"name":"Update Project Settings","id":"5d25b1c7-c70d-40d2-af06-4f0bfd7cf099","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n        \"contact_settings\": {\n            \"unified_contact_id_enabled\": true\n        }\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/settings","description":"Updates project settings (e.g. enabling/disabling Unified Contact ID)."},"response":[]},{"name":"Delete Project Settings","id":"d21e3cd7-87d0-4634-99eb-0695c2106ff6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{API_URL}}/settings","description":"Deletes all project-level settings for the specified project."},"response":[]},{"name":"Create Project Settings","id":"9732e0fc-ac6b-4bd4-ad3e-22288f667c55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"contact_settings\": {\n            \"unified_contact_id_enabled\": true\n        }\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/settings","description":"Creates initial settings for the project. Useful for enabling features like Unified Contact ID."},"response":[]}],"id":"08a00095-d03a-41b1-bbf3-a3502be4cf89"}],"id":"85cb5236-1a3b-4862-873a-3de5a97276f8","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"965cc61b-a92a-4aee-8b4b-fa7b5bdd7f1c"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"b83810cd-ea36-4bdb-98e2-9f5bf7525b21"}}]}],"auth":{"type":"oauth2","oauth2":{"clientSecret":"{{CLIENT_SECRET}}","clientId":"{{CLIENT_ID}}","accessTokenUrl":"{{TOKEN_ENDPOINT}}","challengeAlgorithm":"S256","grant_type":"client_credentials","authUrl":"https://public.hydra.common-auth.staging.sinch.com/oauth2/token","addTokenTo":"header","client_authentication":"header","accessToken":"","tokenType":"bearer"}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"f15868e4-b79b-46fa-ba19-005714637c7c"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"1f077aba-b5aa-4fb9-9f59-f30398076e99"}}],"variable":[{"key":"PROD_URL","value":"https://eu.conversation.api.sinch.com"},{"key":"BASE_URL","value":"{{PROD_URL}}"},{"key":"API_URL","value":"{{BASE_URL}}/{{VERSION}}/projects/{{PROJECT}}"},{"key":"VERSION","value":"v1"},{"key":"PROJECT","value":"id-of-created-project"},{"key":"APP","value":"id-of-created-app"},{"key":"CONTACT","value":"id-of-created-contact"},{"key":"CONVERSATION","value":"id-of-created-conversation"},{"key":"CHANNEL_FOR_MESSAGE_SEND","value":"WHATSAPP"},{"key":"WEBHOOK_URL","value":"your-webhook-url"},{"key":"WEBHOOK_ID","value":"id-of-created-webhook"},{"key":"TOKEN_ENDPOINT","value":"https://eu.auth.sinch.com/oauth2/token"},{"key":"CLIENT_ID","value":"key-id-generated-in-portal"},{"key":"CLIENT_SECRET","value":"key-secret-generated-in-portal"},{"key":"TEMPLATE_API_URL","value":"https://eu.template.api.sinch.com/v1/projects/{{PROJECT}}"},{"key":"TEMPLATE","value":"id-of-created-template"}]}