On this page

8 endpoints.

MethodPathSummary
POST/api/communities/public/{slug}/events/{eventId}/guest/bookTake a seat as a guest (or ask for one when the event needs approval)
POST/api/communities/public/{slug}/events/{eventId}/guest/cancelGive up a free seat or withdraw a pending request
POST/api/communities/public/{slug}/events/{eventId}/guest/checkoutPay for a seat at a paid event as a guest (the members' card checkout)
GET/api/communities/public/{slug}/events/{eventId}/guest/ticketThe guest's own registration and ticket
GET/api/communities/public/{slug}/events/{eventId}/guest/ticket-viewA guest's ticket from the «عرض التذكرة» link in their e-mail (read-only)
POST/api/communities/public/{slug}/events/{eventId}/register/startSend a 6-digit code to the visitor's e-mail
POST/api/communities/public/{slug}/events/{eventId}/register/verifyCheck the code and get a guest token for this event
GET/api/communities/public/{slug}/events/{eventId}/registrationWhat a visitor's registration form needs (event guest registration)

Auth: public — no token required.

Parameters

NameInRequiredTypeDescription
slugpathyesstring—
eventIdpathyesstring—
X-Share-Keyheaderyesstring—
X-Guest-Tokenheaderyesstring—

Responses

StatusDescriptionBody
201outcome: GOING | PENDING, status, ticketCode, ticketStatus, checkedInAt, declineReason—
400EVENT_FULL—
401GUEST_TOKEN_INVALID—
409GUEST_REGISTRATION_CLOSED / REGISTRATION_DECLINED / EVENT_NOT_BOOKABLE—

Auth: public — no token required.

Parameters

NameInRequiredTypeDescription
slugpathyesstring—
eventIdpathyesstring—
X-Guest-Tokenheaderyesstring—

Responses

StatusDescriptionBody
200status: NONE—
409PAID_TICKET_CANCEL_BY_ORGANISER / ATTENDANCE_CHECKED_IN—

For 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

NameInRequiredTypeDescription
slugpathyesstring—
eventIdpathyesstring—
X-Share-Keyheaderyesstring—
X-Guest-Tokenheaderyesstring—

Request body — application/json

FieldTypeRequiredDescription
phonestringyes—

Responses

StatusDescriptionBody
201orderId, redirectUrl, holdExpiresAt, resumed—
400REGISTRATION_INPUT_INVALID (field phone)—
401GUEST_TOKEN_INVALID—
403FEATURE_NOT_AVAILABLE (featureKey events_pro — the community has no Events Pro)—
404Wrong share key / event—
409GUEST_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—
503BILLING_DISABLED / BILLING_PROVIDER_ERROR—

Auth: public — no token required.

Parameters

NameInRequiredTypeDescription
slugpathyesstring—
eventIdpathyesstring—
X-Guest-Tokenheaderyesstring—

Responses

StatusDescriptionBody
200status: GOING | PENDING | DECLINED | NONE, ticketCode, ticketStatus, checkedInAt, declineReason, payment: { status, holdExpiresAt } | null—
401GUEST_TOKEN_INVALID—

The 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

NameInRequiredTypeDescription
slugpathyesstring—
eventIdpathyesstring—
X-Ticket-Linkheaderyesstring—

Responses

StatusDescriptionBody
200status, ticketCode, ticketStatus, checkedInAt, declineReason, payment, holderName, event: { title, titleArabic, startDate, endDate, timezone, isOnline, location, cancelled }, community: { name, nameArabic, logo }—
401TICKET_LINK_INVALID (forged—
404Unknown community—

Checks 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

NameInRequiredTypeDescription
slugpathyesstring—
eventIdpathyesstring—
X-Share-Keyheaderyesstring—

Request body — application/json

FieldTypeRequiredDescription
emailstringyes—
firstNamestringyes—
familyNamestringyes—
answersobjectnoKeyed by question id
phonestringnoRequired when registration says checkout — checked here, sent again with guest/checkout, never stored

Responses

StatusDescriptionBody
200sent: true—
400REGISTRATION_INPUT_INVALID (with the field) or JOIN_ANSWER_* / JOIN_FORM_REQUIRED_ANSWER_MISSING—
409GUEST_REGISTRATION_CLOSED—
429VERIFICATION_RATE_LIMITED—

Creates (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

NameInRequiredTypeDescription
slugpathyesstring—
eventIdpathyesstring—
X-Share-Keyheaderyesstring—

Request body — application/json

FieldTypeRequiredDescription
emailstringyes—
codestringyes—

Responses

StatusDescriptionBody
200guestToken, expiresAt, existing?: PENDING | GOING | DECLINED | PAID | PAYMENT_PENDING—
400VERIFICATION_CODE_INVALID / VERIFICATION_CODE_EXPIRED—
409EMAIL_BELONGS_TO_MEMBER (sign in instead) / GUEST_REGISTRATION_CLOSED—
429VERIFICATION_RATE_LIMITED (5 wrong codes)—

Same 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

NameInRequiredTypeDescription
slugpathyesstring—
eventIdpathyesstring—
X-Share-Keyheaderyesstring—

Responses

StatusDescriptionBody
200guestRegistration, needsApproval, isPaid, checkout, priceHalalas, currency, questions, seatsLeft, open — checkout = pay to register (guest/checkout)—
404Not readable with this key—