Skip to content

Cannot generate installation access token even though installation id is correct #22978

Discussion options

You must be logged in to vote

This issue was solved because I made a mistake in the request, 

the /access_tokens endpoint should be accessed via a POST request, and I was using GET.  Per the documentation, this is done with 

curl -i -X POST \
-H "Authorization: Bearer YOUR_JWT" \
-H "Accept: application/vnd.github.machine-man-preview+json" \
https://api.github.com/app/installations/:installation_id/access_tokens

I just didn’t see the POST part when I was reading it.  Thanks

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants