List the fine-grained access tokens that act on an organization, all of them for an approver and only the own ones for another member
const url = 'https://gitea.example.com/api/v1/orgs/example/personal-access-tokens';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.example.com/api/v1/orgs/example/personal-access-tokens \ --header 'Authorization: Basic <credentials>'Gitea Enterprise only. This endpoint is not part of the community edition.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Name of the organization
Query Parameters
Section titled “Query Parameters”Filter by token name
Only tokens with this approval status (pending, approved, denied, revoked); a token without a request is pending
Page number of results to return (1-based)
Page size of results
Responses
Section titled “Responses”OrgAccessTokenList
It never carries the secret.
object
The moment the token was created
The description the holder gave the token
The moment the token stops working, absent when it never does
The user who holds the token
The unique identifier of the token
What the holder gave as the reason for the request
The moment the token was last used
The name of the token
The repository selection: public, all or selected
The selected repositories as owner/name
The permissions of the token
The approval status: pending, approved, denied or revoked; a token without a request is pending
Examplegenerated
[ { "created_at": "2026-04-15T12:00:00Z", "description": "example", "expires_at": "2026-04-15T12:00:00Z", "holder": "example", "id": 1, "justification": "example", "last_used_at": "2026-04-15T12:00:00Z", "name": "example", "repo_selection": "example", "repositories": [ "example" ], "scopes": [ "example" ], "status": "example" }]APIForbiddenError is a forbidden error response
Headers
Section titled “Headers”APINotFound is a not found empty response