diff --git a/docs/api/index.html b/docs/api/index.html index 700eac92e..e7a955330 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -2233,7 +2233,7 @@ data-styled.g138[id="sc-iIgjPs"]{content:"jIUTls,"}/*!sc*/ 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864 -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688, -104.0616 -231.873,-231.248 z - " fill="currentColor">
Download OpenAPI specification:Download
Owncast is a self-hosted live video and web chat server for use with existing popular broadcasting software.
+ " fill="currentColor">Download OpenAPI specification:Download
Owncast is a self-hosted live video and web chat server for use with existing popular broadcasting software.
{- "broadcaster": {
- "remoteAddr": "172.217.164.110",
- "time": "2020-10-06T23:20:44.588649-07:00",
- "streamDetails": {
- "width": 640,
- "height": 480,
- "frameRate": 24,
- "videoBitrate": 1500,
- "videoCodec": "mp4a",
- "audioBitrate": 256,
- "audioCodec": "aac",
- "encoder": "obs-output module (libobs version 25.0.8)"
}
}, - "online": true,
- "viewerCount": 3,
- "overallPeakViewerCount": 4,
- "sessionPeakViewerCount": 4,
- "versionNumber": "0.0.3"
}
Disconnect the active inbound stream, if one exists, and terminate the broadcast.
@@ -2244,13 +2244,13 @@ data-styled.g138[id="sc-iIgjPs"]{content:"jIUTls,"}/*!sc*/[- {
- "connectedAt": "2020-10-06T23:20:44.588649-07:00",
- "messageCount": 3,
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36",
- "ipAddress": "172.217.164.110",
- "geo": {
- "countryCode": "US",
- "regionName": "California",
- "timeZone": "America/Los_Angeles"
}, - "user": {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 42,
- "createdAt": "2021-07-08T20:21:25.303402404-07:00",
- "previousNames": "awesome-pizza,coolPerson23"
}
}
]
Return a list of currently connected clients with optional geo details.
[- {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 42,
- "createdAt": "2019-08-24T14:15:22Z",
- "previousNames": "awesome-pizza,user42",
- "scopes": [
- "MODERATOR"
]
}
]
[- {
- "message": "Owncast v0.0.0-localdev (unknown)",
- "level": "info",
- "time": "2020-10-29T18:35:34.422386-07:00"
}, - {
- "message": "Web server running on port: 8080",
- "level": "info",
- "time": "2020-10-29T18:35:35.011731-07:00"
}, - {
- "message": "RTMP server is listening for incoming stream on port: 1935",
- "level": "info",
- "time": "2020-10-29T18:35:35.011823-07:00"
}
]
Return recent warning and error logs.
[- {
- "message": "Owncast v0.0.0-localdev (unknown)",
- "level": "info",
- "time": "2020-10-29T18:35:34.422386-07:00"
}, - {
- "message": "Web server running on port: 8080",
- "level": "info",
- "time": "2020-10-29T18:35:35.011731-07:00"
}, - {
- "message": "RTMP server is listening for incoming stream on port: 1935",
- "level": "info",
- "time": "2020-10-29T18:35:35.011823-07:00"
}
]
Get the current configuration of the Owncast server.
{- "instanceDetails": {
- "name": "string",
- "summary": "string",
- "logo": "string",
- "tags": [
- "string"
], - "extraPageContent": "<p>This page is <strong>super</strong> cool!",
- "version": "Owncast v0.0.3-macOS (ef3796a033b32a312ebf5b334851cbf9959e7ecb)"
}, - "ffmpegPath": "string",
- "webServerPort": 0,
- "rtmpServerPort": 0,
- "s3": {
- "enabled": true,
- "endpoint": "string",
- "servingEndpoint": "string",
- "accessKey": "string",
- "secret": "string",
- "bucket": "string",
- "region": "string",
- "acl": "string",
- "forcePathStyle": true
}, - "videoSettings": {
- "videoQualityVariants": [
- {
- "videoPassthrough": true,
- "audioPassthrough": true,
- "videoBitrate": 0,
- "audioBitrate": 0,
- "scaledWidth": 0,
- "scaledHeight": 0,
- "framerate": 0,
- "cpuUsageLevel": 0
}
], - "latencyLevel": 0
}, - "yp": {
- "enabled": false,
- "instanceUrl": "string"
}
}
Get a list of all chat messages with no filters applied.
-[- {
- "user": {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 42,
- "createdAt": "2019-08-24T14:15:22Z",
- "previousNames": "awesome-pizza,user42",
- "scopes": [
- "MODERATOR"
]
}, - "body": "string",
- "id": "string",
- "visible": true,
- "timestamp": "2019-08-24T14:15:22Z"
}
]
Pass an array of IDs you want to change the chat visibility of.
+[- {
- "user": {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "previousNames": "awesome-pizza,user42",
- "scopes": [
- "MODERATOR"
]
}, - "body": "string",
- "id": "string",
- "visible": true,
- "timestamp": "2019-08-24T14:15:22Z"
}
]
Pass an array of IDs you want to change the chat visibility of.
visible | boolean Are these messages visible. |
idArray | Array of strings |
{- "visible": true,
- "idArray": [
- "string"
]
}
{- "success": true,
- "message": "context specific success message"
}
Enable or disable a single user. Disabling will also hide all the user's chat messages.
@@ -2329,7 +2329,7 @@ data-styled.g138[id="sc-iIgjPs"]{content:"jIUTls,"}/*!sc*/The moderator status of this user.
{- "userId": "xJ84_48Ghj",
- "isModerator": true
}
{- "success": true,
- "message": "context specific success message"
}
[- {
- "name": "John Smith",
- "timestamp": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z"
}
]
actorIRI | string The requestor's remote IRI used to identify the user. |
{- "actorIRI": "string"
}
{- "success": true,
- "message": "context specific success message"
}
value | Array of strings |
Register a user that returns an access token for accessing chat.
displayName | string Optionally provide a display name you want to assign to this user when registering. |
{- "displayName": "string"
}
{- "id": "string",
- "accessToken": "string",
- "displayName": "string"
}
Used to get chat messages prior to connecting to the websocket.
-[- {
- "user": {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 42,
- "createdAt": "2019-08-24T14:15:22Z",
- "previousNames": "awesome-pizza,user42",
- "scopes": [
- "MODERATOR"
]
}, - "body": "string",
- "id": "string",
- "visible": true,
- "timestamp": "2019-08-24T14:15:22Z"
}
]
Get a list of custom emoji that are supported in chat.
+[- {
- "user": {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "previousNames": "awesome-pizza,user42",
- "scopes": [
- "MODERATOR"
]
}, - "body": "string",
- "id": "string",
- "visible": true,
- "timestamp": "2019-08-24T14:15:22Z"
}
]
Set the title of the currently streaming content.
string or integer or object or boolean |
[- {
- "url": "string",
- "title": "string",
- "description": "string",
- "icon": "string",
- "color": "string",
- "openExternally": true
}
]
Return a list of currently connected clients with optional geo details.
[- {
- "connectedAt": "2020-10-06T23:20:44.588649-07:00",
- "messageCount": 3,
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36",
- "ipAddress": "172.217.164.110",
- "geo": {
- "countryCode": "US",
- "regionName": "California",
- "timeZone": "America/Los_Angeles"
}, - "user": {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 42,
- "createdAt": "2021-07-08T20:21:25.303402404-07:00",
- "previousNames": "awesome-pizza,coolPerson23"
}
}
]
Used to get the backlog of chat messages.
-[- {
- "user": {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 42,
- "createdAt": "2019-08-24T14:15:22Z",
- "previousNames": "awesome-pizza,user42",
- "scopes": [
- "MODERATOR"
]
}, - "body": "string",
- "id": "string",
- "visible": true,
- "timestamp": "2019-08-24T14:15:22Z"
}
]
Pass an array of IDs you want to change the chat visibility of.
+[- {
- "user": {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "previousNames": "awesome-pizza,user42",
- "scopes": [
- "MODERATOR"
]
}, - "body": "string",
- "id": "string",
- "visible": true,
- "timestamp": "2019-08-24T14:15:22Z"
}
]
Pass an array of IDs you want to change the chat visibility of.
visible | boolean Are these messages visible. |
idArray | Array of strings |
{- "visible": true,
- "idArray": [
- "string"
]
}
{- "success": true,
- "message": "context specific success message"
}
Chat-related actions that can take place by a moderator.
@@ -2391,17 +2391,17 @@ data-styled.g138[id="sc-iIgjPs"]{content:"jIUTls,"}/*!sc*/The moderator status of this user.
{- "userId": "xJ84_48Ghj",
- "isModerator": true
}
{- "success": true,
- "message": "context specific success message"
}
[- {
- "id": "yklw5Imng",
- "displayName": "awesome-pizza",
- "displayColor": 3,
- "createdAt": "2019-08-24T14:15:22Z",
- "previousNames": "awesome-pizza,user42",
- "scopes": [
- "MODERATOR"
]
}
]
{- "name": "string",
- "summary": "string",
- "logo": "string",
- "tags": [
- "string"
], - "extraPageContent": "<p>This page is <strong>super</strong> cool!",
- "version": "Owncast v0.0.3-macOS (ef3796a033b32a312ebf5b334851cbf9959e7ecb)"
}
This endpoint is used to discover when a server is broadcasting, the number of active viewers as well as other useful information for updating the user interface.
{- "lastConnectTime": "2020-10-03T21:36:22-05:00",
- "lastDisconnectTime": null,
- "online": true,
- "overallMaxViewerCount": 420,
- "sessionMaxViewerCount": 12,
- "viewerCount": 7
}
Information to be used in the Yellow Pages service, a global directory of Owncast servers.
{- "name": "string",
- "description": "string",
- "logo": "string",
- "nsfw": true,
- "tags": [
- "string"
], - "online": true,
- "viewerCount": 0,
- "overallMaxViewerCount": 0,
- "sessionMaxViewerCount": 0,
- "lastConnectTime": "2019-08-24T14:15:22Z"
}
[- {
- "name": "John Smith",
- "timestamp": "2019-08-24T14:15:22Z",
- "disabledAt": "2019-08-24T14:15:22Z"
}
]
account | string The fediverse username@server.tld account that wants to perform the remote follow action. +Response samples
Content type application/json [ Return the information needed to redirect a user to a fediverse server to perform a remote follow action.Request Body schema: application/json
ResponsesRequest samples
Content type application/json { Response samples
Content type application/json |