---
updatedAt: 2026-08-31T10:35:42.000Z
agentTools:
  projectIndex: https://docs.telestream.dev/llms.txt
---

# Create subscription

Creates a new subscription

Notifications endpoint documentation needs to be updated to include Stream Monitor (maas) option and settings.  The message type section in the endpoint documentation also appears to be incomplete.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "termsOfService": "cloud.telestream.net/terms",
    "contact": {
      "email": "cloudsupport@telestream.net"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "2.1.0",
    "title": "Notifications API",
    "description": "Notifications"
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/subscriptions": {
      "post": {
        "tags": [
          "Notifications"
        ],
        "summary": "Create subscription",
        "description": "Creates a new subscription",
        "operationId": "create_subscription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/subscription"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/subscription"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.cloud.telestream.net/notifications/v2.0"
    }
  ],
  "components": {
    "responses": {
      "Unauthorized": {
        "description": "Not authorized",
        "content": {
          "application/json": {
            "schema": {
              "type": "string",
              "example": "You don't have permission to access this resource"
            }
          }
        }
      },
      "BadRequest": {
        "description": "Invalid input",
        "content": {
          "application/json": {
            "schema": {
              "type": "string"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key"
      }
    },
    "schemas": {
      "subscription": {
        "required": [
          "type",
          "topic",
          "params"
        ],
        "properties": {
          "id": {
            "description": "Subscription identifier (read-only)",
            "type": "string",
            "readOnly": true
          },
          "type": {
            "type": "string",
            "description": "Subscription delivery method. One of email, webhook, sns, aeg, pubsub.\n-`email` - e-mail delivered notification\n-`webhook` - webhook notification\n-`sns` - Amazon Simple Notification Service\n-`aeg` - Azure Event Grid\n-`pubsub` - Google PubSub\n"
          },
          "topic": {
            "$ref": "#/components/schemas/topic"
          },
          "params": {
            "$ref": "#/components/schemas/params"
          }
        }
      },
      "params": {
        "properties": {
          "addresses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "E-mail addresses (for email subscription type)"
          },
          "url": {
            "description": "Webhook URL (for webhook subscription type)",
            "type": "string"
          },
          "method": {
            "description": "HTTP method (for webhook subscription type). One of POST (default) or GET.",
            "type": "string",
            "enum": [
              "GET",
              "POST"
            ]
          },
          "retries": {
            "description": "Number of retries before forgetting the notification (for webhook subscription type). Default is 0.",
            "type": "integer"
          },
          "content_type": {
            "description": "Content type for payload delivery for webhook notifications. Default is application/json.",
            "type": "string",
            "enum": [
              "application/json",
              "application/x-www-form-urlencoded"
            ]
          },
          "topic_arn": {
            "description": "Unique dentifier of an AWS SNS Topic that events will be posted to.",
            "type": "string"
          },
          "role_arn": {
            "description": "Unique identifier of an AWS IAM Role that will be used for authorization.",
            "type": "string"
          },
          "topic_endpoint": {
            "description": "Address of an Azure Event Grid Topic that events will be posted to.",
            "type": "string"
          },
          "access_key": {
            "description": "Secret access key that authorizes Telestream Cloud to write to an Azure Event Grid Topic.",
            "type": "string"
          },
          "project_id": {
            "description": "ID of a Google Cloud project that hosts the topic.",
            "type": "string"
          },
          "topic_name": {
            "description": "Name of a Google Cloud Pub/Sub topic to which notifications will be published.",
            "type": "string"
          }
        }
      },
      "topic": {
        "required": [
          "service",
          "event"
        ],
        "properties": {
          "account": {
            "description": "ID of an account connected to subscription notification (read-only)",
            "readOnly": true,
            "type": "string"
          },
          "service": {
            "description": "Service(s) for which to retrieve subscriptions. One of flip, qc, tts, vantage-cloud-port.\n-`flip` - Flip Transcoding\n-`qc` - Quality Control\n-`tts` - Timed Text Speech\n-`vantage-cloud-port` - Vantage CloudPort\n",
            "type": "string"
          },
          "event": {
            "type": "string",
            "description": "Name(s) of the event(s) associated with the topic\n-Flip - `video-created`, `video-encoded`, `encoding-complete`, `encoding-progress`\n-Quality Control - `media-passed`, `media-error`, `media-warning`, `media-rejected`, `media-canceled`, `job-created`, `job-progress`\n-Timed Text Speech - `job-created`, `job-completed`, `job-error`, `job-progress`\n-Vantage Cloud Port - `action-job-created`, `action-job-success`, `action-job-error`, `action-job-progress`\n"
          },
          "project": {
            "type": "string",
            "description": "ID of a Project for which notifications are set up. Applies for Quality Control and Timed Text speech services."
          },
          "factory": {
            "type": "string",
            "description": "ID of a Factory for which notications are enabled. Applies only for Flip service."
          },
          "workflow": {
            "type": "string",
            "description": "ID of a Workflow for which notifications are set up. Applies only for Vantage CloudPort."
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```