403 Forbidden error when listing sources in Airbyte using Python requests library

Summary

The user is encountering a 403 Forbidden error when trying to list all available sources in Airbyte using the Python requests library. They are using the wrong URL and may need to check their API key authorization. They are also asking for alternatives to this method.


Question

I’m trying to list all the available sources in airbyte using requests library from python, however I’m running into 403 Forbidden error
Here is the code :
headers = {
"accept": "application/json",
"authorization": _f_"Bearer {api_key}"
}
#url = "<https://api.airbyte.com/v1/sources>"
url = "<https://cloud.airbyte.com/api/v1/source_definitions/list_latest>"

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

Markdown(response.text) Are there any alternatives to this method?



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want to access the original thread.

Join the conversation on Slack

["403-forbidden-error", "python-requests-library", "list-sources", "airbyte-api", "authorization", "alternative-method"]