<@U04SE163WC8> I'm trying to use the Airbyte pytho...
# ask-ai
e
@kapa.ai I'm trying to use the Airbyte python package to connect to an OSS self hosted instance. I do not have an API key. How can I create a
CloudWorkspace
instance without it?
u
Based on the information provided in the knowledge sources, it appears that you need an API key or application credentials (
client_id
and
client_secret
) to interact with the Airbyte API, even for a self-hosted OSS instance. Here are the steps to create application credentials: 1. Log into the Airbyte UI of your self-hosted instance. 2. Go to the
settings/applications
page. 3. Create an application to get a pair of
client_id
and
client_secret
credentials. Once you have these credentials, you can use them to obtain an access token by making an API request to the
applications/token
endpoint. The access token can then be used to make requests to the API. Here's an example of how to obtain an access token:
Copy code
bash POST <YOUR_WEBAPP_URL>/api/v1/applications/token
With the following JSON Body attached to the request, populated with your
client_id
and `client_secret`:
Copy code
json { "client_id": "", "client_secret": "" }
The API response should provide an
access_token
, which is a Bearer Token valid for a certain period (60 minutes or 3 minutes depending on the source) that can be used to make requests to the API. Once your
access_token
expires, you may make a new request to the
applications/token
endpoint to get a new token. Please note that the exact steps and endpoints may vary depending on your specific setup and version of Airbyte. For more detailed instructions, please refer to the [official Airbyte documentation](https://docs.airbyte.com/enterprise-setup/api-access-config). As for creating a
CloudWorkspace
instance without an API key, the knowledge sources do not provide enough information to answer this question confidently. It's recommended to check the official Airbyte documentation or reach out to the Airbyte community for further assistance.
e
@kapa.ai I do not have an Applications menu under my Settings
u
A message from kapa.ai
u
Based on the information from the [discussion on GitHub](https://github.com/airbytehq/airbyte/discussions/39528), it appears that the Applications settings, which is also referred to as "API Key Management", is not included in the free version of Airbyte. The APIs are accessible using basic HTTP authentication instead of using the API keys. If you're not seeing the Applications link in the side panel under Settings, it could be due to the version of Airbyte you're using or your current subscription level. If you're using Airbyte's open-source version, some features like API Key Management might not be available. You might need to upgrade to a paid version or enterprise edition to access these features. For further assistance, consider reaching out to the Airbyte community or support.