RaabtaHQ
List inquiries

List inquiries

GET/api/v1/inquiries

scope inquiries:readPaginated

Lists the account’s inquiries, newest first, with cursor pagination. Filter by status, topic, source or sender email, search the free text, or page through everything received since a timestamp.

Query parameters

NameTypeDescription
limitoptional
integerPage size, 1–100Default: 20
cursoroptional
stringThe `next_cursor` from the previous page
statusoptional
string (enum)Only inquiries in this statenewin_progressclosedspam
topicoptional
stringExact match on your own topic string
sourceoptional
stringExact match on the form name
emailoptional
stringExact sender email match, case-insensitive
qoptional
stringCase-insensitive match on name, email, phone, company, topic or message
created_sinceoptional
string (date-time)Only inquiries created at or after this time
updated_sinceoptional
string (date-time)Only inquiries updated at or after this time
Request
curl "https://your-crm.example.com/api/v1/inquiries?limit=20&status=new" \
  -H "Authorization: Bearer $RAABTA_API_KEY"
Response · 200 OK
{
  "data": [
    {
      "id": "a3f1c2d4-5e6b-4f78-9a0b-1c2d3e4f5a6b",
      "status": "new",
      "topic": "Quote request",
      "name": "Ayesha Khan",
      "email": "ayesha@example.com",
      "phone": "+971501234567",
      "company": "Khan Trading LLC",
      "message": "Do you cover Jumeirah? Looking for a quote for two units.",
      "source": "Pricing page",
      "source_path": "/pricing",
      "metadata": {
        "Budget": "AED 10,000–25,000",
        "Preferred contact": "WhatsApp",
        "Units": 2
      },
      "first_touched_at": null,
      "created_at": "2026-09-02T10:05:00.000Z",
      "updated_at": "2026-09-02T10:05:00.000Z"
    }
  ],
  "meta": {
    "next_cursor": null,
    "has_more": false,
    "limit": 20
  }
}

Response

Wrapped in { data: [...], meta }
NameTypeDescription
idrequired
string (uuid)UUID
statusrequired
string (enum)Where the inquiry sits in triagenewin_progressclosedspam
topicrequired
stringYour own category for the inquiry — free text, e.g. "Billing"
namerequired
stringWho sent it
emailrequired
string | nullSender email, lowercased; null if the form collected only a phone
phonerequired
string | nullSender phone; null if the form collected only an email
companyrequired
string | nullSender company, when the form asks
messagerequired
stringWhat they wrote
sourcerequired
string | nullWhich form this came from, e.g. "Pricing page"
source_pathrequired
string | nullThe page path the form was on
metadatarequired
map<string, string | number | boolean | null>Any additional form fields, verbatim — flat key/value pairs. Shown in the inbox and included in the CSV export.
first_touched_atrequired
string (date-time) | nullWhen someone first acted on it; null while untouched
created_atrequired
string (date-time)ISO 8601 timestamp
updated_atrequired
string (date-time)ISO 8601 timestamp

Errors

StatusCodeWhen
400bad_requestThe request could not be parsed: malformed JSON, an invalid cursor, or a query parameter of the wrong shape.
400validation_errorThe body or query failed validation. `details` lists each failing field with a `path` and a `message`.
401unauthorizedNo usable API key: the Authorization header is missing or malformed, or the key is unknown, revoked or expired. The three are deliberately indistinguishable.
403forbiddenThe key is valid but lacks the scope this endpoint requires, or the request came from an address outside the key’s IP allowlist. The message says which.
403account_suspendedThe account this key belongs to is suspended. Rotating the key will not help; contact support.
422unprocessableThe request was well-formed but cannot be carried out. `reason` is a stable string saying why (for example `outside_window` or `stage_not_in_pipeline`).
429rate_limitedThe per-key budget, or the per-IP budget for failed authentication, is exhausted. Honour `Retry-After` before retrying.
500internalSomething failed on our side. Safe to retry with the same Idempotency-Key; quote `request_id` if it persists.