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

# Get Conversion Details By ID

> Retrieve details of a conversion using `task_id` or `conversion_id`.



## OpenAPI

````yaml GET /v1/byId
openapi: 3.1.0
info:
  title: Musicgpt API
  version: 1.0.0
  description: API for retrieving conversion details by ID.
servers:
  - url: https://api.musicgpt.com/api/public
    description: Production server
security: []
paths:
  /v1/byId:
    get:
      summary: Get Conversion by ID
      description: Retrieve details of a conversion using `task_id` or `conversion_id`.
      parameters:
        - name: conversionType
          in: query
          required: true
          schema:
            type: string
            enum:
              - MUSIC_AI
              - TEXT_TO_SPEECH
              - VOICE_CONVERSION
              - EXTRACTION
              - COVER
              - STEMS_SEPARATION
              - VOCAL_EXTRACTION
              - DENOISING
              - DEECHO
              - DEREVERB
              - SOUND_GENERATOR
              - AUDIO_TRANSCRIPTION
              - AUDIO_SPEED_CHANGER
              - AUDIO_MASTERING
              - AUDIO_CUTTER
              - REMIX
              - FILE_CONVERT
              - KEY_BPM_EXTRACTION
              - AUDIO_TO_MIDI
              - EXTEND
              - INPAINT
              - SING_OVER_INSTRUMENTAL
              - LYRICS_GENERATOR
          description: The type of Conversion you want to get your details from.
          example: MUSIC_AI
        - name: task_id
          in: query
          required: false
          schema:
            type: string
          description: |-
            Task ID associated with the conversion. 
             **Note:** You must provide either `task_id` or `conversion_id`, but not both.
          example: 12345678-abcd-1234-efgh-567890abcdef
        - name: conversion_id
          in: query
          required: false
          schema:
            type: string
          description: |-
            Conversion ID to fetch details. 
             **Note:** You must provide either `task_id` or `conversion_id`, but not both.
          example: 87654321-dcba-4321-hgfe-098765fedcba
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  conversion:
                    type: object
                    properties:
                      task_id:
                        type: string
                      conversion_id:
                        type: string
                      status:
                        type: string
                      status_msg:
                        type: string
                      audio_url:
                        type: string
                      conversion_cost:
                        type: number
                      title:
                        type: string
                      lyrics:
                        type: string
                      music_style:
                        type: string
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
              example:
                success: true
                conversion:
                  task_id: 12345678-abcd-1234-efgh-567890abcdef
                  conversion_id: 87654321-dcba-4321-hgfe-098765fedcba
                  status: COMPLETED
                  status_msg: Conversion successful
                  audio_url: https://musicgpt.s3.amazonaws.com/audiofile.mp3
                  conversion_cost: 1.25
                  title: Generated Song
                  lyrics: '[Verse 1]...'
                  music_style: Pop
                  createdAt: '2025-01-01T12:00:00Z'
                  updatedAt: '2025-01-01T12:05:00Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
              example:
                success: false
                message: Invalid request parameters
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````