Overview
Nexora's fictional API uses predictable resources, JSON requests, and standard HTTP status codes. Every example on this page is safe demonstration content.
https://api.example.com/v1
Authentication
Send a scoped sample key in the Authorization header. Never expose a production secret in client-side code.
Authorization: Bearer demo_key_replace_me
Create an event
Use a typed event name and a compact properties object.
const result = await fetch(
"https://api.example.com/v1/events",
{ method: "POST" }
);
curl -X POST https://api.example.com/v1/events
Example response
{ "id": "evt_sample_482", "accepted": true }
Errors
Return one stable error code, a human-readable message, and a request identifier for support.
| Status | Meaning | Recommended action |
|---|---|---|
| 400 | Invalid request | Review the field details. |
| 401 | Authentication failed | Check the environment key. |
| 429 | Rate limited | Retry with backoff. |
Webhooks
Verify the sample signature before processing a delivery, record the event identifier, and make handlers idempotent.
{ "type": "deployment.ready", "attempt": 1 }