---
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/"
---

# Diagnose workspace ontology usage by caller

GET /api/workspaces/{workspaceId}/ontology/observability/database

## Endpoint

**GET**`/api/workspaces/{workspaceId}/ontology/observability/database`

Rank caller categories by observed SQL volume, query time or estimated compute. Inspect the underlying workflows, triggers, MCP tools and HTTP sources. Read UTC active periods, observed SQL callers and database usage in SSU for completed hours. Model removing workflows together using exclude. Workspace usage reports billed amounts. 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.

- `runId` *query · string · optional*

  Inspect query measurements by step and attempt of one workflow run.

- `exclude` *query · string · optional*

  Comma-separated workflow names to remove together in the idle-window scenario.

- `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",
      "allOf": [
        {
          "description": "Workspace whose production database is being inspected."
        }
      ]
    },
    "from": {
      "type": "string",
      "allOf": [
        {
          "description": "Start of the reporting window in UTC."
        }
      ]
    },
    "to": {
      "type": "string",
      "allOf": [
        {
          "description": "End of the reporting window in UTC."
        }
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "observed",
        "unobserved"
      ],
      "allOf": [
        {
          "description": "Whether any production SDK observations were retained for this selection."
        }
      ]
    },
    "allocation": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "measuredSsu": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ],
              "allOf": [
                {
                  "description": "Total measured SSU across the reported hours."
                }
              ]
            },
            "exclusiveSsu": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ],
              "allOf": [
                {
                  "description": "Estimated SSU when only one observed source occupied the database."
                }
              ]
            },
            "sharedBetweenCallersSsu": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "Infinity",
                        "-Infinity",
                        "NaN"
                      ]
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ],
              "allOf": [
                {
                  "description": "Estimated SSU shared across caller categories, or null when attribution is unavailable."
                }
              ]
            },
            "sharedSsu": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ],
              "allOf": [
                {
                  "description": "Estimated SSU shared by concurrent observed sources."
                }
              ]
            },
            "unattributedSsu": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "string",
                  "enum": [
                    "Infinity",
                    "-Infinity",
                    "NaN"
                  ]
                }
              ],
              "allOf": [
                {
                  "description": "Measured SSU left unexplained by the allocation model."
                }
              ]
            },
            "modeledRemovableSsu": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "Infinity",
                        "-Infinity",
                        "NaN"
                      ]
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ],
              "allOf": [
                {
                  "description": "Estimated reduction in SSU after excluding the selected workflows together, when comparable."
                }
              ]
            }
          },
          "required": [
            "measuredSsu",
            "exclusiveSsu",
            "sharedBetweenCallersSsu",
            "sharedSsu",
            "unattributedSsu",
            "modeledRemovableSsu"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "allOf": [
        {
          "description": "Model compared with measured production branch compute, when available."
        }
      ]
    },
    "consumption": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "activity": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "periods": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "from": {
                            "type": "string",
                            "allOf": [
                              {
                                "description": "Beginning of observed activity inside the window."
                              }
                            ]
                          },
                          "to": {
                            "type": "string",
                            "allOf": [
                              {
                                "description": "End of observed activity inside the window."
                              }
                            ]
                          },
                          "durationMs": {
                            "type": "integer",
                            "minimum": 0,
                            "allOf": [
                              {
                                "description": "Active wall-clock milliseconds inside the window."
                              }
                            ]
                          },
                          "startsBeforeWindow": {
                            "type": "boolean",
                            "allOf": [
                              {
                                "description": "The database was active before the window began."
                              }
                            ]
                          },
                          "reachesWindowEnd": {
                            "type": "boolean",
                            "allOf": [
                              {
                                "description": "Still active at the reporting cutoff."
                              }
                            ]
                          },
                          "sources": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "source": {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "description": "Caller observed executing SQL during this period."
                                    }
                                  ]
                                },
                                "workflow": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "allOf": [
                                    {
                                      "description": "Declared workflow when known."
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "source",
                                "workflow"
                              ],
                              "additionalProperties": false
                            },
                            "allOf": [
                              {
                                "description": "Observed callers. Overlap alone cannot identify what initiated activity."
                              }
                            ]
                          }
                        },
                        "required": [
                          "from",
                          "to",
                          "durationMs",
                          "startsBeforeWindow",
                          "reachesWindowEnd",
                          "sources"
                        ],
                        "additionalProperties": false
                      },
                      "allOf": [
                        {
                          "description": "Known active periods, newest first."
                        }
                      ]
                    },
                    "activeMs": {
                      "type": "integer",
                      "minimum": 0,
                      "allOf": [
                        {
                          "description": "Total duration of the known periods in milliseconds."
                        }
                      ]
                    },
                    "partial": {
                      "type": "boolean",
                      "allOf": [
                        {
                          "description": "Earlier activity in the window may be missing."
                        }
                      ]
                    }
                  },
                  "required": [
                    "periods",
                    "activeMs",
                    "partial"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ],
              "allOf": [
                {
                  "description": "Production database activity when history is available."
                }
              ]
            },
            "hours": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "hasRecordedQueries": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "allOf": [
                      {
                        "description": "Whether recorded SQL touched this hour. Null when the history is incomplete and no SQL was seen."
                      }
                    ]
                  },
                  "at": {
                    "type": "string",
                    "allOf": [
                      {
                        "description": "Start of the completed UTC hour."
                      }
                    ]
                  },
                  "ssu": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "allOf": [
                      {
                        "description": "Database usage in SSU in this completed hour, when reported."
                      }
                    ]
                  },
                  "publicTransferBytes": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "Infinity",
                              "-Infinity",
                              "NaN"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "allOf": [
                      {
                        "description": "Public data transfer in bytes for this branch and hour, when reported."
                      }
                    ]
                  }
                },
                "required": [
                  "hasRecordedQueries",
                  "at",
                  "ssu",
                  "publicTransferBytes"
                ],
                "additionalProperties": false
              },
              "allOf": [
                {
                  "description": "Retained branch measurements for completed hours within the last seven days."
                }
              ]
            }
          },
          "required": [
            "activity",
            "hours"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "allOf": [
        {
          "description": "Production database meter and endpoint observations, when available."
        }
      ]
    },
    "partial": {
      "type": "boolean",
      "allOf": [
        {
          "description": "Whether source observations were truncated or the log read was incomplete."
        }
      ]
    },
    "idleTimeoutSeconds": {
      "type": "integer",
      "minimum": 0,
      "allOf": [
        {
          "description": "Idle interval used by the model, in seconds."
        }
      ]
    },
    "modeledActiveMs": {
      "type": "integer",
      "minimum": 0,
      "allOf": [
        {
          "description": "Union of observed SQL intervals extended by the modeled idle timeout, in milliseconds."
        }
      ]
    },
    "modeledRemovableMs": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ],
      "allOf": [
        {
          "description": "Modeled reduction in active milliseconds for the selected workflows, when comparable."
        }
      ]
    },
    "callers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "caller": {
            "type": "string",
            "allOf": [
              {
                "description": "Caller category for these observations."
              }
            ]
          },
          "queries": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "SQL executions observed for this category."
              }
            ]
          },
          "queryMs": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "Summed elapsed time of this category's observed SQL executions, in milliseconds."
              }
            ]
          },
          "estimatedSsu": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "allOf": [
              {
                "description": "Estimated SSU while only this category was observed, or null when attribution is unavailable."
              }
            ]
          }
        },
        "required": [
          "caller",
          "queries",
          "queryMs",
          "estimatedSsu"
        ],
        "additionalProperties": false
      },
      "allOf": [
        {
          "description": "Query workload and estimated SSU for time attributed to just this caller category."
        }
      ]
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "connection": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "allOf": [
                      {
                        "description": "Public API key record ID or registered OAuth client ID."
                      }
                    ]
                  },
                  "name": {
                    "type": "string",
                    "allOf": [
                      {
                        "description": "Display label of the verified connection when the query ran."
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "allOf": [
              {
                "description": "Public identifier and display name of the authenticated API key or OAuth client, when recorded."
              }
            ]
          },
          "caller": {
            "type": "string",
            "allOf": [
              {
                "description": "Caller category for this source. Generic request paths retain an unidentified caller."
              }
            ]
          },
          "source": {
            "type": "string",
            "allOf": [
              {
                "description": "Observed workflow, MCP client and tool, or HTTP route template."
              }
            ]
          },
          "workflow": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "allOf": [
              {
                "description": "Declared workflow name when known."
              }
            ]
          },
          "trigger": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "allOf": [
              {
                "description": "Declared trigger or initiating caller kind when the runtime knows it."
              }
            ]
          },
          "stepId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "allOf": [
              {
                "description": "Workflow step identifier when inspecting one run."
              }
            ]
          },
          "attempt": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "allOf": [
              {
                "description": "Step attempt number when inspecting one run."
              }
            ]
          },
          "estimatedSsu": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Infinity",
                      "-Infinity",
                      "NaN"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "allOf": [
              {
                "description": "Estimated exclusive SSU in measured hours, or null when allocation is unavailable."
              }
            ]
          },
          "observations": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "Number of retained request and step observations."
              }
            ]
          },
          "queries": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "SQL statement executions observed by the SDK."
              }
            ]
          },
          "failedQueries": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "Observed SQL executions that failed."
              }
            ]
          },
          "returnedRows": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "Rows returned by SQL statements whose result exposes an array."
              }
            ]
          },
          "queryMs": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "Summed statement elapsed time in milliseconds, including concurrent calls and waits."
              }
            ]
          },
          "runs": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "Distinct workflow run identifiers in these observations."
              }
            ]
          },
          "stepAttempts": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "Distinct run, step and attempt combinations."
              }
            ]
          },
          "exampleRunId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "allOf": [
              {
                "description": "One observed run to inspect for this source."
              }
            ]
          },
          "modeledActiveMs": {
            "type": "integer",
            "minimum": 0,
            "allOf": [
              {
                "description": "Union of observed SQL intervals extended by the modeled idle timeout, in milliseconds."
              }
            ]
          }
        },
        "required": [
          "caller",
          "source",
          "workflow",
          "trigger",
          "stepId",
          "attempt",
          "estimatedSsu",
          "observations",
          "queries",
          "failedQueries",
          "returnedRows",
          "queryMs",
          "runs",
          "stepAttempts",
          "exampleRunId",
          "modeledActiveMs"
        ],
        "additionalProperties": false
      },
      "allOf": [
        {
          "description": "Observed sources, grouped by step and attempt when restricted to a run."
        }
      ]
    }
  },
  "required": [
    "workspaceId",
    "from",
    "to",
    "state",
    "allocation",
    "consumption",
    "partial",
    "idleTimeoutSeconds",
    "modeledActiveMs",
    "modeledRemovableMs",
    "callers",
    "rows"
  ],
  "additionalProperties": false
}
```

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

### Example

```
{
  "workspaceId": "00000000-0000-4000-8000-000000000001",
  "from": "2026-11-15T11:00:00Z",
  "to": "2026-11-15T12:00:00Z",
  "state": "unobserved",
  "allocation": null,
  "consumption": null,
  "partial": false,
  "idleTimeoutSeconds": 0,
  "modeledActiveMs": 0,
  "modeledRemovableMs": null,
  "callers": [],
  "rows": []
}
```

### 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_getDatabaseActivity.md)
