---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Read agent runtime activity over time

GET /api/workspaces/{workspaceId}/agent/observability/series

## Endpoint

**GET**`/api/workspaces/{workspaceId}/agent/observability/series`

Inspect time buckets for the agent activity shown in the summary. This is a repeatable read. See observability_getAgentObservability. Required personal key scopes: workspace:view, deployments:logs:read.

## Authorization

Bearer token · workspace:view · deployments:logs:read

## Parameters

- `workspaceId` *path · uuid · required*

  Workspace UUID returned by list workspaces.

- `window` *query · string · optional*

  Reporting interval used to aggregate observations.

  Allowed values: 1h, 24h, 7d, 30d

- `from` *query · string · optional*

  Start of the requested reporting interval.

- `to` *query · string · optional*

  End of the requested reporting interval.

- `API-Version` *header · string · optional*

  Optional platform API major version. Omit to use the current default.

  Allowed values: 1

## Responses

### `200` Success

### application/json schema

```
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "description": "Workspace UUID returned by list workspaces."
    },
    "state": {
      "type": "string",
      "enum": [
        "ready",
        "not_deployed"
      ],
      "description": "Current state reported by the service."
    },
    "source": {
      "type": "string",
      "enum": [
        "vercel"
      ],
      "description": "Origin of the data or source artifact used for deployment."
    },
    "sourceAt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Time at which the source supplied this observation."
    },
    "window": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "description": "Inclusive start, aligned to `bucketSeconds`."
        },
        "to": {
          "type": "string",
          "description": "Exclusive end, aligned to `bucketSeconds`; the last bucket may still be in progress."
        },
        "bucketSeconds": {
          "type": "integer",
          "description": "Width of one time-series bucket in seconds."
        },
        "preset": {
          "type": "string",
          "enum": [
            "1h",
            "24h",
            "7d",
            "30d"
          ],
          "description": "Predefined configuration or reporting window selected."
        }
      },
      "required": [
        "from",
        "to",
        "bucketSeconds"
      ],
      "additionalProperties": false,
      "description": "Reporting interval used to aggregate observations."
    },
    "points": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "at": {
            "type": "string",
            "allOf": [
              {
                "description": "The bucket's start."
              }
            ]
          },
          "sessionsStarted": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of sessions started during this interval."
          },
          "compactionHandoffs": {
            "type": "integer",
            "minimum": 0,
            "description": "Agent session handoffs caused by context compaction."
          },
          "deploymentHandoffs": {
            "type": "integer",
            "minimum": 0,
            "description": "Session handoffs associated with a deployment change."
          },
          "runsFailed": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of runs that ended in failure."
          }
        },
        "required": [
          "at",
          "sessionsStarted",
          "compactionHandoffs",
          "deploymentHandoffs",
          "runsFailed"
        ],
        "additionalProperties": false
      },
      "description": "Runs by the bucket they started in; empty without an agent."
    },
    "truncated": {
      "type": "boolean",
      "description": "Whether the server omitted results because a limit was reached."
    }
  },
  "required": [
    "workspaceId",
    "state",
    "source",
    "sourceAt",
    "window",
    "points",
    "truncated"
  ],
  "additionalProperties": false
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Example

```
{
  "workspaceId": "00000000-0000-4000-8000-000000000001",
  "state": "ready",
  "source": "vercel",
  "sourceAt": "2026-11-15T12:00:00Z",
  "window": {
    "from": "2026-11-15T11:00:00Z",
    "to": "2026-11-15T12:00:00Z",
    "bucketSeconds": 300
  },
  "points": [],
  "truncated": false
}
```

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

- Deprecation

  Present when the operation is deprecated. RFC 9745 date in seconds since the Unix epoch.

- Sunset

  Present when retirement is scheduled. HTTP date of planned removal, per RFC 8594.

### `400` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `401` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `403` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `404` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `406` Unsupported platform API version

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `409` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `429` Request limit reached

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- Retry-After

  Seconds to wait before retrying the request.

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `500` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

### `503` Error

### application/json schema

```
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code or diagnostic reported by the operation."
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation of the failure."
    },
    "requestId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid",
      "description": "Correlation ID for tracing the request with support."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether retrying the same failed request may succeed."
    }
  },
  "required": [
    "error",
    "detail",
    "requestId",
    "retryable"
  ],
  "additionalProperties": true
}
```

[Full schema and referenced types ↗](https://segmentstream.com/openapi.json)

### Response headers

- API-Version

  Supported platform API major version.

- RateLimit

  Remaining quota (r) and seconds until reset (t), when admission is available.

- RateLimit-Policy

  Request quota (q) and window in seconds (w).

[Read as Markdown ↗](https://segmentstream.com/docs/api/observability/observability_getAgentObservabilitySeries.md)
