Skip to main content
GET
https://prod-contactswing-fastapi-962560522883.us-central1.run.app
/
v2
/
_customers
Get Customers
curl --request GET \
  --url https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/_customers \
  --header 'Authorization: <authorization>'
{
  "ctx_id": "<string>",
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "current_page": 123,
      "per_page": 123,
      "total_records": 123
    }
  },
  "message": "<string>"
}

Authorizations

Authorization
string
required
Enter your ContactSwing JWT Bearer token.

Query Parameters

page
integer
Page number. Default: 1
per_page
integer
Items per page. Default: 10

Response

200 OK - Customers retrieved successfully
ctx_id
string
Request context ID
data
object
data
array
Array of customer objects
id
string
Customer ID
name
string
Customer name
phone
string
Phone number
email
string
Email address
pagination
object
current_page
integer
Current page
per_page
integer
Items per page
total_records
integer
Total customers
message
string
“Request processed successfully”

Example Request

curl 'https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/_customers?page=1&per_page=20' \
  -H 'Authorization: Bearer YOUR_JWT_TOKEN'