{"templateId":"markdown","versions":[{"version":"1.0","label":"1.0","link":"/docs/conversation/sdk/java/1.0/syntax-reference","default":false,"active":true,"folderId":"e8b27711"},{"version":"2.0","label":"2.0","link":"/docs/conversation/sdk/java/syntax-reference","default":true,"active":false,"folderId":"e8b27711"}],"sharedDataIds":{"sidebar":"sidebar-docs/conversation/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial","admonition"]},"product":"Conversation","type":"markdown"},"seo":{"title":"Java SDK Reference | Conversation API | Sinch","siteUrl":"https://developers.sinch.com","llmstxt":{"title":"Sinch Developer Documentation","description":"LLMs.txt containing a map of all the documentation files for Sinch.","sections":[{"title":"Numbers API","description":"The Numbers API enables you to search for, view, and activate numbers. It's considered a precursor to other APIs in the Sinch product family. The numbers API can be used in tandem with any of our APIs that perform messaging or calling.","includeFiles":["docs/numbers/**/*.md","docs/numbers/**/*.yaml"],"excludeFiles":["docs/numbers/index.md"]},{"title":"Conversation API","description":"Send and receive messages globally on many popular channels with ease and confidence when using Sinch's Conversation API. Conversation API is the preferred API for sending mobile messages on SMS and other social channels with Sinch. It is a simple API with unified error messages, consistent request payloads, and common webhook payloads that are channel-agnostic.","includeFiles":["docs/conversation/**/*.md","docs/conversation/**/*.yaml"],"excludeFiles":["docs/conversation/index.md"]},{"title":"Voice API","description":"The Voice API works as a big telephony switch. The Voice API handles incoming phone calls (also known as incoming call “legs”), sets up outgoing phone calls (or outgoing call “legs”), and bridges the two. The incoming call leg may come in over a data connection (from a smartphone or web application using the Sinch SDKs) or through a local phone number (from the PSTN network). Similarly, the outgoing call leg can be over data (to another smartphone or web application using the Sinch SDKs) or the PSTN network.","includeFiles":["docs/voice/**/*.md","docs/voice/**/*.yaml"],"excludeFiles":["docs/voice/index.md"]},{"title":"Verification API","description":"The Verification API is a platform for phone number verification. It consists of the API and different software development kits (the Sinch SDKs) that you integrate with your smartphone or web application and cloud based back-end services. Together they enable SMS, Flashcall, Phone Call and Data verification in your application.","includeFiles":["docs/verification/**/*.md","docs/verification/**/*.yaml"],"excludeFiles":["docs/verification/index.md"]},{"title":"Provisioning API","description":"Provisioning API allows you to programmatically set up your senders, accounts and templates on your favorite messaging platforms on the Conversation API. For now, you can create your first WhatsApp channel through Meta's Embedded sign up, you can configure your first SMS App and configure your webhooks. As development continues, we will be adding the most commonly used channels.","includeFiles":["docs/provisioning-api/**/*.md","docs/provisioning-api/**/*.json"],"excludeFiles":["docs/provisioning-api/index.md"]},{"title":"Elastic SIP Trunking API","description":"With Elastic SIP Trunking you can create and manage your SIP trunks and phone numbers programmatically.","includeFiles":["docs/est/**/*.md","docs/est/**/*.yaml"],"excludeFiles":["docs/est/index.md"]},{"title":"Fax API","description":"Send and receive HIPAA compliant faxes on our modern fax platform using our developer-friendly API.","includeFiles":["docs/fax/**/*.md","docs/fax/**/*.yaml"],"excludeFiles":["docs/fax/index.md"]},{"title":"In-app Voice and Video SDK","description":"The In-app Voice and Video SDK enables you to add voice and video calling capabilities directly into your mobile or web application using the Sinch SDKs.","includeFiles":["docs/in-app-calling/**/*.md"],"excludeFiles":["docs/in-app-calling/index.md"]},{"title":"Number Lookup API","description":"The Number Lookup API is designed to provide in-depth information about phone numbers, helping enterprises enhance their communication strategies and prevent fraud. By identifying the type of phone line (for example, mobile, landline, VoIP) and the associated carrier, the API allows businesses to optimize routing, reduce unnecessary costs, and improve customer engagement.","includeFiles":["docs/number-lookup-api-v2/**/*.md","docs/number-lookup-api-v2/**/*.yaml"],"excludeFiles":["docs/number-lookup-api-v2/index.md"]},{"title":"Functions","description":"Serverless compute for voice and messaging. Deploy your code and Sinch routes live calls and messages to it — no infrastructure to run.","includeFiles":["docs/functions/functions/**/*.md","docs/functions/concepts/**/*.md","docs/functions/reference/**/*.md"],"excludeFiles":["docs/functions/functions/index.md"]},{"title":"CLI","description":"One command line for every Sinch API and the full Functions lifecycle — scaffold, run locally, deploy, and manage.","includeFiles":["docs/functions/cli/**/*.md"],"excludeFiles":["docs/functions/cli/index.md"]}]},"description":"Learn the syntax of the Sinch Java SDK for Conversation API."},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"sinch-java-sdk-for-conversation","__idx":0},"children":["Sinch Java SDK for Conversation"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Sinch Java SDK allows you to quickly interact with the ","Conversation API"," from inside your Java applications. When using the Java SDK, the code representing requests and queries sent to and responses received from the ","Conversation API"," are structured similarly to those that are sent and received using the ","Conversation API","."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The fastest way to get started with the SDK is to check out our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/getting-started/"},"children":["getting started"]}," guides. There you'll find all the instructions necessary to download, install, set up, and start using the SDK."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note:"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also view the generated JavaDocs for the Java SDK ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.javadoc.io/doc/com.sinch.sdk/sinch-sdk-java/latest/com/sinch/sdk/domains/conversation/package-summary.html"},"children":["here"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"syntax","__idx":1},"children":["Syntax"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":" Note:"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This guide describes the syntactical structure of the Java SDK for the Conversation API, including any differences that may exist between the API itself and the SDK. For a full reference on Conversation API calls and responses, see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation"},"children":["Conversation REST API Reference"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The code sample below is an example of how to use the Java SDK to send a text message on the SMS channel of a Conversation API app. We've also provided an example that accomplishes the same task using the REST API."]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"SDK","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"/code-snippets/java-sdk/conversation/send-message.sample.java","language":"java","title":"App.java","header":{"title":"App.java","controls":{"copy":{}}},"lang":"java","source":"package conversation;\n\nimport com.sinch.sdk.domains.conversation.api.v1.ConversationService;\nimport com.sinch.sdk.domains.conversation.api.v1.MessagesService;\nimport com.sinch.sdk.domains.conversation.models.v1.ChannelRecipientIdentities;\nimport com.sinch.sdk.domains.conversation.models.v1.ChannelRecipientIdentity;\nimport com.sinch.sdk.domains.conversation.models.v1.ConversationChannel;\nimport com.sinch.sdk.domains.conversation.models.v1.messages.AppMessage;\nimport com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest;\nimport com.sinch.sdk.domains.conversation.models.v1.messages.response.SendMessageResponse;\nimport com.sinch.sdk.domains.conversation.models.v1.messages.types.text.TextMessage;\nimport java.util.Collections;\nimport java.util.logging.Logger;\n\npublic class Snippet {\n\n  private static final Logger LOGGER = Logger.getLogger(Snippet.class.getName());\n\n  static void execute(ConversationService conversationService) {\n\n    MessagesService messagesService = conversationService.messages();\n\n    String appId = \"CONVERSATION_APPLICATION_ID\";\n    String from = \"SINCH_VIRTUAL_PHONE_NUMBER\";\n    String to = \"RECIPIENT_PHONE_NUMBER\";\n\n    String body = \"This is a test Conversation message using the Sinch Java SDK.\";\n\n    ChannelRecipientIdentities recipients =\n        ChannelRecipientIdentities.of(\n            ChannelRecipientIdentity.builder()\n                .setChannel(ConversationChannel.SMS)\n                .setIdentity(to)\n                .build());\n\n    AppMessage<TextMessage> message =\n        AppMessage.<TextMessage>builder()\n            .setBody(TextMessage.builder().setText(body).build())\n            .build();\n\n    SendMessageRequest<TextMessage> request =\n        SendMessageRequest.<TextMessage>builder()\n            .setAppId(appId)\n            .setRecipient(recipients)\n            .setMessage(message)\n            .setChannelProperties(Collections.singletonMap(\"SMS_SENDER\", from))\n            .build();\n\n    LOGGER.info(\"Sending SMS Text using Conversation API\");\n\n    SendMessageResponse value = messagesService.sendMessage(request);\n\n    LOGGER.info(\"Response: \" + value);\n  }\n}\n"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"REST API","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"Java","header":{"controls":{"copy":{}}},"source":"\n// Find your App ID at dashboard.sinch.com/convapi/apps\n// Find your Project ID at dashboard.sinch.com/settings/project-management\n// Get your Access Key and Access Secret at dashboard.sinch.com/settings/access-keys\nimport java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var payload = String.join(\"\\n\"\n      , \"{\"\n      , \" \\\"app_id\\\": \\\"{APP_ID}\\\",\"\n      , \" \\\"recipient\\\": {\"\n      , \"  \\\"identified_by\\\": {\"\n      , \"   \\\"channel_identities\\\": [\"\n      , \"    {\"\n      , \"     \\\"channel\\\": \\\"{CHANNEL}\\\",\"\n      , \"     \\\"identity\\\": \\\"{IDENTITY}\\\"\"\n      , \"    }\"\n      , \"   ]\"\n      , \"  }\"\n      , \" },\"\n      , \" \\\"message\\\": {\"\n      , \"  \\\"text_message\\\": {\"\n      , \"   \\\"text\\\": \\\"This is a text message.\\\"\"\n      , \"  }\"\n      , \" }\"\n      , \"}\"\n    );\n\n    var host = \"https://{region}.conversation.api.sinch.com\";\n    var projectId = \"YOUR_project_id_PARAMETER\";\n    var region = \"us\";\n    var pathname = \"/v1/projects/%7Bproject_id%7D/messages:send\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/json\")\n      .header(\"Authorization\", \"Basic \" + Base64.getEncoder().encodeToString((\"<username>:<password>\").getBytes()))\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}\n\n","lang":"Java"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This example highlights the following required to successfully make a Conversation API call using the Sinch Java SDK:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#client"},"children":["Client initialization"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#conversation-domain"},"children":["Conversation domain access"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#endpoint-categories"},"children":["Endpoint usage"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#request-and-query-parameters"},"children":["Field population"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"client","__idx":2},"children":["Client"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When using the Sinch Java SDK, you initialize communication with the Sinch backend by initializing the Java SDK's main client class. This client allows you to access the functionality of the Sinch Java SDK."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"initialization","__idx":3},"children":["Initialization"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To successfully initialize the Sinch client class, you must provide a valid access key ID and access key secret combination. You must also provide your Project ID. For example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"\npackage conversation.sdk;\n\nimport com.sinch.sdk.SinchClient;\n\npublic class App {\n    \n    public static String access_key = \"YOUR_access_key\";\n    public static String access_secret = \"YOUR_access_secret\";\n    public static String project_id = \"YOUR_project_id\"\n\n    public static void main(String[] args) {\n        \n      SinchClient client = new SinchClient(Configuration.builder()\n                                  .setKeyId(access_key)\n                                  .setKeySecret(access_secret)\n                                  .setProjectId(project_id)\n                                  .build());\n}\n\n","lang":"java"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note:"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The above sample defaults to the US region. If you want to specify the European region, you can use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".setConversationRegion(ConversationRegion.EU)"]},". If you want to specify the Brazil region, you can use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".setConversationRegion(ConversationRegion.BR)"]},". If you want to re-specify the US region, you can use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["setConversationRegion(ConversationRegion.US)"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"conversation-domain","__idx":4},"children":["Conversation domain"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Sinch Java SDK organizes different functionalities in the Sinch product suite into domains. These domains are accessible through the client. For example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client.conversation().v1().[endpoint_category()].[method()]"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client.conversation().templates().[templates_version()].[method()]"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"endpoint-categories","__idx":5},"children":["Endpoint categories"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the Sinch Java SDK, Conversation API endpoints are accessible through the client (either a general client or a Conversation-specific client). The naming convention of the endpoint's representation in the SDK matches the API:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1().messages()"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1().app()"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1().contact()"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1().events()"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1().transcoding()"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1().capability()"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templates.v1().templates()"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templates.v2().templates()"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1().webhooks()"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1().conversation()"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"Java","header":{"controls":{"copy":{}}},"source":"SendMessageResponse response =\n    client.conversation().v1().messages().sendMessage(SendMessageRequest.<TextMessage>builder()\n        .setAppId(\"YOUR_app_id\")\n        .setRecipient(ChannelRecipientIdentities.of(ChannelRecipientIdentity.builder().setChannel(ConversationChannel.SMS).setIdentity(\"RECIPIENT_number\").build()))\n        .setMessage(AppMessage.<TextMessage>builder().setBody(TextMessage.builder().setText(\"This is a test Conversation message using the Sinch Java SDK.\").build()).build())\n        .setChannelProperties(Collections.singletonMap(\"SMS_SENDER\", \"YOUR_sms_sender\"))\n        .build());\n","lang":"Java"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversationv1messages-endpoint-category","__idx":6},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversation().v1().messages"]}," endpoint category"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messages"]}," category of the Java SDK corresponds to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/messages/"},"children":["messages"]}," endpoint. The mapping between the API operations and corresponding methods are described below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API operation"},"children":["API operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SDK method"},"children":["SDK method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/messages/messages_sendmessage"},"children":["Send a message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendMessage"]},", or you could use any of the following message-specific methods:"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendCardMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendCardMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendCarouselMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendCarouselMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendChoiceMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendChoiceMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendContactInfoMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendContactInfoMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendListMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendListMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendLocationMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendLocationMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendMediaMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendMediaMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendTemplateMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendTemplateMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#sendTextMessage(com.sinch.sdk.domains.conversation.models.v1.messages.request.SendMessageRequest)"},"children":["sendTextMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/messages/messages_getmessage"},"children":["Get a message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#get(java.lang.String)"},"children":["get"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/messages/messages_deletemessage"},"children":["Delete a message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#delete(java.lang.String)"},"children":["delete"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/messages/messages_listmessages"},"children":["List messages"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#list(com.sinch.sdk.domains.conversation.models.v1.messages.request.MessagesListRequest)"},"children":["list"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/messages/messages_updatemessagemetadata"},"children":["Update a message's metadata"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/MessagesService.html#list(com.sinch.sdk.domains.conversation.models.v1.messages.request.MessagesListRequest)"},"children":["update"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversationv1app-endpoint-category","__idx":7},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversation().v1().app()"]}," endpoint category"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["app"]}," category of the Java SDK corresponds to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/app/"},"children":["apps"]}," endpoint. The mapping between the API operations and corresponding methods are described below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API operation"},"children":["API operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SDK method"},"children":["SDK method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/app/app_listapps"},"children":["List all apps for a given project"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/AppService.html#list()"},"children":["list"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/app/app_createapp"},"children":["Create an app"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/AppService.html#create(com.sinch.sdk.domains.conversation.models.v1.app.request.AppCreateRequest)"},"children":["create"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/app/app_getapp"},"children":["Get an app"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/AppService.html#get(java.lang.String)"},"children":["get"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/app/app_deleteapp"},"children":["Delete an app"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/AppService.html#delete(java.lang.String)"},"children":["delete"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/app/app_updateapp"},"children":["Update an app"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/AppService.html#update(java.lang.String,com.sinch.sdk.domains.conversation.models.v1.app.request.AppUpdateRequest)"},"children":["update"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"the-conversationchannelcredentialsbuilderfactory-class","__idx":8},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ConversationChannelCredentialsBuilderFactory"]}," class"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/models/v1/credentials/ConversationChannelCredentialsBuilderFactory.html"},"children":["This class"]}," will help you define channel credentials when creating or updating an app. Each channel is represented by a corresponding method, and invoking that method will allows you to more easily determine the information that is required to create the credentials."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversationv1contact-endpoint-category","__idx":9},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversation().v1().contact()"]}," endpoint category"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["contact"]}," category of the Java SDK corresponds to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/contact/"},"children":["contacts"]}," endpoint. The mapping between the API operations and corresponding methods are described below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API operation"},"children":["API operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SDK method"},"children":["SDK method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/contact/contact_listcontacts"},"children":["List contacts"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ContactService.html#list(com.sinch.sdk.domains.conversation.models.v1.contact.request.ContactListRequest)"},"children":["list"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/contact/contact_createcontact"},"children":["Create a contact"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ContactService.html#create(com.sinch.sdk.domains.conversation.models.v1.contact.request.ContactCreateRequest)"},"children":["create"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/contact/contact_getcontact"},"children":["Get a contact"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ContactService.html#get(java.lang.String)"},"children":["get"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/contact/contact_deletecontact"},"children":["Delete a contact"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ContactService.html#delete(java.lang.String)"},"children":["delete"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/contact/contact_updatecontact"},"children":["Update a contact"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ContactService.html#update(java.lang.String,com.sinch.sdk.domains.conversation.models.v1.contact.Contact)"},"children":["update"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/contact/contact_mergecontact"},"children":["Merge two contacts"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ContactService.html#mergeContact(java.lang.String,java.lang.String)"},"children":["mergeContact"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/contact/contact_getchannelprofile"},"children":["Get channel profile"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ContactService.html#getChannelProfileByContactId(com.sinch.sdk.domains.conversation.models.v1.contact.request.ContactGetChannelProfileByContactIdRequest)"},"children":["getChannelProfileByContactId"]}," or ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ContactService.html#getChannelProfileByChannelIdentity(com.sinch.sdk.domains.conversation.models.v1.contact.request.ContactGetChannelProfileByChannelIdentityRequest)"},"children":["getChannelProfileByChannelIdentity"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversationv1conversations-endpoint-category","__idx":10},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversation().v1().conversations()"]}," endpoint category"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversations"]}," category of the Java SDK corresponds to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"docs/conversation/api-reference/conversation/conversation/"},"children":["conversations"]}," endpoint. The mapping between the API operations and corresponding methods are described below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API operation"},"children":["API operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SDK method"},"children":["SDK method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/conversation/conversation_listconversations"},"children":["List conversations"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ConversationsService.html#list(com.sinch.sdk.domains.conversation.models.v1.conversation.request.ConversationsListRequest)"},"children":["list"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/conversation/conversation_createconversation"},"children":["Create a conversation"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ConversationsService.html#create(com.sinch.sdk.domains.conversation.models.v1.conversation.request.CreateConversationRequest)"},"children":["create"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/conversation/conversation_getconversation"},"children":["Get a conversation"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ConversationsService.html#get(java.lang.String)"},"children":["get"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/conversation/conversation_deleteconversation"},"children":["Delete a conversation"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ConversationsService.html#delete(java.lang.String)"},"children":["delete"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/conversation/conversation_updateconversation"},"children":["Update a conversation"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ConversationsService.html#update(java.lang.String,com.sinch.sdk.domains.conversation.models.v1.request.MetadataUpdateStrategy,com.sinch.sdk.domains.conversation.models.v1.conversation.Conversation)"},"children":["update"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/conversation/conversation_stopactiveconversation"},"children":["Stop conversation"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ConversationsService.html#stopActive(java.lang.String)"},"children":["stopActive"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/conversation/conversation_injectmessage"},"children":["Inject a message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ConversationsService.html#injectMessage(java.lang.String,com.sinch.sdk.domains.conversation.models.v1.conversation.request.InjectMessageRequest)"},"children":["injectMessage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/conversation/events_injectevent"},"children":["Inject an event"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ConversationsService.html#injectEvent(java.lang.String,com.sinch.sdk.domains.conversation.models.v1.conversation.request.InjectEventRequest)"},"children":["injectEvent"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/conversation/conversation_listrecentconversations"},"children":["List recent conversations"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/ConversationsService.html#listRecent(com.sinch.sdk.domains.conversation.models.v1.conversation.request.ConversationsListRecentRequest)"},"children":["listRecent"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversationv1events-endpoint-category","__idx":11},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversation().v1().events()"]}," endpoint category"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["events"]}," category of the Java SDK corresponds to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/events/"},"children":["events"]}," endpoint. The mapping between the API operations and corresponding methods are described below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API operation"},"children":["API operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SDK method"},"children":["SDK method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/events/events_sendevent"},"children":["Send an event"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/EventsService.html#send(com.sinch.sdk.domains.conversation.models.v1.events.request.SendEventRequest)"},"children":["send"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/events/events_getevent"},"children":["Get an event"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/EventsService.html#get(java.lang.String)"},"children":["get"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/events/events_deleteevents"},"children":["Delete an event"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/EventsService.html#delete(java.lang.String)"},"children":["delete"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/events/events_listevents"},"children":["List events"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/EventsService.html#list(com.sinch.sdk.domains.conversation.models.v1.events.request.EventsListRequest)"},"children":["list"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversationv1transcoding-endpoint-category","__idx":12},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversation().v1().transcoding()"]}," endpoint category"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transcoding"]}," category of the Java SDK corresponds to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/transcoding/"},"children":["messages:transcode"]}," endpoint. The mapping between the API operations and corresponding methods are described below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API operation"},"children":["API operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SDK method"},"children":["SDK method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/transcoding/transcoding_transcodemessage"},"children":["Transcode a message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/TranscodingService.html#transcodeMessage(com.sinch.sdk.domains.conversation.models.v1.transcoding.request.TranscodeMessageRequest)"},"children":["transcodeMessage"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversationv1capability-endpoint-category","__idx":13},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversation().v1().capability()"]}," endpoint category"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["capability"]}," category of the Java SDK corresponds to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/capability/"},"children":["capability"]}," endpoint. The mapping between the API operations and corresponding methods are described below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API operation"},"children":["API operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SDK method"},"children":["SDK method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/capability/capability_querycapability"},"children":["Capability lookup"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/CapabilityService.html#lookup(com.sinch.sdk.domains.conversation.models.v1.capability.request.QueryCapabilityRequest)"},"children":["lookup"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversationv1webhooks-endpoint-category","__idx":14},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversation().v1().webhooks()"]}," endpoint category"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["webhooks"]}," category of the Java SDK corresponds to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/webhooks/"},"children":["webhooks"]}," endpoint. The mapping between the API operations and corresponding methods are described below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API operation"},"children":["API operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SDK method"},"children":["SDK method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/webhooks/webhooks_listwebhooks"},"children":["List webhooks"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/WebHooksService.html#list(java.lang.String)"},"children":["list"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/webhooks/webhooks_createwebhook"},"children":["Create a new webhook"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/WebHooksService.html#create(com.sinch.sdk.domains.conversation.models.v1.webhooks.Webhook)"},"children":["create"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/webhooks/webhooks_getwebhook"},"children":["Get a webhook"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/WebHooksService.html#get(java.lang.String)"},"children":["get"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/webhooks/webhooks_updatewebhook"},"children":["Update an existing webhook"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/WebHooksService.html#update(java.lang.String,com.sinch.sdk.domains.conversation.models.v1.webhooks.Webhook)"},"children":["update"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/conversation/webhooks/webhooks_deletewebhook"},"children":["Delete an existing webhook"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/WebHooksService.html#delete(java.lang.String)"},"children":["delete"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No corresponding operation. You can use this function to authenticate information received from payloads. This function takes the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["secret"]}," parameter, which is the Secret token to be used to validate the received request."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/WebHooksService.html#validateAuthenticationHeader(java.lang.String,java.util.Map,java.lang.String)"},"children":["validateAuthenticationHeader"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No corresponding operation. You can use this function to deserialize payloads received from callbacks. This function takes the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["jsonPayload"]}," parameter, which is the received payload."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/v1/WebHooksService.html#parseEvent(java.lang.String)"},"children":["parseEvent"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"conversationtemplatesv2templates-endpoint-category","__idx":15},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversation().templates().v2().templates()"]}," endpoint category"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templates"]}," (version 2) category of the Java SDK corresponds to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/template/templates-v2/"},"children":["Templates-V2"]}," endpoint. The mapping between the API operations and corresponding methods are described below:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API operation"},"children":["API operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SDK method"},"children":["SDK method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/template/templates-v2/templates_v2_listtemplates"},"children":["List all templates belonging to a project ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/templates/v2/TemplatesServiceV2.html#list()"},"children":["list"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/template/templates-v2/templates_v2_createtemplate"},"children":["Creates a template"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/templates/v2/TemplatesServiceV2.html#create(com.sinch.sdk.domains.conversation.templates.models.v2.TemplateV2)"},"children":["create"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/template/templates-v2/templates_v2_deletetemplate"},"children":["Lists translations for a template"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/templates/v2/TemplatesServiceV2.html#listTranslations(java.lang.String,com.sinch.sdk.domains.conversation.templates.models.v2.request.TranslationListRequest)"},"children":["listTranslations"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/template/templates-v2/templates_v2_updatetemplate"},"children":["Updates a template"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/templates/v2/TemplatesServiceV2.html#update(java.lang.String,com.sinch.sdk.domains.conversation.templates.models.v2.TemplateV2)"},"children":["update"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/template/templates-v2/templates_v2_gettemplate"},"children":["Get a template"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/templates/v2/TemplatesServiceV2.html#get(java.lang.String)"},"children":["get"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/conversation/api-reference/template/templates-v2/templates_v2_deletetemplate"},"children":["Delete a template"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.sinch.com/sdk/sinch-sdk-java/1.7.1/com/sinch/sdk/domains/conversation/api/templates/v2/TemplatesServiceV2.html#delete(java.lang.String)"},"children":["delete"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"request-and-query-parameters","__idx":16},"children":["Request and query parameters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Requests and queries made using the Java SDK are similar to those made using the Conversation API. Many of the fields are named and structured similarly. For example, consider the representation of a Conversation API channel. One field is represented in our Java SDK, and the other is using the REST API:"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"SDK","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"Java","header":{"controls":{"copy":{}}},"source":"ConversationChannel.SMS\n","lang":"Java"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"REST API","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"Java","header":{"controls":{"copy":{}}},"source":"\"     \\\"channel\\\": \\\"SMS\\\",\"\n","lang":"Java"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Note that the fields have similar names, and many fields in the Java SDK are rendered as enums in data models."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Additionally, path parameters, request body parameters, and query parameters that are used in the API are all passed as arguments to the corresponding method. For example, consider this example in which the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get"]}," method of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messages"]}," is invoked:"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"SDK","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"Java","header":{"controls":{"copy":{}}},"source":"\nvar response = client.conversation().v1().messages().get(\"YOUR_message_id\", \"CONVERSATION_SOURCE\");\n\n","lang":"Java"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"REST API","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"Java","header":{"controls":{"copy":{}}},"source":"\nvar host = \"https://{region}.conversation.api.sinch.com\";\nvar projectId = \"YOUR_project_id_PARAMETER\";\nvar messageId = \"YOUR_message_id_PARAMETER\";\nvar region = \"us\";\nvar pathname = \"/v1/projects/%7Bproject_id%7D/messages/%7Bmessage_id%7D\";\nvar request = HttpRequest.newBuilder()\n  .GET()\n  .uri(URI.create(host + pathname ))\n  .header(\"Authorization\", \"Basic \" + Base64.getEncoder().encodeToString((\"<username>:<password>\").getBytes()))\n  .build();\n\nvar response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n","lang":"Java"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When using the Conversation API, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message_id"]}," would be included as a path parameter, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messages_source"]}," would be included as a query parameter in the JSON payload. With the Java SDK, both parameters are included as arguments in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get"]}," method."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"responses","__idx":17},"children":["Responses"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Response fields match the API responses. They are delivered as Java objects."]}]},"headings":[{"value":"Sinch Java SDK for Conversation","id":"sinch-java-sdk-for-conversation","depth":1},{"value":"Syntax","id":"syntax","depth":2},{"value":"Client","id":"client","depth":2},{"value":"Initialization","id":"initialization","depth":3},{"value":"Conversation domain","id":"conversation-domain","depth":2},{"value":"Endpoint categories","id":"endpoint-categories","depth":2},{"value":"conversation().v1().messages endpoint category","id":"conversationv1messages-endpoint-category","depth":3},{"value":"conversation().v1().app() endpoint category","id":"conversationv1app-endpoint-category","depth":3},{"value":"The ConversationChannelCredentialsBuilderFactory class","id":"the-conversationchannelcredentialsbuilderfactory-class","depth":4},{"value":"conversation().v1().contact() endpoint category","id":"conversationv1contact-endpoint-category","depth":3},{"value":"conversation().v1().conversations() endpoint category","id":"conversationv1conversations-endpoint-category","depth":3},{"value":"conversation().v1().events() endpoint category","id":"conversationv1events-endpoint-category","depth":3},{"value":"conversation().v1().transcoding() endpoint category","id":"conversationv1transcoding-endpoint-category","depth":3},{"value":"conversation().v1().capability() endpoint category","id":"conversationv1capability-endpoint-category","depth":3},{"value":"conversation().v1().webhooks() endpoint category","id":"conversationv1webhooks-endpoint-category","depth":3},{"value":"conversation().templates().v2().templates() endpoint category","id":"conversationtemplatesv2templates-endpoint-category","depth":3},{"value":"Request and query parameters","id":"request-and-query-parameters","depth":2},{"value":"Responses","id":"responses","depth":2}],"frontmatter":{"seo":{"title":"Java SDK Reference | Conversation API | Sinch","description":"Learn the syntax of the Sinch Java SDK for Conversation API."},"product":"Conversation API","page_type":"product"},"lastModified":"2026-03-25T21:47:09.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/conversation/sdk/java/1.0/syntax-reference","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}