--- title: Event Management Topic Open API description: The Event Management Topic Open API provides an endpoint that enables you to send a topic through your message broker and store it on a ServiceNow instance.Creates a new record in the Topic \[sn\_api\_notif\_mgmt\_topic\] table and saves the passed topic information to that record. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-apis/event\_management\_topic-api.html release: australia product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 4 breadcrumb: [REST API reference, API reference, API implementation and reference] --- # Event Management Topic Open API The Event Management Topic Open API provides an endpoint that enables you to send a topic through your message broker and store it on a ServiceNow instance. Using this API you can store topics created through your message broker in the ServiceNow Topic \[topic\] table. This API runs in the `sn-api-notif-mgmt` namespace and requires the sn\_api\_notif\_mgmt.event\_mgmt\_integration role. **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/api-rest.md) ## Event Management Topic Open - POST /sn\_api\_notif\_mgmt/topic Creates a new record in the Topic \[sn\_api\_notif\_mgmt\_topic\] table and saves the passed topic information to that record. Use this endpoint to synchronize topics created in your message-bus middleware with those in your ServiceNow instance. When topics are created using this endpoint, the user\_created field in the associated topic record is set to `false` and the type field is set to `egress`. ### URL format Versioned URL: `/api/sn_api_notif_mgmt/{api_version}/topic` Default URL: `/api/sn_api_notif_mgmt/topic` **Note:** Available versions are specified in the [REST API Explorer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/use-REST-API-Explorer.md). For scripted REST APIs there is additional version information on the [Scripted REST Service form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md). ### Supported request parameters
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| contentQuery | Filter to apply to the payload of the event. This query is a deeper event filter that is used to find information such as event severity or ticket type. You can pass this parameter as a nested query.For example, for the following trouble ticket event payload, this query applies to the attributes that are in the *"event"* object of the payload: ``` { "eventId":"dc2003c2c3bb3550054e20bdc0013136", "@type":"Troubleticket", "eventType":"TroubleTicketCreateEvent", "event":{ "troubleTicket":{ "short_description":"Test payload", "severity":3, "ticketType":"incident" } } } ``` This parameter supports the following conditions: - AND: such as`variable1=value1&variable2=value2&variable3=value3` - OR: such as `variable1=value1,value2,value3` - Hierarchical variables: such as `variable1.variable2.variable3=value1` For example: `"contentQuery": "troubleTicket.ticketType=incident&troubleTicket.severity=1",` This field is mapped to the content\_query field in the associated topic record. For additional information, refer to the [TMF688 Event Management API User Guide](https://www.tmforum.org/resources/standard/tmf688-event-management-api-user-guide-v4-0-0/). Data type: String |
| externalId | Unique external identifier for the topic, such as a GUID. This field is mapped to the topic\_id field in the associated Topic record.Data type: String |
| headerQuery | Filter to apply to the event header properties. This query defines the type of events to listen to for the associated topic. You can pass this parameter as a nested query.This parameter supports the following conditions: - AND: such as`variable1=value1&variable2=value2&variable3=value3` - OR: such as `variable1=value1,value2,value3` - Hierarchical variables: such as `variable1.variable2.variable3=value1` For example: `"headerQuery": "eventType=TroubleTicketStatusChangeEvent,TroubleTicketAttributeChangeEvent"` This field is mapped to the header\_query field in the associated topic record. For additional information, refer to the [TMF688 Event Management API User Guide](https://www.tmforum.org/resources/standard/tmf688-event-management-api-user-guide-v4-0-0/). Data type: String |
| name | Name of the topic.This field is mapped to the topic\_name field in the associated topic record. Data type: String |
| namespace | Namespace for the topic. Empty if there is no associated namespace.This field is mapped to the namespace field in the associated topic record. Data type: String |
| Status code | Description |
|---|---|
| 201 | Successful. The request was successfully processed. |
| 400 | `Topic external id passed already exists. Please pass the unique topic external id`: Indicates that passed external ID already exists in the Topic table.`Please pass the unique combination of topic name, header query, content query and namespace`: Indicates that the combination of topic name, namespace, header query, and content query already exists. |
| 500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
| Name | Description |
|---|---|
| contentQuery | Value of the content\_query field in the created topic record.Data type: String |
| externalId | Value of the topic\_id field in the created topic record.Data type: String |
| headerQuery | Value of the header\_query field in the created Topic record. This field is used by the topic picker framework to determine what event messages should be sent to a topic.Data type: String |
| id | Sys\_id of the created topic record.Data type: String |
| name | Name of the topic.Data type: String |
| namespace | Value of the namespace field in the created topic record.Data type: String |