Chapter 22. robot
Manage user and organization robot accounts.
22.1. getUserRobots Copy linkLink copied to clipboard!
List the available robots for the user.
22.1.1. GET /api/v1/user/robots Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (user:admin)
22.1.2. Query parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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 Copy linkLink copied to clipboard!
22.1.4. Example command Copy linkLink copied to clipboard!
$ 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 Copy linkLink copied to clipboard!
Returns the list of repository permissions for the org’s robot.
22.2.1. GET /api/v1/organization/{orgname}/robots/{robot_shortname}/permissions Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (user:admin)
22.2.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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 Copy linkLink copied to clipboard!
22.2.4. Example command Copy linkLink copied to clipboard!
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/organization/<ORGNAME>/robots/<ROBOT_SHORTNAME>/permissions"
22.3. regenerateOrgRobotToken Copy linkLink copied to clipboard!
Regenerates the token for an organization robot.
22.3.1. POST /api/v1/organization/{orgname}/robots/{robot_shortname}/regenerate Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (org:admin)
22.3.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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 Copy linkLink copied to clipboard!
22.3.4. Example command Copy linkLink copied to clipboard!
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/organization/<orgname>/robots/<robot_shortname>/regenerate"
22.4. getUserRobotPermissions Copy linkLink copied to clipboard!
Returns the list of repository permissions for the user’s robot.
22.4.1. GET /api/v1/user/robots/{robot_shortname}/permissions Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (user:admin)
22.4.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
22.4.3. Responses Copy linkLink copied to clipboard!
22.4.4. Example command Copy linkLink copied to clipboard!
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/user/robots/<ROBOT_SHORTNAME>/permissions"
22.5. regenerateUserRobotToken Copy linkLink copied to clipboard!
Regenerates the token for a user’s robot.
22.5.1. POST /api/v1/user/robots/{robot_shortname}/regenerate Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (user:admin)
22.5.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
22.5.3. Responses Copy linkLink copied to clipboard!
22.5.4. Example command Copy linkLink copied to clipboard!
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/user/robots/<robot_shortname>/regenerate"
22.6. getOrgRobot Copy linkLink copied to clipboard!
Returns the organization’s robot with the specified name.
22.6.1. GET /api/v1/organization/{orgname}/robots/{robot_shortname} Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (org:admin)
22.6.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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 Copy linkLink copied to clipboard!
22.6.4. Example command Copy linkLink copied to clipboard!
curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/organization/<ORGNAME>/robots/<ROBOT_SHORTNAME>"
22.7. createOrgRobot Copy linkLink copied to clipboard!
Create a new robot in the organization.
22.7.1. PUT /api/v1/organization/{orgname}/robots/{robot_shortname} Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (org:admin)
22.7.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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) Copy linkLink copied to clipboard!
Optional data for creating a robot
| Name | Description | Schema |
|---|---|---|
| description optional | Optional text description for the robot | string |
| unstructured_metadata optional | Optional unstructured metadata for the robot | object |
22.7.4. Responses Copy linkLink copied to clipboard!
22.7.5. Example command Copy linkLink copied to clipboard!
$ curl -X PUT -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/organization/<organization_name>/robots/<robot_name>"
22.8. deleteOrgRobot Copy linkLink copied to clipboard!
Delete an existing organization robot.
22.8.1. DELETE /api/v1/organization/{orgname}/robots/{robot_shortname} Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (org:admin)
22.8.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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 Copy linkLink copied to clipboard!
22.8.4. Example command Copy linkLink copied to clipboard!
curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/organization/<organization_name>/robots/<robot_shortname>"
22.9. getOrgRobots Copy linkLink copied to clipboard!
List the organization’s robots.
22.9.1. GET /api/v1/organization/{orgname}/robots Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (org:admin)
22.9.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | orgname required | The name of the organization | string |
22.9.3. Query parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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 Copy linkLink copied to clipboard!
22.9.5. Example command Copy linkLink copied to clipboard!
$ curl -X GET -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/organization/<organization_name>/robots"
22.10. getUserRobot Copy linkLink copied to clipboard!
Returns the user’s robot with the specified name.
22.10.1. GET /api/v1/user/robots/{robot_shortname} Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (user:admin)
22.10.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
22.10.3. Responses Copy linkLink copied to clipboard!
22.10.4. Example command Copy linkLink copied to clipboard!
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/user/robots/<robot_shortname>"
22.11. createUserRobot Copy linkLink copied to clipboard!
Create a new user robot with the specified name.
22.11.1. PUT /api/v1/user/robots/{robot_shortname} Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (user:admin)
22.11.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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) Copy linkLink copied to clipboard!
Optional data for creating a robot
| Name | Description | Schema |
|---|---|---|
| description optional | Optional text description for the robot | string |
| unstructured_metadata optional | Optional unstructured metadata for the robot | object |
22.11.4. Responses Copy linkLink copied to clipboard!
22.11.5. Example command Copy linkLink copied to clipboard!
$ curl -X PUT -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/user/robots/<robot_name>"
22.12. deleteUserRobot Copy linkLink copied to clipboard!
Delete an existing robot.
22.12.1. DELETE /api/v1/user/robots/{robot_shortname} Copy linkLink copied to clipboard!
Authorizations: oauth2_implicit (user:admin)
22.12.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
22.12.3. Responses Copy linkLink copied to clipboard!
22.12.4. Example command Copy linkLink copied to clipboard!
$ curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/user/robots/<robot_shortname>"
22.13. getOrgRobotFederation Copy linkLink copied to clipboard!
Manage federation configuration for a robot account within an organization.
22.13.1. GET /api/v1/organization/{orgname}/robots/{robot_shortname}/federation Copy linkLink copied to clipboard!
Retrieve the federation configuration for the specified organization robot.
Authorizations: oauth2_implicit (user:admin)
22.13.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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 Copy linkLink copied to clipboard!
22.14. createOrgRobotFederation Copy linkLink copied to clipboard!
Create a federation configuration for the specified organization robot.
22.14.1. POST /api/v1/organization/{orgname}/robots/{robot_shortname}/federation Copy linkLink copied to clipboard!
Create or replace the federation configuration for the specified organization robot.
Authorizations: oauth2_implicit (user:admin)
22.14.2. Path parameters Copy linkLink copied to clipboard!
| Type | Name | Description | Schema |
|---|---|---|---|
| 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) Copy linkLink copied to clipboard!
Array of federation configuration entries for the robot.
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.
| Name | Description | Schema |
|---|---|---|
| issuer required | Issuer URL of the external OIDC provider for this federation entry | string |
| subject required |
Subject ( | string |
| audiences optional |
List of acceptable token audience ( | array of strings |
Example request body
[
{
"issuer": "https://login.microsoftonline.com/<tenant-id>/v2.0",
"subject": "<user-object-id>"
}
]
22.14.4. Responses Copy linkLink copied to clipboard!
22.14.5. Example command Copy linkLink copied to clipboard!
$ 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"
}
]'