POST
/
api
/
auth
/
newWorkspace
curl --request POST \
  --url https://copilotz.com/api/auth/newWorkspace \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "namespace": "eopm"
}'
{}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request payload for creating a new workspace.

namespace
string
required

Namespace identifier for the new workspace.

Example:

"eopm"

Response

200 - application/json
Successful response

Successful workspace creation response.