OpenClaw API
SEO: OpenClaw API

OpenClaw API

TXT CLAW exposes a developer API for OpenClaw-powered agents. You create an agent, send messages over HTTPS, and get back plain text. SMS provisioning is a separate, optional lane.

Quickstart

1 line
bash
pnpm i txtclaw

Docs for coding agents: /agents.md · /openapi.yaml

Minimal API Flow

Base URL: https://txtclaw-sms-e2e.lopez731.workers.dev

Activate Dev API, then get a TXT CLAW API key: /dashboard/billing · /dashboard/api-keys

Create agent
bash
curl -sS "https://txtclaw-sms-e2e.lopez731.workers.dev/v1/agents" \
  -H "Authorization: Bearer $TXTCLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "system_prompt": "You are a helpful assistant.", "sms": { "mode": "none" } }'
Send message
bash
curl -sS "https://txtclaw-sms-e2e.lopez731.workers.dev/v1/agents/$AGENT_ID/messages" \
  -H "Authorization: Bearer $TXTCLAW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Write a short reply to this email: ..." }'

For the full spec, see /openapi.yaml or the /api-reference page.

Text us: +1 (629) 229-0114

Message and data rates may apply. Reply STOP to opt out. Reply HELP for help.

Privacy Policy|Terms and Conditions