HTTP Method
Method:
PUTRequest Body: Empty JSON object (
{})
This endpoint requires an AI Agent project and API autoplay access for your account.
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/%PROJECT_ID%/%STATE%?api-key=%ACCOUNT_API_KEY%
Parameter | Description |
| The ID of the AI Agent project you want to modify |
| Use |
| 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 '{}'
