How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Lytics Segment API

Segments are named, logical expressionsof users. These segments may logically be builtusing other segments as well. The segment apiprovides a list of segments built by both the admin, pre-definedsegments automatically added to each account as well as custom onescreated through the UI.Segments represent a number of concepts:* *Segment* A list of users, users are members (or not) of a segment* *Trigger* As a user enters, or leaves a segment, this is a trigger. Triggers do not have a Size, only a history of events.* *Goal* A segment that also implies conversion. In Lytics App, there are *Goals* that show more prominently in a funnel type interface.* *Dynamic Attribute* A user belonging to a segment describes an attribute about that user. For instance *IsPurchaser* is both an attribute that can help personaliation, as well as a segment. We call these special segments *Aspects* at Lytics.* *Metric* A segment when used exclusively for the purposes of tracking conversions/metric.The Segment resource has the following attributes:| field | DataType | Description ||-------------|------------------|---------------|| id | string | unique id, Lytics assigned| created | Date | Created date| updated | Date | Last Updated Date| kind | string | What Type of segment from list above ["aspect","goal"] or leave empty for "segment".| slug | string | customer-assigned unique id (We auto assigned by slugifying `Name` if not provided).| name | string | Name of this segment| description | string | Long text description (optional)| is_public | bool | Is this segment available as part of user profile api (entity api)| segment_ql | string | Segment QL Logical Expression| tags | []string | List of tags, for organization purposesTo see a list of available fields available for segmentation rules see **catalog** api.

Lytics Segment API is one of 34 APIs that Lytics publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Segment. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 13 operations across 9 paths, and defines 8 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against a single base URL, https://api.lytics.io.

13 operations 9 paths 8 schemas 2 DELETE7 GET3 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Base URL
https://api.lytics.io/v2
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Lytics Segment API declares 1 security scheme for authenticating requests. An API key is passed in the header as Authorization (ApiKeyAuth).

Paths & Operations 13

Across 9 paths, the API surfaces 13 operations — 2 DELETE, 7 GET, 3 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Segment 13

Segments are named, logical expressions of users. These segments may logically be built using other segments as well. The segment api provides a list of segments built by both the…

GET
/api/segment
SegmentList
SegmentList 3 params → 200
POST
/api/segment
Segment Create
Segment Create → 201
GET
/api/segment/{id}
Segment Fetch
Segment Fetch 2 params → 200
PUT
/api/segment/{id}
Segment Update
Segment Update 2 params → 200
DELETE
/api/segment/{id}
Segment Delete
Segment Delete 2 params → 204
POST
/api/segment/size
SegmentSize
SegmentSize → 200
POST
/api/segment/validate
SegmentValidate
SegmentValidate → 200
GET
/api/segment/sizes
SegmentSizes
SegmentSizes 2 params → 200
GET
/api/segment/{segId}/scan
SegmentScan
SegmentScan 12 params → 200
DELETE
/api/segment/{segId}/scan
Segment Batch Delete
Segment Batch Delete 12 params → 204
GET
/api/segment/{segId}/attribution
SegmentAttribution
SegmentAttribution 4 params → 200
GET
/api/segment/attribution
SegmentAttributionList
SegmentAttributionList 4 params → 200
GET
/api/segment/{segId}/fieldinfo
SegmentFieldInfo
SegmentFieldInfo 4 params → 200

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are SegmentValidateModel (3 properties), SegmentSizeModel (1 property), SegmentModel (1 property), SegmentAttributionListModel (1 property). Each schema is shown below with its type and property counts.

SegmentScanModel
SegmentValidateModel
object
3 properties
SegmentFieldInfoModel
SegmentSizeModel
object
1 property
SegmentListModel
object
1 property
SegmentSizesModel
object
1 property
SegmentAttributionListModel
object
1 property
SegmentModel
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

lytics-segment-api-openapi.yml Raw ↑

Other APIs Lytics publishes across the network.

Lytics Account API
Lytics Account Settings API
Lytics Auth API
Lytics Auths API
Lytics Catalog API
Lytics Connections API
Lytics Content API
Lytics Data Models API
Lytics Data Upload API
Lytics Experience API
Lytics Flows API
Lytics Jobs API
Where this information came from

This is an independent, third-party profile of Lytics Segment API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.