POST
/
v2
/
workspaces
curl --request POST \
  --url https://api.squarecloud.app/v2/workspaces \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'

{
    "status": "success", 
    "response": {
        "id": "dcedcd13d7e272a7b32a70f6a1d180f23c12d759", 
        "owner": "5354d9742d889d49b20134ba0be09ccc0033be68", 
        "name": "Test", 
        "createdAt": "2025-06-04T20:44:55.934Z"
    }
}

Authorization
string
required

The API key for your account. You can find this in your account settings.

name
string

A string representing the name of the workspace. (without extension)
Must adhere to the a to z, A to Z, 0 to 9, and _ pattern. (3 to 32 characters)

Response

status
string

Indicates whether the call was successful. success if successful, error if not.

response
object

The contents of the response.


{
    "status": "success", 
    "response": {
        "id": "dcedcd13d7e272a7b32a70f6a1d180f23c12d759", 
        "owner": "5354d9742d889d49b20134ba0be09ccc0033be68", 
        "name": "Test", 
        "createdAt": "2025-06-04T20:44:55.934Z"
    }
}