Version: 0.6.2
Niara API
Examples
Example of an API call using curl:
curl -X POST https://api.niara.tech/prod/test -H accept: application/json -H Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyXXXX
Links and files
WebHook Notification
This endpoint is a webhook we provide to clients so they can receive a reservation notification payload. A valid URL must be set in the client’s registration to receive these notifications.
Example:
{ "orderId": "BBOILYE", "eventyType": "ORDER_CHANGED" }
Authentication
- HTTP: Bearer Auth
Each request to the API must include an authentication token provided by the Niara team. The token is associated with a client registered in the Niara system.
The client must include this token in the Authorization
header when making API requests:
Authorization: Bearer <token>
The token follows the JSON Web Token (JWT) format and its length may vary (between 640 and 2,000 characters).
Security Scheme Type: | http |
---|---|
HTTP Authorization Scheme: | bearer |
Bearer format: | JWT |