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": []
}
}
}
}Creates a new workspace with the authenticated user as owner.
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": []
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Workspace name
1Path to workspace logo
Workspace settings
Show child attributes
Integration version
List of assistant IDs
Whether this workspace is auto-created