API.stream Live API (2.1)
The Live API enables developers to build video-enabled applications.
AccessToken
Assert your access token into a HTTP Header named 'Authorization: Bearer'
curl -H 'Authorization: Bearer bar' https://live.api.stream/live/v2/collection/foo
Security Scheme Type | API Key |
---|---|
Header parameter name: | Authorization: Bearer |
ApiKey
Assert your api key into a HTTP Header named 'X-API-Key'
curl -H 'X-API-Key:bar' https://live.api.stream/live/v2/collection/foo
Security Scheme Type | API Key |
---|---|
Header parameter name: | X-API-Key |
The Collection Service operates on collections, which contain projects and collection live sources used in projects.
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "collections": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "projects": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": null
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}
], - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
]
}
]
}
Create Collection
Create a new collection of related projects and collection live sources
Authorizations:
Request Body schema: application/json
metadata | object (arbitrary metadata to associate with this collection) |
Responses
Request samples
- Payload
{- "metadata": {
- "createdBy": "Eddie Current"
}
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "collection": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "projects": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": null,
- "segmentDuration": null
}
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}
], - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
]
}
}
Get Collection
Get an existing collection of related projects and collection live sources
Authorizations:
path Parameters
collectionId required | string collection id |
query Parameters
populateProjects | boolean Default: "true" optionally populate projects. |
populateSources | boolean Default: "true" optionally populate sources. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "collection": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "projects": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": null,
- "segmentDuration": null
}
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}
], - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
]
}
}
Delete Collection
Delete a collection of related projects and collection live sources
Authorizations:
path Parameters
collectionId required | string collection id |
query Parameters
force | boolean Default: "false" forcibly end all child project broadcasts in progress. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "sourcesDeleted": 1,
- "projectsDeleted": 1,
- "projectIdsStopped": [
- "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
]
}
Update Collection
Update select collection document data
Authorizations:
path Parameters
collectionId required | string collection id |
Request Body schema: application/json
updateMask required | string (fields to update) |
metadata | object (arbitrary metadata to associate with this collection) |
Responses
Request samples
- Payload
{- "updateMask": "metadata",
- "metadata": {
- "createdBy": "Eddie Current"
}
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "collection": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "projects": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": null,
- "segmentDuration": null
}
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}
], - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
]
}
}
Create Project
Create a new project
Authorizations:
path Parameters
collectionId required | string collection which will own this project |
Request Body schema: application/json
metadata | object (arbitrary metadata to associate with this project) |
object (composition parameters) | |
object (the parameters of the encoding) | |
object (composition source for project (select one)) | |
maxDuration | integer <int64> (maximum duration of project broadcasts (ms)) <= 604800000 Default: "172800000" |
object (webrtc service (select one)) | |
object (optimal location of broadcast (to optimize routing and delay)) |
Responses
Request samples
- Payload
{- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "location": {
- "latitude": 0,
- "longitude": 0
}
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "project": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": null
}, - "live": {
- "playlistCount": null,
- "fileCount": null
}
}, - "segmentDuration": 2000
}
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}
}
Get Project
Get an existing project
Authorizations:
path Parameters
collectionId required | string collection which owns the project |
projectId required | string project id |
query Parameters
status | boolean Default: "false" also query project broadcast status. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "project": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": null
}, - "live": {
- "playlistCount": null,
- "fileCount": null
}
}, - "segmentDuration": 2000
}
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}, - "status": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "broadcastId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "duration": 300000,
- "start": "1981-08-01T00:01:00Z",
- "stop": "1981-08-01T00:04:21Z",
- "phase": "PROJECT_BROADCAST_PHASE_NOT_RUNNING",
- "region": "REGION_US_EAST_1",
- "datacenter": "nyc1"
}
}
Delete Project
Delete a project
Authorizations:
path Parameters
collectionId required | string collection which owns the project |
projectId required | string project id |
query Parameters
force | boolean Default: "false" forcibly end broadcast in progress. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "broadcastStopped": true,
- "layoutsDeleted": 0
}
Update Project
Updates a project
Authorizations:
path Parameters
collectionId required | string collection which owns the project |
projectId required | string project id |
Request Body schema: application/json
updateMask required | string (fields to update) |
metadata | object (arbitrary metadata to associate with this project) |
object (composition parameters) | |
object (the parameters of the encoding) | |
object (composition source for project (select one)) | |
maxDuration | integer <int64> (maximum duration of project broadcasts (ms)) <= 604800000 |
object (webrtc service (select one)) | |
object (optimal location of broadcast (to optimize routing and delay)) |
Responses
Request samples
- Payload
{- "updateMask": "metadata, maxDuration, rendering.video.frameRate",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "location": {
- "latitude": 0,
- "longitude": 0
}
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "project": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": null
}, - "live": {
- "playlistCount": null,
- "fileCount": null
}
}, - "segmentDuration": 2000
}
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}, - "broadcastUpdated": true
}
Start Broadcast
Start broadcasting a project
Authorizations:
path Parameters
collectionId required | string collection which owns the project |
projectId required | string project id |
query Parameters
webrtcStart | boolean Default: "false" also start webrtc room. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "broadcastId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
Get Broadcast Status
Get the broadcast status of the project
Authorizations:
path Parameters
collectionId required | string collection which owns the project |
projectId required | string project id |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "status": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "broadcastId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "duration": 300000,
- "start": "1981-08-01T00:01:00Z",
- "stop": "1981-08-01T00:04:21Z",
- "phase": "PROJECT_BROADCAST_PHASE_NOT_RUNNING",
- "region": "REGION_US_EAST_1",
- "datacenter": "nyc1"
}
}
Stop Broadcast
Stop broadcasting a project
Authorizations:
path Parameters
collectionId required | string collection which owns the project |
projectId required | string project id |
query Parameters
webrtcStop | boolean Default: "false" stop the associated webrtc room,. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{ }
Delete Source From Project
Removes a source from a project.
Authorizations:
path Parameters
collectionId required | string the id of the parent Collection |
projectId required | string the id of the Project |
sourceId required | string the id of the Source |
query Parameters
force | boolean Default: "false" delete a live source even if it is in use in a broadcast. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "project": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": null
}, - "live": {
- "playlistCount": null,
- "fileCount": null
}
}, - "segmentDuration": 2000
}
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}, - "broadcastUpdated": true
}
Add Source to Project
Add a source to a project
Authorizations:
path Parameters
collectionId required | string collection which owns the project |
projectId required | string project which will own the source |
sourceId required | string live source id |
Request Body schema: application/json
object (triggers to indicate what actions to take on the project for a given Source) | |||||||
|
Responses
Request samples
- Payload
{- "trigger": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "project": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": null
}, - "live": {
- "playlistCount": null,
- "fileCount": null
}
}, - "segmentDuration": 2000
}
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}, - "broadcastUpdated": true
}
Update Source
Update attributes of the Source.
Authorizations:
path Parameters
collectionId required | string collection which owns the project |
projectId required | string project which will own the source |
sourceId required | string live source id |
Request Body schema: application/json
updateMask required | string (fields to update (default updates any non-null field)) |
object (triggers to indicate what actions to take on the project for a given Source) |
Responses
Request samples
- Payload
{- "updateMask": "metadata",
- "trigger": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "project": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "rendering": {
- "video": {
- "height": 720,
- "width": 1280,
- "framerate": 30,
- "colorSpace": "VIDEO_COLOR_SPACE_YUV420"
}, - "audio": {
- "channelLayout": "AUDIO_CHANNEL_LAYOUT_STEREO"
}, - "quality": "RENDERING_QUALITY_STANDARD",
- "targetLatency": 500,
- "complexity": 0
}, - "encoding": {
- "video": {
- "codec": "VIDEO_CODEC_H264",
- "rateControl": {
- "mode": "VIDEO_CODEC_RATE_CONTROL_MODE_CBR",
- "targetBitrate": "3145728",
- "maxKeyFrameInterval": 30
}, - "profile": "VIDEO_CODEC_PROFILE_BASELINE"
}, - "audio": {
- "codec": "AUDIO_CODEC_AAC"
}
}, - "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
], - "destinations": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": null
}, - "live": {
- "playlistCount": null,
- "fileCount": null
}
}, - "segmentDuration": 2000
}
}
}
}, - "timeout": 5000
}
], - "composition": {
- "studioSdk": {
- "version": "latest"
}, - "scene": {
- "selectedLayoutId": "e67cfd6ad57560962fddcf63611d2835",
- "debug": false
}
}, - "maxDuration": 172800000,
- "webrtc": {
- "hosted": {
- "enabled": true
}
}, - "triggers": [
- {
- "source": {
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "start": "SOURCE_TRIGGER_ACTION_IGNORE",
- "stop": "SOURCE_TRIGGER_ACTION_IGNORE"
}
}
], - "location": {
- "latitude": 0,
- "longitude": 0
}, - "guestCodes": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "code": "string",
- "url": "string",
- "autoDelete": "2019-08-24T14:15:22Z"
}
]
}
}
Get Source
Get existing sources in a collection
Authorizations:
path Parameters
collectionId required | string collection which owns the project which owns the source |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "sources": [
- {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
]
}
Create Collection Live Source
Create a new live source in a collection
Permissions
- scope:
SCOPE_VAPI_CREATE
Authorizations:
path Parameters
collectionId required | string collection which will own this collection live source |
Request Body schema: application/json
metadata | object (arbitrary metadata to associate with this collection live source) |
object (live source address (select one)) | |
object (addresses of source previews) |
Responses
Request samples
- Payload
{- "metadata": {
- "createdBy": "Eddie Current"
}, - "address": {
- "rtmpPush": {
- "enabled": true
}, - "srtPush": {
- "enabled": true
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1"
}
}
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "source": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
}
Get Source
Get an existing source in a project
Authorizations:
path Parameters
collectionId required | string collection which owns the project which owns the source |
sourceId required | string source id |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "source": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}
}
Delete Live Source
Deletes a live source from a collection
Authorizations:
path Parameters
collectionId required | string collection which owns the live source |
sourceId required | string live source id |
query Parameters
force | boolean Default: "false" delete a live source even if it is in use in a broadcast. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "projectIdsUpdated": [
- "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
]
}
Update Source
Update attributes of the Source.
Authorizations:
path Parameters
collectionId required | string collection which owns the project which owns the source |
sourceId required | string source id |
Request Body schema: application/json
updateMask required | string (fields to update (default updates any non-null field)) |
metadata | object (arbitrary metadata to associate with this source) |
object (live source address (select one)) | |
object (addresses of source previews) |
Responses
Request samples
- Payload
{- "updateMask": "metadata",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "address": {
- "rtmpPush": {
- "enabled": true
}, - "srtPush": {
- "enabled": true
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1"
}
}
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "source": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "sourceId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "preview": {
- "webrtc": {
- "enabled": true,
- "displayName": "Camera1",
- "participantId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
}, - "address": {
- "rtmpPush": {
- "enabled": true,
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.golightstream.com/api2/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "rtmp://ingest.golightstream.com/api2"
}, - "srtPush": {
- "enabled": true,
- "streamId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "srt://ingest.api.stream?streamid=7132b004-61e8-49c1-8dc8-4bb3269ce6f/7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "baseUrl": "srt://ingest.api.stream"
}, - "rtmpPull": {
- "url": "rtmp://ingest.fakecompany.com/inbound/abc123"
}
}
}, - "broadcastUpdated": true
}
The Destination Service operates on Project Destinations. Destinations designate where a Broadcast associated with a Project is distributed downstream.
Create Destination
Create a new Destination
Authorizations:
path Parameters
collectionId required | string collection which owns the project which owns the destination |
projectId required | string project which will own this destination |
Request Body schema: application/json
metadata | object (arbitrary metadata associated with this destination) |
object (destination address (select one)) | |
enabled | boolean (enable or disable this destination) Default: "true" |
timeout | integer <int64> (timeout (in milliseconds) to wait before resetting a connection) [ 100 .. 30000 ] Default: "5000" |
Responses
Request samples
- Payload
{- "metadata": {
- "createdBy": "Eddie Current"
}, - "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": 0
}, - "live": {
- "playlistCount": 5,
- "fileCount": 10
}
}, - "segmentDuration": 2000
}
}
}
}, - "enabled": true,
- "timeout": 5000
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "destination": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": 0
}, - "live": {
- "playlistCount": 5,
- "fileCount": 10
}
}, - "segmentDuration": 2000
}
}
}
}, - "timeout": 5000
}
}
Get Destination
Get an existing Destination.
Authorizations:
path Parameters
collectionId required | string collection which owns the project which owns the destination |
projectId required | string project which owns the destination |
destinationId required | string destination id |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "destination": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": 0
}, - "live": {
- "playlistCount": 5,
- "fileCount": 10
}
}, - "segmentDuration": 2000
}
}
}
}, - "timeout": 5000
}
}
Delete Destination
Delete a destination
Authorizations:
path Parameters
collectionId required | string collection which owns the project which owns the destination |
projectId required | string project which owns the destination |
destinationId required | string destination id |
query Parameters
force | boolean Default: "false" forcibly remove destination if enabled. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "broadcastUpdated": true
}
Update Destination
Update a destination
Authorizations:
path Parameters
collectionId required | string collection which owns the project which owns the destination |
projectId required | string project which owns the destination |
destinationId required | string destination id |
Request Body schema: application/json
updateMask required | string (fields to update (default updates any non-null field)) |
metadata | object (arbitrary metadata associated with this destination) |
object (destination address (select one)) | |
enabled | boolean (enable or disable this destination) Default: "true" |
timeout | integer <int64> (timeout (in milliseconds) to wait before resetting a connection) [ 100 .. 30000 ] |
Responses
Request samples
- Payload
{- "updateMask": "metadata, address.rtmpPush.url",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": 0
}, - "live": {
- "playlistCount": 5,
- "fileCount": 10
}
}, - "segmentDuration": 2000
}
}
}
}, - "enabled": true,
- "timeout": 5000
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "destination": {
- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "destinationId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "metadata": {
- "createdBy": "Eddie Current"
}, - "enabled": true,
- "address": {
- "rtmpPush": {
- "key": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "rtmp://ingest.fakecompany.com"
}, - "agora": {
- "appId": "string",
- "channelId": "string",
- "userId": "string"
}, - "s3Storage": {
- "region": "us-west-1",
- "bucket": "company",
- "prefix": "app",
- "accessKey": "string",
- "secretKey": "string",
- "token": "string",
- "tokenDuration": 0,
- "acl": "S3ACL_PRIVATE",
- "endpoint": "fra1.digitaloceanspaces.com",
- "packaging": {
- "hls": {
- "lifecycle": {
- "vod": {
- "maxDuration": 0
}, - "live": {
- "playlistCount": 5,
- "fileCount": 10
}
}, - "segmentDuration": 2000
}
}
}
}, - "timeout": 5000
}, - "broadcastUpdated": true
}
Refresh Access Token
Forcibly refresh an access token prior to expiration
Authorizations:
Request Body schema: application/json
Responses
Request samples
- Payload
{ }
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{ }
Create Guest Access Token
Create an access token for a guest
Authorizations:
Request Body schema: application/json
collectionId required | string (id of the collection this token is allowed to access) |
projectId required | string (id of the project this token is allowed to access) |
maxDuration | integer <int64> (requested duration (ms) of token before it expires) Default: "172800000" |
role | string (defined roles) Enum: "ROLE_HOST" "ROLE_COHOST" "ROLE_CONTRIBUTOR" "ROLE_GUEST" "ROLE_VIEWER" "ROLE_RENDERER" "ROLE_PLATFORM" "ROLE_IMPERSONATE" |
object (the type of access token (selec one)) | |
url | string (request a shortened url) |
Responses
Request samples
- Payload
{- "collectionId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "projectId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "maxDuration": 172800000,
- "role": "ROLE_HOST",
- "token": {
- "direct": {
- "displayName": "Eddy Current",
- "serviceUserId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}, - "exchange": {
- "maxDuration": 300000
}
},
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "accessToken": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "url": "string"
}
The Backend Authentication Service provides token services for partner backend systems
Create Access Token
Create an access token for a session host
Authorizations:
Request Body schema: application/json
serviceUserId required | string (service-specific user id
### Usage
* this should be an opaque GUID with no spaces) |
displayName | string |
role | string (defined roles) Enum: "ROLE_HOST" "ROLE_COHOST" "ROLE_CONTRIBUTOR" "ROLE_GUEST" "ROLE_VIEWER" "ROLE_RENDERER" "ROLE_PLATFORM" "ROLE_IMPERSONATE" |
maxDuration | integer <int64> (requested duration of token before it expires (ms)) Default: "172800000" |
Responses
Request samples
- Payload
{- "serviceUserId": "7132b004-61e8-49c1-8dc8-4bb3269ce6f",
- "displayName": "string",
- "role": "ROLE_HOST",
- "maxDuration": 172800000
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "accessToken": "7132b004-61e8-49c1-8dc8-4bb3269ce6f"
}
Response samples
- 200
- 401
- 403
- 404
- 429
- 500
- default
{- "keys": [
- {
- "alg": "string",
- "kty": "string",
- "use": "string",
- "kid": "string",
- "e": "string",
- "n": "string"
}
]
}