REST API integration
The most straightforward integration is calling the ErynoaGroup REST API directly from your backend. All endpoints accept JSON and return JSON. Example: Create a resourceWebhook integration
Use webhooks to receive real-time notifications when events occur in ErynoaGroup, instead of polling the API.Create a webhook endpoint
In your application, set up an HTTP endpoint that accepts POST requests. This endpoint must be publicly accessible and respond with
200 OK within 10 seconds.Register the endpoint in ErynoaGroup
In your dashboard, go to Webhooks → Create Webhook. Enter your endpoint URL and select the events you want to receive (e.g.,
resource.created, resource.updated, resource.deleted).Verify webhook signatures
ErynoaGroup signs every webhook payload with your webhook secret using HMAC-SHA256. Verify the signature before processing the event:The signature is sent in the
X-Erynoa-Signature header.Error handling best practices
Retry with backoff
On
5xx errors or network timeouts, retry with exponential backoff: wait 1s, then 2s, then 4s, up to 3 retries.Idempotency keys
Include an
Idempotency-Key header on POST requests to safely retry without creating duplicate resources.Log request IDs
Every response includes a
X-Request-ID header. Log this value to correlate your logs with ErynoaGroup support if needed.Graceful degradation
Design your application to function (in a degraded mode) when ErynoaGroup is temporarily unavailable.