Panorays Public API
papi (2)
The following steps will walk you through the process of registering and reacting to webhooks.
If you don’t already have an API token, you can generate one through Panorays platform or contact Panorays Support at support@panorays.com.
Before you can start receiving events, register your application with Panorays using the Handshake API call.
You will only receive event calls for events you subscribe to using the Subscribe API call.
Note: You can unsubscribe at any time using the Unsubscribe API call.
You're done! From now on, you will receive notifications for every event you subscribed to.
To learn how to secure your app and ensure you handle events only from Panorays, read about Verifying requests.
Request
To enable notifications for a certain event you will need to subscribe to it using this route.
- Mock serverhttps://panorays-papi-v2-documentation.redocly.app/_mock/swagger/v2/hooks/subscriptions
- https://api.panoraysapp.com/v2/hooks/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://panorays-papi-v2-documentation.redocly.app/_mock/swagger/v2/hooks/subscriptions \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"hooks": [
"url_verification"
]
}'{ "secret": "string" }
Request
To disable notifications for a certain event you will need to unsubscribe from it using this route.
- Mock serverhttps://panorays-papi-v2-documentation.redocly.app/_mock/swagger/v2/hooks/subscriptions
- https://api.panoraysapp.com/v2/hooks/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://panorays-papi-v2-documentation.redocly.app/_mock/swagger/v2/hooks/subscriptions \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"hooks": [
"url_verification"
]
}'{ "secret": "string" }