Get All Contacts

Fetches a list of all contacts for a specific integration (channel).

Endpoint

POST /api/contacts/v3/page

Base URL

https://api.rampwin.com

Description

Retrieves all contacts associated with a given channel (integration ID) with pagination support.

Supports

  • Pagination (page & page size)
  • Fetch all contacts (no filters required)
  • Optional page count
  • User-only filtering toggle

Authentication

This API requires:

  • JWT Bearer Token

Headers

HeaderTypeRequiredDescription
Content-TypestringYesapplication/json;charset=UTF-8
AcceptstringYesapplication/json, text/plain, /
AuthorizationstringYesBearer Token
OriginstringNohttps://app.rampwin.com
RefererstringNohttps://app.rampwin.com/
Accept-LanguagestringNoLanguage preferences
User-AgentstringNoClient user agent

Request Body

FieldTypeRequiredDescription
pagenumberYesPage number (starts from 1)
pageSizenumberYesNumber of records per page
integrationIdstringYesChannel / Integration ID
pageCountRequiredstringNo"yes" to include total page count
showOnlyUsersbooleanNoIf true, returns only user-type contacts
contactQueryTypearrayNoUsed for advanced querying (can be empty)
fitlers (typo)arrayNoFilters array (keep empty to fetch all contacts)

Example Request

curl --location 'https://api.rampwin.com/api/contacts/v3/page' \
--header 'accept: application/json, text/plain, */*' \
--header 'authorization: Bearer YOUR_TOKEN' \
--header 'content-type: application/json;charset=UTF-8' \
--data-raw '{
  "page": 1,
  "pageSize": 10,
  "integrationId": "Your_Channel_ID",
  "pageCountRequired": "yes",
  "showOnlyUsers": false,
  "contactQueryType": [],
  "fitlers": []
}'

Response

Success (200)

{
  "success": true,
  "data": {
    "contacts": [
      {
        "_id": "contact_id",
        "full_name": "John Doe",
        "phone_number": "91XXXXXXXXXX",
        "is_user": true,
        "createdAt": "2026-05-01T10:00:00Z",
        "updatedAt": "2026-05-04T10:00:00Z"
      }
    ],
    "page": 1,
    "pageSize": 10,
    "totalPages": 5
  }
}

Error (400)

{
  "success": false,
  "errors": {
    "message": "Invalid request parameters"
  }
}

Business Logic Notes

  • integrationId is mandatory to fetch contacts for a specific channel
  • Keep fitlers = [] to retrieve all contacts
  • If showOnlyUsers = true
    → Only registered users will be returned
  • If pageCountRequired = "yes"
    → Response includes total page count

Common Errors

ErrorDescription
Invalid tokenUnauthorized access
Validation errorMissing or incorrect fields
Integration not foundInvalid channel ID