# Get Engagement Topics

Retrieves a list of pairs from the engagement topics of the object ID (from the TopicId field) and its object name for the current messaging session.

This action is available in API version 68.0 and later.

## Supported REST HTTP Methods

**URI:** `/services/data/vXX.X/actions/standard/getEngagementTopics`

Where `XX.X` is the latest API version.

**Formats:** JSON, XML

**HTTP Methods:** POST

**Authentication:** `Authorization: Bearer TOKEN`

Where `TOKEN` is a variable.

## Inputs

| Input                | Type   | Description                      |
| -------------------- | ------ | -------------------------------- |
| `salesforceInternal` | string | Optional. For internal use only. |

## Outputs

| Output                   | Type   | Description                                                                                                                                 |
| ------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `topicIdsAndObjectNames` | string | A list of pairs from the engagement topics of the object ID (from the TopicId field) and its object name for the current messaging session. |

## Example

Sample request body:

```nolang
{
  "inputs" : [{
    "salesforceInternal" : "internal"
  }]
}
```

Sample response body:

```nolang
{
  "actionName" : "getEngagementTopics",
  "errors" : null,
  "isSuccess" : true,
  "outputValues" : {
    "topicIdsAndObjectNames" : "[{\"TopicId\":\"08pRZ0000008iPeYAI\",\"ObjectName\":\"ServiceAppointment\"},{\"TopicId\":\"02iRZ0000006AeDYAU\",\"ObjectName\":\"Asset\"}]"
  }
}
```
