Skip to main content
POST
/
{org}
/
{repo}
/
webhooks
Create webhook
curl --request POST \
  --url https://depot.mesa.dev/api/v1/{org}/{repo}/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "push"
  ],
  "branches": [
    "<string>"
  ],
  "globs": [
    "<string>"
  ],
  "secret": "<string>"
}
'
{
  "id": "<string>",
  "url": "<string>",
  "events": [
    "push"
  ],
  "branches": [
    "<string>"
  ],
  "globs": [
    "<string>"
  ],
  "created_at": "<string>",
  "updated_at": "<string>",
  "secret": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
Minimum string length: 1
repo
string
required
Minimum string length: 1

Body

application/json
url
string<uri>
required
events
enum<string>[]
Available options:
push
branches
string[]
globs
string[]
secret
string
Minimum string length: 1

Response

Webhook created

id
string
required
url
string
required
events
enum<string>[]
required
Available options:
push
branches
string[] | null
required
globs
string[] | null
required
created_at
string
required
updated_at
string
required
secret
string
required