Skip to main content
POST
/
v2
/
webhooks
/
register
Register Webhook
curl --request POST \
  --url https://b2b-api.dev-riseworks.io/v2/webhooks/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "company_nanoid": "<string>",
  "team_nanoid": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "secret": "<string>",
  "is_active": true
}'
{
  "success": true,
  "data": {
    "webhook_nanoid": "<string>",
    "company_nanoid": "<string>",
    "team_nanoid": "<string>",
    "url": "<string>",
    "events": [
      "<string>"
    ],
    "is_active": true
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
company_nanoid
string
required

Unique identifier of the company.

Required string length: 15
url
string<uri>
required
events
string[]
required
Minimum length: 1
secret
string
required
Minimum length: 16
team_nanoid
string

Unique identifier of the team.

Required string length: 15
is_active
boolean

Response

Default Response

success
boolean
required
data
object
required
I