{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-paillmtrace/create-online-eval-task":{"post":{"operationId":"cloud_aliyun_paillmtrace_create_online_eval_task","summary":"Creates a trace evaluation task. The system will sample some data from the user's trace data based on the…","description":"POST /api/v1/PAILLMTrace/onlineevaltasks","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"},"body":{"type":"string","description":"The request data (JSON-encoded)"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/create-service-identity-role":{"post":{"operationId":"cloud_aliyun_paillmtrace_create_service_identity_role","summary":"Creates a service-linked role required for the PaiLLMTrace service","description":"POST /api/v1/PAILLMTrace/ServiceIdentityRole","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/delete-online-eval-task":{"post":{"operationId":"cloud_aliyun_paillmtrace_delete_online_eval_task","summary":"Delete an online evaluation task","description":"DELETE /api/v1/PAILLMTrace/onlineevaltasks/{TaskId}","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["TaskId"],"properties":{"endpoint":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"},"TaskId":{"type":"string","description":"The ID of the link evaluation task"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/evaluate-trace":{"post":{"operationId":"cloud_aliyun_paillmtrace_evaluate_trace","summary":"Evaluates a specified piece of trace data","description":"PUT /api/v1/PAILLMTrace/eval/trace/{TraceId}","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["TraceId","EvaluationConfig"],"properties":{"endpoint":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"},"TraceId":{"type":"string","description":"The trace ID"},"AppName":{"type":"string","description":"The name of the application to which the trace belongs"},"EvaluationConfig":{"type":"object","description":"If the value retrieved at the JSON path is itself a JSON string, further JSON path definitions within this JSON are necessary to get the…"},"EvaluationId":{"type":"string","description":"The ID of the evaluation task. If not specified, the system randomly generates and returns an ID. You can use this ID to quickly search…"},"MaxTime":{"type":"string","description":"The end time of the search time range, in UTC format"},"MinTime":{"type":"string","description":"The start time of the search time range, in UTC format"},"ModelConfig":{"type":"object","description":"The configuration structure to access the model used internally by the evaluation trace"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/get-evaluation-templates":{"get":{"operationId":"cloud_aliyun_paillmtrace_get_evaluation_templates","summary":"Get the content of prompt templates used for evaluation","description":"GET /api/v1/PAILLMTrace/eval/templates","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/get-online-eval-task":{"get":{"operationId":"cloud_aliyun_paillmtrace_get_online_eval_task","summary":"Get the details of an online evaluation task","description":"GET /api/v1/PAILLMTrace/onlineevaltasks/{TaskId}","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}},{"name":"TaskId","in":"query","required":true,"description":"Task ID","schema":{"type":"string","description":"Task ID"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/get-service-identity-role":{"get":{"operationId":"cloud_aliyun_paillmtrace_get_service_identity_role","summary":"Obtains the information related to the service-linked role","description":"GET /api/v1/PAILLMTrace/ServiceIdentityRole","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/get-xtrace-token":{"get":{"operationId":"cloud_aliyun_paillmtrace_get_xtrace_token","summary":"Obtains the token used in the Xtrace service and the endpoint required for uploading trace data","description":"GET /api/v1/PAILLMTrace/XtraceToken","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/list-eval-results":{"get":{"operationId":"cloud_aliyun_paillmtrace_list_eval_results","summary":"Retrieve the list of trace assessment results. This API is used together with the EvaluateTrace API. The…","description":"GET /api/v1/PAILLMTrace/eval/results","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}},{"name":"RecordIds","in":"query","required":false,"description":"The IDs of the traces (JSON-encoded)","schema":{"type":"string","description":"The IDs of the traces (JSON-encoded)"}},{"name":"PageNumber","in":"query","required":false,"description":"The number of the page to return. Pages start from page 1. Default value: 1","schema":{"type":"integer","description":"The number of the page to return. Pages start from page 1. Default value: 1"},"example":"1"},{"name":"PageSize","in":"query","required":false,"description":"Page size, default is 10","schema":{"type":"integer","description":"Page size, default is 10"},"example":"10"},{"name":"EvaluationId","in":"query","required":false,"description":"The ID of the evaluation task. Will return the latest evaluation result if this ID not provied","schema":{"type":"string","description":"The ID of the evaluation task. Will return the latest evaluation result if this ID not provied"},"example":"0bb05ae2a2dc11ef9757faaa2a1ec0c6"},{"name":"Keyword","in":"query","required":false,"description":"The search key word","schema":{"type":"string","description":"The search key word"},"example":"foo"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/list-online-eval-task-results":{"get":{"operationId":"cloud_aliyun_paillmtrace_list_online_eval_task_results","summary":"List the results of online evaluation tasks that meet the criteria","description":"GET /api/v1/PAILLMTrace/onlineevaltaskresults","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}},{"name":"TraceIds","in":"query","required":false,"description":"Specify a set of trace IDs, and only return the evaluation results for these traces. At least one of the trace ID or task ID must be set…","schema":{"type":"string","description":"Specify a set of trace IDs, and only return the evaluation results for these traces. At least one of the trace ID or task ID must be set…"}},{"name":"PageNumber","in":"query","required":false,"description":"The current page number. Value range: integers greater than 0. Default value: 1","schema":{"type":"integer","description":"The current page number. Value range: integers greater than 0. Default value: 1"},"example":"2"},{"name":"PageSize","in":"query","required":false,"description":"Page size, default is 10","schema":{"type":"integer","description":"Page size, default is 10"},"example":"50"},{"name":"EvaluationId","in":"query","required":false,"description":"The ID of the evaluation task. At least one of the trace ID or task ID must be set","schema":{"type":"string","description":"The ID of the evaluation task. At least one of the trace ID or task ID must be set"},"example":"0bb05ae8888c11ef9757faaa2a1ec0c6"},{"name":"MostRecentResultsOnly","in":"query","required":false,"description":"The same trace data may have been evaluated by different tasks. If no task ID is specified and there are multiple evaluation results for…","schema":{"type":"string","description":"The same trace data may have been evaluated by different tasks. If no task ID is specified and there are multiple evaluation results for…"},"example":"True"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/list-online-eval-tasks":{"get":{"operationId":"cloud_aliyun_paillmtrace_list_online_eval_tasks","summary":"View online evaluation tasks that meet the criteria","description":"GET /api/v1/PAILLMTrace/onlineevaltasks","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}},{"name":"MinTime","in":"query","required":false,"description":"The UTC start time of the search time range","schema":{"type":"string","description":"The UTC start time of the search time range"},"example":"2025-04-05 13:24:25\n2025-04-05"},{"name":"MaxTime","in":"query","required":false,"description":"The UTC end time of the search time range","schema":{"type":"string","description":"The UTC end time of the search time range"},"example":"2025-04-07 13:24:25\n2025-04-07"},{"name":"PageNumber","in":"query","required":false,"description":"The current page number. Value range: integers greater than 0. Default value: 1","schema":{"type":"integer","description":"The current page number. Value range: integers greater than 0. Default value: 1"},"example":"1"},{"name":"PageSize","in":"query","required":false,"description":"Page size, default is 10","schema":{"type":"integer","description":"Page size, default is 10"},"example":"50"},{"name":"AppName","in":"query","required":false,"description":"Name of the user application recorded in the trace data. Exact match","schema":{"type":"string","description":"Name of the user application recorded in the trace data. Exact match"},"example":"my-foo-llm-app-1.0"},{"name":"Status","in":"query","required":false,"description":"Job status. Exact match","schema":{"type":"string","description":"Job status. Exact match"},"example":"CREATED\nRUNNING\nFINISHED\nUSER_CANCELED"},{"name":"Keyword","in":"query","required":false,"description":"Search keyword. It will match on fields such as task name, application name (appName), task description, and evaluation metric name","schema":{"type":"string","description":"Search keyword. It will match on fields such as task name, application name (appName), task description, and evaluation metric name"},"example":"foo"},{"name":"SamplingMethod","in":"query","required":false,"description":"Sampling method for job data. Valid values are window or probability. Exact match","schema":{"type":"string","description":"Sampling method for job data. Valid values are window or probability. Exact match"},"example":"Window\nRatio"},{"name":"SortBy","in":"query","required":false,"description":"Field used to sort the return result. Supported fields: TaskId, CreateTime, TaskName, and Status. If not specified, results are sorted by…","schema":{"type":"string","description":"Field used to sort the return result. Supported fields: TaskId, CreateTime, TaskName, and Status. If not specified, results are sorted by…"},"example":"CreateTime\nStatus\nTaskId\nTaskName"},{"name":"SortOrder","in":"query","required":false,"description":"Sort order of the return result. Valid values: ASC (ascending) or DESC (descending). If not specified, results are sorted in descending…","schema":{"type":"string","description":"Sort order of the return result. Valid values: ASC (ascending) or DESC (descending). If not specified, results are sorted in descending…"},"example":"ASC\nDESC"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/list-traces-datas":{"get":{"operationId":"cloud_aliyun_paillmtrace_list_traces_datas","summary":"List trace data that meets the specified conditions from trace logs","description":"GET /api/v1/PAILLMTrace/TracesDatas","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com","schema":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}},{"name":"TraceIds","in":"query","required":false,"description":"The list of trace IDs (JSON-encoded)","schema":{"type":"string","description":"The list of trace IDs (JSON-encoded)"}},{"name":"SpanIds","in":"query","required":false,"description":"The list of span IDs. Each trace record contains one or more spans (JSON-encoded)","schema":{"type":"string","description":"The list of span IDs. Each trace record contains one or more spans (JSON-encoded)"}},{"name":"SessionId","in":"query","required":false,"description":"The value of the `attributes.gen_ai.session.id` field in trace records. Default is empty","schema":{"type":"string","description":"The value of the `attributes.gen_ai.session.id` field in trace records. Default is empty"},"example":"e5895063-9b29-4ce4-b0fd-a018bfa11111"},{"name":"MinTime","in":"query","required":true,"description":"The lower limit of the search time range, in UTC format (YYYY-mm-dd or YYYY-MM-DD HH:mm:ss). By default, the value is (current time - 2…","schema":{"type":"string","description":"The lower limit of the search time range, in UTC format (YYYY-mm-dd or YYYY-MM-DD HH:mm:ss). By default, the value is (current time - 2…"},"example":"2024-01-31\n2024-12-31 23:59:59"},{"name":"MaxTime","in":"query","required":false,"description":"The upper limit of the search time range, in UTC format (YYYY-mm-dd or YYYY-MM-DD HH:mm:ss). By default, the value is (current time +10…","schema":{"type":"string","description":"The upper limit of the search time range, in UTC format (YYYY-mm-dd or YYYY-MM-DD HH:mm:ss). By default, the value is (current time +10…"},"example":"2024-01-31\n2024-12-31 23:59:59"},{"name":"PageNumber","in":"query","required":false,"description":"The page number. Page starts from page 1. Default value: 1","schema":{"type":"integer","description":"The page number. Page starts from page 1. Default value: 1"},"example":"1"},{"name":"PageSize","in":"query","required":false,"description":"The number of entries per page. Default value: 20. Maximum value: 100","schema":{"type":"integer","description":"The number of entries per page. Default value: 20. Maximum value: 100"},"example":"10"},{"name":"SpanName","in":"query","required":false,"description":"A filter condition used when searching for traces. Returns traces that contain the specified span name.","schema":{"type":"string","description":"A filter condition used when searching for traces. Returns traces that contain the specified span name."},"example":"ChatFlow.astream_chat"},{"name":"LlmAppName","in":"query","required":false,"description":"The value of the resources.service.app.name field in the trace record. It can contain upper and lower case letters, digits, dot (.),…","schema":{"type":"string","description":"The value of the resources.service.app.name field in the trace record. It can contain upper and lower case letters, digits, dot (.),…"},"example":"My.super_LLM-app2"},{"name":"MinDuration","in":"query","required":false,"description":"A filter condition used when searching for traces: the minimum trace duration, in seconds (s)","schema":{"type":"number","description":"A filter condition used when searching for traces: the minimum trace duration, in seconds (s)"},"example":"2"},{"name":"MaxDuration","in":"query","required":false,"description":"A filter condition used when searching for traces: the maximum trace duration, in seconds (s)","schema":{"type":"number","description":"A filter condition used when searching for traces: the maximum trace duration, in seconds (s)"},"example":"5"},{"name":"OpentelemetryCompatible","in":"query","required":false,"description":"Whether the returned JSON data can be directly converted to OpenTelemetry TracesData protobuf object. Default value: False. JSON data that…","schema":{"type":"string","description":"Whether the returned JSON data can be directly converted to OpenTelemetry TracesData protobuf object. Default value: False. JSON data that…"},"example":"False"},{"name":"HasStatusMessage","in":"query","required":false,"description":"Whether to return only trace records containing spans with a non-empty statusMessage. Example: Suppose a trace has 3 spans. If this…","schema":{"type":"string","description":"Whether to return only trace records containing spans with a non-empty statusMessage. Example: Suppose a trace has 3 spans. If this…"},"example":"False"},{"name":"HasEvents","in":"query","required":false,"description":"Whether to return only trace records containing spans with a non-empty events. Example: Suppose a trace has 3 spans. If this parameter is…","schema":{"type":"string","description":"Whether to return only trace records containing spans with a non-empty events. Example: Suppose a trace has 3 spans. If this parameter is…"},"example":"False"},{"name":"OwnerSubId","in":"query","required":false,"description":"The value of the resources.service.owner.sub_id field in the trace record. It can contain upper and lower case letters, digits, dot (.),…","schema":{"type":"string","description":"The value of the resources.service.owner.sub_id field in the trace record. It can contain upper and lower case letters, digits, dot (.),…"},"example":"123456789"},{"name":"EndUserId","in":"query","required":false,"description":"The value of the attributes.service.app.user_id field in the trace record. It can contain upper and lower case letters, digits, dot (.),…","schema":{"type":"string","description":"The value of the attributes.service.app.user_id field in the trace record. It can contain upper and lower case letters, digits, dot (.),…"},"example":"end-user.12345"},{"name":"Filters","in":"query","required":false,"description":"Other filter parameters (JSON-encoded)","schema":{"type":"string","description":"Other filter parameters (JSON-encoded)"}},{"name":"TraceReduceMethod","in":"query","required":false,"description":"The content simplification method for returned trace data to reduce the data volume. REMOVE_EMBEDDING: Removes all embedding array…","schema":{"type":"string","description":"The content simplification method for returned trace data to reduce the data volume. REMOVE_EMBEDDING: Removes all embedding array…"},"example":"REMOVE_EMBEDDING\nROOT_ONLY"},{"name":"SortBy","in":"query","required":false,"description":"The field used to sort the returned results. Valid values: StartTime and Duration","schema":{"type":"string","description":"The field used to sort the returned results. Valid values: StartTime and Duration"},"example":"StartTime\nDuration\nTotalTokens\nTraceId"},{"name":"SortOrder","in":"query","required":false,"description":"The sorting order. Valid values: ASC DESC (default)","schema":{"type":"string","description":"The sorting order. Valid values: ASC DESC (default)"},"example":"DESC\nASC"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/stop-online-eval-task":{"post":{"operationId":"cloud_aliyun_paillmtrace_stop_online_eval_task","summary":"Stop the execution of an online evaluation task","description":"PUT /api/v1/PAILLMTrace/onlineevaltasks/{TaskId}/stop","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["TaskId"],"properties":{"endpoint":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"},"TaskId":{"type":"string","description":"The ID of the trace evaluation task"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/update-online-eval-task":{"post":{"operationId":"cloud_aliyun_paillmtrace_update_online_eval_task","summary":"Changes the configuration of a trace evaluation task","description":"PUT /api/v1/PAILLMTrace/onlineevaltasks/{TaskId}","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["TaskId"],"properties":{"endpoint":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"},"TaskId":{"type":"string","description":"The ID of the trace evaluation task"},"AppName":{"type":"string","description":"The user-defined name of the LLM application"},"Description":{"type":"string","description":"The description of the task"},"EndTime":{"type":"string","description":"The end time of the trace data, in UTC format"},"EvaluationConfig":{"type":"object","description":"This configuration structure defines the JSON paths needed to extract specific values from trace data in JSON format. EvaluationConfig…"},"Filters":{"type":"array","description":"The evaluation task must search for a certain amount of trace data generated by the user application as input data for the evaluation.…"},"ModelConfig":{"type":"object","description":"The access configuration structure of the model used in the evaluation"},"SamplingFrequencyMinutes":{"type":"integer","description":"The evaluation task must search for a certain amount of trace data generated by the user application as input data for the evaluation.…"},"SamplingRatio":{"type":"integer","description":"The percentage of data found in a time window that truly serves as evaluation input data. For example, 100 indicates that all data…"},"StartTime":{"type":"string","description":"The start time of the trace data, in UTC format"},"TaskName":{"type":"string","description":"The task name"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paillmtrace/version":{"post":{"operationId":"cloud_aliyun_paillmtrace_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://paillmtrace.cn-beijing.aliyuncs.com","https://paillmtrace.cn-hangzhou.aliyuncs.com","https://paillmtrace.cn-shanghai.aliyuncs.com","https://paillmtrace.cn-shenzhen.aliyuncs.com"],"default":"https://paillmtrace.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://paillmtrace.cn-hangzhou.aliyuncs.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}