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

# Publish Record List

> List publish records for the current API key account. Omit filters to return all records, or filter by channel account, platform, publish time range, or status.



## OpenAPI

````yaml /openapi/en/aitoearn.openapi.json get /api/v2/channels/publish/records
openapi: 3.0.1
info:
  title: AiToEarn Open Platform API
  description: >-
    AiToEarn Open Platform API. You can switch between the China and
    international sites for testing. Business success is determined by whether
    the response body has code === 0.
  version: 1.0.0
  contact: {}
servers:
  - url: https://aitoearn.cn
    description: China site
  - url: https://aitoearn.ai
    description: International site
security: []
tags:
  - name: AI Services
  - name: AI Services/Video Generation
  - name: AI Services/Image Generation
  - name: Channel Management
  - name: Channel Management/Accounts
  - name: Channel Management/Publishing
  - name: Channel Management/Platforms
  - name: Channel Management/Works
  - name: Channel Management/Account Groups
  - name: Channel Management/Authorization
  - name: Asset Management
  - name: AI Services/Large Language Models
  - name: AI Services/Real-person Verification
  - name: AI Services/Virtual Portrait Assets
  - name: AI Services/Agent
  - name: Account & Keys/API Key
paths:
  /api/v2/channels/publish/records:
    get:
      tags:
        - Channel Management/Publishing
      summary: Publish Record List
      description: >-
        List publish records for the current API key account. Omit filters to
        return all records, or filter by channel account, platform, publish time
        range, or status.
      operationId: PublishRecordController_listRecords_v2
      parameters:
        - name: accountId
          in: query
          description: Optional channel account ID from Account List.
          required: false
          schema:
            description: Optional channel account ID from Account List.
            type: string
        - name: accountType
          in: query
          description: Optional platform identifier from Platform List.
          required: false
          schema:
            description: Optional platform identifier from Platform List.
            type: string
            enum:
              - douyin
              - xhs
              - wxSph
              - KWAI
              - youtube
              - wxGzh
              - bilibili
              - twitter
              - tiktok
              - facebook
              - instagram
              - threads
              - pinterest
              - linkedin
              - google_business
        - name: time
          in: query
          description: >-
            Optional publish time range. Provide start and end times in ISO 8601
            format.
          required: false
          schema:
            description: >-
              Optional publish time range. Provide start and end times in ISO
              8601 format.
            type: array
            items:
              description: start time
              type: string
              format: date-time
        - name: status
          in: query
          description: Optional publish status used to filter records.
          required: false
          schema:
            description: Optional publish status used to filter records.
            type: number
      responses:
        '200':
          description: >-
            The request has been processed by the service. Business success is
            determined by whether the response body has code === 0.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        flowId:
                          type: string
                        userTaskId:
                          type: string
                        accountId:
                          type: string
                        accountType:
                          type: string
                        type:
                          type: string
                        status:
                          type: number
                        title:
                          type: string
                        desc:
                          type: string
                        publishTime:
                          type: string
                        platformWorkId:
                          type: string
                        workLink:
                          type: string
                        videoUrl:
                          type: string
                        coverUrl:
                          type: string
                        imgUrlList:
                          type: array
                          items:
                            type: string
                        source:
                          type: string
                        createdAt:
                          type: string
                        updatedAt:
                          type: string
                      additionalProperties: false
                  code:
                    type: integer
                    description: >-
                      Business status code. 0 means success; non-zero means a
                      business error.
                  message:
                    type: string
                    description: Response message.
                  requestId:
                    type: string
                    description: Request ID.
                  timestamp:
                    type: integer
                    description: Error response timestamp in Unix milliseconds.
              examples:
                success:
                  summary: Success
                  value:
                    code: 0
                    message: Request succeeded
                    data:
                      - id: string
                        flowId: string
                        userTaskId: string
                        accountId: string
                        accountType: string
                        type: string
                        status: number
                        title: string
                        desc: string
                        publishTime: string
                        platformWorkId: string
                        workLink: string
                        videoUrl: string
                        coverUrl: string
                        imgUrlList:
                          - string
                        source: string
                        createdAt: string
                        updatedAt: string
                    requestId: string
      deprecated: false
      security:
        - apikey-header-X-Api-Key: []
components:
  securitySchemes:
    apikey-header-X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        Need to get API Key from AiToEarn. Click to go to ["API Key Obtaining
        Tutorial"](/en/use/api-key).

````

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