> ## 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.

# 验证作品归属

> 接口说明：验证作品是否属于指定账号。调用前先通过账号列表接口获取候选账号，再通过该账号在对应平台的作品列表获取作品 ID。`platform`、`platformWorkId` 和 `candidateAccountId` 必须来自同一平台和同一已授权账号。



## OpenAPI

````yaml /openapi/zh/aitoearn.openapi.json post /api/v2/channels/works/{platform}/{platformWorkId}/ownership/verify
openapi: 3.0.1
info:
  title: AiToEarn 开放平台 API
  description: AiToEarn 开放平台 API，支持在中国站与国际站之间切换调试。业务是否成功以响应体 code === 0 为准。
  version: 1.0.0
  contact: {}
servers:
  - url: https://aitoearn.cn
    description: 中国站
  - url: https://aitoearn.ai
    description: 国际站
security: []
tags:
  - name: AI 服务
  - name: AI 服务/视频生成
  - name: AI 服务/图像生成
  - name: 渠道管理
  - name: 渠道管理/账号
  - name: 渠道管理/内容发布
  - name: 渠道管理/平台
  - name: 渠道管理/作品
  - name: 渠道管理/账号分组
  - name: 渠道管理/授权
  - name: 资源管理
  - name: AI 服务/大语言模型
  - name: AI 服务/真人素材
  - name: AI 服务/Agent
paths:
  /api/v2/channels/works/{platform}/{platformWorkId}/ownership/verify:
    post:
      tags:
        - 渠道管理/作品
      summary: 验证作品归属
      description: >-
        接口说明：验证作品是否属于指定账号。调用前先通过账号列表接口获取候选账号，再通过该账号在对应平台的作品列表获取作品
        ID。`platform`、`platformWorkId` 和 `candidateAccountId` 必须来自同一平台和同一已授权账号。
      operationId: WorksController_verifyOwnership_v2
      parameters:
        - name: platform
          in: path
          description: 平台标识。需与候选账号及作品保持一致，例如快手使用 `KWAI`。
          required: true
          example: KWAI
          schema:
            type: string
            example: KWAI
        - name: platformWorkId
          in: path
          description: >-
            平台作品
            ID。通过[「作品列表」](/api-reference/get-api-v2-channels-works-platform)接口获取：将与当前平台一致的账号
            ID 作为 `accountId` 参数，取返回作品项的 `platformWorkId`。
          required: true
          example: platform-work-id-from-work-list
          schema:
            type: string
            example: platform-work-id-from-work-list
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                candidateAccountId:
                  type: string
                  minLength: 1
                  description: >-
                    候选账号
                    ID。通过[「账号列表」](/api-reference/get-api-v2-channels-accounts)接口获取，取目标已授权账号的
                    `data.list[n].id`；该账号必须与 `platform` 和 `platformWorkId`
                    属于同一平台。
              required:
                - candidateAccountId
            examples:
              success:
                summary: 成功
                value:
                  candidateAccountId: account-id-from-accounts-list
        required: true
      responses:
        '200':
          description: 请求已被服务处理。业务是否成功以响应体 code === 0 为准。
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      platform:
                        type: string
                      owned:
                        type: boolean
                    additionalProperties: false
                  code:
                    type: integer
                    description: 业务状态码。0 表示成功，非 0 表示业务错误。
                  message:
                    type: string
                    description: 响应消息。
                  requestId:
                    type: string
                    description: 请求 ID。
                  timestamp:
                    type: integer
                    description: 错误响应时间戳，Unix 毫秒。
                required:
                  - code
                  - message
              examples:
                success:
                  summary: 成功
                  value:
                    code: 0
                    message: 请求成功
                    data:
                      platform: string
                      owned: boolean
                    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: 需要从 AiToEarn 获取 API Key。点击前往[「API Key 获取教程」](/zh/use/api-key)。

````

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