Skip to main content

Project Cloning via API

Updated over 2 weeks ago

Prerequisites

Authentication

All API requests require authentication using your API key as a query parameter:

api-key=%your-api-key%

API Endpoints

Base URL: https://api.dialer.brightcall.ai/api/v2

  • List Projects: GET /projects

  • Clone Project: POST /projects/clone/{projectId}

Cloning Parameters

The following query parameters are available when cloning a project:

Parameter

Type

Description

cloneContacts

boolean

Copy all contacts from original project

cloneAgents

boolean

Copy all assigned agents from original project

name

string

Name for the new project

Example Request

Here's an example of how to clone a project using cURL:

curl -X 'POST' \ 'https://api.dialer.brightcall.ai/api/v2/projects/clone/{projectId}?cloneContacts=true&cloneAgents=true&name=Test%20Clone%20Project&api-key=YOUR_API_KEY' \ -H 'accept: application/json' \ -d ''

Important Notes

  • The request body should be empty

  • Use POST method for the clone operation

  • URL encode the project name in the query parameter

Did this answer your question?