Skip to main content
You will receive the base URL when you get an API key. The examples below use BASE_ENDPOINT as a placeholder for that URL.

POST /v1/events/upcoming

Returns a user’s upcoming events.

Request

Send a JSON body with the user ID and your API key:
FieldTypeDescription
_idstringThe user ID.
keystringYour API key.
{
  "_id": "userId",
  "key": "apikey"
}

Response

Each event in the response includes:
FieldDescription
eventIdDocument ID (doc.id).
urlEvent URL, e.g. https://peerpop.io/events/{specialId}.
flyerFlyer image URL.
titleEvent title.
dateEvent date.
timeEvent time.
addressEvent address.
venueVenue name, or false if not set.
organizerOrganizer (self or main co-host).
liveWhether the event is live.

Example

curl -X POST "BASE_ENDPOINT/v1/events/upcoming" \
  -H "Content-Type: application/json" \
  -d '{"_id": "userId", "key": "apikey"}'

POST /v1/events/past

Returns a user’s past events.

Request

Same as upcoming: send a JSON body with the user ID and your API key:
FieldTypeDescription
_idstringThe user ID.
keystringYour API key.
{
  "_id": "userId",
  "key": "apikey"
}

Response

Same shape as upcoming events:
FieldDescription
eventIdDocument ID (doc.id).
urlEvent URL, e.g. https://peerpop.io/events/{specialId}.
flyerFlyer image URL.
titleEvent title.
dateEvent date.
timeEvent time.
addressEvent address.
venueVenue name, or false if not set.
organizerOrganizer (self or main co-host).
liveWhether the event is live.

Example

curl -X POST "BASE_ENDPOINT/v1/events/past" \
  -H "Content-Type: application/json" \
  -d '{"_id": "userId", "key": "apikey"}'