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.
descriptionEvent description.
startingPriceCheapest ticket price as a string, e.g. 10.00.
tagsArray of tags assigned to the event.

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.
descriptionEvent description.
startingPriceCheapest ticket price as a string, e.g. 10.00.
tagsArray of tags assigned to the event.

Example

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

POST /v1/update_text_list

Adds a phone number to your Website Text List contact group.

Request

Send a JSON body with your user ID, the subscriber’s phone number, and your API key:
FieldTypeDescription
_idstringYour user ID.
phonestringPhone number formatted exactly as 10 digits with no spaces or punctuation, e.g. 6780001234.
keystringYour API key.
{
  "_id": "userId",
  "phone": "6780001234",
  "key": "apikey"
}

Example

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