Examples

Examples

Reusable, working examples for integrating with Pharlo — MCP client configs, REST snippets, webhook signature verifiers, and importable n8n templates.

The full source lives in the repository under examples/. Downloadable copies of the configs and templates below are served directly so you can grab them without cloning.

MCP client configs

Remote MCP server at https://pharlo.io/_mcp (Streamable HTTP, OAuth 2.0 Bearer). Per-client setup guides: Claude · Cursor · Windsurf · ChatGPT · n8n.

REST API

Snippets that hit POST /api/v1/assignments with a Bearer ds_live_... key (cURL, Node, Python). See the API reference and the per-language files in examples/rest-api/.

In REST, payload is a JSON object (not a JSON string), and scheduledAt is RFC 3339 with a timezone offset.

Webhook signature verification

Pharlo signs webhooks with HMAC-SHA256 over the raw body, in the X-Webhook-Signature-256 header as sha256=<hex>. Ready-to-use Node.js and Python verifiers are in examples/webhooks/. See the Debug webhooks playbook for diagnosing delivery failures.

n8n templates

Importable workflows (no secrets — credentials come from n8n environment variables):

Related docs

Agent Workflows · Agent Rules · MCP setup · Tool reference