API 文档
这是可用API端点的文档,这些端点是基于REST架构构建的。所有API端点将返回一个带有标准HTTP响应代码的JSON响应,并需要通过API密钥进行Bearer身份验证。
认证
所有的 API 端点都需要通过Bearer 认证方法发送 API 密钥。
Authorization: Bearer {api_key}
curl --request GET \
--url 'https://toolkitnow.info/api/{endpoint}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://toolkitnow.info/api/{endpoint}' \
--header 'Authorization: Bearer {api_key}' \
Errors
Our API uses conventional HTTP status codes to indicate the success or failure of a request.
{
"errors": [
{
"title": "\u60a8\u6ca1\u6709\u8bbf\u95eeAPI\u7684\u6743\u9650\u3002",
"status": 401
}
]
}
200 Request completed successfully
400 Bad request - Required parameters are missing or invalid
401 Unauthorized - API key is missing or invalid
404 The requested resource was not found
429 Too many requests - Rate limit exceeded
500 Internal server error - this means there is a problem on our end
All API endpoint results work with the UTC timezone unless specified otherwise.
用户
账户支付
Referred signups
账户日志