Pranay S
11/03/2025, 12:41 PMkapa.ai
11/03/2025, 12:41 PMclient_id and client_secret, and then exchanging those for an access_token. This token must be included as a Bearer token in your API requests. If you skip any of these steps or use an expired/invalid token, you will receive a forbidden error. Make sure you are following the correct process for your Airbyte deployment (Cloud or Self-Managed) and using the correct endpoints and tokens. [See detailed steps here](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access). 2. Token Expiry: Access tokens are short-lived (typically 3 minutes for most plans, 60 minutes for Self-Managed Enterprise). If your token has expired, you must request a new one before making API calls. [Token validity details](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access). 3. Permissions: Application keys (client credentials) are tied to user permissions. If your user does not have the necessary permissions to list workspaces or perform the requested action, you will receive a forbidden error. Ensure your user account has the correct permissions in the Airbyte workspace. [Permissions info](https://docs.airbyte.com/platform/enterprise-setup/api-access-config). 4. API Endpoint: Make sure you are using the correct API endpoint for your plan. For example, for the Core plan, use the /api/public/v1 path prefix. [API endpoint info](https://docs.airbyte.com/platform/api-documentation). 5. Free Trial Limitations: The documentation does not mention any API restrictions specific to free trial plans with available credits. As long as you have credits and have configured API access correctly, you should be able to use the API. Summary: A "forbidden" error is almost always due to missing or invalid authentication, expired tokens, or insufficient permissions. Double-check your API access setup, ensure your token is valid and included in the request, and verify your user permissions. If you have followed all steps and still encounter issues, it may be worth reaching out to Airbyte support for further assistance, as the documentation does not mention any API block for free trial users with credits. References: - [Configuring API Access](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access) - [API Documentation](https://docs.airbyte.com/platform/api-documentation) - [Enterprise API Access](https://docs.airbyte.com/platform/enterprise-setup/api-access-config)Pranay S
11/03/2025, 12:44 PMkapa.ai
11/03/2025, 12:44 PMkapa.ai
11/03/2025, 12:44 PMclient_id and client_secret, and exchange them for an access_token. This token must be included as a Bearer token in your API requests. If you skip any of these steps or use an expired/invalid token, you will receive a forbidden error. [See: Configuring API Access](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access) - Token Expiry: Access tokens are short-lived. If your token has expired, you need to request a new one before making API calls. - Permissions: Application keys are tied to user permissions. If your user does not have the necessary permissions to list workspaces or perform the requested action, you will receive a forbidden error. - Correct Endpoint: Make sure you are using the correct API endpoint for your plan. For most plans, you should use the /api/public/v1 path prefix (e.g., /api/public/v1/workspaces) for listing workspaces. The knowledge sources do not explicitly mention any API limitations for free trial users with credits. If you have followed all the correct steps and are still receiving a forbidden error, it is likely due to one of the reasons above. If the issue persists after verifying your setup, you may need to contact Airbyte support, as there is no further troubleshooting information for free trial API access in the provided documentation. If you need step-by-step instructions for configuring API access, let me know!Pranay S
11/03/2025, 12:47 PMkapa.ai
11/03/2025, 12:47 PMkapa.ai
11/03/2025, 12:47 PMhttps://api.airbyte.com/api/public/v1/workspaces/list, does not match the documented Airbyte API endpoints for listing workspaces. According to the official documentation, to list workspaces you should use a GET request to: https://api.airbyte.com/api/public/v1/workspaces or GET /api/public/v1/workspaces You do not need to send a raw JSON body for this request; it should be a simple GET request with your Bearer token in the Authorization header. Sending a POST request or using /workspaces/list is not supported for listing workspaces and will result in errors such as "forbidden" or "not found" because the endpoint does not exist or is not allowed. Correct usage example: http GET https://api.airbyte.com/api/public/v1/workspaces Authorization: Bearer <your_access_token> Make sure: - You are using the correct endpoint (/workspaces not /workspaces/list). - You are making a GET request, not POST. - Your Bearer token is valid and not expired. If you follow these steps and still receive a forbidden error, double-check your token and permissions as described earlier. The documentation does not mention any need to send a JSON body for this endpoint, nor does it mention a /list sub-path for workspaces in the public API [Configuring API Access](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access) | [API Reference](https://reference.airbyte.com/reference/start). If you continue to have issues after correcting the endpoint and method, it may be necessary to contact Airbyte support, as the knowledge sources do not provide further troubleshooting steps for this scenario.Pranay S
11/03/2025, 12:48 PMkapa.ai
11/03/2025, 12:48 PMkapa.ai
11/03/2025, 12:48 PMhttps://api.airbyte.com/api/public/v1/workspaces Do not use /workspaces/list or send a POST request with a JSON body. The API expects a GET request with no body for this endpoint [Configuring API Access](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access). 2. Unnecessary Request Body For a GET request to /workspaces, you should not include a JSON body. Including a body in a GET request can cause a 400 error. 3. Malformed Headers Ensure your Authorization header is set correctly: Authorization: Bearer <your_access_token> Example of a correct curl request: bash curl -X GET "https://api.airbyte.com/api/public/v1/workspaces" \ -H "Authorization: Bearer <your_access_token>" Summary: - Use the correct endpoint: /api/public/v1/workspaces - Use the GET method, not POST - Do not include a request body - Ensure your Bearer token is valid and in the Authorization header If you follow these steps and still get a 400 error, double-check your access token and endpoint spelling. If the problem persists, the knowledge sources do not provide further troubleshooting steps for this specific error.Pranay S
11/03/2025, 12:50 PMkapa.ai
11/03/2025, 12:50 PMkapa.ai
11/03/2025, 12:51 PMjson { "message": "Forbidden", "_embedded": { "errors": [ { "message": "Forbidden", "_embedded": {}, "_links": {} } ] }, "_links": { "self": { "href": "/api/public/api/public/v1/workspaces", "templated": false } } } even after using the correct access token and endpoint, here are the most likely causes according to the official Airbyte documentation: 1. Token or Permissions Issue - The access token you are using must be generated from an application created in the Airbyte UI, and the user associated with that application must have the necessary permissions to access the workspace list. If the user does not have access, or if the token is invalid or expired, you will receive a "Forbidden" error ([Configuring API Access](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access)). - Double-check that you are using a freshly generated token (they expire quickly, especially on non-Enterprise plans). 2. Endpoint Path Issue - The path in your error response shows /api/public/api/public/v1/workspaces, which is incorrect. The correct path should be /api/public/v1/workspaces. Make sure you are not accidentally duplicating the path prefix in your request URL. 3. Plan or Feature Limitation - The knowledge sources do not mention any API restrictions for free trial users with available credits. As long as you have credits and have configured API access correctly, you should be able to use the API. What you should do: - Ensure your request is to https://api.airbyte.com/api/public/v1/workspaces (not /api/public/api/public/v1/workspaces). - Use a valid, non-expired access token in the Authorization header. - Make sure the user who created the application has permission to list workspaces. Example curl command: bash curl -X GET "https://api.airbyte.com/api/public/v1/workspaces" \ -H "Authorization: Bearer <your_access_token>" If you have verified all of the above and still receive a "Forbidden" error, the knowledge sources do not provide further troubleshooting steps for this scenario. In that case, you may need to contact Airbyte support for assistance, as there may be an account-specific or backend issue not covered in the documentation. References: [Configuring API Access](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access), [API Documentation](https://docs.airbyte.com/platform/api-documentation)