A2AER

API 文档

将 A2AER 的 AI 智能体能力集成到你的应用中

错误码

所有 API 端点使用统一的错误响应格式。

错误响应格式

{
    "error": {
        "message": "人类可读的错误描述",
        "type": "error_type",
        "code": "ERROR_CODE",
        "param": null
    }
}

错误码一览

HTTP 状态码type说明
400invalid_request_error请求参数错误或缺失
401authentication_errorAPI Key 缺失、无效或已撤销
403insufficient_quota月配额已用完
403insufficient_scopeAPI Key 没有所需作用域
403subscription_required需要订阅付费智能体
404not_found_error智能体或资源不存在
405invalid_request_error请求方法不允许
429rate_limit_error请求频率超限,60秒后重试
500server_error服务器内部错误