Situ's API for seamless integration with Situ's workflow.
- Get webhook signature verification public key
Xenia Connect API (1.0.1)
Enquiries
Enquiries are the start point in the booking journey. Providing as much information as possible upfront about an enquiry will increase its conversion rate and reduce touchpoints. We are constantly looking for what we can add to our set of information to make our process easier for everybody. If you have any suggestions get in contact!
- Mock serverhttps://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks
- Productionhttps://api-xenia.staysitu.com/external-api/v1/webhooks
- Sandboxhttps://api-xenia-cisandbox.staysitu.com/external-api/v1/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks \
-H 'X-Api-Key: YOUR_API_KEY_HERE'{ "data": [ { … }, { … } ] }
A description of the webhook. This is for your own reference and will not be used by Situ.
The events to subscribe to. This is a list of events that will trigger the webhook. You may subscribe to multiple events. If left empty, all events will be sent.
- Mock serverhttps://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks
- Productionhttps://api-xenia.staysitu.com/external-api/v1/webhooks
- Sandboxhttps://api-xenia-cisandbox.staysitu.com/external-api/v1/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks \
-H 'Content-Type: application/json' \
-H 'X-Api-Key: YOUR_API_KEY_HERE' \
-d '{
"description": "Webhook for new enquiries",
"events": [
"ENQUIRY.CREATED",
"ENQUIRY.CLOSED"
],
"url": "https://example.com/webhook"
}'{ "data": { "description": "Webhook for new enquiries", "events": [ … ], "id": "123e4567-e89b-12d3-a456-426614174000", "url": "https://example.com/webhook" } }
- Mock serverhttps://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks/{id}
- Productionhttps://api-xenia.staysitu.com/external-api/v1/webhooks/{id}
- Sandboxhttps://api-xenia-cisandbox.staysitu.com/external-api/v1/webhooks/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks/123e4567-e89b-12d3-a456-426614174000 \
-H 'X-Api-Key: YOUR_API_KEY_HERE'- Mock serverhttps://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks/{id}
- Productionhttps://api-xenia.staysitu.com/external-api/v1/webhooks/{id}
- Sandboxhttps://api-xenia-cisandbox.staysitu.com/external-api/v1/webhooks/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks/123e4567-e89b-12d3-a456-426614174000 \
-H 'X-Api-Key: YOUR_API_KEY_HERE'{ "data": { "description": "Webhook for new enquiries", "events": [ … ], "id": "123e4567-e89b-12d3-a456-426614174000", "url": "https://example.com/webhook" } }
A description of the webhook. This is for your own reference and will not be used by Situ.
The events to subscribe to. This is a list of events that will trigger the webhook. You may subscribe to multiple events. If left empty, all events will be sent.
- Mock serverhttps://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks/{id}
- Productionhttps://api-xenia.staysitu.com/external-api/v1/webhooks/{id}
- Sandboxhttps://api-xenia-cisandbox.staysitu.com/external-api/v1/webhooks/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhooks/123e4567-e89b-12d3-a456-426614174000 \
-H 'Content-Type: application/json' \
-H 'X-Api-Key: YOUR_API_KEY_HERE' \
-d '{
"description": "Webhook for new enquiries",
"events": [
"ENQUIRY.CREATED",
"ENQUIRY.CLOSED"
],
"url": "https://example.com/webhook"
}'{ "data": { "description": "Webhook for new enquiries", "events": [ … ], "id": "123e4567-e89b-12d3-a456-426614174000", "url": "https://example.com/webhook" } }
- Mock serverhttps://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhook-verification-key
- Productionhttps://api-xenia.staysitu.com/external-api/v1/webhook-verification-key
- Sandboxhttps://api-xenia-cisandbox.staysitu.com/external-api/v1/webhook-verification-key
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.xenia.staysitu.com/_mock/xenia-connect/spec/external-api/v1/webhook-verification-key \
-H 'X-Api-Key: YOUR_API_KEY_HERE'{ "data": { "publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1234...", "algorithm": "HMAC-SHA256", "keyFormat": "base64" } }