apicheats.dev Cheat sheet Raw .md
POST

Try POST /applications/{client_id}/token/scoped — GitHub API

GitHub playground

Create a scoped access token

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

6 body fields
  • access_token · required · string — The access token used to authenticate to the GitHub API.
  • target · optional · string — The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.
  • target_id · optional · integer — The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.
  • repositories · optional · string[] — The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.
  • repository_ids · optional · integer[] — The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.
  • permissions · optional · object — The permissions granted to the fine-grained access token.