Get an event

GET/api/v1/events/{id}
No scope required

One event by id — the id from the "Awrora-Event-Id" header or from the envelope. Same per-type scope rules as the list.

Path parameters#

FieldTypeDescription
idrequired
string

Awrora id (UUID) for the event.

Example request#

bash

curl -X GET "https://your-site.awrora.app/api/v1/events/id_8f2k3n" \
  -H "Authorization: Bearer $AWRORA_API_KEY"

Responses#

  • 200The event.
  • 401Missing, invalid, revoked or expired API key — codes "api_key_missing", "api_key_invalid", "api_key_revoked", "api_key_expired".
  • 403The API app is off, the plan does not include the API, or the key lacks the required scope — codes "app_not_enabled", "plan_upgrade_required", "insufficient_scope" (the last carries "required_scope").
  • 404No such resource. The same response is returned for a resource that belongs to another organization — code "not_found".
  • 429Rate limit exceeded — code "rate_limited". See the x-ratelimit-* headers.
  • 500Something went wrong on our side — code "internal_error".

Response 200

FieldTypeDescription
idrequired
string

Awrora id (UUID) for the event. Stable across retries — use it to deduplicate: the same event may be delivered more than once.

typerequired
string

Event type, e.g. "booking.created". "ping" is only sent by the test endpoint.

created_atrequired
string

When the event happened, ISO 8601 with the organization's offset.

api_versionrequired
string

The API version the payload follows. Matches info.version in the OpenAPI document.

datarequired
object

The payload. "object" is always the resource. Some types add fields next to it: "reason" on booking.cancelled, "previous_departure" on booking.rescheduled, "redeemed_amount" and "booking_id" on gift_card.redeemed.

resource_typerequired
string

What kind of thing the event is about: "booking", "customer", "gift_card" or "webhook".

resource_idrequired
string | null

Awrora id of that resource, or null for events without one.

200 response

{
  "id": "res_8f2k3n",
  "type": "string",
  "created_at": "string",
  "api_version": "string",
  "data": {
    "object": {
      "id": "res_8f2k3n",
      "booking_number": -9007199254740991,
      "status": "pending",
      "source": "string",
      "created_at": "string",
      "updated_at": "string",
      "experience": {
        "id": "res_8f2k3n",
        "title": "string",
        "slug": "string"
      },
      "departure": {
        "id": "res_8f2k3n",
        "starts_at": "string",
        "ends_at": "string"
      },
      "customer": {
        "name": "string",
        "email": "anna@example.com",
        "phone": "string"
      },
      "guests": [
        {
          "tier_id": "tier_8f2k3n",
          "tier_label": "string",
          "count": -9007199254740991,
          "unit_price": null
        }
      ],
      "add_ons": [
        {
          "id": "res_8f2k3n",
          "label": "string",
          "count": -9007199254740991,
          "unit_price": null
        }
      ],
      "totals": {
        "subtotal": {
          "amount_minor": null,
          "currency": null
        },
        "discount": {
          "amount_minor": null,
          "currency": null
        },
        "gift_card": {
          "amount_minor": null,
          "currency": null
        },
        "total": {
          "amount_minor": null,
          "currency": null
        }
      },
      "payment": {
        "method": "string",
        "source": "stripe",
        "status": "paid"
      },
      "note": "string",
      "manage_url": "https://example.com/webhooks/awrora"
    }
  },
  "resource_type": "string",
  "resource_id": "resource_8f2k3n"
}