Applications

Create stream

Create a stream in an application. Requires applications:write (workspace keys) or application:write (application keys) scope.

POST/applications/{application_id}/streams

Authorization

bearerAuth
AuthorizationBearer <token>

API key. Bearer authentication header of the form Bearer <token>, where <token> is your Workspace or Application API key.

In: header

Path Parameters

application_id*string

Application ID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.comapplications/aBc1234/streams" \  -H "Authorization: Bearer YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d @- <<'EOF'{  "name": "beta",  "description": "Beta builds",  "retention_days": 30}EOF
{  "message": "Stream created successfully.",  "data": {    "id": "stR4567",    "name": "beta",    "description": "Beta builds",    "retention_days": 30,    "created_at": "2025-06-10T09:15:00.000000Z",    "updated_at": "2025-06-15T14:30:00.000000Z",    "application_id": "aBc1234",    "workspace_id": "wSp1234"  }}
{  "message": "Unauthorized"}
{  "message": "This action requires 'resource:action' scope."}
{  "message": "Not found."}
{  "message": "string",  "errors": {    "property1": [      "string"    ],    "property2": [      "string"    ]  }}