文件与批处理
列出批处理任务
列出当前工作区的批处理任务。
返回当前工作区创建的批处理任务。
请求
curl -X GET "https://api.tokenlab.sh/v1/batches?limit=20" \
-H "Authorization: Bearer sk-your-api-key"响应
{
"object": "list",
"data": [{ "id": "batch_abc123", "object": "batch", "status": "completed" }],
"first_id": "batch_abc123",
"last_id": "batch_abc123",
"has_more": false
}重要字段
objectstring
固定为
list。dataarray
批处理任务列表。
statusstring
每个批处理任务的状态。
has_moreboolean
has_more 为 true 时还有后续结果。授权
BearerAuth AuthorizationBearer <token>
API Key 身份验证。在 Dashboard > API > API Keys 中创建或管理 API Key。
位置: header
查询参数
limit?integer
范围
1 <= value <= 100after?string
响应
application/json
application/json