Skip to content
Discussion options

You must be logged in to vote

A 403 Forbidden response usually indicates that your request is authenticated, but the token doesn't have permission to perform the requested action.

Here are a few things to check:

Verify that your Personal Access Token has the required repository permissions. Fine-grained PATs only have access to the repositories and permissions you explicitly grant.
If the repository belongs to an organization, confirm that the organization allows your token to access that repository. Some organizations have policies that restrict API access or require approval for fine-grained tokens.
Make sure you're requesting the correct endpoint and using the appropriate HTTP method.
Check the response headers and…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AbdullahNaseemAbbasi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage source:ui Discussions created via Community GitHub templates API Discussions around GitHub API platform and docs
2 participants