integrations
gatsby

POST /v2/integrations/gatsby/events

Changed on

Request

  • Base URL
    https://api.loyaltylion.com
  • URL
    https://api.loyaltylion.com/v2/integrations/gatsby/events
  • Auth
    HTTP bearer

Request body

Example request

{
  "event": {
    "platform": "INSTAGRAM",
    "eventName": "FOLLOWED_YOU",
    "eventDetails": {
      "likes": 0,
      "comments": 0,
      "caption": "Follow for real",
      "mediaUrl": "",
      "mediaType": ""
    },
    "instagram": {
      "firstName": "Alice",
      "lastName": "Blue",
      "profileImage": "https://example.com/alice.png",
      "userName": "example.alice.123",
      "posts": 206,
      "followers": 70,
      "follows": 5,
      "verified": true,
      "followsYou": false,
      "lastMentionDate": "2025-03-31T23:39:36.369Z"
    },
    "segments": [],
    "tags": []
  }
}

Response

200

result'processed' | 'ignored' required

Indicates how the event was handled by LoyaltyLion. processed means we understood the event and acted upon it. ignored means we did not process the event, e.g. it was malformed, or the associated Gatsby integration is no longer active

detailsstring

Additional context relating to the result

Changes