Documentation Index
Fetch the complete documentation index at: https://docs.tedro.io/llms.txt
Use this file to discover all available pages before exploring further.
API Quickstart
This guide walks you through making your first authenticated API call. By the end, you will have listed your workflows, created a contact, and retrieved conversations — all from the command line.Prerequisites
- A Tedro account (sign up)
- A workspace with at least one workflow
- cURL installed on your machine (pre-installed on macOS and most Linux distributions)
curl -X POST https://api.tedro.io/api/auth/sign-in/email \
-H "Content-Type: application/json" \
-c cookies.txt \
-d '{
"email": "you@example.com",
"password": "your-password"
}'
You should receive a JSON response with your user details. The session cookie is saved to
cookies.txt.Find your workspace ID in the dashboard URL (
/app/[workspaceId]/overview) and export it as a variable:{
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Customer Support Bot",
"status": "published"
}
]
}
curl -X POST https://api.tedro.io/api/contacts \
-b cookies.txt \
-H "x-workspace-id: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Doe",
"phone": "+14155551234"
}'
curl "https://api.tedro.io/api/conversations?limit=5" \
-b cookies.txt \
-H "x-workspace-id: $WORKSPACE_ID"
Next Steps
Authentication Details
Learn about session lifecycle, brute force protection, and Node.js authentication.
Code Examples
cURL and Node.js examples for workflows, contacts, conversations, runs, and more.