REST API v1

CPAA API Reference

Programmatically trigger agent workflows, inspect connection statuses, and manage user memory stores.

Base URL:https://api.cpaa.ai/v1
POST/linking/send-otp
Rate Limit: 100 req/min

Dispatches a 6-digit one-time passcode to the user WhatsApp account.

Request Payload

{
  "phone_number": "919876543210"
}

Response JSON (200 OK)

{
  "status": "otp_sent",
  "expires_in": 300
}
POST/linking/verify-otp
Rate Limit: 100 req/min

Validates WhatsApp passcode and binds the phone number to the user tenant.

Request Payload

{
  "phone_number": "919876543210",
  "code": "123456"
}

Response JSON (200 OK)

{
  "linked": true,
  "phone_number": "+919876543210",
  "linked_at": "2026-10-26T12:00:00Z"
}
GET/tools/connected
Rate Limit: 100 req/min

Returns all active Composio workspace toolkits (Gmail, Calendar, Slack).

Request Payload

{}

Response JSON (200 OK)

{
  "tools": [
    { "toolkit": "gmail", "status": "connected" },
    { "toolkit": "googlecalendar", "status": "connected" }
  ]
}
POST/tools/triggers/gmail
Rate Limit: 100 req/min

Sets up Google Cloud Pub/Sub real-time webhook listener for incoming emails.

Request Payload

{}

Response JSON (200 OK)

{
  "status": "success",
  "configured": true,
  "latency_sla": "<60s"
}
POST/users/me/memories
Rate Limit: 100 req/min

Stores a new persistent semantic rule or preference into the agent vector store.

Request Payload

{
  "content": "I prefer 30-minute meetings in the morning."
}

Response JSON (200 OK)

{
  "id": "mem_9941a",
  "status": "indexed",
  "vector_dimensions": 1536
}