Skip to content
Developer

Moments Public

Events9 EndpointsEvent / Moments Public

Load the moments page data for a moments token (anonymous event token or participant token).

GET/api/event/public/moments/{momentsToken}

Returns basic event info plus the participant's own moments when a participant token is used.

Path parameters

momentsTokenrequiredstring

Responses

default

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/public/moments/42 \
  --header 'x-iw-jwt-token: <TOKEN>'

Create a new moment (voice message, text, drawing, photo or video) for the event behind the moments token.

POST/api/event/public/moments/{momentsToken}

Anonymous via the event moments token, participant-bound via a participant moments token.

Path parameters

momentsTokenrequiredstring

Responses

default

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/event/public/moments/42 \
  --header 'x-iw-jwt-token: <TOKEN>'

Exchange a participant sign-up token for the participant-bound moments token.

GET/api/event/public/moments/participant_token/{signUpToken}

The sign-up token is only known to the participant, so possession of it is sufficient proof to hand out the (lazily generated) moments token.

Path parameters

signUpTokenrequiredstring

Responses

default

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/public/moments/participant_token/42 \
  --header 'x-iw-jwt-token: <TOKEN>'

Announce an upload that will arrive in chunks (large videos).

POST/api/event/public/moments/{momentsToken}/upload

Everything that can be judged without the bytes is judged here - type, mime and announced size - so a guest is not told about a file that is too large after uploading a gigabyte of it.

Path parameters

momentsTokenrequiredstring

Responses

default

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/event/public/moments/42/upload \
  --header 'x-iw-jwt-token: <TOKEN>'

Append one chunk to an announced upload. The body is the raw chunk.

PUT/api/event/public/moments/{momentsToken}/upload/{uploadToken}/chunk/{chunkIndex}

Path parameters

momentsTokenrequiredstring
uploadTokenrequiredstring
chunkIndexrequiredstring

Responses

default

Request
curl --request PUT \
  --url https://your-instance.iw-erp.de/api/event/public/moments/42/upload/42/chunk/42 \
  --header 'x-iw-jwt-token: <TOKEN>'

Append one chunk to an announced upload. The body is the raw chunk.

PATCH/api/event/public/moments/{momentsToken}/upload/{uploadToken}/chunk/{chunkIndex}

Path parameters

momentsTokenrequiredstring
uploadTokenrequiredstring
chunkIndexrequiredstring

Responses

default

Request
curl --request PATCH \
  --url https://your-instance.iw-erp.de/api/event/public/moments/42/upload/42/chunk/42 \
  --header 'x-iw-jwt-token: <TOKEN>'

Turn a finished upload into a moment.

POST/api/event/public/moments/{momentsToken}/upload/{uploadToken}/complete

From here on it is the very same path a small upload takes: real mime detection on the assembled file, size check, storage, background virus scan.

Path parameters

momentsTokenrequiredstring
uploadTokenrequiredstring

Responses

default

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/event/public/moments/42/upload/42/complete \
  --header 'x-iw-jwt-token: <TOKEN>'

Stream the file of an own moment (preview after upload).

GET/api/event/public/moments/{momentsToken}/{momentToken}/file

The secret moment token is the access capability.

Path parameters

momentsTokenrequiredstring
momentTokenrequiredstring

Responses

default

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/public/moments/42/42/file \
  --header 'x-iw-jwt-token: <TOKEN>'

Delete an own moment (GDPR: guests can remove their contribution).

DELETE/api/event/public/moments/{momentsToken}/{momentToken}

Soft-deletes the moment and removes the stored file.

Path parameters

momentsTokenrequiredstring
momentTokenrequiredstring

Responses

default

Request
curl --request DELETE \
  --url https://your-instance.iw-erp.de/api/event/public/moments/42/42 \
  --header 'x-iw-jwt-token: <TOKEN>'