Base URL and authentication
Run these requests from your server. Replace the example IDs and addresses with values from your workspace. Never place a Zipzoe key in browser code.
export ZIPZOE_BASE_URL="https://your-zipzoe-domain.example"
export ZIPZOE_API_KEY="zz_live_replace_me"Every request uses Authorization: Bearer $ZIPZOE_API_KEY. Writes also use Content-Type: application/json and a unique Idempotency-Key. One agent-bound key can use all four services when it has mail:write, calls:write, ai:write, wallet:read and operations:read. Account access and limits still apply.
Submit a send request with the agent that owns the sending mailbox.
curl -i "$ZIPZOE_BASE_URL/v1/mail/send" \
-H "Authorization: Bearer $ZIPZOE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: mail-2026-11-30-001" \
-d '{"agentId":"agt_mail_01","to":"[email protected]","subject":"Your Zipzoe update","text":"The requested report is ready."}'Accepted response (202):
{
"id": "op_mail_01",
"kind": "mail.send",
"status": "queued",
"result": null,
"errorCode": null,
"createdAt": "2026-11-30T08:30:00.000Z"
}When send approval is enabled, status is awaiting_approval. A 202 confirms acceptance, not inbox delivery. Check GET /v1/operations/{id} and Mail → Delivery.
Voice
The destination must use international format and the agent must have an assigned caller number.
curl -i "$ZIPZOE_BASE_URL/v1/calls/dial" \
-H "Authorization: Bearer $ZIPZOE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: call-2026-11-30-001" \
-d '{"agent_id":"agt_voice_01","to":"+919876543210"}'Accepted response (202):
{
"id": "op_call_01",
"kind": "voice.call",
"status": "awaiting_approval",
"result": null,
"errorCode": null,
"createdAt": "2026-11-30T08:31:00.000Z"
}The initial response does not mean the phone rang. An authorized user approves the operation, then the operation records the provider result.
Models
First discover the exact chat IDs available to this credential.
curl -s "$ZIPZOE_BASE_URL/v1/models?type=chat" \
-H "Authorization: Bearer $ZIPZOE_API_KEY"Successful response (200):
{
"object": "list",
"data": [
{"id":"zipzoe-fast","object":"model","created":1796027400,"owned_by":"zipzoe"}
],
"items": ["zipzoe-fast"]
}Copy data[].id exactly into the completion request.
curl -s "$ZIPZOE_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer $ZIPZOE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: model-2026-11-30-001" \
-d '{"model":"zipzoe-fast","messages":[{"role":"user","content":"Reply with hello."}],"max_tokens":32}'Successful response (200):
{
"id": "chatcmpl-op_model_01",
"object": "chat.completion",
"created": 1796027460,
"model": "zipzoe-fast",
"choices": [{"index":0,"message":{"role":"assistant","content":"Hello."},"finish_reason":"stop"}],
"usage": {"prompt_tokens":9,"completion_tokens":2,"total_tokens":11}
}Set stream:true to receive text/event-stream chunks ending with [DONE].
Wallet
Read service and agent-payment balances without exposing payment credentials.
curl -s "$ZIPZOE_BASE_URL/v1/wallet" \
-H "Authorization: Bearer $ZIPZOE_API_KEY"Successful response (200):
{
"balanceCents": 1000,
"currency": "USD",
"agentPay": {
"status": "pending",
"address": null,
"network": null,
"balanceUSDC": "0.000000",
"availableUSDC": "0.000000"
}
}Treat balanceCents in its returned currency. INR service credits and USDC are separate balances. Transfers require the separately enabled pay:write permission and user approval.
Follow accepted work
curl -s "$ZIPZOE_BASE_URL/v1/operations/op_mail_01" \
-H "Authorization: Bearer $ZIPZOE_API_KEY"Reuse the same idempotency key only for an identical retry. For 429, respect Retry-After. For a timeout or 5xx, inspect the original operation before issuing new work.