Debug R2 SQL diagnostics

R2 SQL diagnostic endpoint for troubleshooting log queries. Non-production only.

Authentication

AuthorizationBearer
API key or Clerk session token

Response

Diagnostics returned
successboolean
dataany

Errors

401
Unauthorized Error
404
Not Found Error