Prerequisites
- A Twexapi API key
- An MCP-capable agent or framework connected to
https://api.twexapi.io/mcp - A webhook URL from n8n, Zapier, Make, Pipedream, or your internal workflow runner
- A destination system such as Sheets, Airtable, Notion, Slack, a CRM, or a database
Recommended flow
1
Collect with an MCP-capable agent
Use Claude Code, Cursor, Codex CLI, LangChain, Pydantic AI, or another MCP client connected to
https://api.twexapi.io/mcp.2
Return strict JSON
Ask the agent for a stable schema with IDs, cursors, route names, and rows.
3
Send to the no-code tool
Post the JSON to a webhook in n8n, Zapier, Make, Pipedream, or your internal workflow runner.
4
Continue through REST if needed
Scheduled or high-volume jobs can call Twexapi REST directly with
Authorization: Bearer YOUR_API_KEY.Copy-paste agent prompt
Workflow mapping
Result handoff
Keep the workflow payload small and stable. Do not pass the full raw response to Slack messages, CRM notes, or spreadsheet rows unless you also archive it separately.Recipe: Agent research to webhook
- Connect an AI agent to Twexapi MCP.
- Ask it for strict JSON using the prompt above.
- POST the JSON to your workflow webhook.
- Use the workflow tool’s iterator or loop step over
tweets. - Upsert rows by
tweet_id.
Recipe: Scheduled continuation
For daily jobs, keep the first run agent-assisted and make later runs deterministic:- Store
route_used, request parameters, andnext_cursor. - Run scheduled calls through Twexapi REST with
Authorization: Bearer YOUR_API_KEY. - Stop when
has_moreis false or the workflow reaches its row limit. - Send exceptions back to an agent only when the selected endpoint or query needs to change.
Testing checklist
- Confirm the webhook receives valid JSON, not Markdown.
- Confirm
tweet_idoruser_idis used for dedupe. - Confirm
next_cursoris persisted outside chat history. - Confirm write actions are represented as plans until a human approves them.
- Confirm API keys, cookies, and auth tokens are never sent to user-visible destinations.