Calls

Send Call

Initiate a call to a phone number. The call will be made using the organization's virtual assistant associated with the API key.

POST
/v1/calls

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication for API access.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.sophiie.ai/v1/calls" \  -H "Content-Type: application/json" \  -d '{    "name": "John Doe",    "phoneNumber": "+1234567890"  }'
{
  "message": "Call initiated successfully"
}
{
  "message": "string"
}
{
  "success": false,
  "message": "Invalid or expired token",
  "error": {
    "status": 401,
    "message": "Invalid or expired token"
  }
}
{
  "success": false,
  "message": "Not found",
  "error": {
    "status": 404,
    "message": "Not found"
  }
}
{
  "success": false,
  "message": "Internal server error",
  "error": {
    "status": 500,
    "message": "Internal server error"
  }
}