diff --git a/pages/generative-apis/troubleshooting/fixing-common-issues.mdx b/pages/generative-apis/troubleshooting/fixing-common-issues.mdx index eca438252d..38ce657626 100644 --- a/pages/generative-apis/troubleshooting/fixing-common-issues.mdx +++ b/pages/generative-apis/troubleshooting/fixing-common-issues.mdx @@ -13,6 +13,20 @@ dates: Below are common issues that you may encounter when using Generative APIs, their causes, and recommended solutions. +## 403: Forbidden - Insufficient permissions to access the resource + +### Cause +- You are not providing valid credentials +- You do not have the required IAM permissions sets +- You are not connecting to the right endpoint URL + +### Solution +- Ensure you provide an [API secret key](/iam/how-to/create-api-keys/) in your API request or third party library configuration +- Ensure the [IAM user or application](/iam/reference-content/users-groups-and-applications/) you are connecting with has the right [IAM permissions sets](/iam/reference-content/permission-sets/) (either `GenerativeApisFullAccess` or a narrower one) +- If you have access only to a specific Project, ensure you are connecting to this Project URL: + - The URL format is: `https://api.scaleway.ai/{project_id}/v1"` + - If no `project_id` is specified in the URL (`https://api.scaleway.ai/v1"`), your `default` Project will be used. + ## 429: Too Many Requests - You exceeded your current quota of requests/tokens per minute ### Cause