For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETQuery customer logs
      • GETDebug R2 SQL diagnostics
      • GETGet aggregated log stats
      • GETTrace a conversation
      • GETTrace an execution
Dashboard
LogoLogo
Runtype APILogs

Debug R2 SQL diagnostics

GET
/v1/logs/debug
GET
/v1/logs/debug
$curl https://api.runtype.com/v1/logs/debug \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "success": true,
3 "data": {
4 "query": "SELECT * FROM logs WHERE level = 'debug' ORDER BY timestamp DESC LIMIT 10;",
5 "executionTimeMs": 12,
6 "rowsReturned": 10,
7 "logs": [
8 {
9 "timestamp": "2024-06-15T10:23:45Z",
10 "level": "debug",
11 "message": "Connection pool initialized",
12 "context": {
13 "connectionId": "conn-1234",
14 "durationMs": 5
15 }
16 },
17 {
18 "timestamp": "2024-06-15T10:23:46Z",
19 "level": "debug",
20 "message": "SQL query executed",
21 "context": {
22 "queryId": "qry-5678",
23 "rowsAffected": 3
24 }
25 }
26 ]
27 }
28}

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

Was this page helpful?
Previous

Get aggregated log stats

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Response

Diagnostics returned
successboolean
dataany

Errors

401
Unauthorized Error
404
Not Found Error