Skip to content

Register a new repository-level runner

POST
/repos/{owner}/{repo}/actions/runners
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

Media typeapplication/json
RegisterRunnerOptions declares the accepted options for registering runners.
object
description

Description of the runner to register.

string
name
required

Name of the runner to register. The name of the runner does not have to be unique.

string
Examplegenerated
{
"description": "example",
"ephemeral": true,
"name": "example"
}

RegisterRunnerResponse contains the details of the just registered runner.

Media typeapplication/json
RegisterRunnerResponse contains the details of the just registered runner.
object
id
integer format: int64
token
string
uuid
string
Examplegenerated
{
"id": 1,
"token": "example",
"uuid": "example"
}

APIError is error format response

Media typeapplication/json

APIError is an api error with a message

object
message
string
url
string
Examplegenerated
{
"message": "example",
"url": "example"
}

APIUnauthorizedError is a unauthorized error response

Media typeapplication/json
object
message
string
url
string
Examplegenerated
{
"message": "example",
"url": "example"
}

APINotFound is a not found error response

Media typeapplication/json
object
errors
Array<string>
message
string
url
string
Examplegenerated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}