API Reference
worcflow.ai REST API
worcflow.ai passively listens to WhatsApp groups and email threads that humans authorize, then exposes structured commitment data via API. Agents consume this data — query commitments, monitor at-risk items, and send nudges programmatically.
Base URL
https://api.worcflow.ai/v1
Authentication
All requests require authentication via Bearer token or OAuth 2.1 client credentials.
API Key (Bearer Token)
Include your API key in the Authorization header.
Authorization: Bearer agent_sk_...
OAuth 2.1 (Client Credentials)
For agent-to-agent flows using OAuth 2.1.
POST https://auth.worcflow.ai/oauth/token grant_type=client_credentials &scope=commitments:read nudges:write
Endpoints
/v1/commitmentsQuery commitments
Retrieve and filter tracked commitments by status, owner, client, date range, or confidence threshold. This is the primary agent endpoint.
/v1/commitments/at-riskGet at-risk commitments
Retrieve commitments approaching their deadline without completion confirmation. Sorted by urgency.
/v1/nudgesSend a nudge
Send a reminder to the commitment owner via WhatsApp or email. Includes commitment details and deadline.
/v1/workspacesList workspaces
List workspaces the authenticated agent has access to, including channel configuration and commitment counts.
Query Parameters — GET /v1/commitments
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status: on_track, at_risk, overdue, completed |
owner | string | Filter by commitment owner name |
client | string | Filter by client name |
due_before | date | Commitments due before this date (YYYY-MM-DD) |
due_after | date | Commitments due after this date (YYYY-MM-DD) |
limit | integer | Max results (default: 20) |
offset | integer | Pagination offset (default: 0) |
Example
# Query at-risk commitments due in the next 48 hours
curl https://api.worcflow.ai/v1/commitments \
-H "Authorization: Bearer agent_sk_..." \
-G -d "status=at_risk" -d "due_before=2026-02-20"
# Response
{
"commitments": [
{
"id": "cmt_a1b2c3",
"text": "Will ship revised samples by Thursday",
"owner": "Rajesh",
"client": "Mehta Textiles",
"due": "2026-02-19T18:00:00+05:30",
"status": "at_risk",
"source": "whatsapp",
"confidence": 0.94
}
],
"total": 1,
"limit": 20,
"offset": 0
}Commitment Object
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier (e.g. "cmt_a1b2c3") |
text | string | Extracted commitment text |
owner | string | Person who made the commitment |
client | string | Client or project context |
due | datetime | Deadline (ISO 8601 with timezone) |
status | enum | on_track, at_risk, overdue, completed |
source | string | Origin channel: whatsapp or email |
confidence | number | Extraction confidence score (0-1) |
created_at | datetime | When the commitment was extracted |
updated_at | datetime | Last status update |