{
  "opencollection": "1.0.0",
  "info": {
    "name": "LinkedIn Compliance Events Access Control Use Cases > Conversation Ad > Sponsored Conversations API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.linkedin.com/oauth/v2/authorization",
      "accessTokenUrl": "https://www.linkedin.com/oauth/v2/accessToken",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Use Cases > Conversation Ad > Sponsored Conversations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "LinkedIn Get Multiple Sponsored Conversations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.linkedin.com/conversationAds",
            "headers": [
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              },
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              },
              {
                "name": "X-RestLi-Method",
                "value": "BATCH_GET"
              }
            ],
            "params": [
              {
                "name": "ids",
                "value": "List({conversation-urn1},{conversation-urn2})'",
                "type": "query"
              }
            ]
          },
          "docs": "Makes a BATCH_GET request to let a list of conversations that are created.\n\n#### Sample Response\n\nJSONCopy\n\n```\n{\n    \"statuses\": {\n        \"urn:li:sponsoredConversation:704255\": 200,\n        \"urn:li:sponsoredConversation:703695\": 200\n    },\n    \"results\": {\n        \"urn:li:sponsoredConversation:704255\": \n         {\n            \"id\": \"urn:li:sponsoredConversation:704255\",\n            \"parentAccount\": \"urn:li:sponsoredAccount:520866471\"\n            \n        },\n        \"urn:li:sponsoredConversatio"
        },
        {
          "info": {
            "name": "LinkedIn Create a Sponsored Conversation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.linkedin.com/conversationAds",
            "headers": [
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              },
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              }
            ]
          },
          "docs": "Successful response will have Status `201 Created` and the ID in the `x-linkedin-id` response header. For example,`urn:li:sponsoredConversation:164380864`"
        },
        {
          "info": {
            "name": "LinkedIn Get a Sponsored Conversation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.linkedin.com/conversationAds/:conversationUrn",
            "headers": [
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              },
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              }
            ],
            "params": [
              {
                "name": "conversationUrn",
                "value": "urn:li:organization:123456",
                "type": "path"
              }
            ]
          },
          "docs": "#### Sample Response\n\nJSONCopy\n\n```\n{\n  \"id\": \"urn:li:sponsoredConversation:185204\",\n  \"parentAccount\": \"urn:li:sponsoredAccount:520866471\"\n}\n\n```"
        },
        {
          "info": {
            "name": "LinkedIn Update a Sponsored Conversation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.linkedin.com/conversationAds/:conversationUrn",
            "headers": [
              {
                "name": "LinkedIn-Version",
                "value": "{{insert_version}}"
              },
              {
                "name": "X-Restli-Protocol-Version",
                "value": "2.0.0"
              }
            ],
            "params": [
              {
                "name": "conversationUrn",
                "value": "urn:li:organization:123456",
                "type": "path"
              }
            ]
          },
          "docs": "In the following example, the `firstMessageContent` field is changed to point to the first message of the conversation."
        }
      ]
    }
  ],
  "bundled": true
}