Skip to main content
POST
/
api
/
v1
/
workspace
/
webhooks
Create workspace webhook
curl --request POST \
  --url https://cloud-api.phala.com/api/v1/workspace/webhooks \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "name": "<string>",
  "secret": "<string>"
}
'
{
  "id": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "enabled": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "secret": "<string>",
  "name": "<string>"
}

Body

application/json
url
string
required
events
string[]
required
name
string | null
Maximum string length: 100
secret
string | null

Response

Successful Response

id
string
required
url
string
required
events
string[]
required
enabled
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
secret
string | null
name
string | null