All endpoints should pass in the
userId in the request body. You can find your userId in the sa.dialgen.ai dashboard.-
Endpoint:
POST /api/v1/call/dial -
Method:
POST -
Request Body:
-
to(string, required): The E.164 formatted phone number to dial. -
agentConfigId(string, required): The ID of the agent to use. -
userId(string, required): The ID of the user owning the agent. -
contactId(string, optional): Provide if the contact already exists. -
callerDetails(object, optional): IfcontactIdis not provided, this object is used to create/update the contact. -
statusCallBackUrl(string, optional): The URL to send the call-status callback to. When the call completes and summary is generated, a POST request will be sent to this URL with the following payload:
-
-
Success Response (200 OK):
Returns the
callIdwhich you must use to track the call’s status. -
Error Response (409 Conflict):
Returned if a call is already in progress for this contact.