> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cybedefend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Store Quay Container Registry credentials

> Stores Quay.io / Red Hat Quay robot account credentials at organization level for container image scanning



## OpenAPI

````yaml post /integrations/quay/container-registry/organization/{organizationId}/credentials
openapi: 3.0.0
info:
  title: Cybedefend API
  description: >-
    CybeDefend is an advanced API for application security analysis. Key
    features include OAuth 2.0 authentication, user/organization/project
    management, and REBAC-based permissions. It excels in static, dynamic, and
    IaC security analyses (SAST, DAST, IaC, etc.).
  version: '1.0'
  contact: {}
servers:
  - url: https://api-eu.cybedefend.com
    description: EU
  - url: https://api-us.cybedefend.com
    description: US
security: []
tags: []
paths:
  /integrations/quay/container-registry/organization/{organizationId}/credentials:
    post:
      tags:
        - Quay Container Registry
      summary: Store Quay Container Registry credentials
      description: >-
        Stores Quay.io / Red Hat Quay robot account credentials at organization
        level for container image scanning
      operationId: QuayContainerRegistryOrganizationController_storeCredentials
      parameters:
        - name: organizationId
          required: true
          in: path
          description: CybeDefend organization ID
          schema:
            format: uuid
            example: 550e8400-e29b-41d4-a716-446655440000
            type: string
      requestBody:
        required: true
        description: Quay.io robot account credentials
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuayStoreCredentialsDto'
      responses:
        '201':
          description: Quay Container Registry credentials stored successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuayCredentialResponseDto'
        '400':
          description: Bad request - Invalid credentials format
          content:
            application/json:
              schema:
                example:
                  message: Bad Request
                  statusCode: 400
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '401':
          description: Unauthorized - Invalid or missing authentication
          content:
            application/json:
              schema:
                example:
                  message: Unauthorized
                  statusCode: 401
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '403':
          description: Forbidden - Insufficient permissions
          content:
            application/json:
              schema:
                example:
                  message: Forbidden
                  statusCode: 403
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                example:
                  message: Internal server error
                  statusCode: 500
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
components:
  schemas:
    QuayStoreCredentialsDto:
      type: object
      properties:
        projectId:
          type: string
          description: CybeDefend project ID to associate this credential with
          example: 097bbbf4-d1eb-4512-9950-684445279808
        quayNamespace:
          type: string
          description: The Quay.io namespace (organization or user)
          example: myorganization
        robotUsername:
          type: string
          description: The Quay.io robot account username
          example: myorganization+deploy_robot
        robotToken:
          type: string
          description: The Quay.io robot account token
          example: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        quayHost:
          type: string
          description: >-
            The Quay.io registry host (default: quay.io). Use custom host for
            self-hosted Quay
          example: quay.io
          default: quay.io
        description:
          type: string
          description: Optional description for the credentials
          example: Production deployment credentials
      required:
        - projectId
        - quayNamespace
        - robotUsername
        - robotToken
    QuayCredentialResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Credential ID
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        quayNamespace:
          type: string
          description: The Quay.io namespace
          example: myorganization
        robotUsername:
          type: string
          description: The Quay.io robot account username
          example: myorganization+deploy_robot
        quayHost:
          type: string
          description: The Quay.io registry host
          example: quay.io
        description:
          type: string
          description: Description
          example: Production deployment credentials
        createdAt:
          type: string
          description: Creation date
          example: '2025-01-01T00:00:00Z'
      required:
        - id
        - quayNamespace
        - robotUsername
        - quayHost
        - createdAt

````