> ## 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.

# Get DockerHub credential details

> Returns detailed information about a specific DockerHub credential (sanitized, no secrets exposed)



## OpenAPI

````yaml get /integrations/dockerhub/container-registry/project/{projectId}/credentials/{credentialId}
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/dockerhub/container-registry/project/{projectId}/credentials/{credentialId}:
    get:
      tags:
        - DockerHub Container Registry
      summary: Get DockerHub credential details
      description: >-
        Returns detailed information about a specific DockerHub credential
        (sanitized, no secrets exposed)
      operationId: DockerhubContainerRegistryProjectController_getCredential
      parameters:
        - name: projectId
          required: true
          in: path
          description: CybeDefend project ID
          schema:
            format: uuid
            example: 550e8400-e29b-41d4-a716-446655440000
            type: string
        - name: credentialId
          required: true
          in: path
          description: Credential ID to retrieve
          schema:
            format: uuid
            example: 550e8400-e29b-41d4-a716-446655440001
            type: string
      responses:
        '200':
          description: Credential details retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DockerhubCredentialResponseDto'
        '401':
          description: Unauthorized - Invalid or missing authentication token
          content:
            application/json:
              schema:
                example:
                  message: Unauthorized
                  statusCode: 401
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '403':
          description: Forbidden - Insufficient permissions to read project
          content:
            application/json:
              schema:
                example:
                  message: Forbidden
                  statusCode: 403
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '404':
          description: Credential not found
          content:
            application/json:
              schema:
                example:
                  message: Resource not found
                  statusCode: 404
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
components:
  schemas:
    DockerhubCredentialResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Credential ID
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        dockerhubUsername:
          type: string
          description: DockerHub username or organization
          example: myusername
        registryUrl:
          type: string
          description: Registry URL
          example: https://index.docker.io/v1/
        description:
          type: string
          description: Description
          example: Production registry access
        createdAt:
          type: string
          description: Creation date
          example: '2025-01-01T00:00:00Z'
      required:
        - id
        - dockerhubUsername
        - registryUrl
        - createdAt

````