This message was deleted.
# ask-community-for-troubleshooting
s
This message was deleted.
k
Based on the knowledge sources, here's how you can get an access token via API call when Airbyte is deployed on Kubernetes via Helm: ## Step 1: Create an Application First, you need to create an application to get your credentials: 1. Log into the Airbyte UI 2. Navigate to Settings → Account → Applications (or User Settings → Applications in newer versions) 3. Click "Create an application" 4. Name your application 5. Copy the generated
client_id
and
client_secret
Alternatively, if you need to retrieve existing credentials from your Kubernetes deployment, you can run:
Copy code
kubectl get secret airbyte-auth-secrets -n <YOUR_NAMESPACE> -o yaml
The values will be base64 encoded, which you can decode using:
Copy code
echo '<encoded-value>' | base64 -d
## Step 2: Obtain an Access Token via API Once you have your
client_id
and
client_secret
, make the following API request:
Copy code
POST <YOUR_WEBAPP_URL>/api/v1/applications/token
Include this JSON body in your request:
Copy code
json {   "client_id": "",   "client_secret": "" }
Replace
<YOUR_WEBAPP_URL>
with the URL you use to access the Airbyte UI. The API response will provide an
access_token
, which is a Bearer Token valid for 3 minutes. You can use this token to make requests to the Airbyte API. Important: Access tokens are short-lived (3 minutes), so it's recommended to fetch a new token before each request. The Terraform Provider/SDKs handle this automatically if you initialize them with the Client Credentials grant type using your
client_id
and
client_secret
. [Configuring API Access](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access) | [Authentication](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication)