Skip to main content
Endpoint:
https://www.greetmate.ai/api/make-outgoing-call

Headers

Authorization
string
required
Bearer token used for authentication. Authorization: Bearer <api_token>
X-API-KEY
string
Optional duplicate of the bearer token. Often set by Zapier automatically.
Content-Type
string
required
application/json
Accept
string
required
application/json
X-Team-Id
integer
Optional. Scope the request to a specific team.

Team ID

Body Parameters

number
string
required
Destination phone number in E.164 format (e.g., +15551234567).
custom_variables
object
Optional key-value pairs passed to the workflow/call.

Custom Variables
bot_id
integer
Optional. Specific bot/agent to use.

Bot ID
workflow_id
integer
Optional. Workflow to execute.
team_id
integer
Optional. Target team. Prefer the X-Team-Id header when possible.

Request Example (cURL)

curl -X POST "https://www.greetmate.ai/api/make-outgoing-call" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Team-Id: 42" \
  -d '{"number":"+15551234567","custom_variables":{"lead_name":"John Doe","source":"Zapier"},"bot_id":101,"workflow_id":202}'

Example Request (Zapier)

{
  "number": "+15551234567",
  "custom_variables": {"lead_name": "John Doe", "source": "Zapier"},
  "bot_id": 101,
  "workflow_id": 202,
  "team_id": 42
}

Response

{
  "status": "success",
  "call_id": "call_abc123",
  "message": "Call initiated."
}