<@U04S8PLJWMT> I get a 403 status when accessing t...
# ask-ai
p
@kapa.ai I get a 403 status when accessing this url /api/v1/workspaces/list What can be the problem? When I use incorrect credentials I get 401. Now 403. What is the problem?
k
A 403 status code when accessing
/api/v1/workspaces/list
in Airbyte typically means that your credentials are valid, but you do not have permission to access the requested resource. This is different from a 401 error, which indicates invalid or missing authentication. Here are some possible reasons for the 403 error: 1. Incorrect API Path: For Airbyte OSS and Self-Managed deployments, the correct API path should include
/api/public/v1/
instead of
/api/v1/
. For example, you should use:
Copy code
GET <YOUR_WEBAPP_URL>/api/public/v1/workspaces
instead of
/api/v1/workspaces/list
. The
/api/v1/workspaces/list
endpoint is not documented in the official API references, and using undocumented or incorrect endpoints can result in a 403 error even with valid credentials. This is a common source of confusion, as highlighted in community discussions and documentation [see here](https://docs.airbyte.com/platform/api-documentation) and [here](https://github.com/airbytehq/airbyte/discussions/51531). 2. Insufficient Permissions: If you are using Airbyte Enterprise, your application key (client_id/client_secret) must have the necessary permissions to access the resource. If your user or application does not have access to the workspace or the endpoint, you will receive a 403 error. Make sure your application is configured correctly in the Airbyte UI and that you are using the correct access token [see here](https://docs.airbyte.com/platform/enterprise-setup/api-access-config). 3. Endpoint Does Not Exist or Is Deprecated: The endpoint
/api/v1/workspaces/list
does not appear in the official OpenAPI specification or documentation. The correct endpoint for listing workspaces is:
Copy code
GET /api/public/v1/workspaces
or, for Airbyte Cloud:
Copy code
GET https://api.airbyte.com/v1/workspaces
Using an incorrect or deprecated endpoint can result in a 403 or 404 error [see here](https://docs.airbyte.com/platform/api-documentation). Recommendation: - Double-check that you are using the correct API endpoint for your Airbyte deployment. - Ensure your access token is valid and has not expired. - Verify that your application/user has the necessary permissions. If you switch to the correct endpoint and still receive a 403, review your application's permissions in the Airbyte UI. Example of correct usage for OSS/Self-Managed:
Copy code
bash curl -X GET "<YOUR_WEBAPP_URL>/api/public/v1/workspaces" \   -H "Authorization: Bearer <access_token>"
Replace
<YOUR_WEBAPP_URL>
and
<access_token>
with your actual values. For more details, see the official documentation: [API documentation](https://docs.airbyte.com/platform/api-documentation) and [Configuring API Access](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access).