Post end-user session events

POST /app/enduser/sessions/events

Post events related to a specific end-user session. This endpoint is used to log and track events that occur during an end-user's session.

application/json

Body Required

  • userId string

    The ID of the user creating the session event

Responses

  • 200 application/json

    Events posted successfully

    Hide response attribute Show response attribute object
  • 401 application/json

    Unauthorized. The request is missing valid authentication credentials.

    Hide response attribute Show response attribute object
    • error string

      Error message indicating lack of authorization

  • 400 application/json

    Bad Request. The request is malformed or missing required parameters.

    Hide response attribute Show response attribute object
    • error string

      Error message detailing the cause of the bad request

  • 500 application/json

    Internal Server Error. An unexpected error occurred on the server.

    Hide response attribute Show response attribute object
    • error string

      Error message indicating an internal server error

POST /app/enduser/sessions/events
curl \
 --request POST 'https://api.staging.glsnxt.com/ooh/carrier-connector/v1/app/enduser/sessions/events' \
 --header "X-APP-Key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '[{"userId":"enduser123"}]'
Request examples
[
  {
    "userId": "enduser123"
  }
]
Response examples (200)
{
  "status": "Events have been published successfully"
}
Response examples (401)
{
  "error": "Unauthorized"
}
Response examples (400)
{
  "error": "Invalid request. Check parameters and try again."
}
Response examples (500)
{
  "error": "Internal Server Error"
}