Skip to main content
POST
Create event subscription

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <credential> to https://customer-api.mountthor.com. People use the session that mthr login stores (a token starting mt_session_, valid for up to 12 hours). Automation uses a service-account credential (starting mt_sa_v1_, valid for 90 days) from Create credential. Each operation names the permission it needs. Service accounts hold permissions through custom roles, and some operations refuse them; those operations say so.

Body

application/json

The subscription to create.

eventSubscription
object
required

The subscription. name, topic, actions and uri are required.

Response

The subscription was created.

The created subscription and its signing key.

eventSubscription
object

The subscription.

hmacKey
string<bytes>

The subscription's signing key, base64-encoded. Only this response and Rotate signing key return it. Treat it as a secret.