Skip to main content
GET
https://prod-contactswing-fastapi-962560522883.us-central1.run.app
/
v2
/
_calls
Get Calls List
curl --request GET \
  --url https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/_calls \
  --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, must be >= 1
per_page
integer
Items per page. Default: 10, must be between 1 and 100

Response

200 OK - Calls list retrieved successfully
ctx_id
string
Request context ID
data
object
data
array
Array of call objects
id
string
Call ID
customer_name
string
Customer name
status
string
Call status
duration
integer
Call duration (seconds)
pagination
object
current_page
integer
Current page
per_page
integer
Items per page
total_records
integer
Total calls
message
string
“Request processed successfully”
400 Bad Request - Invalid pagination parameters 401 Unauthorized - Invalid or missing token 429 Too Many Requests - Rate limit exceeded (30 calls per minute) 500 Internal Server Error - Server error

Example Request

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