Panorays Public API
papi (2)
Getting Started
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
Before being able to register and receive events, a server should be registered and verified. A “Verification Handshake” will happen which will verify SSL certificate and send a POST with a body of { challenge: <hash> } to the server given. The response to the POST message should contain the given challenge hash and status 200. The verification handshake process should only happen once and will be done during the onboarding of the API by Panorays.
- Mock serverhttps://panorays-papi-v2-documentation.redocly.app/_mock/swagger/v2/hooks/handshake
- https://api.panoraysapp.com/v2/hooks/handshake
- 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/handshake \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"url": "string"
}'{ "secret": "string" }