> ## 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 GitLab Container Registry credentials

> Stores deploy token credentials for GitLab Container Registry (registry.gitlab.com) at organization level. These credentials are used to authenticate and pull container images for security scanning.



## OpenAPI

````yaml post /integrations/gitlab/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/gitlab/container-registry/organization/{organizationId}/credentials:
    post:
      tags:
        - GitLab Container Registry
      summary: Store GitLab Container Registry credentials
      description: >-
        Stores deploy token credentials for GitLab Container Registry
        (registry.gitlab.com) at organization level. These credentials are used
        to authenticate and pull container images for security scanning.
      operationId: GitlabContainerRegistryOrganizationController_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: GitLab Container Registry deploy token credentials
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitlabStoreCredentialsDto'
      responses:
        '201':
          description: Credentials stored successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitlabCredentialResponseDto'
        '400':
          description: Bad Request - Invalid input data
          content:
            application/json:
              schema:
                example:
                  message: Bad Request
                  statusCode: 400
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '401':
          description: Unauthorized - Authentication required
          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:
    GitlabStoreCredentialsDto:
      type: object
      properties:
        projectId:
          type: string
          description: CybeDefend project ID to associate this credential with
          example: 097bbbf4-d1eb-4512-9950-684445279808
        gitlabProjectId:
          type: number
          description: GitLab project ID (numeric)
          example: 12345
        username:
          type: string
          description: Deploy token username from GitLab
          example: gitlab+deploy-token-123
        deployToken:
          type: string
          description: Deploy token secret from GitLab
          example: gldt-xxxxxxxxxxxxxxxxxxxx
        scopes:
          description: Token scopes
          example:
            - read_registry
            - write_registry
          type: array
          items:
            type: string
        registryUrl:
          type: string
          description: Container registry URL
          example: registry.gitlab.com
          default: registry.gitlab.com
        projectPath:
          type: string
          description: GitLab project path (namespace/project)
          example: mygroup/myproject
        expiresAt:
          type: string
          description: Token expiration date (ISO 8601)
          example: '2025-12-31T23:59:59Z'
        description:
          type: string
          description: Description for this credential
          example: Production registry access
      required:
        - projectId
        - gitlabProjectId
        - username
        - deployToken
        - registryUrl
        - projectPath
    GitlabCredentialResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Credential ID
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        gitlabProjectId:
          type: number
          description: GitLab project ID
          example: 12345
        username:
          type: string
          description: Deploy token username
          example: gitlab+deploy-token-123
        registryUrl:
          type: string
          description: Container registry URL
          example: registry.gitlab.com
        projectPath:
          type: string
          description: GitLab project path
          example: mygroup/myproject
        scopes:
          description: Token scopes
          example:
            - read_registry
          type: array
          items:
            type: string
        expiresAt:
          type: string
          description: Token expiration date
          example: '2025-12-31T23:59:59Z'
        description:
          type: string
          description: Description
          example: Production registry access
        createdAt:
          type: string
          description: Creation date
          example: '2025-01-01T00:00:00Z'
      required:
        - id
        - gitlabProjectId
        - username
        - registryUrl
        - projectPath
        - createdAt

````