HTTP Method
Method:
PUTRequest Body: Empty (
{}or no body)
Authentication
Use the
api-keyquery parameter in the URL.Replace
<account-api-key>with your actual account API key. You can obtain the API key at:https://app.brightcall.ai/pages/general-settings
URL Format
<https://api.dialer.brightcall.ai/api/v1/projects/autoplay/><projectId>/<state>?api-key=<account-api-key>
Parameter  | Description  | 
  | The ID of the project you want to modify  | 
  | Use   | 
  | Your BrightCall account API key  | 
Enable Autoplay
PUT <https://api.dialer.brightcall.ai/api/v1/projects/autoplay/><projectId>/1?api-key=<account-api-key>
Purpose: Enables autoplay for the specified project.
Request Body: Leave empty.
Disable Autoplay
PUT <https://api.dialer.brightcall.ai/api/v1/projects/autoplay/><projectId>/0?api-key=<account-api-key>
Purpose: Disables autoplay for the specified project.
Request Body: Leave empty.
Example (with curl)
curl -X PUT "<https://api.dialer.brightcall.ai/api/v1/projects/autoplay/12345/1?api-key=abc123>" \\ -H "Content-Type: application/json"
curl -X PUT "<https://api.dialer.brightcall.ai/api/v1/projects/autoplay/12345/0?api-key=abc123>" \\ -H "Content-Type: application/json"
