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.

Updated over 2 weeks ago


HTTP Method

  • Method: PUT

  • Request Body: Empty ({} or no body)


Authentication


URL Format

<https://api.dialer.brightcall.ai/api/v1/projects/autoplay/><projectId>/<state>?api-key=<account-api-key>

Parameter

Description

<projectId>

The ID of the 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/><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"

Did this answer your question?