For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/router-post.md. Documentation index: https://www.pubnub.com/llms-full.txt.
routerPost
POST/v2/ena/routes/routers
Create a single router (action) passing messages (events) of a given type.
In response, you'll obtain a unique string (routerId returned as data.id) representing the router. This unique string is required to make other router-related calls to the Events & Actions API.
Request
Example
{
"data": {
"id": "string",
"type": "MULTICAST",
"steps": [
{
"type": "ACTION",
"name": "string",
"configuration": {}
}
]
},
"meta": {},
"errors": [
{
"code": "string",
"message": "string",
"path": "string"
}
]
}