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

# Get a voice prompt by ID

> Retrieve a specific voice prompt by its unique identifier.



## OpenAPI

````yaml get /voice/{prompt_id}
openapi: 3.0.0
info:
  title: Deepdub API
  description: >-
    Deepdub's Text-to-Speech API enables high-quality, expressive speech
    generation with voice cloning, accent control, and real-time streaming
    capabilities.
  contact:
    email: support@deepdub.ai
  version: '1.0'
servers:
  - url: https://restapi.deepdub.ai/api/v1
    description: Production
security:
  - ApiKeyAuth: []
externalDocs:
  description: OpenAPI
  url: https://restapi.deepdub.ai/api/v1/swagger/index.html
paths:
  /voice/{prompt_id}:
    get:
      tags:
        - Voice
      summary: Get a voice prompt by ID
      description: Retrieve a specific voice prompt by its unique identifier.
      operationId: getVoicePromptById
      parameters:
        - description: API Key
          name: x-api-key
          in: header
          required: true
          schema:
            type: string
            default: dd-00000000000000000000000065c9cbfe
          example: dd-00000000000000000000000065c9cbfe
        - description: Voice Prompt ID
          name: prompt_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Voice prompt details
          content:
            application/json:
              schema:
                type: object
                properties:
                  prompt:
                    $ref: '#/components/schemas/model.VoicePrompt'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.APIError'
              example:
                success: false
                message: Invalid voice prompt ID format
        '401':
          description: Unauthorized — invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.APIError'
              example:
                success: false
                message: 'Unauthorized: invalid or missing API key'
        '404':
          description: Voice prompt not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.APIError'
              example:
                success: false
                message: Voice prompt not found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/model.APIError'
              example:
                success: false
                message: Internal server error
components:
  schemas:
    model.VoicePrompt:
      description: A voice prompt representing a cloned or uploaded voice
      type: object
      properties:
        id:
          description: Unique identifier for the voice prompt
          type: string
          example: vp_12345abcde
        title:
          description: Title of the voice prompt
          type: string
          example: Professional Narrator
        name:
          description: Display name of the voice prompt
          type: string
          example: Professional Female Voice
        locale:
          description: Locale of the voice prompt
          type: string
          example: en-US
        text:
          description: Transcript text associated with the voice prompt
          type: string
        createdAt:
          description: Timestamp when the voice prompt was created
          type: string
          format: date-time
        speakerId:
          description: Unique identifier for the speaker
          type: string
        gender:
          description: Gender of the voice
          type: string
          enum:
            - MALE
            - FEMALE
            - NON_BINARY
          example: FEMALE
        speakingStyle:
          description: Speaking style of the voice
          type: string
          example: narrative
    model.APIError:
      description: Error response returned for all non-2xx status codes
      type: object
      required:
        - success
        - message
      properties:
        success:
          description: Always false for error responses
          type: boolean
          example: false
        message:
          description: Human-readable error message
          type: string
          example: Invalid request parameters
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Must start with `dd-` prefix.

````