8 endpoints.
| Method | Path | Summary |
|---|---|---|
POST | /api/communities/public/{slug}/events/{eventId}/guest/book | Take a seat as a guest (or ask for one when the event needs approval) |
POST | /api/communities/public/{slug}/events/{eventId}/guest/cancel | Give up a free seat or withdraw a pending request |
POST | /api/communities/public/{slug}/events/{eventId}/guest/checkout | Pay for a seat at a paid event as a guest (the members' card checkout) |
GET | /api/communities/public/{slug}/events/{eventId}/guest/ticket | The guest's own registration and ticket |
GET | /api/communities/public/{slug}/events/{eventId}/guest/ticket-view | A guest's ticket from the «عرض التذكرة» link in their e-mail (read-only) |
POST | /api/communities/public/{slug}/events/{eventId}/register/start | Send a 6-digit code to the visitor's e-mail |
POST | /api/communities/public/{slug}/events/{eventId}/register/verify | Check the code and get a guest token for this event |
GET | /api/communities/public/{slug}/events/{eventId}/registration | What a visitor's registration form needs (event guest registration) |
POST /api/communities/public/{slug}/events/{eventId}/guest/bookAuth: public — no token required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | — |
eventId | path | yes | string | — |
X-Share-Key | header | yes | string | — |
X-Guest-Token | header | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
201 | outcome: GOING | PENDING, status, ticketCode, ticketStatus, checkedInAt, declineReason | — |
400 | EVENT_FULL | — |
401 | GUEST_TOKEN_INVALID | — |
409 | GUEST_REGISTRATION_CLOSED / REGISTRATION_DECLINED / EVENT_NOT_BOOKABLE | — |
POST /api/communities/public/{slug}/events/{eventId}/guest/cancelAuth: public — no token required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | — |
eventId | path | yes | string | — |
X-Guest-Token | header | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | status: NONE | — |
409 | PAID_TICKET_CANCEL_BY_ORGANISER / ATTENDANCE_CHECKED_IN | — |
POST /api/communities/public/{slug}/events/{eventId}/guest/checkoutFor a paid event whose community sells tickets (registration's checkout is true). Holds a
seat and opens the payment page; the page returns the visitor to the event's shared page
(/{slug}/events/{eventId}?order=…&result=success|failure, without the share key). The
ticket exists once the payment settles — poll guest/ticket. The phone goes to the payment
gateway only and is not stored. A second call while the page is open returns the same page.
Auth: public — no token required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | — |
eventId | path | yes | string | — |
X-Share-Key | header | yes | string | — |
X-Guest-Token | header | yes | string | — |
Request body — application/json
| Field | Type | Required | Description |
|---|---|---|---|
phone | string | yes | — |
Responses
| Status | Description | Body |
|---|---|---|
201 | orderId, redirectUrl, holdExpiresAt, resumed | — |
400 | REGISTRATION_INPUT_INVALID (field phone) | — |
401 | GUEST_TOKEN_INVALID | — |
403 | FEATURE_NOT_AVAILABLE (featureKey events_pro — the community has no Events Pro) | — |
404 | Wrong share key / event | — |
409 | GUEST_REGISTRATION_CLOSED / REGISTRATION_DECLINED / EVENT_SALES_STOPPED / EVENT_NOT_PAID / EVENT_SOLD_OUT / EVENT_NOT_BOOKABLE / TICKET_ALREADY_PAID / TICKET_PAYMENT_PENDING / TICKET_HOLD_LIMIT / GUEST_CHECKOUT_BUSY (too many visitors on a payment page of this event | — |
503 | BILLING_DISABLED / BILLING_PROVIDER_ERROR | — |
GET /api/communities/public/{slug}/events/{eventId}/guest/ticketAuth: public — no token required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | — |
eventId | path | yes | string | — |
X-Guest-Token | header | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | status: GOING | PENDING | DECLINED | NONE, ticketCode, ticketStatus, checkedInAt, declineReason, payment: { status, holdExpiresAt } | null | — |
401 | GUEST_TOKEN_INVALID | — |
GET /api/communities/public/{slug}/events/{eventId}/guest/ticket-viewThe ticket e-mail a visitor receives links to /slug/events/eventId/ticket#t=. The page sends the link here in X-Ticket-Link. It opens ONE ticket, read-only, until 6 hours after the event ends, and stops opening it once that free ticket code is cleared or re-issued. A paid ticket the organiser cancelled or refunded keeps its code, so the link still answers 200 with that state (ticketStatus CANCELLED / REFUNDED) and no ticketCode.
Auth: public — no token required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | — |
eventId | path | yes | string | — |
X-Ticket-Link | header | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | status, ticketCode, ticketStatus, checkedInAt, declineReason, payment, holderName, event: { title, titleArabic, startDate, endDate, timezone, isOnline, location, cancelled }, community: { name, nameArabic, logo } | — |
401 | TICKET_LINK_INVALID (forged | — |
404 | Unknown community | — |
POST /api/communities/public/{slug}/events/{eventId}/register/startChecks the name and the answers, then e-mails a code (10 minutes, 5 tries). The answer is the same for every address — whether it belongs to a member is told only after verify. Limits: 5 codes an hour per address and event, 20 per IP, 10 requests a minute per IP.
Auth: public — no token required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | — |
eventId | path | yes | string | — |
X-Share-Key | header | yes | string | — |
Request body — application/json
| Field | Type | Required | Description |
|---|---|---|---|
email | string | yes | — |
firstName | string | yes | — |
familyName | string | yes | — |
answers | object | no | Keyed by question id |
phone | string | no | Required when registration says checkout — checked here, sent again with guest/checkout, never stored |
Responses
| Status | Description | Body |
|---|---|---|
200 | sent: true | — |
400 | REGISTRATION_INPUT_INVALID (with the field) or JOIN_ANSWER_* / JOIN_FORM_REQUIRED_ANSWER_MISSING | — |
409 | GUEST_REGISTRATION_CLOSED | — |
429 | VERIFICATION_RATE_LIMITED | — |
POST /api/communities/public/{slug}/events/{eventId}/register/verifyCreates (or reuses) the visitor's account and registers them as a guest of THIS event.
The guest token (2 hours) opens this event only and is sent back in X-Guest-Token.
An address that already holds a live registration here (a request waiting, a seat, a declined
request, a paid ticket or an open payment page) is NOT registered again: the answer carries
existing and the client shows that registration instead of a new form.
Auth: public — no token required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | — |
eventId | path | yes | string | — |
X-Share-Key | header | yes | string | — |
Request body — application/json
| Field | Type | Required | Description |
|---|---|---|---|
email | string | yes | — |
code | string | yes | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | guestToken, expiresAt, existing?: PENDING | GOING | DECLINED | PAID | PAYMENT_PENDING | — |
400 | VERIFICATION_CODE_INVALID / VERIFICATION_CODE_EXPIRED | — |
409 | EMAIL_BELONGS_TO_MEMBER (sign in instead) / GUEST_REGISTRATION_CLOSED | — |
429 | VERIFICATION_RATE_LIMITED (5 wrong codes) | — |
GET /api/communities/public/{slug}/events/{eventId}/registrationSame gate as the shared read (X-Share-Key opens THIS event, else 404). open is false when
the organiser did not turn on guest registration, or the event is closed or over. On a paid
event checkout is true while this community sells tickets: the visitor pays through
guest/checkout and the gateway returns them to the shared event page. questions is a join-form document (no documents) or null.
Auth: public — no token required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | — |
eventId | path | yes | string | — |
X-Share-Key | header | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | guestRegistration, needsApproval, isPaid, checkout, priceHalalas, currency, questions, seatsLeft, open — checkout = pay to register (guest/checkout) | — |
404 | Not readable with this key | — |