List contacts
/api/v1/ext/contacts
List contacts the installer can see, with optional filtering and pagination.
Returns the contacts in one workspace owned by the authenticated installer. workspace_id is required — listing across all workspaces in a single call is not supported.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | query | number | yes | The workspace to list contacts from. Must belong to the installer. |
| limit | query | number | no | Page size — integer clamped to [1, 200]; default 50. Out-of-range or non-numeric values are normalised, NOT rejected; the applied bounds are echoed in the response pagination object (limit, max_limit, requested_limit, normalized). |
| page | query | number | no | 1-based page number; default 1. Clamped to >= 1 (page=0 becomes 1 and sets normalized). Rows are ordered by id descending, so with limit 200 and total 450 pages 1–3 return the full set. The applied page is echoed in pagination.page, with total_pages and the raw requested_page. |
Responses
| Status | When |
|---|---|
200 | OK |
400 | Missing required parameter |
401 | Missing or invalid token |
403 | Missing scope |
404 | workspace_id is not accessible to this token |
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/contacts" \
-H "Authorization: Bearer <ACCESS_TOKEN>"{
"success": true,
"data": [
{
"id": 1234,
"first_name": "Ada",
"last_name": "Lovelace",
"email": "ada@example.com",
"phone_number": "+15551234567",
"company_name": "Analytical Engines Ltd",
"website": "https://analyticalengines.example.com",
"linkedin_profile": "https://linkedin.com/in/ada",
"summary": "Mathematician + first programmer. Interested in early CRM tooling.",
"details": {
"source": "newsletter",
"priority": "high"
},
"address": "12 Mayfair St",
"city": "London",
"state": "Greater London",
"country": "United Kingdom",
"timezone": "Europe/London",
"custom_fields": {
"lead_score": 92,
"owner": "gary"
},
"is_verified_sms": true,
"is_verified_whatsapp": false,
"is_verified_imessage": false,
"last_contacted": "2026-05-20T11:02:09.000Z",
"notes": [
"Spoke at conference 2026-05-15"
],
"tags": [
"lead",
"priority"
],
"workspace_id": 7,
"user_id": 42,
"created_at": "2026-05-21T09:14:22.000Z",
"updated_at": "2026-05-21T09:14:22.000Z",
"deleted_at": null
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 50,
"max_limit": 200,
"total_pages": 1,
"requested_page": null,
"requested_limit": null,
"normalized": false
}
}The workspace to list contacts from. Must belong to the installer.
Page size — integer clamped to [1, 200]; default 50. Out-of-range or non-numeric values are normalised, NOT rejected; the applied bounds are echoed in the response `pagination` object (`limit`, `max_limit`, `requested_limit`, `normalized`).
1-based page number; default 1. Clamped to >= 1 (page=0 becomes 1 and sets `normalized`). Rows are ordered by id descending, so with `limit` 200 and `total` 450 pages 1–3 return the full set. The applied page is echoed in `pagination.page`, with `total_pages` and the raw `requested_page`.
« Delete workspace
Get contact »
