Chapter 22. robot


Manage user and organization robot accounts.

22.1. getUserRobots

List the available robots for the user.

22.1.1. GET /api/v1/user/robots

Authorizations: oauth2_implicit (user:admin)

22.1.2. Query parameters

TypeNameDescriptionSchema

query

limit

optional

If specified, the number of robots to return.

integer

query

token

optional

If false, the robot’s token is not returned.

boolean

query

permissions

optional

Whether to include repositories and teams in which the robots have permission.

boolean

22.1.3. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.1.4. Example command

$ curl -X GET "https://quay-server.example.com/api/v1/user/robots?limit=10&token=false&permissions=true" \
  -H "Authorization: Bearer <your_access_token>"

22.2. getOrgRobotPermissions

Returns the list of repository permissions for the org’s robot.

Authorizations: oauth2_implicit (user:admin)

22.2.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

path

orgname

required

The name of the organization

string

22.2.3. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.2.4. Example command

$ curl -X GET \
  -H "Authorization: Bearer <bearer_token>" \
  "https://quay-server.example.com/api/v1/organization/<ORGNAME>/robots/<ROBOT_SHORTNAME>/permissions"

22.3. regenerateOrgRobotToken

Regenerates the token for an organization robot.

Authorizations: oauth2_implicit (org:admin)

22.3.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

path

orgname

required

The name of the organization

string

22.3.3. Responses

HTTP CodeDescriptionSchema

201

Successful creation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.3.4. Example command

$ curl -X POST \
  -H "Authorization: Bearer <bearer_token>" \
  "<quay-server.example.com>/api/v1/organization/<orgname>/robots/<robot_shortname>/regenerate"

22.4. getUserRobotPermissions

Returns the list of repository permissions for the user’s robot.

Authorizations: oauth2_implicit (user:admin)

22.4.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

22.4.3. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.4.4. Example command

$ curl -X GET \
  -H "Authorization: Bearer <bearer_token>" \
  "https://quay-server.example.com/api/v1/user/robots/<ROBOT_SHORTNAME>/permissions"

22.5. regenerateUserRobotToken

Regenerates the token for a user’s robot.

Authorizations: oauth2_implicit (user:admin)

22.5.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

22.5.3. Responses

HTTP CodeDescriptionSchema

201

Successful creation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.5.4. Example command

$ curl -X POST \
  -H "Authorization: Bearer <bearer_token>" \
  "<quay-server.example.com>/api/v1/user/robots/<robot_shortname>/regenerate"

22.6. getOrgRobot

Returns the organization’s robot with the specified name.

Authorizations: oauth2_implicit (org:admin)

22.6.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

path

orgname

required

The name of the organization

string

22.6.3. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.6.4. Example command

curl -X GET \
  -H "Authorization: Bearer <bearer_token>" \
  "https://quay-server.example.com/api/v1/organization/<ORGNAME>/robots/<ROBOT_SHORTNAME>"

22.7. createOrgRobot

Create a new robot in the organization.

Authorizations: oauth2_implicit (org:admin)

22.7.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

path

orgname

required

The name of the organization

string

22.7.3. Request body schema (application/json)

Optional data for creating a robot

NameDescriptionSchema

description

optional

Optional text description for the robot

string

unstructured_metadata

optional

Optional unstructured metadata for the robot

object

22.7.4. Responses

HTTP CodeDescriptionSchema

201

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.7.5. Example command

$ curl -X PUT   -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/organization/<organization_name>/robots/<robot_name>"

22.8. deleteOrgRobot

Delete an existing organization robot.

Authorizations: oauth2_implicit (org:admin)

22.8.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

path

orgname

required

The name of the organization

string

22.8.3. Responses

HTTP CodeDescriptionSchema

204

Deleted

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.8.4. Example command

curl -X DELETE \
  -H "Authorization: Bearer <bearer_token>" \
  "<quay-server.example.com>/api/v1/organization/<organization_name>/robots/<robot_shortname>"

22.9. getOrgRobots

List the organization’s robots.

22.9.1. GET /api/v1/organization/{orgname}/robots

Authorizations: oauth2_implicit (org:admin)

