POST
/
projects
/
{project_id}
/
webhooks
curl --request POST \
  --url https://api.beyondwords.io/v1/projects/{project_id}/webhooks \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "url": "https://new_example.com/"
}'
{
  "id": 1,
  "url": "https://example.com/",
  "enabled": true,
  "headers": {
    "Authorization": "Bearer xxxxxx",
    "X-My-Custom-Header-Y": "yyyyyy",
    "X-My-Custom-Header-Z": "zzzzzz"
  },
  "created": "2022-01-02 23:59:59 UTC",
  "updated": "2022-03-04 00:00:00 UTC"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

project_id
string
required

The numeric ID of your project

Body

application/json
url
string
required

The URL that BeyondWords will send webhook notifications to. This URL must be served over HTTPS

headers
object
enabled
boolean

Whether or not the webhook is enabled or disabled Has the value true if enabled. The default is true.

Response

201 - application/json
successful
id
integer

Unique identifier for the object

url
string

The URL that BeyondWords will send webhook notifications to. This URL must be served over HTTPS

headers
object
enabled
boolean

Whether or not the webhook is enabled or disabled Has the value true if enabled. The default is true.

created
string

Time at which the object was created (ISO 8601)

updated
string

Time at which the object was updated (ISO 8601)