Avaturn
    Avaturn
    • Create User
      POST
    • Delete User
      DELETE
    • New Session
      POST
    • List User Avatars
      GET
    • New Avatar
      POST
    • Get Customization
      GET
    • Set Customization
      PUT
    • Delete User Avatar
      DELETE
    • Render User Avatar Async
      POST
    • Create Export
      POST

      Create Export

      开发环境
      http://dev-cn.your-api-server.com
      开发环境
      http://dev-cn.your-api-server.com
      POST
      /api/v1/exports/new
      Exports a specified avatar.
      The endpoint works the following way:
      1.
      You send a request to the /exports/new endpoint.
      If this version of avatar wasn't exported yet, the response will contain
      status='pending' and the export task will be created. The url will be null.
      If it was successfully exported previously, the response will contain
      status='ready' and url will contain a link to the result. The URL is temporary and can only be
      used to download model to your servers. Don't store it to the database.
      2.
      If the task was created on step 1, on its completion avaturn will send an export.ready webhook,
      which will contain a temporary link to the export result.
      NOTE: Behavior of this endpoint for avatars created by direct photo upload and
      not yet opened via browser UNDEFINED and can be changed in the future.
      Set customization via corresponding endpoint to get predictable behaviour.
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'http://dev-cn.your-api-server.com/api/v1/exports/new?avatar_id'
      响应示例响应示例
      200 - 示例 1
      {
          "status": "pending",
          "url": "string"
      }

      请求参数

      Query 参数
      avatar_id
      string <uuid>
      Avatar Id
      必需
      ID of avatar to export

      返回响应

      🟢200Successful Response
      application/json
      Body
      status
      enum<string> 
      Status
      必需
      枚举值:
      pendingreadyfailed
      url
      Url
      必需
      Exported model URL if status='ready', otherwise null
      Any of
      🟠422Validation Error
      修改于 2024-05-30 08:40:21
      上一页
      Render User Avatar Async
      Built with