provider orgs GET
/orgs/{org}/personal-access-tokens @utdk/github
/orgs/{org}/personal-access-tokens List fine-grained personal access tokens with access to organization resources
Lists approved fine-grained personal access tokens owned by organization members that can access organization resources.
Only GitHub Apps can use this endpoint.
- org path required
- The organization name. The name is not case sensitive.
- string
- per_page query
- The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
- integer
- page query
- The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
- integer
- sort query
- The property by which to sort the results.
- enum: created_at
- direction query
- The direction to sort the results by.
- enum: asc, desc
- owner query
- A list of owner usernames to use to filter the results.
- array
- repository query
- The name of the repository to use to filter the results.
- string
- permission query
- The permission to use to filter the results.
- string
- last_used_before query
- Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
- string
- last_used_after query
- Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
- string
- token_id query
- The ID of the token
- array
Try it
Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.orgs.listPatGrants({
"per_page": 30,
"page": 1,
"sort": "created_at",
"direction": "desc"
})