Whitelabel Callfluent AI for your agency’s services with full flexibility Explore Whitelabel

CallFluent API: Workspace Management

Share this guide
David Perrin
3 mins read

The Workspace API allows you to create, manage, and organize workspaces in CallFluent. Each workspace can contain multiple AI agents, members, and configurations.

Base URL

All requests must be sent to:
https://api.callfluent.ai/api


Workspace Endpoints

1. Create a New Workspace

POST /workspace/create

Creates a new workspace with the given name.

Header

Include your API key in the Authorization header:

Authorization: Bearer {api_key}  

Request Body

FieldTypeRequiredDescriptionExample
namestringtrueName of the new workspace"First Workspace"

Example Body

{

   “name”: “First Workspace”

}

Example Request

curl -X POST https://api.callfluent.ai/api/workspace/create \
  -H "Authorization: Bearer {api_key}" \
  -H "Content-Type: application/json" \
  -d '{"name": "First Workspace"}'

Response

Example Success – 200

status code: 200: workspace list

{status: true, data: [ {id: 1, name: “first workspace}, {id: 2, name: “second workspace}

Errors

  • 500 (Server Error) – Server error.

server error: status code: 500

{status: false, error: error_message}
  • 400 (Bad Request) – Workspace limit error.

workspace limit error: status code: 400

{ 
        status: false,
        error: "Workspace creation limit exceeded.",
        message: "Please delete some before creating new ones.",
}

2. Get All Workspaces

GET /workspace/get-all

Retrieves all workspaces.

Header

Authorization: Bearer {api_key}  

Parameter

None

Example Request

curl -X GET https://api.callfluent.ai/api/workspace/get-all \
  -H "Authorization: Bearer {api_key}"

Response

Example Success

status code: 200: workspace list

{workspaces: [ {id: 1, name: “first workspace}, {id: 2, name: “second workspace} ] }

Errors

  • 500 (Server Error) – Server error.

server error: status code: 500

{status: false, error: error_message}

3. Get Workspace Details

GET /workspace/get/{id}

Retrieves details of a specific workspace.

Path Parameters

FieldTypeRequiredDescriptionExample
idnumbertrueWorkspace ID1

Example Request

curl -X GET https://api.callfluent.ai/api/workspace/get/1 \
  -H "Authorization: Bearer {api_key}"

Response

Example Success

status code: 200: workspace detail

{status: true, data: workspaceInfo }

Errors

  • 500 (Server Error) – Server error.

server error: status code: 500

{status: false, error: error_message}

4. Get Workspace Voice List

GET /workspace/{id}/voices

Retrieves the available voice list for a workspace.

Header

Authorization: Bearer {api_key}  

Path Parameters

FieldTypeRequiredDescriptionExample
idnumbertrueWorkspace ID14

Example Request

curl -X GET https://api.callfluent.ai/api/workspace/14/voices \
  -H "Authorization: Bearer {api_key}"

Response

Example Success

status code: 200: workspace voice list

[
  {
    "value": "alloy",
    "label": "Friendly and expressive male",
    "brand": "openai"
  },
  {
    "value": "echo",
    "label": "Clear and natural male",
    "brand": "openai"
  }
]

Errors

  • 500 (Server Error) – Server error.

server error: status code: 500

{status: false, error: error_message}

5. Update Workspace

PUT /workspace/update/{id}

Updates a workspace.

Header

Authorization: Bearer {api_key}  

Path Parameters

FieldTypeRequiredDescriptionExample
idnumbertrueWorkspace ID14

Request Body

FieldTypeRequiredDescriptionExample
namestringfalseWorkspace name"New Workspace"
sidstringfalseTwilio SIDACXXXXXXXX
auth_tokenstringfalseTwilio auth tokenb3a1dXXXX
elevenlabs_keystringfalseElevenLabs API keysk_XXX
openai_keystringfalseOpenAI API keysk-proj-XXX
maxMinsnumberfalseWorkspace monthly limit minutes300
maxMembersnumberfalseMax member count10
maxAgentsnumberfalseMax agent count6

Example Request

curl -X PUT https://api.callfluent.ai/api/workspace/update/14 \
  -H "Authorization: Bearer {api_key}" \
  -H "Content-Type: application/json" \
  -d '{ "name": "New Workspace", "maxMins": 9999 }'

Response

Example Success

status code: 200: workspace list

{status: true, data: [ {id: 1, name: “first workspace}, {id: 2, name: “second workspace} ] }

Errors

  • 500 (Server error) – Server error.

server error: status code: 500

{status: false, error: error_message}
  • 403 (Permission Error) – Permission error.

permission error: status code: 403

{ 
        status: false,
        msg: "Your account doesn't have the permission to access that page."
}

6. Invite User to Workspace

POST /workspace/invite-user

Create a new guest and send an invite email.

Header

Authorization: Bearer {api_key}  

Request Body

FieldTypeRequiredDescriptionExample
workspace_idnumbertrueWorkspace ID14
emailstringtrueEmail of the new member[email protected]

Example Request

curl -X POST https://api.callfluent.ai/api/workspace/invite-user \
  -H "Authorization: Bearer {api_key}" \
  -H "Content-Type: application/json" \
  -d '{ "workspace_id": 14, "email": "[email protected]" }'

Response

Example Success

status code: 200: workspace list

{status: true, data: [ {id: 1, name: “first workspace}, {id: 2, name: “second workspace} ] }

Errors

  • 500 (Server Error) – Server error.

server error: status code: 500

{status: false, error: error_message}
  • 403 (Permission error) – Permission error.

permission error: status code: 403

{ 
        status: false,
        msg: "Your account doesn't have the permission to access that page."
}

7. Delete Workspace Member

DELETE /workspace/invite-delete/{id}

Deletes a member from the workspace.

Header

Authorization: Bearer {api_key}  

Path Parameters

FieldTypeRequiredDescriptionExample
idnumbertrueWorkspace user ID11

Example Request

curl -X DELETE https://api.callfluent.ai/api/workspace/invite-delete/11 \
  -H "Authorization: Bearer {api_key}"

Response (Success – 200)

Example Success

status code: 200: workspace list

{status: true, data: [ {id: 1, name: “first workspace}, {id: 2, name: “second workspace} ] }

Errors

  • 500 (Server Error) – Server error.

server error: status code: 500

{status: false, error: error_message}
  • 403 (Permission error) – Permission error.

permission error: status code: 403

{ 
        status: false,
        msg: "Your account doesn't have the permission to access that page."
}

8. Delete a Workspace

DELETE /workspace/delete/{id}

Deletes a workspace.

Header

Authorization: Bearer {api_key}  

Path Parameters

FieldTypeRequiredDescriptionExample
idnumbertrueWorkspace ID1

Example Request

curl -X DELETE https://api.callfluent.ai/api/workspace/delete/1 \
  -H "Authorization: Bearer {api_key}"

Response

Example Success

status code: 200: workspace list

{status: true, data: [ {id: 2, name: “second workspace} ] }

Errors

  • 500 (Server Error) – Server error.

server error: status code: 500

{ status: false, error: error_message}
  • 403 (Permission Error) – Permission error.

permission error: status code: 403

{ 
        status: false,
        msg: "Your account doesn't have the permission to access that page."
}

9. Get GHL Calendar List

GET /workspace/calendars/{id}

Retrieves the list of GHL calendars linked to the workspace.

Header

Authorization: Bearer {api_key}  

Path Parameters

FieldTypeRequiredDescriptionExample
idnumbertrueWorkspace ID1

Response

Example Success

status code: 200: workspace list

{status: true, data: GHL_CALENDAR_LIST}

Errors

  • 500 (Server Error) – Server error.
{status: false, error: error_message}
  • 403 (Permission Error) – Permission error.
  { 
        status: false,
        msg: "Your account doesn't have the permission to access that page."
}

Conclusion

This covers all Workspace API endpoints for managing workspaces in CallFluent. For agent management, see the Agent Services Documentation.

Leave a reply

Your email address will not be published. Required fields are marked *

Automate your phone calls with AI

Create artificial inteligence powered, human-like voice agents ready to handle inbound and outbound calls 24/7

Discover Callfluent

Frequently asked questions

Get answers to commonly asked questions about our cutting-edge AI voice call technology & learn how our platform revolutionizes customer engagement line never before.

No, you don’t need to download or install anything. Callfluent is a cloud based app, that means that it is hosted in the cloud and you can access it from any device anytime.

Have more questions ? Check out our Knowledge base