VayaFlow
Contacts

Send contacts to auto dialer

Schedules one or more contacts for the next available auto-dialer call slot. Each contact is matched to its playbook's auto-dialer configuration, and the service determines the optimal call time based on the contact's timezone, the sequencing rules, and attempt history. Contacts that cannot be scheduled (e.g. inactive config, max attempts reached, excluded status) are reported in the failed array. Processes up to 200 contacts per request with controlled concurrency.

POST
/api/v1/contacts/send-to-auto-dialer

Authorization

ApiKeyAuth
X-API-Key<token>

API key generated from your Vayaflow dashboard Settings page

In: header

Request Body

application/json

contactIds*array<>

Array of contact IDs to schedule for auto-dialer calls (1–200)

Items1 <= items <= 200

Response Body

application/json

application/json

application/json

package mainimport (  "fmt"  "net/http"  "io/ioutil"  "strings")func main() {  url := "https://api.vayaflow.com/api/v1/contacts/send-to-auto-dialer"  body := strings.NewReader(`{    "contactIds": [      "contact_abc123",      "contact_def456"    ]  }`)  req, _ := http.NewRequest("POST", url, body)  req.Header.Add("Content-Type", "application/json")  res, _ := http.DefaultClient.Do(req)  defer res.Body.Close()  body, _ := ioutil.ReadAll(res.Body)  fmt.Println(res)  fmt.Println(string(body))}
{
  "success": true,
  "data": {
    "succeeded": 0,
    "failed": [
      {
        "contactId": "string",
        "error": "string"
      }
    ],
    "details": [
      {
        "contactId": "string",
        "nextCallTime": "string"
      }
    ]
  }
}
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid input data",
    "details": [
      "string"
    ]
  }
}
{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Authentication required"
  }
}