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

# Get sound effect job status and result

> Gets the status of a sound effect generation job, with a download link once it has succeeded.
Requires a valid `X-API-KEY` header.

The link expires after 24 hours. Call this endpoint again for a fresh link instead of
regenerating the sound.

Throws:
- 404 if the job does not exist or was not created with this API key's user



## OpenAPI

````yaml GET /sound-effect/{job_id}
openapi: 3.1.0
info:
  title: Wondercraft Public API
  version: 0.0.1
servers:
  - url: https://api.wondercraft.ai/v1
    description: Base Wondercraft API
security: []
paths:
  /sound-effect/{job_id}:
    get:
      tags:
        - Sound effects
      summary: Get sound effect job status and result
      description: >-
        Gets the status of a sound effect generation job, with a download link
        once it has succeeded.

        Requires a valid `X-API-KEY` header.


        The link expires after 24 hours. Call this endpoint again for a fresh
        link instead of

        regenerating the sound.


        Throws:

        - 404 if the job does not exist or was not created with this API key's
        user
      operationId: get_sound_effect_job_sound_effect__job_id__get
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SoundEffectJobStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    SoundEffectJobStatusResponse:
      properties:
        job_id:
          type: string
          format: uuid
          title: Job Id
          description: The job ID
        status:
          $ref: '#/components/schemas/ApiJobStatus'
          description: queued, processing, succeeded or failed
        sound_effect_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Sound Effect Id
          description: ID of the generated sound effect, once succeeded
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
          description: Download URL, valid for 24 hours; poll the job again for a fresh one
        duration_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Duration Ms
          description: Sound length in milliseconds
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: Why the job failed, when status is failed
      type: object
      required:
        - job_id
        - status
      title: SoundEffectJobStatusResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ApiJobStatus:
      type: string
      enum:
        - queued
        - processing
        - succeeded
        - failed
      title: ApiJobStatus
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.