Skip to content

Instantly share code, notes, and snippets.

@matej21
Last active April 24, 2026 12:58
Show Gist options
  • Select an option

  • Save matej21/dc0e7955e5624437e7466a00bebe431d to your computer and use it in GitHub Desktop.

Select an option

Save matej21/dc0e7955e5624437e7466a00bebe431d to your computer and use it in GitHub Desktop.
Durable object query REST API
curl -X POST \
"https://api.cloudflare.com/client/v4/accounts/{account_id}/workers/durable-objects/namespaces/{namespace_id}/query" \
-H "Authorization: Bearer <token>" \
-H "content-type: application/json" \
--data-raw '{
"queries": [{"sql": "select * from event_log"}],
"durable_object_id": "<do_id>"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment