Get bitrise.yml of a specific app

Hello,

I’m trying to get the bitrise.yml file from a python script.
using:

url = “https://app.bitrise.io/app/%s/bitrise.yml” % <my_application_slug>
headers = {
‘Authorization’: “token %s” % <token_value>
}

response = requests.get(url, headers=headers)

however response is always:

The page you were looking for doesn’t exist (404)
Message: Not Found

followed bitrise docs and can’t figure out why my response is always not found…
it happens for every application i have in my workspace.

Appreciate the help !

Hello,

It looks like your url is out of order. The format is /apps/{app-slug}/bitrise.yml

I would recommend using the swagger page: https://api-docs.bitrise.io/

You can run your API call and it will also show you both the curl command and the request URL

Cathy

Hi,

thanks for the replay, its working now!