---
updatedAt: 2026-10-30T08:48:07.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Get a segment

Get a segment. GET /api/ext/v3/segments/{segmentId}.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:read`, `segmentsv3:read`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Segments",
      "description": "Read and preview contact segments."
    }
  ],
  "paths": {
    "/api/ext/v3/segments/{segmentId}": {
      "get": {
        "tags": [
          "Segments"
        ],
        "summary": "Get a segment",
        "operationId": "getSegment",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Custom segments are disabled or unavailable on the plan. That guard returns JSON with an error field. Invalid request input can also return 400 with a different body."
          },
          "403": {
            "description": "Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope."
          },
          "404": {
            "description": "No segment was found for the supplied segmentId."
          },
          "429": {
            "description": "The custom-segment per-user request limit was reached; retry after a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Rate-limit message."
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The upstream CDP segment service returned an invalid response or a non-transient failure.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "The upstream CDP segment service is not configured or is temporarily unavailable.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "segmentId",
            "in": "path",
            "required": true,
            "description": "Segment ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Get a segment. GET /api/ext/v3/segments/{segmentId}.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:read`, `segmentsv3:read`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.",
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "wati_integration:read",
                "segmentsv3:read"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "03c6d4bc1590408c569e65602f969c6a596672e3"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CustomSegmentFilterCondition": {
        "type": "object",
        "properties": {
          "attribute": {
            "type": "string",
            "nullable": true
          },
          "operator": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "filterType": {
            "type": "integer",
            "format": "int32"
          },
          "valueType": {
            "type": "string",
            "nullable": true
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "unit": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Data model with fields: attribute, operator, value, filterType, valueType...."
      },
      "CustomSegmentFilterGroup": {
        "type": "object",
        "properties": {
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomSegmentFilterCondition"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Data model with fields: conditions."
      },
      "SegmentDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "tag": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "hitCount": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "integer",
            "enum": [
              0,
              1,
              2,
              3,
              4
            ]
          },
          "totalContactCount": {
            "type": "integer",
            "format": "int64"
          },
          "hitCountPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomSegmentFilterGroup"
            }
          },
          "refreshType": {
            "type": "integer",
            "format": "int32"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          },
          "source": {
            "type": "integer",
            "enum": [
              0,
              1,
              2
            ]
          },
          "useUploadedContact": {
            "type": "boolean"
          }
        }
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```