POST
/
workspaces
curl --request POST \
  --url https://public.zerogate.dev/api/workspaces \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-API-Secret: <api-key>' \
  --data '{
  "description": "<string>",
  "domain": "<string>",
  "name": "<string>"
}'
{
  "$schema": "https://public.zerogate.dev/api/schemas/SuccessResponseWorkspaceBody.json",
  "data": {
    "created": 1708968551635,
    "created_by": "acc_4a9189c20844c53bd1dcf74b76e56432",
    "description": "ZeroGate dev workspace",
    "domain": "zerogate",
    "icons": {
      "base": "https://dev.zerogate.net/images/org_18ded12a827bc1d0766cbeefa8361f9f/wse_dc6de9cc0906d9bf67da1f38ac878542/app_8a4be1e66aaa04ee51e82e0657a60ae1/img_64ed223e85940e9c0522ef6452a62ce8_512.webp",
      "medium": "https://dev.zerogate.net/images/org_18ded12a827bc1d0766cbeefa8361f9f/wse_dc6de9cc0906d9bf67da1f38ac878542/app_8a4be1e66aaa04ee51e82e0657a60ae1/img_64ed223e85940e9c0522ef6452a62ce8_192.webp",
      "original": "https://dev.zerogate.net/images/org_18ded12a827bc1d0766cbeefa8361f9f/wse_dc6de9cc0906d9bf67da1f38ac878542/app_8a4be1e66aaa04ee51e82e0657a60ae1/img_64ed223e85940e9c0522ef6452a62ce8_original",
      "small": "https://dev.zerogate.net/images/org_18ded12a827bc1d0766cbeefa8361f9f/wse_dc6de9cc0906d9bf67da1f38ac878542/app_8a4be1e66aaa04ee51e82e0657a60ae1/img_64ed223e85940e9c0522ef6452a62ce8_72.webp"
    },
    "id": "app_8a4be1e66aaa04ee51e82e0657a60ae1",
    "modified_by": "acc_4a9189c20844c53bd1dcf74b76e56432",
    "name": "ZeroGate Dev",
    "organization": "org_61dc47b59de64c77fd92ef80f73119c0",
    "updated": 1708968551635
  },
  "success": true
}

Authorizations

X-API-Key
string
header
required
X-API-Secret
string
header
required

Body

application/json
domain
string
required

Workspace Domain

Required string length: 3 - 63
name
string
required

Workspace Name

Required string length: 1 - 254
description
string

Workspace Description

Response

200
application/json
OK
data
object
required

The response data

success
boolean
required

Whether the response is success

Example:

true

$schema
string

A URL to the JSON Schema for this object.

Example:

"https://public.zerogate.dev/api/schemas/SuccessResponseWorkspaceBody.json"