Hi, I have Access denied error for <https://api.ai...
# replication-troubleshooting
v
Hi, I have Access denied error for https://api.airbyte.com/v1/sources/discover_schema API, I'm not sure if I need to do anything additionally to enable the API?
k
You don’t need to “enable” that endpoint separately, but you do need a valid access token with sufficient permissions, and you must call the correct base URL for your environment. From the docs, the flow is: 1. Create an application in the Airbyte UI - Go to:
Your name → User settings → Applications
- Click Create an application and note the
client_id
and
client_secret
. [[Configuring API](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access)] 2. Obtain an access token using those credentials For Airbyte Cloud:
Copy code
bash    curl --request POST \      --url https://api.airbyte.com/api/v1/applications/token \      --header 'accept: application/json' \      --header 'content-type: application/json' \      --data '{        "client_id": "<YOUR_CLIENT_ID>",        "client_secret": "<YOUR_CLIENT_SECRET>"      }'
This returns an
access_token
(Bearer token) that is short‑lived and must be refreshed regularly. [[Configuring API](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access)] 3. Use the correct base URL and include the token - For Airbyte Cloud, API base URL is:
https://api.airbyte.com/v1/
[[API docs](https://docs.airbyte.com/developers/api-documentation)] - Every request must include:
Authorization: Bearer <ACCESS_TOKEN>
If you’re getting “Access denied” for
https://api.airbyte.com/v1/sources/discover_schema
, the most likely causes, based on the docs, are: - No
Authorization: Bearer <access_token>
header, or the token is expired (tokens are short‑lived and must be re‑requested). [[Get token](https://docs.airbyte.com/platform/next/using-airbyte/configuring-api-access#step-2-get-an-access-token)] - The application key belongs to a user that doesn’t have permission on the workspace/source you’re trying to use (application keys inherit the user’s permissions). [[Configuring API](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access)] The knowledge sources don’t show a specific permission toggle for
discover_schema
, so beyond ensuring you follow the token flow above and use a user with appropriate workspace access, there’s no additional documented “enablement” step for that endpoint.
v
I used the same token for other API call and it was successful. How do I troubleshoot this?
@kapa.ai show me API documentation for: https://api.airbyte.com/v1/sources/discover_schema
k
A message from kapa.ai
New message text here
v
I got 403 for the
/v1/sources/discover_schema
api however other API is always successful. I'm curious why the discover_schema wasn't on the api documentation? Is this only available for self managed service and not the airbite cloud ?