Skip to main content

How to Enable or Disable Autoplay via API

This guide explains how to enable or disable the autoplay setting for a specific project using the BrightCall Dialer API.


HTTP Method

  • Method: PUT

  • Request Body: Empty JSON object ({})

This endpoint requires an AI Agent project and API autoplay access for your account.


Authentication


URL Format

https://api.dialer.brightcall.ai/api/v1/projects/autoplay/%PROJECT_ID%/%STATE%?api-key=%ACCOUNT_API_KEY%

Parameter

Description

%PROJECT_ID%

The ID of the AI Agent project you want to modify

%STATE%

Use 1 to enable autoplay, 0 to disable

%ACCOUNT_API_KEY%

Your BrightCall account API key


Enable Autoplay

PUT https://api.dialer.brightcall.ai/api/v1/projects/autoplay/%PROJECT_ID%/1?api-key=%ACCOUNT_API_KEY%

  • Purpose: Enables autoplay for the specified project.

  • Request Body: {}.


Disable Autoplay

PUT https://api.dialer.brightcall.ai/api/v1/projects/autoplay/%PROJECT_ID%/0?api-key=%ACCOUNT_API_KEY%

  • Purpose: Disables autoplay for the specified project.

  • Request Body: {}.


Example (with curl)

curl -X PUT \
"https://api.dialer.brightcall.ai/api/v1/projects/autoplay/%PROJECT_ID%/1?api-key=%ACCOUNT_API_KEY%" \
-H "Content-Type: application/json" \
-d '{}'

curl -X PUT \
"https://api.dialer.brightcall.ai/api/v1/projects/autoplay/%PROJECT_ID%/0?api-key=%ACCOUNT_API_KEY%" \
-H "Content-Type: application/json" \
-d '{}'


Did this answer your question?