Get segments
https://api.lytics.io/v2/segmentGet a list of segments for an account
Query Parameters
account_idoptionalstringtableoptionalstringvalidoptionalstringkindoptionalstringHeaders
Authorizationoptionalstring{
"_meta": {},
"data": [
{
"account_id": "string",
"aid": 0,
"ast": {
"args": [
{}
],
"ident": "string",
"op": "string",
"val": "string"
},
"author_id": "string",
"category": "string",
"created": "string",
"datemath_calc": true,
"deleted": true,
"description": "string",
"field_changes_fields": [
"string"
],
"fields": [
"string"
],
"forward_datemath": true,
"groups": [
"string"
],
"id": "string",
"identities": [
"string"
],
"includes": [
"string"
],
"invalid": true,
"invalid_reason": "string",
"is_public": true,
"kind": "string",
"name": "string",
"public_name": "string",
"ql_resolved": "string",
"save_hist": true,
"schedule_exit": true,
"segment_ql": "string",
"size": 0,
"slug_name": "string",
"table": "string",
"tags": [
"string"
],
"updated": "string",
"withs_ql": "string"
}
],
"request_id": "string",
"status": 0
}Create segment
https://api.lytics.io/v2/segmentDelete segments
https://api.lytics.io/v2/segmentDelete multiple segments
Query Parameters
account_idoptionalstringidsrequiredstringHeaders
AuthorizationoptionalstringAdd/Remove segment in/from the exclusion list
https://api.lytics.io/v2/segment/exclude/{operation}Adds/Removes the passed segment id in/from the exclusion list. Exclusion list allows to exclude all the users from the segment during the export job. Pass auth_id to scope the exclusion to one authorization; workflow-level and auth-level exclusions are combined, never substituted.
Get segment
https://api.lytics.io/v2/segment/{id}Update segment
https://api.lytics.io/v2/segment/{id}Delete segment
https://api.lytics.io/v2/segment/{id}Delete a segment
URL Parameters
idrequiredstringQuery Parameters
account_idoptionalstringHeaders
Authorizationoptionalstring{
"_meta": {},
"data": {},
"request_id": "string",
"status": 0
}