/

Endpoints

Create an endpoint

POST

/v3/apps/{app}/endpoints

Add a URL to an app and choose the event types it receives.

Parameters

Name

Type

Description

url

string, required

HTTPS URL, up to 2,048 characters

event_types

array

Exact types or prefixes ending in .*

rate_limit

integer

Requests per second, 1 to 50

Request

curl https://api.sluicehq.dev/v3/apps/cus_1042/endpoints \
  -H "Authorization: Bearer sk_test_4f9a2c7e1b" \
  -d url=https://hooks.harborsupply.com/billing \
  -d "event_types[]=invoice.*"

curl https://api.sluicehq.dev/v3/apps/cus_1042/endpoints \
  -H "Authorization: Bearer sk_test_4f9a2c7e1b" \
  -d url=https://hooks.harborsupply.com/billing \
  -d "event_types[]=invoice.*"

curl https://api.sluicehq.dev/v3/apps/cus_1042/endpoints \
  -H "Authorization: Bearer sk_test_4f9a2c7e1b" \
  -d url=https://hooks.harborsupply.com/billing \
  -d "event_types[]=invoice.*"

Response

{
  "id": "ep_Qm81",
  "url": "https://hooks.harborsupply.com/billing",
  "event_types": ["invoice.*"],
  "secret": "whsec_9c1f..."
}
{
  "id": "ep_Qm81",
  "url": "https://hooks.harborsupply.com/billing",
  "event_types": ["invoice.*"],
  "secret": "whsec_9c1f..."
}
{
  "id": "ep_Qm81",
  "url": "https://hooks.harborsupply.com/billing",
  "event_types": ["invoice.*"],
  "secret": "whsec_9c1f..."
}

Create a free website with Framer, the website builder loved by startups, designers and agencies.