API
tryapis.com
Find anything
⌘ K
GitHub API Endpoints
actions
Get GitHub Actions permissions for an organization

GET

Set GitHub Actions permissions for an organization

PUT

List selected repositories enabled for GitHub Actions in an organization

GET

Set selected repositories enabled for GitHub Actions in an organization

PUT

Enable a selected repository for GitHub Actions in an organization

PUT

Disable a selected repository for GitHub Actions in an organization

DELETE

Get allowed actions for an organization

GET

Set allowed actions for an organization

PUT

List self-hosted runner groups for an organization

GET

Create a self-hosted runner group for an organization

POST

Get a self-hosted runner group for an organization

GET

Update a self-hosted runner group for an organization

PATCH

Delete a self-hosted runner group from an organization

DELETE

List repository access to a self-hosted runner group in an organization

GET

Set repository access for a self-hosted runner group in an organization

PUT

Add repository access to a self-hosted runner group in an organization

PUT

Remove repository access to a self-hosted runner group in an organization

DELETE

List self-hosted runners in a group for an organization

GET

Set self-hosted runners in a group for an organization

PUT

Add a self-hosted runner to a group for an organization

PUT

Remove a self-hosted runner from a group for an organization

DELETE

List self-hosted runners for an organization

GET

List runner applications for an organization

GET

Create a registration token for an organization

POST

Create a remove token for an organization

POST

Get a self-hosted runner for an organization

GET

Delete a self-hosted runner from an organization

DELETE

List organization secrets

GET

Get an organization public key

GET

Get an organization secret

GET

Create or update an organization secret

PUT

Delete an organization secret

DELETE

List selected repositories for an organization secret

GET

Set selected repositories for an organization secret

PUT

Add selected repository to an organization secret

PUT

Remove selected repository from an organization secret

DELETE

List artifacts for a repository

GET

Get an artifact

GET

Delete an artifact

DELETE

Download an artifact

GET

Get a job for a workflow run

GET

Download job logs for a workflow run

GET

Get GitHub Actions permissions for a repository

GET

Set GitHub Actions permissions for a repository

PUT

Get allowed actions for a repository

GET

Set allowed actions for a repository

PUT

List self-hosted runners for a repository

GET

List runner applications for a repository

GET

Create a registration token for a repository

POST

Create a remove token for a repository

POST

Get a self-hosted runner for a repository

GET

Delete a self-hosted runner from a repository

DELETE

List workflow runs for a repository

GET

Get a workflow run

GET

Delete a workflow run

DELETE

Get the review history for a workflow run

GET

Approve a workflow run for a fork pull request

POST

List workflow run artifacts

GET

Get a workflow run attempt

GET

List jobs for a workflow run attempt

GET

Download workflow run attempt logs

GET

Cancel a workflow run

POST

List jobs for a workflow run

GET

Download workflow run logs

GET

Delete workflow run logs

DELETE

Get pending deployments for a workflow run

GET

Review pending deployments for a workflow run

POST

Re-run a workflow

POST

Get workflow run usage

GET

List repository secrets

GET

Get a repository public key

GET

Get a repository secret

GET

Create or update a repository secret

PUT

Delete a repository secret

DELETE

List repository workflows

GET

Get a workflow

GET

Disable a workflow

PUT

Create a workflow dispatch event

POST

Enable a workflow

PUT

List workflow runs

GET

Get workflow usage

GET

List environment secrets

GET

Get an environment public key

GET

Get an environment secret

GET

Create or update an environment secret

PUT

Delete an environment secret

DELETE

activity
apps
billing
checks
code-scanning
codes-of-conduct
emojis
enterprise-admin
gists
git
gitignore
interactions
issues
licenses
markdown
meta
migrations
oauth-authorizations
orgs
packages
projects
pulls
rate-limit
reactions
repos
scim
search
secret-scanning
teams
users

POST

https://api.github.com/repos/owner/repo/actions/runners/remove-token

Returns a token that you can pass to remove a self-hosted runner from a repository. The token expires after one hour. You must authenticate using an access token with the repo scope to use this endpoint.

Example using remove token

To remove your self-hosted runner from a repository, replace TOKEN with the remove token provided by this endpoint.

./config.sh remove --token TOKEN
Scopes requested: user, public_repo, repo, notifications, gist
Authorization
tryapis.com never stores your requests or responses