curl --request POST \
--url https://apix.us.amity.co/api/v1/rooms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"thumbnailFileId": "<string>",
"metadata": {},
"liveChatEnabled": true,
"parentRoomId": "<string>",
"type": "directStreaming"
}
'{
"rooms": [
{
"_id": "<string>",
"type": "directStreaming",
"targetId": "<string>",
"targetType": "community",
"referenceType": "post",
"referenceId": "<string>",
"liveChannelId": "<string>",
"liveChatEnabled": true,
"title": "<string>",
"roomId": "<string>",
"description": "<string>",
"thumbnailFileId": "<string>",
"status": "idle",
"participants": [
{
"type": "coHost",
"userId": "<string>"
}
],
"livePlaybackUrl": "https://stream.example.com/someid.m3u8?token=token",
"liveThumbnailUrl": "https://image.example.com/someid/thumbnail.png?token=token",
"recordedPlaybackInfos": [
{
"url": "https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/watch",
"thumbnailUrl": "https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/thumbnail"
}
],
"durationSeconds": 123,
"moderation": {
"flagLabels": [
{
"category": "<string>",
"threshold": 123,
"detectedAt": "2023-11-07T05:31:56Z"
}
],
"terminateLabels": [
{
"category": "<string>",
"threshold": 123,
"detectedAt": "2023-11-07T05:31:56Z"
}
],
"updatedAt": "2023-11-07T05:31:56Z"
},
"parentRoomId": "<string>",
"childRoomIds": [],
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"creatorInternalId": "64be1f6cb9b4106b5a6bbf3f",
"updatedAt": "2023-11-07T05:31:56Z",
"liveAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"recordedAt": "2023-11-07T05:31:56Z",
"isDeleted": true,
"deletedAt": "2023-11-07T05:31:56Z",
"deletedBy": "<string>",
"path": "<string>",
"metadata": {}
}
],
"roomChildrens": [
{
"_id": "<string>",
"type": "directStreaming",
"targetId": "<string>",
"targetType": "community",
"referenceType": "post",
"referenceId": "<string>",
"liveChannelId": "<string>",
"liveChatEnabled": true,
"title": "<string>",
"roomId": "<string>",
"description": "<string>",
"thumbnailFileId": "<string>",
"status": "idle",
"participants": [
{
"type": "coHost",
"userId": "<string>"
}
],
"livePlaybackUrl": "https://stream.example.com/someid.m3u8?token=token",
"liveThumbnailUrl": "https://image.example.com/someid/thumbnail.png?token=token",
"recordedPlaybackInfos": [
{
"url": "https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/watch",
"thumbnailUrl": "https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/thumbnail"
}
],
"durationSeconds": 123,
"moderation": {
"flagLabels": [
{
"category": "<string>",
"threshold": 123,
"detectedAt": "2023-11-07T05:31:56Z"
}
],
"terminateLabels": [
{
"category": "<string>",
"threshold": 123,
"detectedAt": "2023-11-07T05:31:56Z"
}
],
"updatedAt": "2023-11-07T05:31:56Z"
},
"parentRoomId": "<string>",
"childRoomIds": [],
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"creatorInternalId": "64be1f6cb9b4106b5a6bbf3f",
"updatedAt": "2023-11-07T05:31:56Z",
"liveAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"recordedAt": "2023-11-07T05:31:56Z",
"isDeleted": true,
"deletedAt": "2023-11-07T05:31:56Z",
"deletedBy": "<string>",
"path": "<string>",
"metadata": {}
}
],
"users": [
{
"userId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"_id": "<string>",
"path": "<string>",
"userInternalId": "<string>",
"userPublicId": "<string>",
"roles": [
"<string>"
],
"permissions": [
"MUTE_CHANNEL"
],
"displayName": "<string>",
"profileHandle": "<string>",
"description": "<string>",
"avatarFileId": "<string>",
"avatarCustomUrl": "<string>",
"flagCount": 123,
"hashFlag": {
"bits": 123,
"hashes": 123,
"hash": [
"<string>"
]
},
"metadata": {},
"isGlobalBan": true,
"isBrand": true,
"isDeleted": true
}
],
"files": [
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "image",
"accessType": "public",
"altText": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "<string>",
"extension": "<string>",
"size": 123,
"mimeType": "<string>",
"metadata": {
"exif": {},
"gps": {},
"height": 123,
"width": 123,
"isFull": true
}
}
}
]
}curl --request POST \
--url https://apix.us.amity.co/api/v1/rooms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"thumbnailFileId": "<string>",
"metadata": {},
"liveChatEnabled": true,
"parentRoomId": "<string>",
"type": "directStreaming"
}
'{
"rooms": [
{
"_id": "<string>",
"type": "directStreaming",
"targetId": "<string>",
"targetType": "community",
"referenceType": "post",
"referenceId": "<string>",
"liveChannelId": "<string>",
"liveChatEnabled": true,
"title": "<string>",
"roomId": "<string>",
"description": "<string>",
"thumbnailFileId": "<string>",
"status": "idle",
"participants": [
{
"type": "coHost",
"userId": "<string>"
}
],
"livePlaybackUrl": "https://stream.example.com/someid.m3u8?token=token",
"liveThumbnailUrl": "https://image.example.com/someid/thumbnail.png?token=token",
"recordedPlaybackInfos": [
{
"url": "https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/watch",
"thumbnailUrl": "https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/thumbnail"
}
],
"durationSeconds": 123,
"moderation": {
"flagLabels": [
{
"category": "<string>",
"threshold": 123,
"detectedAt": "2023-11-07T05:31:56Z"
}
],
"terminateLabels": [
{
"category": "<string>",
"threshold": 123,
"detectedAt": "2023-11-07T05:31:56Z"
}
],
"updatedAt": "2023-11-07T05:31:56Z"
},
"parentRoomId": "<string>",
"childRoomIds": [],
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"creatorInternalId": "64be1f6cb9b4106b5a6bbf3f",
"updatedAt": "2023-11-07T05:31:56Z",
"liveAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"recordedAt": "2023-11-07T05:31:56Z",
"isDeleted": true,
"deletedAt": "2023-11-07T05:31:56Z",
"deletedBy": "<string>",
"path": "<string>",
"metadata": {}
}
],
"roomChildrens": [
{
"_id": "<string>",
"type": "directStreaming",
"targetId": "<string>",
"targetType": "community",
"referenceType": "post",
"referenceId": "<string>",
"liveChannelId": "<string>",
"liveChatEnabled": true,
"title": "<string>",
"roomId": "<string>",
"description": "<string>",
"thumbnailFileId": "<string>",
"status": "idle",
"participants": [
{
"type": "coHost",
"userId": "<string>"
}
],
"livePlaybackUrl": "https://stream.example.com/someid.m3u8?token=token",
"liveThumbnailUrl": "https://image.example.com/someid/thumbnail.png?token=token",
"recordedPlaybackInfos": [
{
"url": "https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/watch",
"thumbnailUrl": "https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/thumbnail"
}
],
"durationSeconds": 123,
"moderation": {
"flagLabels": [
{
"category": "<string>",
"threshold": 123,
"detectedAt": "2023-11-07T05:31:56Z"
}
],
"terminateLabels": [
{
"category": "<string>",
"threshold": 123,
"detectedAt": "2023-11-07T05:31:56Z"
}
],
"updatedAt": "2023-11-07T05:31:56Z"
},
"parentRoomId": "<string>",
"childRoomIds": [],
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"creatorInternalId": "64be1f6cb9b4106b5a6bbf3f",
"updatedAt": "2023-11-07T05:31:56Z",
"liveAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"recordedAt": "2023-11-07T05:31:56Z",
"isDeleted": true,
"deletedAt": "2023-11-07T05:31:56Z",
"deletedBy": "<string>",
"path": "<string>",
"metadata": {}
}
],
"users": [
{
"userId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"_id": "<string>",
"path": "<string>",
"userInternalId": "<string>",
"userPublicId": "<string>",
"roles": [
"<string>"
],
"permissions": [
"MUTE_CHANNEL"
],
"displayName": "<string>",
"profileHandle": "<string>",
"description": "<string>",
"avatarFileId": "<string>",
"avatarCustomUrl": "<string>",
"flagCount": 123,
"hashFlag": {
"bits": 123,
"hashes": 123,
"hash": [
"<string>"
]
},
"metadata": {},
"isGlobalBan": true,
"isBrand": true,
"isDeleted": true
}
],
"files": [
{
"fileId": "<string>",
"fileUrl": "<string>",
"type": "image",
"accessType": "public",
"altText": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "<string>",
"extension": "<string>",
"size": 123,
"mimeType": "<string>",
"metadata": {
"exif": {},
"gps": {},
"height": 123,
"width": 123,
"isFull": true
}
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Information of room to be created
Room title
1000Room description
5000Thumbnail file ID
50Custom metadata
Indicates whether the live channel (chat) is enabled for the room
Optional parent room ID for creating child streams
50Type of room: directStreaming for single participant streaming, coHosts for multiple participants
directStreaming, coHosts list of rooms
Show child attributes
Internal room ID
Type of room * directStreaming - single participant streaming * coHosts - More than one participant
directStreaming, coHosts ID of the target of the entity that room belongs to
Target of the entity that room belongs to
community, user Entity that room is associated with
post Entity ID that room is associated with
Associated live channel ID for chat
Whether live channel is enabled
Room title
Public room ID
Room description
Thumbnail file ID
Status of room * idle - room is just created * live - broadcasting is active * waitingReconnect - broadcaster disconnected, waiting for reconnection * ended - broadcasting stopped * recorded - room recordings available
idle, live, waitingReconnect, ended, recorded Live playback URL
"https://stream.example.com/someid.m3u8?token=token"
Live thumbnail URL
"https://image.example.com/someid/thumbnail.png?token=token"
Recorded playback URLs and thumbnails
Show child attributes
Duration of the broadcast in seconds (only for ended/recorded rooms)
Moderation information including flagged and terminated labels
Show child attributes
Labels that triggered terminate actions
Last moderation update timestamp
Parent room ID for child streams
Child room IDs
Creation timestamp
Room creator user public ID
Room creator user internal ID
"64be1f6cb9b4106b5a6bbf3f"
Last update timestamp
When broadcasting started
When broadcasting ended
When recording became available
Whether room is deleted
Deletion timestamp
User who deleted the room
Room path for realtime events
Custom metadata
Show child attributes
Internal room ID
Type of room * directStreaming - single participant streaming * coHosts - More than one participant
directStreaming, coHosts ID of the target of the entity that room belongs to
Target of the entity that room belongs to
community, user Entity that room is associated with
post Entity ID that room is associated with
Associated live channel ID for chat
Whether live channel is enabled
Room title
Public room ID
Room description
Thumbnail file ID
Status of room * idle - room is just created * live - broadcasting is active * waitingReconnect - broadcaster disconnected, waiting for reconnection * ended - broadcasting stopped * recorded - room recordings available
idle, live, waitingReconnect, ended, recorded Live playback URL
"https://stream.example.com/someid.m3u8?token=token"
Live thumbnail URL
"https://image.example.com/someid/thumbnail.png?token=token"
Recorded playback URLs and thumbnails
Show child attributes
Recorded playback URL
"https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/watch"
Recorded thumbnail URL
"https://apix.eu.amity.co/api/v1/rooms/roomid/recorded/someid/thumbnail"
Duration of the broadcast in seconds (only for ended/recorded rooms)
Moderation information including flagged and terminated labels
Show child attributes
Labels that triggered flag actions
Labels that triggered terminate actions
Last moderation update timestamp
Parent room ID for child streams
Child room IDs
Creation timestamp
Room creator user public ID
Room creator user internal ID
"64be1f6cb9b4106b5a6bbf3f"
Last update timestamp
When broadcasting started
When broadcasting ended
When recording became available
Whether room is deleted
Deletion timestamp
User who deleted the room
Room path for realtime events
Custom metadata
Show child attributes
Private ID of a user. (for real-time event)
Path of a user. (for real-time event)
MUTE_CHANNEL, CLOSE_CHANNEL, EDIT_CHANNEL, EDIT_CHANNEL_RATELIMIT, EDIT_MESSAGE, DELETE_MESSAGE, BAN_USER_FROM_CHANNEL, MUTE_USER_INSIDE_CHANNEL, ADD_CHANNEL_USER, REMOVE_CHANNEL_USER, EDIT_CHANNEL_USER, ASSIGN_CHANNEL_USER_ROLE, BAN_USER, EDIT_USER, ASSIGN_USER_ROLE, EDIT_USER_FEED_POST, DELETE_USER_FEED_POST, EDIT_USER_FEED_COMMENT, DELETE_USER_FEED_COMMENT, ADD_COMMUNITY_USER, REMOVE_COMMUNITY_USER, EDIT_COMMUNITY_USER, BAN_COMMUNITY_USER, MUTE_COMMUNITY_USER, EDIT_COMMUNITY, DELETE_COMMUNITY, EDIT_COMMUNITY_POST, DELETE_COMMUNITY_POST, PIN_COMMUNITY_POST, EDIT_COMMUNITY_COMMENT, DELETE_COMMUNITY_COMMENT, ASSIGN_COMMUNITY_USER_ROLE, CREATE_COMMUNITY_CATEGORY, EDIT_COMMUNITY_CATEGORY, DELETE_COMMUNITY_CATEGORY, CREATE_ROLE, EDIT_ROLE, DELETE_ROLE, MANAGE_COMMUNITY_STORY Global ban status. Every user can see this flag.
Brand user status.
Show child attributes
Root file key on cloud storage.
Http link for download file
File type.
image, file, video File access type. network type requires authentication to download.
public, network Alternative text for the file.
180The date/time when a file is uploaded.
The date/time when a file is updated.
Show child attributes
File name.
File format.
File size.
File mime-type.