跳转到内容

cURL & Bash Example

此内容尚不支持你的语言。

This guide shows how to use curl and cast to interact with AgentBureau services from the command line.

Terminal window
API_URL="https://agentbureau-api.datafortress.cloud/v1/fax"
PAYLOAD='{"recipient": "+49123456789", "content": "Hello from cURL!"}'
# ... handle x402 flow using cast ...
Terminal window
API_URL="https://agentbureau-api.datafortress.cloud/v1/letters"
PAYLOAD='{"recipient_address": {...}, "content_pdf_url": "..."}'
Terminal window
API_URL="https://agentbureau-api.datafortress.cloud/v1/invoices"
PAYLOAD='{"customer_details": {...}, "line_items": [...]}'
Terminal window
API_URL="https://agentbureau-api.datafortress.cloud/v1/companies/formations"
PAYLOAD='{"company_name": "...", "shareholders": [...]}'