<@U04S8PLJWMT> how to get access token in airbyte ...
# ask-ai
p
@kapa.ai how to get access token in airbyte community edition with user and password
k
In Airbyte Community Edition (Open Source), access tokens for the API are not obtained directly using a username (email) and password. Instead, Airbyte uses an OAuth2 client credentials flow, where you generate a
client_id
and
client_secret
from the Airbyte UI and use these to obtain an access token. Here’s how you can get an access token: 1. Create an Application to Get Credentials - In the Airbyte UI, go to User Settings → Applications (or Settings → Account → Applications depending on your version). - Click Create an application and note the generated
client_id
and `client_secret`[source](https://docs.airbyte.com/platform/next/using-airbyte/configuring-api-access). 2. Obtain an Access Token - Make a POST request to your Airbyte instance:
Copy code
POST <YOUR_AIRBYTE_URL>/api/v1/applications/token
- With the following JSON body:
Copy code
json      {        "client_id": "<your_client_id>",        "client_secret": "<your_client_secret>"      }
- The response will include an
access_token
(valid for 3 minutes in most OSS versions)[source](https://docs.airbyte.com/platform/next/using-airbyte/configuring-api-access). Note: - The access token is not obtained using your email and password, but with the client credentials generated as above. - If you need to retrieve your
client_id
and
client_secret
for the default admin user, you can run:
Copy code
abctl local credentials
This will output your credentials if you are running Airbyte locally with `abctl`[source](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/authentication). If you are looking for a direct "username/password" login flow for API tokens, that is not currently supported in Airbyte Community Edition according to the available documentation. The supported method is via client credentials as described above.
p
@kapa.ai how can i get client_Id and client_secrets programatically if i have user email and password
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not provide any method to programmatically obtain the
client_id
and
client_secret
using only a user email and password in Airbyte Community Edition. The documented process requires manual creation of an application via the Airbyte UI to generate these credentials. There is no mention of an API or endpoint that allows exchanging a user's email and password for a
client_id
and
client_secret
in the available documentation [Configuring API Access](https://docs.airbyte.com/platform/next/using-airbyte/configuring-api-access). If you are running Airbyte locally with
abctl
, you can retrieve the credentials using the CLI command:
Copy code
abctl local credentials
But this is not a programmatic API call using email and password; it's a CLI utility for local deployments [Authentication](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/authentication). If you need to automate this process, you would need to script UI interactions or CLI usage, as there is no documented API for this purpose.