What is the name of the domain?
What is the error number?
1010
What is the error message?
auth.forbidden
What is the issue you’re encountering
The following request return an error code 1010
What are the steps to reproduce the issue?
Configure a token to interact with Cloudflare API with permissions (All zones - Logs:Read, Analytics:Read / MAIN - Access: Custom Pages:Read, Account Analytics:Read, Access: Audit Logs:Read, Logs:Read, Account Filter Lists:Read) and a proper IP allowlist
Test token with this endpoint https://api.cloudflare.com/client/v4/user/tokens/verify
{
“result”: {
“id”: “xyz123”,
“status”: “active”,
“not_before”: “2024-07-05T00:00:00Z”,
“expires_on”: “2025-07-06T23:59:59Z”
},
“success”: true,
“errors”: ,
“messages”: [
{
“code”: 10000,
“message”: “This API Token is valid and active”,
“type”: null
}
]
}
Try to retrieve received logs with this call:
GET https://api.cloudflare.com/client/v4/zones/xyz123/logs/received?start=2024-08-22&end=2024-08-23&fields=ClientASN
Get this error:
{
“result”: null,
“success”: false,
“errors”: [
{
“code”: 1010,
“message”: “auth.forbidden”
}
],
“messages”:
}
For both calls Authorization header is used with this content:
Bearer xyz123
Any help will be appreciated.