Search Contact

Fetches a contact for a specific integration (channel) with support for sorting and filtering.

Endpoint

POST /api/contacts/v3/page

Base URL

https://api.rampwin.com

Description

Retrieves contacts based on pagination, sorting, and filter criteria.

Supports

  • Pagination (page & page size)
  • Sorting (ascending/descending)
  • Search filters (contains, equals, etc.)
  • Page count control
  • Channel-specific contact retrieval

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
sortFilterarrayNoSorting configuration
pageCountRequiredstringNo"yes" to include total page count
fitlers (typo)arrayNoFiltering conditions (nested array format)

Sort Filter Object

FieldTypeRequiredDescription
fieldstringYesField name (e.g., updatedAt)
orderstringYesasc / desc

Filter Object

FieldTypeRequiredDescription
field_namestringYesField to filter (e.g., full_name)
operatorstringYescontains, equals, etc.
field_valuestringYesValue to match

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",
  "sortFilter": [
    {
      "field": "updatedAt",
      "order": "desc"
    }
  ],
  "pageCountRequired": "yes",
  "fitlers": [
    [
      {
        "field_name": "full_name",
        "operator": "contains",
        "field_value": "John"
      }
    ]
  ]
}'

Response

Success (200)

{
  "success": true,
  "data": {
    "contacts": [
      {
        "_id": "contact_id",
        "full_name": "John Doe",
        "phone_number": "91XXXXXXXXXX",
        "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 scope contacts to a specific channel
  • fitlers is expected as a nested array (AND/OR logic handled internally)
  • If pageCountRequired = "yes"
    → Total page count will be returned in response

Common Errors

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