---
title: "Get the status of the most recent clear-segment operation"
method: GET
path: "/v2/segments/external/{externalId}/clear-segment/status"
tags: ["Segments"]
---

# Get the status of the most recent clear-segment operation

`GET /v2/segments/external/{externalId}/clear-segment/status`

## Request

- Base URL: `https://api.attentivemobile.com`
- URL: `https://api.attentivemobile.com/v2/segments/external/{externalId}/clear-segment/status`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}`
    - Token URL: `https://api.attentivemobile.com/v1/authorization-codes/tokens` scopes: `segments:read`

Returns the status of the most recent clear-segment operation for the segment identified by its external ID. The response includes the processing status, timestamps, and a failure reason if applicable.

Only segments created via the Public API can be queried using this endpoint.

Scopes Required: [segments:Read]

Default Rate Limit: 100 requests per second

## Path parameters

- `externalId` string, required

## Response `200`

Clear segment status retrieved successfully

- ClearSegmentStatusResponse
  - `status` 'RUNNING' | 'COMPLETED' | 'FAILED' | 'NOT_FOUND': The status of the most recent clear-segment operation. `RUNNING` indicates the operation is still in progress. `COMPLETED` indicates the operation finished successfully. `FAILED` indicates the operation encountered an error. `NOT_FOUND` indicates no clear operation has been performed for this segment.
  - `startedAt` string, date-time: The timestamp when the clear operation started processing
  - `completedAt` string, date-time: The timestamp when the clear operation finished. Only present when status is COMPLETED or FAILED.
  - `failureReason` string: A description of why the clear operation failed. Only present when status is FAILED.

## Other responses

- `400`: Bad request - segment is not a Public API segment
- `401`: Unauthorized - invalid or missing token
- `403`: Access denied - insufficient permissions
- `404`: Segment not found or no clear operation has been performed
- `429`: Too many requests - rate limit exceeded
- `500`: Internal server error

## Changes

- **2026-11-03** `2f49ffff7d65`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/attentive/apis/attentive-api-v2/changes/v2/segments/external/:externalId/clear-segment/status/get.md)

---

[API](https://skmtc.dev/attentive/apis/attentive-api-v2.md) - [All operations](https://skmtc.dev/attentive/apis/attentive-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/attentive/apis/attentive-api-v2/revisions/2f49ffff7d65?raw)
