Skip to main content
POST
/
workspaces
Create workspace
curl --request POST \
  --url https://app2.freyavoice.ai/api/v2/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "logoPath": "<string>",
  "workspaceSettings": {
    "language": "en",
    "webhooks": {}
  },
  "integrationVersion": "v1",
  "assistantIds": [],
  "isAutoCreate": true
}
'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "workspace": {
        "id": "<string>",
        "name": "<string>",
        "ownerId": "<string>",
        "createdAt": "<string>",
        "updatedAt": "<string>",
        "workspaceSettings": {
          "workspaceId": "<string>",
          "language": "<string>",
          "webhooks": {}
        },
        "workspaceIntegrations": {
          "workspaceId": "<string>",
          "version": "<string>",
          "assistantIds": []
        },
        "logoPath": "<string>",
        "workspaceMembers": [],
        "workspaceInvitations": []
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Workspace name

Minimum string length: 1
logoPath
string

Path to workspace logo

workspaceSettings
object

Workspace settings

integrationVersion
string
default:v1

Integration version

assistantIds
string[]

List of assistant IDs

isAutoCreate
boolean

Whether this workspace is auto-created

Response

Workspace created

success
enum<boolean>
required
Available options:
true,
false
data
object
required