api-keys

Retrieves paginated list of API tokens owned by the current user. Includes token metadata but not the actual token values for security.

Security Note: Session-only authentication required to prevent information disclosure via tokens.

get/bodhi/v1/tokens

Request

  • Base URL: http://localhost:1135
  • URL: http://localhost:1135/bodhi/v1/tokens
  • Auth: OAuth 2 (authorization code, authorization URL /bodhi/v1/auth/initiate, token URL /bodhi/v1/auth/callback, scopes: resource_power_user)

Query parameters

pageinteger

Page number (1-based indexing)

page_sizeinteger

Number of items to return per page (maximum 100)

sortstring

Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at

sort_orderstring

Sort order: 'asc' for ascending, 'desc' for descending

Response

List of API tokens

totalinteger required
pageinteger required
page_sizeinteger required

Changes

    • warning

      removed the optional property //////// from the response with the status

    • warning

      removed the optional property //////// from the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      added the optional property //////// to the response with the status

    • info

      removed subschema #2 from the //////// response property oneOf list for the response status