POST
/
v2
/
workspaces
curl --request POST \
  --url https://eu-vg-edge.moeaymandev.workers.dev/v2/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "photoURL": "<string>",
  "workspaceName": "<string>",
  "workspaceEmails": [
    "<string>"
  ],
  "workspacePhotoURL": "<string>",
  "workspaceSecret": "<string>"
}'
{
  "success": true,
  "message": "Workspace created successfully"
}

Authorizations

Authorization
string
header
required

Workspace secret API key, found in the workspace settings page (top left).

Body

application/json
Workspace to create
photoURL
string

URL to the user's photo.

workspaceName
string

The name of the workspace.

workspaceEmails
string[]

List of email addresses associated with the workspace.

workspacePhotoURL
string

URL to the workspace photo.

workspaceSecret
string

Secret key for the workspace.

Response

200
application/json
Workspace created/edit succesfully
success
boolean
message
string