# MOSS Transcribe Diarize Pro Async Task Submission

> Audio Generation

Submits an asynchronous speech transcription task. The interface returns a `task_id`, which can be used with `GET /v1/tasks/status` to query task status and results.

Async tasks only support `input.url`; file upload is not supported.
`async=true` is fixed internally by the interface and does not need to be passed by the user; `stream` is not supported.

## Endpoint

`POST https://api.modelverse.cn/v1/tasks/submit`

## Request Body

## Responses

- **200** — Task submitted successfully; returns the task ID.
- **400** — Invalid request parameters.
- **401** — Authentication failed.

## OpenAPI Definition

```json
{
  "openapi": "3.1.0",
  "x-language": "en-US",
  "info": {
    "title": "MOSS Transcribe Diarize Pro Multi-Speaker Speech Transcription",
    "version": "1.0.0",
    "description": "This is the multi-speaker speech transcription API documentation for `moss-transcribe-diarize-pro` on ModelVerse.\n\nThe endpoints are `POST /v1/audio/transcriptions` (synchronous) and `POST /v1/tasks/submit` (asynchronous).\n\n## Model Features\n\n- Multi-speaker speech transcription that automatically identifies different speakers and labels them as `S01`, `S02`, etc.\n- Supports synchronous (file upload / URL remote audio) and asynchronous task submission.\n- Supports SSE streaming output, returning transcription results and speaker information sentence by sentence.\n- Supports `keyterms` enhancement to improve recognition accuracy for proper nouns, names, and brand names.\n- Supports up to 60 minutes of audio, with a maximum file size of 512 MB.\n\n## Billing\n\n`moss-transcribe-diarize-pro` is billed by **input audio duration (seconds)**, with usage reflected in `usage.input_audio_seconds` in the response.\n\n## Usage Notes\n\n- **Synchronous interface**: Supports `file` mode (multipart upload) and `url` mode (JSON body with a remote audio URL).\n- **Asynchronous interface**: Only supports `input.url`; file upload is not supported.\n- `file` mode supports audio and video files (MOV, MP4, MPG, WebM, etc. can all be transcribed).\n- `url` mode only supports audio URLs; video URLs are not supported.\n- When `diarize=true`, `segments` are returned, with each segment containing a `speaker` field.\n- `keyterms` in `multipart/form-data` mode are passed as a JSON string array, e.g., `[\"MOSS\",\"SGLang\"]`; in JSON body mode, pass them as an array directly.\n- When `stream=true`, an SSE event stream is always returned; `response_format` is ignored. It is recommended to explicitly pass `verbose_json` to get complete event information.\n- `async=true` creates an async task and cannot be used simultaneously with `stream=true`.\n- The `text` response format is only applicable for non-streaming; `verbose_json` is only applicable for streaming.\n"
  },
  "servers": [
    {
      "url": "https://api.modelverse.cn",
      "description": "Mainland China"
    },
    {
      "url": "https://api.umodelverse.ai",
      "description": "Global"
    },
    {
      "url": "https://api-us-ca.umodelverse.ai",
      "description": "Los Angeles, US"
    },
    {
      "url": "https://api-sg.umodelverse.ai",
      "description": "Singapore"
    },
    {
      "url": "https://api-ge-fra.umodelverse.ai",
      "description": "Frankfurt"
    }
  ],
  "tags": [
    {
      "name": "MOSS Transcribe",
      "description": "Multi-speaker speech transcription interface for `moss-transcribe-diarize-pro`."
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/audio/transcriptions": {
      "post": {
        "tags": [
          "MOSS Transcribe"
        ],
        "operationId": "createMossTranscribeDiarizeProTranscription",
        "summary": "MOSS Transcribe Diarize Pro Speech Transcription (Synchronous)",
        "description": "Uploads an audio file or provides an audio URL, returning the transcription text, speaker segments, and usage information.\n\nSupports two input modes:\n- **file mode**: `Content-Type: multipart/form-data`, upload a local audio or video file.\n- **url mode**: `Content-Type: application/json`, pass a remote audio URL.\n\n`model` is required; all other fields are optional.\n",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/MossTranscribeFileRequest"
              },
              "encoding": {
                "file": {
                  "contentType": "application/octet-stream"
                }
              },
              "examples": {
                "minimal": {
                  "summary": "Minimal transcription (file mode)",
                  "value": {
                    "model": "moss-transcribe-diarize-pro",
                    "file": "@audio.mp3"
                  }
                },
                "diarize": {
                  "summary": "Speaker diarization (file mode)",
                  "value": {
                    "model": "moss-transcribe-diarize-pro",
                    "file": "@meeting.mp3",
                    "diarize": true,
                    "response_format": "json"
                  }
                },
                "keyterms": {
                  "summary": "Keyterms enhancement (file mode)",
                  "value": {
                    "model": "moss-transcribe-diarize-pro",
                    "file": "@audio.mp3",
                    "diarize": true,
                    "keyterms": "[\"MOSS\",\"SGLang\"]"
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MossTranscribeURLRequest"
              },
              "examples": {
                "urlMinimal": {
                  "summary": "Minimal transcription (url mode)",
                  "value": {
                    "model": "moss-transcribe-diarize-pro",
                    "url": "https://example.com/audio.mp3"
                  }
                },
                "urlDiarize": {
                  "summary": "Speaker diarization (url mode)",
                  "value": {
                    "model": "moss-transcribe-diarize-pro",
                    "url": "https://example.com/audio.mp3",
                    "diarize": true,
                    "response_format": "json"
                  }
                },
                "stream": {
                  "summary": "SSE streaming transcription (url mode)",
                  "value": {
                    "model": "moss-transcribe-diarize-pro",
                    "url": "https://example.com/audio.mp3",
                    "diarize": true,
                    "stream": true,
                    "response_format": "verbose_json"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Transcription successful. Returns JSON (with `text`, `segments`, `usage`) in non-streaming mode; returns an SSE event stream in streaming mode.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeResponse"
                },
                "examples": {
                  "plain": {
                    "summary": "Plain transcription result",
                    "value": {
                      "text": "Welcome to the MOSS API.",
                      "duration": 5.18
                    }
                  },
                  "diarized": {
                    "summary": "Speaker diarization result",
                    "value": {
                      "task": "transcribe",
                      "duration": 5.18,
                      "text": "Welcome to the MOSS API.",
                      "segments": [
                        {
                          "type": "transcript.text.segment",
                          "id": "seg_001",
                          "start": 0.16,
                          "end": 5.18,
                          "text": "Welcome to the MOSS API.",
                          "speaker": "S01"
                        }
                      ],
                      "usage": {
                        "input_audio_seconds": 5.18,
                        "prompt_tokens": 518,
                        "completion_tokens": 32,
                        "total_tokens": 550
                      }
                    }
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "SSE event stream. Includes events such as `task.created`, `transcript.text.delta` (incremental text),\n`transcript.segment.done` (segment complete with speaker), `transcript.text.done` (complete with usage), etc.\n"
                },
                "examples": {
                  "streamEvents": {
                    "summary": "Streaming event example",
                    "value": "data: {\"type\":\"task.created\",\"task_id\":\"task-123\",\"object\":\"audio.transcription\",\"status\":\"PROCESSING\",\"model\":\"moss-transcribe-diarize-pro\"}\n\ndata: {\"type\":\"transcript.text.delta\",\"delta\":\"Welcome\"}\n\ndata: {\"type\":\"transcript.segment.done\",\"content_index\":0,\"speaker\":\"S01\",\"start\":0.16,\"end\":5.18,\"text\":\"Welcome to the MOSS API.\",\"session_usage\":{\"prompt_tokens\":153,\"completion_tokens\":32,\"total_tokens\":185}}\n\ndata: {\"type\":\"transcript.text.done\",\"text\":\"Welcome to the MOSS API.\",\"usage\":{\"prompt_tokens\":153,\"completion_tokens\":32,\"total_tokens\":185}}\n"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters. Common reasons:\n- `file` / `url` not provided or multiple provided at once\n- `stream=true` and `async=true` passed simultaneously\n- `keyterms` is not a string array, or exceeds 20 items / 30 characters per item\n- The standard model `moss-transcribe-1.0` was passed a non-empty `keyterms`\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed; API Key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Request rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Upstream service internal error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tasks/submit": {
      "post": {
        "tags": [
          "MOSS Transcribe"
        ],
        "operationId": "submitMossTranscribeDiarizeProAsyncTask",
        "summary": "MOSS Transcribe Diarize Pro Async Task Submission",
        "description": "Submits an asynchronous speech transcription task. The interface returns a `task_id`, which can be used with `GET /v1/tasks/status` to query task status and results.\n\nAsync tasks only support `input.url`; file upload is not supported.\n`async=true` is fixed internally by the interface and does not need to be passed by the user; `stream` is not supported.\n",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MossTranscribeAsyncTaskRequest"
              },
              "examples": {
                "basic": {
                  "summary": "Basic async task",
                  "value": {
                    "model": "moss-transcribe-diarize-pro",
                    "input": {
                      "url": "https://example.com/audio.mp3"
                    },
                    "parameters": {
                      "response_format": "json"
                    }
                  }
                },
                "diarize": {
                  "summary": "Speaker diarization + keyterms",
                  "value": {
                    "model": "moss-transcribe-diarize-pro",
                    "input": {
                      "url": "https://example.com/audio.mp3"
                    },
                    "parameters": {
                      "diarize": true,
                      "keyterms": [
                        "MOSS",
                        "SGLang"
                      ],
                      "response_format": "json"
                    }
                  }
                },
                "webhook": {
                  "summary": "With callback URL",
                  "value": {
                    "model": "moss-transcribe-diarize-pro",
                    "input": {
                      "url": "https://example.com/audio.mp3"
                    },
                    "parameters": {
                      "diarize": true,
                      "response_format": "json",
                      "webhook_url": "https://example.com/webhook"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Task submitted successfully; returns the task ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeAsyncTaskResponse"
                },
                "examples": {
                  "submitted": {
                    "summary": "Task submitted",
                    "value": {
                      "output": {
                        "task_id": "task-xxx"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tasks/status": {
      "get": {
        "tags": [
          "MOSS Transcribe"
        ],
        "operationId": "getMossTranscribeDiarizeProTaskStatus",
        "summary": "Query MOSS Transcribe Diarize Pro Async Task Status",
        "description": "Queries the execution status and result of an asynchronous speech transcription task.\n\n**Task Statuses:**\n- `Pending` / `Processing` — Task in progress\n- `Success` — Task completed successfully\n- `Failure` — Task failed\n\n**On Success:**\n- `output.task_status`: `Success`\n- `output.data`: Upstream transcription result JSON (passed through), containing `text`, `segments`, `usage`, etc.\n",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "query",
            "required": true,
            "description": "Async task ID",
            "schema": {
              "type": "string"
            },
            "example": "task-xxx"
          }
        ],
        "responses": {
          "200": {
            "description": "Task status query successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "output": {
                      "type": "object",
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "description": "Task ID"
                        },
                        "task_status": {
                          "type": "string",
                          "description": "Task status"
                        },
                        "submit_time": {
                          "type": "integer",
                          "description": "Submission time, Unix timestamp"
                        },
                        "finish_time": {
                          "type": "integer",
                          "description": "Completion time, Unix timestamp"
                        },
                        "data": {
                          "type": "object",
                          "description": "Upstream transcription result JSON (returned only on success)",
                          "properties": {
                            "text": {
                              "type": "string",
                              "description": "Full transcription text."
                            },
                            "segments": {
                              "type": "array",
                              "description": "Speaker segment list.",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "start": {
                                    "type": "number",
                                    "description": "Segment start time (seconds)."
                                  },
                                  "end": {
                                    "type": "number",
                                    "description": "Segment end time (seconds)."
                                  },
                                  "text": {
                                    "type": "string",
                                    "description": "Text of the segment."
                                  },
                                  "speaker": {
                                    "type": "string",
                                    "description": "Speaker identifier, e.g., `S01`."
                                  }
                                }
                              }
                            }
                          }
                        },
                        "error_message": {
                          "type": "string",
                          "description": "Error message (returned only on failure)"
                        }
                      }
                    },
                    "usage": {
                      "type": "object",
                      "properties": {
                        "input_audio_duration": {
                          "type": "integer",
                          "description": "Input audio duration (seconds)"
                        },
                        "prompt_tokens": {
                          "type": "integer"
                        },
                        "completion_tokens": {
                          "type": "integer"
                        },
                        "total_tokens": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "success": {
                    "summary": "Task succeeded (with speaker diarization)",
                    "value": {
                      "output": {
                        "task_id": "task-xxx",
                        "task_status": "Success",
                        "submit_time": 1704067200,
                        "finish_time": 1704067250,
                        "data": {
                          "text": "Good morning, Wuhan. In the morning at Hubuxiang, the aroma of hot dry noodles fills the air; this is the most authentic breakfast culture. The bells of Jianghan Customs House resound, and both banks of the Yangtze River are dazzling. This city is full of new vitality every day.",
                          "segments": [
                            {
                              "start": 1.84,
                              "end": 3.32,
                              "text": "Good morning, Wuhan.",
                              "speaker": "S01"
                            },
                            {
                              "start": 4.01,
                              "end": 10.82,
                              "text": "In the morning at Hubuxiang, the aroma of hot dry noodles fills the air, this is the most authentic breakfast culture.",
                              "speaker": "S01"
                            },
                            {
                              "start": 11.98,
                              "end": 20.72,
                              "text": "The bells of Jianghan Customs House resound, and both banks of the Yangtze River are dazzling, this city is full of new vitality every day.",
                              "speaker": "S01"
                            }
                          ]
                        }
                      },
                      "usage": {
                        "input_audio_duration": 21,
                        "prompt_tokens": 373,
                        "completion_tokens": 101,
                        "total_tokens": 474
                      }
                    }
                  },
                  "pending": {
                    "summary": "Task in progress",
                    "value": {
                      "output": {
                        "task_id": "task-xxx",
                        "task_status": "Pending",
                        "submit_time": 1704067200
                      }
                    }
                  },
                  "failure": {
                    "summary": "Task failed",
                    "value": {
                      "output": {
                        "task_id": "task-xxx",
                        "task_status": "Failure",
                        "submit_time": 1704067200,
                        "finish_time": 1704067250,
                        "error_message": "Transcription failed"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Task does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MossTranscribeErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API key",
        "description": "Authenticate using Bearer Token, in the format `Authorization: Bearer <API Key>`."
      }
    },
    "schemas": {
      "MossTranscribeFileRequest": {
        "type": "object",
        "required": [
          "model",
          "file"
        ],
        "description": "`file` mode (`multipart/form-data`). Upload a local audio or video file; no need to call a file upload interface first.\nMaximum file size is 512 MB. Supports AAC, AMR, FLAC, M4A, MOV, MP3, MP4, MPG, OGG, OPUS, WAV, WebM, WMA, and other formats.\n",
        "properties": {
          "model": {
            "type": "string",
            "const": "moss-transcribe-diarize-pro",
            "description": "Model name, always `moss-transcribe-diarize-pro`."
          },
          "file": {
            "type": "string",
            "format": "binary",
            "description": "Local audio or video file, supports 14 audio/video formats, maximum 512 MB."
          },
          "diarize": {
            "type": "boolean",
            "default": false,
            "description": "Whether to enable speaker diarization. When `true`, returns `segments` with a `speaker` field in each segment.\nOnly supported by `moss-transcribe-diarize-pro`.\n"
          },
          "keyterms": {
            "type": "string",
            "description": "Keyterms list, in JSON string array format, e.g., `[\"MOSS\",\"SGLang\"]`. Maximum 20 items, each up to 30 characters.\nOnly supported by `moss-transcribe-diarize-pro`.\n"
          },
          "response_format": {
            "type": "string",
            "enum": [
              "json",
              "text",
              "diarized_json"
            ],
            "default": "json",
            "description": "Transcription result format. `json` is the default JSON; `text` is plain text (non-streaming only);\n`diarized_json` is equivalent to enabling `diarize`.\n"
          },
          "stream": {
            "type": "boolean",
            "default": false,
            "description": "Whether to enable SSE streaming output. When `true`, always returns an SSE event stream; `response_format` is ignored.\nCannot be used simultaneously with `async=true`.\n"
          }
        }
      },
      "MossTranscribeURLRequest": {
        "type": "object",
        "required": [
          "model"
        ],
        "description": "`url` mode (`application/json`). Pass a remote audio URL; the server downloads the audio from the URL and transcribes it.\nMust not point to localhost, loopback addresses, or private network addresses.\n",
        "properties": {
          "model": {
            "type": "string",
            "const": "moss-transcribe-diarize-pro",
            "description": "Model name, always `moss-transcribe-diarize-pro`."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Remote audio URL."
          },
          "diarize": {
            "type": "boolean",
            "default": false,
            "description": "Whether to enable speaker diarization. When `true`, returns `segments` with a `speaker` field in each segment.\nOnly supported by `moss-transcribe-diarize-pro`.\n"
          },
          "keyterms": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "maxLength": 30
            },
            "description": "Keyterms list, used to improve recognition accuracy for proper nouns, names, and brand names. Maximum 20 items, each up to 30 characters.\nOnly supported by `moss-transcribe-diarize-pro`.\n"
          },
          "response_format": {
            "type": "string",
            "enum": [
              "json",
              "text",
              "diarized_json",
              "verbose_json"
            ],
            "default": "json",
            "description": "Transcription result format. `json` is the default JSON; `text` is plain text (non-streaming only);\n`diarized_json` is equivalent to enabling `diarize`; `verbose_json` is only applicable for streaming requests.\n"
          },
          "stream": {
            "type": "boolean",
            "default": false,
            "description": "Whether to enable SSE streaming output. When `true`, always returns an SSE event stream; `response_format` is ignored (it is recommended to pass `verbose_json`).\nCannot be used simultaneously with `async=true`.\n"
          }
        }
      },
      "MossTranscribeResponse": {
        "type": "object",
        "description": "Non-streaming speech transcription success response.",
        "required": [
          "text"
        ],
        "properties": {
          "task": {
            "type": "string",
            "description": "Task type, always `transcribe`."
          },
          "duration": {
            "type": "number",
            "description": "Audio duration in seconds."
          },
          "text": {
            "type": "string",
            "description": "Full transcription text."
          },
          "segments": {
            "type": "array",
            "description": "Speaker segment list; may be an empty array for short audio or when no valid segments are found.",
            "items": {
              "$ref": "#/components/schemas/MossTranscribeSegment"
            }
          },
          "usage": {
            "type": "object",
            "description": "Usage information.",
            "properties": {
              "input_audio_seconds": {
                "type": "number",
                "description": "Input audio duration (seconds), the billing basis."
              },
              "prompt_tokens": {
                "type": "integer"
              },
              "completion_tokens": {
                "type": "integer"
              },
              "total_tokens": {
                "type": "integer"
              }
            }
          }
        }
      },
      "MossTranscribeSegment": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Segment event type, e.g., `transcript.text.segment`."
          },
          "id": {
            "type": "string",
            "description": "Segment ID."
          },
          "start": {
            "type": "number",
            "description": "Segment start time (seconds)."
          },
          "end": {
            "type": "number",
            "description": "Segment end time (seconds)."
          },
          "text": {
            "type": "string",
            "description": "Text of the segment."
          },
          "speaker": {
            "type": "string",
            "description": "Speaker identifier, e.g., `S01`."
          }
        }
      },
      "MossTranscribeAsyncTaskRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "input"
        ],
        "properties": {
          "model": {
            "type": "string",
            "const": "moss-transcribe-diarize-pro",
            "description": "Model name, always `moss-transcribe-diarize-pro`."
          },
          "input": {
            "type": "object",
            "description": "Audio source. Async tasks do not support `file` upload.\n",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "description": "Remote audio URL."
              }
            }
          },
          "parameters": {
            "type": "object",
            "properties": {
              "diarize": {
                "type": "boolean",
                "default": false,
                "description": "Whether to enable speaker diarization."
              },
              "keyterms": {
                "type": "array",
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "maxLength": 30
                },
                "description": "Keyterms list, maximum 20 items, each up to 30 characters."
              },
              "response_format": {
                "type": "string",
                "enum": [
                  "json",
                  "text",
                  "diarized_json"
                ],
                "default": "json",
                "description": "Transcription result format."
              },
              "webhook_url": {
                "type": "string",
                "format": "uri",
                "description": "HTTPS URL to callback when the async task completes."
              }
            }
          }
        }
      },
      "MossTranscribeAsyncTaskResponse": {
        "type": "object",
        "properties": {
          "output": {
            "type": "object",
            "properties": {
              "task_id": {
                "type": "string",
                "description": "Async task ID."
              }
            }
          }
        }
      },
      "MossTranscribeErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string",
                "description": "Error description."
              },
              "type": {
                "type": "string"
              },
              "param": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "code": {
                "type": "string"
              },
              "trace_id": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```
