To list all the streams created by a user, you will need the userId
from the
API key object.
The simplest way to find your userId is by fetching the API key information. For example:
curl -H 'authorization: Bearer {api_key}' \"https://livepeer.com/api/api-token/{api_key}”
You will get the API key object in the response. For example:
{"id":"{api_key}","userId":"1234abcd-1234-abcd-1234-abcd1234abcd","name":"example-api-key","createdAt":1596047053660}
Use the userId
to fetch all the streams created by the user. For example:
curl -H 'authorization: Bearer {api_key}' \"https://livepeer.com/api/stream/user/{user_id}"
Next learn how to delete a stream with the Livepeer.com API.