Skip to main content
POST
/
v1
/
workspaces
Criar workspace
curl --request POST \
  --url https://api.notifique.dev/v1/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Meu Novo Workspace",
  "color": "#3B82F6"
}
'
{
  "success": true,
  "data": {
    "id": "clxx...",
    "name": "Meu Novo Workspace",
    "slug": "meu-novo-workspace-42",
    "color": "#3B82F6",
    "createdAt": "2025-02-23T10:00:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

API Key: Authorization: Bearer sk_live_xxxxx

Body

application/json
name
string
required

Nome do workspace.

Required string length: 1 - 64
color
string

Cor em hexadecimal com # (ex.: #3B82F6). Opcional.

Required string length: 7
Pattern: ^#[0-9A-Fa-f]{6}$

Response

Workspace criado com sucesso.

success
boolean
required
Example:

true

data
object
required