# Lytics Segment ML API

**Canonical:** https://apis.io/apis/lytics/lytics-segmentml-api/  
**Provider:** Lytics — https://apis.io/providers/lytics/  
**Base URL:** https://api.lytics.io/v2  
**Documentation:** https://docs.lytics.com/reference

Lytics Segment ML API is one of 34 APIs that [Lytics](https://apis.io/providers/lytics/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include SegmentML. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

SegmentML provides a framework for building custom machine learning models directly in Lytics. Lytics SegmentML models are self-training, continuously-updating and real-time. SegmentML models are built by identifying: 1. A segment of users, called the **Target Segment** who exhibit behavior for *prediction*, 2. A segment of users, called the **Source Segment** to be candidates for model *evaluation*, or scoring. Models are built with a variety of pre-selected candidate features, which include behavioral scores and content affinities, and can additionally support any custom field available in Lytics user profiles. Attributes concerning the SegmentML model's setup configuration are detailed in **SegmentML Create**. Attributes concerning the model's results are defined in **SegmentML Model Fetch**. Generic attributes from SegmentML model GET and POST: | field | DataType | Description | |-------------- |------------------|---------------| | name | string | The model's name | state | string | The state of the model: Either *building*, *invalid*, or *complete* | reason | string | If the state is *invalid* the reason will denote the error | created | string | Date and time the model was created

## Operations (4)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/segmentml/{id}` | SegmentML Model Fetch |
| DELETE | `/api/segmentml/{id}` | SegmentML Delete |
| POST | `/api/segmentml` | SegmentML Create |
| GET | `/api/segmentml/_dependencies/{modelname}` | SegmentML Dependencies |

## Machine-readable artifacts (6)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/lytics/refs/heads/main/openapi/lytics-segmentml-api-openapi.yml
- **OpenAPI Source** — https://dash.readme.com/api/v1/api-registry/1y876emrv8pb2i
- **Documentation** — https://docs.lytics.com/reference
- **APIReference** — https://docs.lytics.com/reference
- **ToolCrosswalk** — https://raw.githubusercontent.com/api-evangelist/lytics/refs/heads/main/mcp/lytics-tool-crosswalk.yml
- **OpenAPI Source** — https://dash.readme.com/api/v1/api-registry/10ej22ml8a94fx

## Other Lytics APIs (12)

- [Lytics Account API](https://apis.io/apis/lytics/lytics-account-api/)
- [Lytics Account Settings API](https://apis.io/apis/lytics/lytics-account-settings-api/)
- [Lytics Auth API](https://apis.io/apis/lytics/lytics-auth-api/)
- [Lytics Auths API](https://apis.io/apis/lytics/lytics-auths-api/)
- [Lytics Catalog API](https://apis.io/apis/lytics/lytics-catalog-api/)
- [Lytics Connections API](https://apis.io/apis/lytics/lytics-connections-api/)
- [Lytics Content API](https://apis.io/apis/lytics/lytics-content-api/)
- [Lytics Data Models API](https://apis.io/apis/lytics/lytics-datamodels-api/)
- [Lytics Data Upload API](https://apis.io/apis/lytics/lytics-dataupload-api/)
- [Lytics Experience API](https://apis.io/apis/lytics/lytics-experience-api/)
- [Lytics Flows API](https://apis.io/apis/lytics/lytics-flows-api/)
- [Lytics Jobs API](https://apis.io/apis/lytics/lytics-jobs-api/)

## Tags

SegmentML

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/lytics/lytics-segmentml-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/lytics/.