22.9.2. Path parameters

TypeNameDescriptionSchema

path

orgname

required

The name of the organization

string

22.9.3. Query parameters

TypeNameDescriptionSchema

query

limit

optional

If specified, the number of robots to return.

integer

query

token

optional

If false, the robot’s token is not returned.

boolean

query

permissions

optional

Whether to include repositories and teams in which the robots have permission.

boolean

22.9.4. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.9.5. Example command

$ curl -X GET -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/organization/<organization_name>/robots"

22.10. getUserRobot

Returns the user’s robot with the specified name.

22.10.1. GET /api/v1/user/robots/{robot_shortname}

Authorizations: oauth2_implicit (user:admin)

22.10.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

22.10.3. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.10.4. Example command

$ curl -X GET \
  -H "Authorization: Bearer <bearer_token>" \
  "<quay-server.example.com>/api/v1/user/robots/<robot_shortname>"

22.11. createUserRobot

Create a new user robot with the specified name.

22.11.1. PUT /api/v1/user/robots/{robot_shortname}

Authorizations: oauth2_implicit (user:admin)

22.11.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

22.11.3. Request body schema (application/json)

Optional data for creating a robot

NameDescriptionSchema

description

optional

Optional text description for the robot

string

unstructured_metadata

optional

Optional unstructured metadata for the robot

object

22.11.4. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.11.5. Example command

$ curl -X PUT   -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/user/robots/<robot_name>"

22.12. deleteUserRobot

Delete an existing robot.

Authorizations: oauth2_implicit (user:admin)

22.12.2. Path parameters

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

22.12.3. Responses

HTTP CodeDescriptionSchema

204

Deleted

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.12.4. Example command

$ curl -X DELETE \
  -H "Authorization: Bearer <bearer_token>" \
  "<quay-server.example.com>/api/v1/user/robots/<robot_shortname>"

22.13. getOrgRobotFederation

Manage federation configuration for a robot account within an organization.

Retrieve the federation configuration for the specified organization robot.

Authorizations: oauth2_implicit (user:admin)

22.13.2. Path parameters

TypeNameDescriptionSchema

path

orgname + robot_shortnamerequired

The name of the organization and the short name for the robot, without any user or organization prefix

string

22.13.3. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

22.14. createOrgRobotFederation

Create a federation configuration for the specified organization robot.

Create or replace the federation configuration for the specified organization robot.

Authorizations: oauth2_implicit (user:admin)

22.14.2. Path parameters

TypeNameDescriptionSchema

path

orgname + robot_shortnamerequired

The name of the organization and the short name for the robot, without any user or organization prefix

string

22.14.3. Request body schema (application/json)

Array of federation configuration entries for the robot.

Important

In Red Hat Quay 3.18, create and update requests persist issuer and subject only. The optional audiences field is not stored from API requests, and the Red Hat Quay v2 UI federation modal does not provide an audiences field. When audiences is present in stored federation configuration, Red Hat Quay validates the token audience during federated robot token exchange. When it is absent, audience validation is skipped and Red Hat Quay logs a deprecation warning.

NameDescriptionSchema

issuer

required

Issuer URL of the external OIDC provider for this federation entry

string

subject

required

Subject (sub claim) of the external OIDC identity authorized for this robot

string

audiences

optional

List of acceptable token audience (aud claim) values for this federation entry. Reserved for future API support; not persisted by create or update requests in Red Hat Quay 3.18.

array of strings

Example request body

[
  {
    "issuer": "https://login.microsoftonline.com/<tenant-id>/v2.0",
    "subject": "<user-object-id>"
  }
]

22.14.4. Responses

HTTP CodeDescriptionSchema

201

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

22.14.5. Example command

$ curl -X POST "https://quay-server.example.com/api/v1/organization/{orgname}/robots/{robot_shortname}/federation" \
  -H "Authorization: Bearer <your_access_token>" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "issuer": "https://keycloak-auth-realm.quayadmin.org/realms/quayrealm",
      "subject": "449e14f8-9eb5-4d59-a63e-b7a77c75f770"
    }
  ]'
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top