Skip to content
FacebookYouTubeX (Twitter)

Events

You can use the API to get or set event information.

FieldTypeDescription
idStringThe unique identifier for the event which is given by Pingstreams.
nameStringThe event name. You can find the standard Pingstreams events here
project_userObjectThe user who creates the event.
attributesObjectThe custom attributes which are set for the event.
createdAtStringThe time (ISO-8601 date string) when the event was created.
updatedAtStringThe time (ISO-8601 date string) when the event was updated.
createdByStringThe unique identifier of the row creator
id_projectStringThe unique identifier of the project

GET https://api.pingstreams.com/v3/:project_id/events

ParameterTypeDescription
project_idstringthe Project Id is a unique code assigned to your project when you create it in Pingstreams.
ParameterTypeDescription
sortFieldstringwhat field to sort the results by.
directionstringsort direction: 1 or -1. Return the results in ascending or descending order. defaults to desc
pagenumberwhat page of results to fetch. defaults to first page.
HeaderTypeDescription
Authorizationstringauthorization token. Basic Auth or JWT

GET https://api.pingstreams.com/v3/:project_id/events/:id

ParameterTypeDescription
idstringthe event identifier
project_idstringThe project_id is a unique code assigned to your project when you create it in Pingstreams
HeaderTypeDescription
Authorizationstringauthorization token. Basic Auth or JWT
Content-Typestringuse “application/json” value

POST https://api.pingstreams.com/v3/:project_id/events

With this endpoint you can fire a custom event. You event name should be event.emit.EVENT_NAME to correctly identify your custom event. You can find the standard Pingstreams events here.

ParameterTypeDescription
project_idstringThe project_id is a unique code assigned to your project when you create it in Pingstreams
HeaderTypeDescription
Authorizationstringauthorization token. Basic Auth or JWT
Content-Typestringuse “application/json” value
FieldTypeDescription
namestringthe event name
attributesobjectThe event custom attributes