{"ok":true,"name":"Microsoft Mail Auto Export API","version":"v1","base_url":"https://oai-auth.xhos.fyi/api/v1","authentication":{"type":"Bearer","redeem_endpoint":"/api/v1/auth/redeem","description":"先使用 CDK 验证并获取会话令牌，后续请求通过 Authorization: Bearer <session_token> 认证。"},"billing":"提交任务时预占额度；只有 OAuth 回调成功并生成文件后才扣除 1 次。授权失败、取消或超时释放预占；CPA 上传失败不撤销已成功授权的扣费。","task_policy":{"source":"open_api","retry_allowed":false,"account_modes":["microsoft","link","totp"],"manual_code_supported":false,"timeout_seconds":600,"timeout_includes_queue":true,"description":"每个账号只发起一次授权；失败、限流、超时或执行中服务重启均不重新授权。正常验证码轮询及首次执行前排队不属于重试。"},"idempotency":{"header":"Idempotency-Key","required":false,"recommended":true,"format":"1-128 个可见 ASCII 字符，不含空格；推荐 UUID","scope":"同一 CDK，跨会话令牌有效","replay":"同键同 JSON 内容返回原批次且不重复预占；不同内容返回 409；省略则每次创建新批次","lookup":"/api/v1/tasks/by-idempotency-key"},"request_example":{"account_text":"user@example.com|password|JBSWY3DPEHPK3PXP","account_mode":"totp","concurrency":1,"pool_push_cpa":{"base_url":"https://cpa.example.com","management_key":"<management-key>","upload_mode":"append"}},"summary":{"query":"?summary=1","response_fields":["batch_id","summary"],"authorization":"total/success/failed/pending/skipped；取消计入 skipped","cpa_push":"enabled/total/success/failed/pending/skipped；授权失败或取消计入 skipped，failed 仅指上传失败","timing":"created_at/completed_at 为 Unix 秒；elapsed_seconds 包含排队、授权和 CPA 上传；finished 等待两阶段全部终止"},"endpoints":[{"method":"POST","path":"/api/v1/auth/redeem","description":"验证 CDK 并获取 API 会话令牌"},{"method":"GET","path":"/api/v1/me","description":"查询剩余次数、任务状态和服务规则"},{"method":"POST","path":"/api/v1/tasks","description":"提交一个或多个邮箱账号任务"},{"method":"GET","path":"/api/v1/tasks/{batch_id}","description":"查询批次进度、日志和任务状态"},{"method":"GET","path":"/api/v1/tasks/by-idempotency-key","description":"通过 Idempotency-Key 请求头查回已创建批次；未创建返回 404"},{"method":"POST","path":"/api/v1/jobs/{job_id}/codex-usage/refresh","description":"重新查询已完成任务的 Codex 额度"},{"method":"POST","path":"/api/v1/tasks/{batch_id}/cancel","description":"结束指定批次"},{"method":"GET","path":"/api/v1/tasks/{batch_id}/download/{format}","description":"下载 cpa、sub2、sub2-merged 或 cockpit 格式"}]}