Skip to main content
POST
/
v1
/
workspace
Create Workspace
curl -X POST "https://management-api.suprsend.com/v1/workspace" \
  --header 'Authorization: ServiceToken <SERVICE_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{"name":"my-workspace","description":"Testing workspace API"}'
{
  "meta": {
    "count": 3,
    "limit": 10,
    "offset": 0
  },
  "results": [
    {
      "uid": "wksp_exampleUid01",
      "slug": "staging",
      "data_center": {},
      "is_expired": false,
      "has_limit_reached": false,
      "name": "Staging",
      "description": "Development environment to test iterations internally",
      "mode": "sandbox"
    },
    {
      "uid": "wksp_exampleUid02",
      "slug": "production",
      "data_center": {},
      "is_expired": false,
      "has_limit_reached": false,
      "name": "Production",
      "description": "Final environment to send notifications to live users",
      "mode": "production"
    },
    {
      "uid": "wksp_exampleUid03",
      "slug": "my-workspace",
      "data_center": {},
      "is_expired": false,
      "has_limit_reached": false,
      "name": "my-workspace",
      "description": "Testing workspace API",
      "mode": "sandbox"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.suprsend.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

ServiceToken <token>
string
header
required

You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.

Body

application/json
name
string
required

Workspace name.

Example:

"my-workspace"

description
string | null

Optional workspace description.

Example:

"Testing workspace API"

Response

Workspace created. Response returns the updated paginated list of workspaces in the account.

meta
object

Pagination metadata (when applicable)

results
object[]