In order to utilize many of the developer API endpoints you will need to know your API Token as well as other items such as your App ID or Channel ID. This document will provide examples of how those values can be located using the cURL utility.
- Using the Vendor UI
Your application ID is available on the https://vendor.replicated.com/settings page for your application.
- Using cURL
curl -X GET \ -H 'Authorization: <YOUR-API-TOKEN>' \ https://api.replicated.com/vendor/v1/apps \ | python -m json.tool
You will receive a json response that includes the “App:Id” for each of your Apps along with the “Channel:Id” for each release channel.
- Using Replicated CLI
Once you have your API Token and App ID, you can use The Replicated Vendor CLI to get channel info.
replicated --token ... --app ... channel ls
- Using cUrl
curl -X GET \ -H 'Authorization: <YOUR-API-TOKEN>' \ https://api.replicated.com/vendor/v1/app/<YOUR-APP-ID>/channels \ | python -m json.tool