Sign Up
Schema
GET /api/v1/schema

Returns the telemetry schema for a project, including all known field names, types, and cardinality estimates. Useful for building query UIs or autocomplete.

Authorization
Authorization header required
Bearer token using your project API key.
Parameters
pid string<uuid> query required
Project ID to retrieve the schema for.
Responses
200 Schema returned successfully.
401 Missing or invalid authentication.
403 Insufficient permissions for this project.
Response Fields
fields object[]
List of known telemetry fields.
fields[].name string
Fully qualified field name (e.g. `http.status_code`).
fields[].type string | number | boolean | timestamp
Field data type.
fields[].cardinality integer
Estimated number of unique values.
curl -X GET "https://api.monoscope.tech/api/v1/schema?pid=YOUR_PROJECT_ID" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
import requests

response = requests.get(
  "https://api.monoscope.tech/api/v1/schema?pid=YOUR_PROJECT_ID",
  headers={
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  }
)
print(response.json())
const response = await fetch("https://api.monoscope.tech/api/v1/schema?pid=YOUR_PROJECT_ID", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await response.json();
console.log(data);
200 application/json
{
  "fields": [
    {
      "name": "example",
      "type": "string",
      "cardinality": 42
    }
  ]
}