Medias
List saved media
This endpoint retrieves a list of all your saved media.
POSThttps://api.aiozstream.network/api/live_streams/:key_id/media
Parameters
key_id* The unique identifier of the live streaming key
Headers
Authorization Bearer your_access_token_here
or
stream-public-key your_public_key_here
stream-secret-key your_secret_key_here
Body
offset The number of records to skip before starting to return results (default: 0)
limit The maximum number of records to return (default: 25, max: 100)
sort_by The field to sort by (sort_by defaults to created_at and supports: created_at, updated_at, title, size)
order_by The sort order (orderBy defaults to asc and supports: asc, desc)
search The keyword to search in both the title and description fields
status The status of the live streaming.
status The status of the media
Response
200: OK
curl --location --request POST 'https://api.aiozstream.network/api/live_streams/key_id/media' \
--header 'Authorization: Bearer your_access_token_here' \
# --header 'stream-public-key: your_public_key_here' \
# --header 'stream-secret-key: your_secret_key_here' \
--header 'Content-Type: application/json' \
--data-raw '{
"sort_by": "created_at",
"order_by": "asc",
"offset": 0,
"limit": 10
}'Get live streaming media details
This endpoint retrieves the details of a specific live streaming media.
GEThttps://api.aiozstream.network/api/live_streams/:live_media_id/media
Parameters
live_media_id* The unique identifier of the live media id
Headers
Authorization Bearer your_access_token_here
or
stream-public-key your_public_key_here
stream-secret-key your_secret_key_here
Response
200: OK
curl --location 'https://api.aiozstream.network/api/live_streams/live_media_id/media' \
--header 'accept: application/json, text/plain, */*' \
--header 'accept-language: en-US,en;q=0.6' \
--header 'authorization: Bearer your_access_token_here'
# --header 'stream-public-key: your_public_key_here' \
# --header 'stream-secret-key: your_secret_key_here' Delete live streaming media
This endpoint allows you to delete a live streaming media.
DELETEhttps://api.aiozstream.network/api/live_streams/:key_id/streamings/:stream_id
Parameters
key_id* The unique identifier of the live streaming key
stream_id* The unique identifier of the live streaming
Headers
Authorization Bearer your_access_token_here
or
stream-public-key your_public_key_here
stream-secret-key your_secret_key_here
Response
200: OK
curl --location --request DELETE 'https://api.aiozstream.network/api/live_streams/key_id/streamings/stream_id' \
--header 'accept: application/json' \
# --header 'stream-public-key: your_public_key_here' \
# --header 'stream-secret-key: your_secret_key_here' \
--header 'Authorization: Bearer your_access_token_here' \