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

# Query creation status

> Query avatar creation status about the AI avatar using its unique taskId.



## OpenAPI

````yaml GET /queryAvatar
openapi: 3.1.1
info:
  title: Duix OpenAPI V2
  description: Duix OpenAPI V2
  version: v2
servers:
  - url: https://app.duix.ai/duix-openapi-v2/sdk/v2
security:
  - tokenAuth: []
paths:
  /queryAvatar:
    get:
      summary: Query avatar creation status
      description: >-
        Query avatar creation status about the AI avatar using its unique
        taskId.
      parameters:
        - name: taskId
          in: query
          description: Unique task ID returned by the createAvatar API.
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Successfully retrieved avatar creation status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/queryAvatarResponse'
              example:
                code: '0'
                msg: SUCCESS
                success: true
                data:
                  name: Khalid Hassan
                  modelSceneId: '735917732520006'
                  conversationId: '1983775419508027393'
                  coverImage: https://xxx.xxx.xxx/image/img_3076d14.png
                  status: 2
                  processingStep: done
components:
  schemas:
    queryAvatarResponse:
      type: object
      properties:
        code:
          description: Response code.
          type: string
        msg:
          description: Response message.
          type: string
        success:
          description: Indicates whether the request succeeded.
          type: boolean
        data:
          description: Response payload containing avatar details.
          type: object
          properties:
            name:
              description: Avatar name.
              type: string
            modelSceneId:
              description: The avatar model scene ID.
              type: string
            conversationId:
              description: Conversation ID associated with this avatar.
              type: string
            coverImage:
              description: The avatar cover image.
              type: string
            status:
              description: 'Avatar training status (0: training, 1: failed, 2: success).'
              type: integer
            processingStep:
              description: >-
                Training progress (preparing, processing, after_processing,
                done).
              type: string
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: token
      description: Token [generated](/documentation/get-token) from your API keys.

````