API ReferenceAgents
/public/agents/{agentId}/connections
Authorization
ApiKeyAuth X-Api-Key<token>
API key for authentication. Passed as a header on every request.
In: header
Path Parameters
agentId*string
Header Parameters
X-API-Version?string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://companion-api.napster.com/public/agents/string/connections" \ -H "Content-Type: application/json" \ -d '{ "channelType": "webrtc" }'{
"token": "string",
"connection": {
"id": "string"
}
}{
"code": "string",
"description": "string",
"type": "failure",
"numericType": 0
}