API Hooks

Notes
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
List

API endpoint:

GET
https://cloud.strapidash.com/api/v1/api_hooks

Request example:

curl --location --request GET 'https://cloud.strapidash.com/api/v1/api_hooks' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
List Incoming

API endpoint:

GET
https://cloud.strapidash.com/api/v1/api_hooks

Request example:

curl --location --request GET 'https://cloud.strapidash.com/api/v1/api_hooks' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Show

API endpoint:

GET
https://cloud.strapidash.com/api/v1/api_hooks/{id}

Request example:

curl --location --request GET 'https://cloud.strapidash.com/api/v1/api_hooks/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://cloud.strapidash.com/api/v1/api_hooks

Request example:

curl --location --request POST 'https://cloud.strapidash.com/api/v1/api_hooks' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Parameter
Type
Description
url
required string
The webpage's URL.
privacy
optional integer
Report page privacy. Possible values are: 0 for Public, 1 for Private, 2 for Password. Defaults to: 1.
password
optional string
The password for the report page. Only works with privacy set to 2.
Update

API endpoint:

PUT PATCH
https://cloud.strapidash.com/api/v1/reports/{id}

Request example:

curl --location --request PUT 'https://cloud.strapidash.com/api/v1/reports/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Type
Description
privacy
optional integer
Report page privacy. Possible values are: 0 for Public, 1 for Private, 2 for Password.
password
optional string
The password for the report page. Only works with privacy set to 2.
results
optional integer
Update the report results. Possible values are: 0 for No, 1 for Yes. Defaults to: 0.
Delete

API endpoint:

DELETE
https://cloud.strapidash.com/api/v1/reports/{id}

Request example:

curl --location --request DELETE 'https://cloud.strapidash.com/api/v1/reports/{id}' \
--header 'Authorization: Bearer {api_key}'