Subscription

SubscriptionList

Get A list of all Subscriptions.


# find subscriptions that contain a specific segment.Id or segment.Slug
curl -s -H "Authorization: $LIOKEY" -H "Content-Type: application/json" \
  "https://api.lytics.io/api/subscription?segment_id=seg_webhook1" | jq "."

# same but use id.
curl -s -H "Authorization: $LIOKEY" -H "Content-Type: application/json" \
  "https://api.lytics.io/api/subscription?segment_id=f897270369f977294871f21cc0d826e7" | jq "."

get/api/subscription

Request

  • Base URL
    https://api.lytics.io
  • URL
    https://api.lytics.io/api/subscription
  • Auth
    API key in header Authorization

Query parameters

account_idstring

Your Lytics account ID.

segment_idstring

Id of Segment Id OR Slug to filter on

tablestring

Table name.

Response

OK

Example response

{
  "data": [
    {
      "id": "3573009ab39bbc9614f754c0fafd53d7",
      "segment_ids": [
        "f897270369f977294871f21cc0d826e7"
      ],
      "segmentql": "FILTER AND ( score_momentum > 25, score_quantity > 25 ) ALIAS seg_webhook1",
      "description": "hello world",
      "name": "test1",
      "updated": "2016-06-30T15:33:14.376262062-07:00",
      "created": "2016-06-30T15:33:14.37626196-07:00",
      "user_id": "2916b84ba4fa8b510591fd6e1c2320db",
      "account_id": "testid",
      "workflow": "webhook_triggers"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.