POST
/
v3
/
workspaces
Create Workspace
curl --request POST \
  --url http://127.0.0.1:3333/v3/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "workspace": {
    "id": "<string>",
    "name": "<string>",
    "icon": "<string>",
    "plan": "HOBBY",
    "stripeId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "creditsRecurring": 0,
    "creditsPurchased": 0,
    "billingStrategy": "PREPAID",
    "overageCapAmount": 123,
    "autoRechargeEnabled": false,
    "autoRechargeTrigger": 0,
    "autoRechargeAmount": 0,
    "billingCurrency": "brl",
    "resolvedCreditsLimit": 123,
    "resolvedSeatsLimit": 123,
    "resolvedStorageLimit": 123
  }
}

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
Minimum string length: 1
icon
string

Response

201 - application/json

Default Response

workspace
object
required