{"openapi":"3.1.0","info":{"title":"Maple API","version":"2.0.0","description":"The Maple public API is a resource-oriented REST interface for customer-stable resources and workflows.\nIt follows Stripe's design philosophy, modernized where useful:\n\n- **Resources** are plural nouns under `/v2` (`/v2/api_keys`). Related resources share a product namespace (`/v2/alerts/rules`, `/v2/alerts/destinations`). Non-CRUD verbs are sub-resource POSTs (`/v2/api_keys/{id}/roll`).\n- **Object IDs** are opaque, prefixed strings (`key_â¦`, `dash_â¦`) â reversible encodings of internal IDs.\n- **Wire format** is snake_case JSON with an `object` type field on every resource and ISO-8601 UTC timestamps.\n- **Lists** use cursor pagination and a uniform `{ object: \"list\", data, has_more, next_cursor }` envelope.\n- **Errors** use a uniform `{ error: { _tag, type, code, title, message, retryable, recovery } }` envelope. `_tag` is the semantic Maple error identity; `code` remains the stable public integration key.\n- **Auth** is a Bearer API key (`maple_ak_â¦`) or dashboard session token; keys can be restricted with scopes.\n\nSee `docs/api-v2.md` for the full conventions.","summary":"The public, stability-committed HTTP API for the Maple observability platform.","contact":{"name":"Maple Support","url":"https://maple.dev","email":"[email protected]"}},"paths":{"/v2/api_keys":{"get":{"tags":["API Keys"],"operationId":"listApiKeys","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of API keys.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's API keys, most recently created first. Cursor-paginated. Requires the `api_keys:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List API keys","x-required-permissions":["telemetry:read"]},"post":{"tags":["API Keys"],"operationId":"createApiKey","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"An API key including its one-time `secret`. Returned only by the create and roll endpoints; every other endpoint returns the `ApiKey` object without the secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyWithSecret"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates an API key and returns it **with its one-time `secret`** â store the secret securely, it cannot be retrieved later. Requires an org-admin role and the `api_keys:write` scope.\n\nDepending on the request, the caller's role may need Manage all API keys (`api_keys:manage`), Create restricted API keys (`api_keys:create_restricted`) and Create MCP keys (`api_keys:create_mcp`).","summary":"Create an API key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateParams"}}},"required":true},"x-conditional-permissions":["api_keys:manage","api_keys:create_restricted","api_keys:create_mcp"]}},"/v2/api_keys/{id}":{"get":{"tags":["API Keys"],"operationId":"getApiKey","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ApiKeyId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A credential for programmatic access to the Maple API, scoped to one organization. The secret is shown only once (at creation or roll); afterward only its `key_prefix` is stored and returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ApiKeyNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single API key by its `key_â¦` ID (without the secret). Requires the `api_keys:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an API key","x-required-permissions":["telemetry:read"]},"delete":{"tags":["API Keys"],"operationId":"revokeApiKey","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ApiKeyId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The final API key state after a mutation. `txid` is optional reconciliation metadata for ElectricSQL-integrated clients; other public API consumers do not need it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyMutationResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ApiKeyNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Permanently revokes an API key and returns the final object. A revoked key can no longer authenticate. Requires the `api_keys:write` scope and an org-admin role, except that a member may revoke an MCP key they created or a device key their own app minted.\n\nDepending on the request, the caller's role may need Manage all API keys (`api_keys:manage`), Create restricted API keys (`api_keys:create_restricted`) and Create MCP keys (`api_keys:create_mcp`).","summary":"Revoke an API key","x-conditional-permissions":["api_keys:manage","api_keys:create_restricted","api_keys:create_mcp"]}},"/v2/api_keys/{id}/roll":{"post":{"tags":["API Keys"],"operationId":"rollApiKey","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ApiKeyId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An API key including its one-time `secret`. Returned only by the create and roll endpoints; every other endpoint returns the `ApiKey` object without the secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyWithSecret"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ApiKeyNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Revokes the existing key and creates a replacement with a new `key_â¦` ID and one-time `secret`, preserving its name, description, kind, and scopes. Requires an org-admin role and the `api_keys:write` scope.\n\nDepending on the request, the caller's role may need Manage all API keys (`api_keys:manage`), Create restricted API keys (`api_keys:create_restricted`) and Create MCP keys (`api_keys:create_mcp`).","summary":"Roll an API key","x-conditional-permissions":["api_keys:manage","api_keys:create_restricted","api_keys:create_mcp"]}},"/v2/dashboards":{"get":{"tags":["Dashboards"],"operationId":"listDashboards","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a cursor-paginated list of dashboards, most recently updated first.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List dashboards","x-required-permissions":["telemetry:read"]},"post":{"tags":["Dashboards"],"operationId":"createDashboard","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The committed dashboard. `txid` is optional reconciliation metadata for ElectricSQL-integrated clients; other public API consumers do not need it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardMutationResponseEncoded"}}}},"400":{"description":"The @maple/http/errors/DashboardValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a dashboard and returns the committed object, with optional ElectricSQL reconciliation metadata when available.\n\nThe caller's role needs Build dashboards (`dashboards:edit`) and Read telemetry (`telemetry:read`). Depending on the request, it may also need Run raw SQL (`query:sql`).","summary":"Create a dashboard","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardCreateParamsEncoded"}}},"required":true},"x-required-permissions":["dashboards:edit","telemetry:read"],"x-conditional-permissions":["query:sql"]}},"/v2/dashboards/import/perses":{"post":{"tags":["Dashboards"],"operationId":"importPersesDashboard","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"DashboardPersesImport","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardPersesImport"}}}},"400":{"description":"The @maple/http/errors/DashboardValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Converts a Perses dashboard into Maple's dashboard model and returns any conversion warnings.\n\nThe caller's role needs Build dashboards (`dashboards:edit`) and Read telemetry (`telemetry:read`). Depending on the request, it may also need Run raw SQL (`query:sql`).","summary":"Import a Perses dashboard","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardPersesImportParams"}}},"required":true},"x-required-permissions":["dashboards:edit","telemetry:read"],"x-conditional-permissions":["query:sql"]}},"/v2/dashboards/import/grafana":{"post":{"tags":["Dashboards"],"operationId":"importGrafanaDashboard","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"DashboardGrafanaImport","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardGrafanaImport"}}}},"400":{"description":"The @maple/http/errors/DashboardValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Converts a Grafana dashboard into Maple's dashboard model: rows become sections, Prometheus targets PromQL widgets, and panels Maple cannot run notes. Returns the warnings and how many panels converted.\n\nThe caller's role needs Build dashboards (`dashboards:edit`) and Read telemetry (`telemetry:read`). Depending on the request, it may also need Run raw SQL (`query:sql`).","summary":"Import a Grafana dashboard","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardGrafanaImportParams"}}},"required":true},"x-required-permissions":["dashboards:edit","telemetry:read"],"x-conditional-permissions":["query:sql"]}},"/v2/dashboards/templates":{"get":{"tags":["Dashboards"],"operationId":"listDashboardTemplates","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardTemplateList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the built-in dashboard templates in the standard cursor-paginated list envelope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List dashboard templates","x-required-permissions":["telemetry:read"]}},"/v2/dashboards/templates/{template_id}/preview":{"post":{"tags":["Dashboards"],"operationId":"previewDashboardTemplate","parameters":[{"name":"template_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardTemplateId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The dashboard a template would build, without creating it. Nothing is persisted; the widgets are identical to what `instantiate` would save for the same parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardTemplatePreviewEncoded"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardTemplateNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardTemplateNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Builds the template for the given parameters and returns the resulting dashboard without saving it. Read-only â use `instantiate` to create the dashboard.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Preview a dashboard template","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardTemplatePreviewParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/dashboards/templates/{template_id}/instantiate":{"post":{"tags":["Dashboards"],"operationId":"instantiateDashboardTemplate","parameters":[{"name":"template_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardTemplateId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The committed dashboard. `txid` is optional reconciliation metadata for ElectricSQL-integrated clients; other public API consumers do not need it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardMutationResponseEncoded"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/ParameterMissingError failure. HTTP 400. | The @maple/http/errors/DashboardValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/ParameterMissingError"},{"$ref":"#/components/schemas/DashboardValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardTemplateNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardTemplateNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Builds and persists a new dashboard from a template and its required parameters.\n\nThe caller's role needs Build dashboards (`dashboards:edit`) and Read telemetry (`telemetry:read`).","summary":"Instantiate a dashboard template","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardTemplateInstantiateParams"}}},"required":true},"x-required-permissions":["dashboards:edit","telemetry:read"]}},"/v2/dashboards/{id}":{"get":{"tags":["Dashboards"],"operationId":"getDashboard","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A complete Maple dashboard definition, including its widgets and variables.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardEncoded"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a complete dashboard definition by its opaque `dash_` public ID.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a dashboard","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Dashboards"],"operationId":"updateDashboard","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The committed dashboard. `txid` is optional reconciliation metadata for ElectricSQL-integrated clients; other public API consumers do not need it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardMutationResponseEncoded"}}}},"400":{"description":"The @maple/http/errors/DashboardValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"409":{"description":"The @maple/http/errors/DashboardConcurrencyError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardConcurrencyError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Applies a partial JSON update; omitted fields retain their current values. Send `expected_version` to fail with 409 rather than overwrite a newer change.\n\nThe caller's role needs Build dashboards (`dashboards:edit`) and Read telemetry (`telemetry:read`). Depending on the request, it may also need Run raw SQL (`query:sql`).","summary":"Update a dashboard","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUpdateParamsEncoded"}}},"required":true},"x-required-permissions":["dashboards:edit","telemetry:read"],"x-conditional-permissions":["query:sql"]},"delete":{"tags":["Dashboards"],"operationId":"deleteDashboard","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A dashboard deletion tombstone. `txid` is optional reconciliation metadata for ElectricSQL-integrated clients.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDeleted"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Permanently deletes a dashboard and returns a tombstone, with optional ElectricSQL reconciliation metadata when available.\n\nThe caller's role needs Build dashboards (`dashboards:edit`) and Read telemetry (`telemetry:read`).","summary":"Delete a dashboard","x-required-permissions":["dashboards:edit","telemetry:read"]}},"/v2/dashboards/{id}/widget_data":{"post":{"tags":["Dashboards"],"operationId":"queryDashboardWidgetData","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Per-widget data for one batch, in request order, plus the resolved variable values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardWidgetData"}}}},"400":{"description":"The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Evaluates up to 4 widgets of a saved dashboard over a time range, from the stored widget definitions, exactly as the dashboard renders them. Read-only; requires `dashboards:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Query dashboard widget data","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardWidgetDataParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/dashboards/{id}/versions":{"get":{"tags":["Dashboards"],"operationId":"listDashboardVersions","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardVersionList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a newest-first, cursor-paginated audit history for a dashboard.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List dashboard versions","x-required-permissions":["telemetry:read"]}},"/v2/dashboards/{id}/versions/{version_id}":{"get":{"tags":["Dashboards"],"operationId":"getDashboardVersion","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true},{"name":"version_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardVersionId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"DashboardVersionDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardVersionDetailEncoded"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404. | The @maple/http/errors/DashboardVersionNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardNotFoundError"},{"$ref":"#/components/schemas/DashboardVersionNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns one dashboard version together with its complete immutable snapshot.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a dashboard version","x-required-permissions":["telemetry:read"]}},"/v2/dashboards/{id}/versions/{version_id}/restore":{"post":{"tags":["Dashboards"],"operationId":"restoreDashboardVersion","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true},{"name":"version_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardVersionId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The committed dashboard. `txid` is optional reconciliation metadata for ElectricSQL-integrated clients; other public API consumers do not need it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardMutationResponseEncoded"}}}},"400":{"description":"The @maple/http/errors/DashboardValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404. | The @maple/http/errors/DashboardVersionNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardNotFoundError"},{"$ref":"#/components/schemas/DashboardVersionNotFoundError"}]}}}},"409":{"description":"The @maple/http/errors/DashboardConcurrencyError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardConcurrencyError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Restores a historical snapshot as the dashboard's new current version.\n\nThe caller's role needs Build dashboards (`dashboards:edit`) and Read telemetry (`telemetry:read`). Depending on the request, it may also need Run raw SQL (`query:sql`).","summary":"Restore a dashboard version","x-required-permissions":["dashboards:edit","telemetry:read"],"x-conditional-permissions":["query:sql"]}},"/v2/dashboards/{id}/shares":{"get":{"tags":["Dashboards"],"operationId":"listDashboardShares","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DashboardShareEncoded"}}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SharePersistenceError failure. HTTP 503. | The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharePersistenceError"},{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns every live share on the dashboard: the board's own link, plus one per shared widget. Each carries its token when the key has traces:read, logs:read and metrics:read.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List a dashboard's share links","x-required-permissions":["telemetry:read"]}},"/v2/dashboards/{id}/widgets/{widget_id}/share":{"get":{"tags":["Dashboards"],"operationId":"getDashboardWidgetShare","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true},{"name":"widget_id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardShareEncoded"},{"type":"null"}]}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SharePersistenceError failure. HTTP 503. | The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharePersistenceError"},{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the live share link for one widget, or `null` when that widget is not shared.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a widget's share link","x-required-permissions":["telemetry:read"]},"put":{"tags":["Dashboards"],"operationId":"upsertDashboardWidgetShare","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true},{"name":"widget_id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A share link for a dashboard, including its `token` when the caller can read the telemetry it serves. `mode` is `public` (anyone with the link) or `org` (signed-in members of the owning organization).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardShareEncoded"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404. | The @maple/http/errors/ShareWidgetNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardNotFoundError"},{"$ref":"#/components/schemas/ShareWidgetNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SharePersistenceError failure. HTTP 503. | The @maple/http/errors/ShareNotConfiguredError failure. HTTP 503. | The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharePersistenceError"},{"$ref":"#/components/schemas/ShareNotConfiguredError"},{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a share link scoped to one widget, or changes the mode of the one it already has. The link only resolves while the dashboard itself is shared, and never grants more than the dashboard's own mode: unsharing the board disables it, sharing the board again restores it. A `public` widget share on a `public` dashboard may be embedded in an iframe.\n\nThe caller's role needs Share dashboards publicly (`dashboards:share`) and Read telemetry (`telemetry:read`). Depending on the request, it may also need Run raw SQL (`query:sql`).","summary":"Share a single widget","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardShareParamsEncoded"}}},"required":true},"x-required-permissions":["dashboards:share","telemetry:read"],"x-conditional-permissions":["query:sql"]},"delete":{"tags":["Dashboards"],"operationId":"revokeDashboardWidgetShare","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true},{"name":"widget_id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Returned whether or not a live share existed â revoking an unshared dashboard is a no-op, not an error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardShareDeletedEncoded"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SharePersistenceError failure. HTTP 503. | The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharePersistenceError"},{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Revokes the widget's share link. Idempotent â revoking an unshared widget succeeds and reports `deleted: true`.\n\nThe caller's role needs Share dashboards publicly (`dashboards:share`) and Read telemetry (`telemetry:read`).","summary":"Stop sharing a widget","x-required-permissions":["dashboards:share","telemetry:read"]}},"/v2/dashboards/{id}/widgets/{widget_id}/share/rotate":{"post":{"tags":["Dashboards"],"operationId":"rotateDashboardWidgetShare","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true},{"name":"widget_id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A share link for a dashboard, including its `token` when the caller can read the telemetry it serves. `mode` is `public` (anyone with the link) or `org` (signed-in members of the owning organization).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardShareEncoded"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ShareNotFoundError failure. HTTP 404. | The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ShareNotFoundError"},{"$ref":"#/components/schemas/DashboardNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SharePersistenceError failure. HTTP 503. | The @maple/http/errors/ShareNotConfiguredError failure. HTTP 503. | The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharePersistenceError"},{"$ref":"#/components/schemas/ShareNotConfiguredError"},{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Revokes the widget's current link and mints a replacement. Any embed using the old URL stops rendering immediately.\n\nThe caller's role needs Share dashboards publicly (`dashboards:share`) and Read telemetry (`telemetry:read`). Depending on the request, it may also need Run raw SQL (`query:sql`).","summary":"Regenerate a widget's share link","x-required-permissions":["dashboards:share","telemetry:read"],"x-conditional-permissions":["query:sql"]}},"/v2/dashboards/{id}/share":{"get":{"tags":["Dashboards"],"operationId":"getDashboardShare","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardShareEncoded"},{"type":"null"}]}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SharePersistenceError failure. HTTP 503. | The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharePersistenceError"},{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the dashboard's live share link, or `null` when it is not shared. The token is included when the key has traces:read, logs:read and metrics:read.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a dashboard's share link","x-required-permissions":["telemetry:read"]},"put":{"tags":["Dashboards"],"operationId":"upsertDashboardShare","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A share link for a dashboard, including its `token` when the caller can read the telemetry it serves. `mode` is `public` (anyone with the link) or `org` (signed-in members of the owning organization).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardShareEncoded"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SharePersistenceError failure. HTTP 503. | The @maple/http/errors/ShareNotConfiguredError failure. HTTP 503. | The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharePersistenceError"},{"$ref":"#/components/schemas/ShareNotConfiguredError"},{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates the dashboard's share link, or changes the mode of the one it already has. Changing the mode keeps the same link, so the returned token is unchanged.\n\nThe caller's role needs Share dashboards publicly (`dashboards:share`) and Read telemetry (`telemetry:read`). Depending on the request, it may also need Run raw SQL (`query:sql`).","summary":"Share a dashboard","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardShareParamsEncoded"}}},"required":true},"x-required-permissions":["dashboards:share","telemetry:read"],"x-conditional-permissions":["query:sql"]},"delete":{"tags":["Dashboards"],"operationId":"revokeDashboardShare","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Returned whether or not a live share existed â revoking an unshared dashboard is a no-op, not an error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardShareDeletedEncoded"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SharePersistenceError failure. HTTP 503. | The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharePersistenceError"},{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Revokes the dashboard's share link. Idempotent â revoking an unshared dashboard succeeds and reports `deleted: true`.\n\nThe caller's role needs Share dashboards publicly (`dashboards:share`) and Read telemetry (`telemetry:read`).","summary":"Stop sharing a dashboard","x-required-permissions":["dashboards:share","telemetry:read"]}},"/v2/dashboards/{id}/share/rotate":{"post":{"tags":["Dashboards"],"operationId":"rotateDashboardShare","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_DashboardId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A share link for a dashboard, including its `token` when the caller can read the telemetry it serves. `mode` is `public` (anyone with the link) or `org` (signed-in members of the owning organization).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardShareEncoded"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ShareNotFoundError failure. HTTP 404. | The @maple/http/errors/DashboardNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ShareNotFoundError"},{"$ref":"#/components/schemas/DashboardNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/DashboardStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DashboardStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SharePersistenceError failure. HTTP 503. | The @maple/http/errors/ShareNotConfiguredError failure. HTTP 503. | The @maple/http/errors/DashboardPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharePersistenceError"},{"$ref":"#/components/schemas/ShareNotConfiguredError"},{"$ref":"#/components/schemas/DashboardPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Revokes the current link and mints a replacement in one step. The previous URL stops resolving immediately.\n\nThe caller's role needs Share dashboards publicly (`dashboards:share`) and Read telemetry (`telemetry:read`). Depending on the request, it may also need Run raw SQL (`query:sql`).","summary":"Regenerate a dashboard's share link","x-required-permissions":["dashboards:share","telemetry:read"],"x-conditional-permissions":["query:sql"]}},"/v2/alerts/rules":{"get":{"tags":["Alert Rules"],"operationId":"listAlertRules","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of alert rules.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertRuleStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's alert rules, most recently created first. Cursor-paginated. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List alert rules","x-required-permissions":["telemetry:read"]},"post":{"tags":["Alert Rules"],"operationId":"createAlertRule","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The alert rule state after a create or update. `txid` is optional reconciliation metadata for ElectricSQL-integrated clients; other public API consumers do not need it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleMutationResponse"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertRuleDestinationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleDestinationNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates an alert rule. Referenced `destination_ids` must exist. Requires an org-admin role and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`) and Run raw SQL (`query:sql`).","summary":"Create an alert rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleCreateParams"}}},"required":true},"x-conditional-permissions":["alerts:manage","query:sql"]}},"/v2/alerts/rules/{id}":{"get":{"tags":["Alert Rules"],"operationId":"getAlertRule","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertRuleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A monitor that evaluates a built-in signal, query-builder query, or raw SQL over a rolling window and opens incidents when the threshold condition holds for enough consecutive checks. Metrics use the same query-builder path as metric charts. Notifications are delivered to the referenced alert destinations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRule"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertRuleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertRuleStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single alert rule by its `alrt_â¦` ID. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an alert rule","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Alert Rules"],"operationId":"updateAlertRule","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertRuleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The alert rule state after a create or update. `txid` is optional reconciliation metadata for ElectricSQL-integrated clients; other public API consumers do not need it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleMutationResponse"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertRuleNotFoundError failure. HTTP 404. | The @maple/http/errors/AlertRuleDestinationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleNotFoundError"},{"$ref":"#/components/schemas/AlertRuleDestinationNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertRuleStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates an alert rule. Omitted fields are left unchanged â `{\"enabled\": false}` pauses a rule without touching its condition. Requires an org-admin role and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`) and Run raw SQL (`query:sql`).","summary":"Update an alert rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleUpdateParams"}}},"required":true},"x-conditional-permissions":["alerts:manage","query:sql"]},"delete":{"tags":["Alert Rules"],"operationId":"deleteAlertRule","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertRuleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an alert rule was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleDeleteResponse"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertRuleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Permanently deletes an alert rule and its incident history linkage. Requires an org-admin role and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Delete an alert rule","x-conditional-permissions":["alerts:manage"]}},"/v2/alerts/rules/test":{"post":{"tags":["Alert Rules"],"operationId":"testAlertRule","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The outcome of a one-off rule evaluation against live data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleTestResult"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/errors/QueryEngineValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/QueryEngineValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertRuleDestinationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleDestinationNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertDestinationDecryptionError failure. HTTP 500. | The @maple/http/errors/AlertDestinationStoredConfigInvalidError failure. HTTP 500. | The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/errors/TinybirdOrgTokenConfigError failure. HTTP 500. | The @maple/http/errors/TinybirdOrgTokenMintError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertDestinationDecryptionError"},{"$ref":"#/components/schemas/AlertDestinationStoredConfigInvalidError"},{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/TinybirdOrgTokenConfigError"},{"$ref":"#/components/schemas/TinybirdOrgTokenMintError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/AlertDeliveryError failure. HTTP 502. | The @maple/http/errors/AlertDeliveryAuthError failure. HTTP 502. | The @maple/http/errors/AlertDeliveryTargetMissingError failure. HTTP 502. | The @maple/http/errors/AlertDeliveryRejectedError failure. HTTP 502. | The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertDeliveryError"},{"$ref":"#/components/schemas/AlertDeliveryAuthError"},{"$ref":"#/components/schemas/AlertDeliveryTargetMissingError"},{"$ref":"#/components/schemas/AlertDeliveryRejectedError"},{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/errors/QueryEngineTimeoutError failure. HTTP 504. | The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QueryEngineTimeoutError"},{"$ref":"#/components/schemas/WorkerUnavailableError"}]}}}}},"description":"Evaluates a rule definition once against live data without saving it, optionally delivering a test notification. Requires an org-admin role, the `alerts:write` scope, and read scopes for the telemetry the rule queries (`traces:read` for the built-in signals, the draft's source for `builder_query`, and all of `traces:read`, `logs:read`, `metrics:read` for `raw_query`).\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage alerts (`alerts:manage`) and Run raw SQL (`query:sql`).","summary":"Test an alert rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleTestParams"}}},"required":true},"x-required-permissions":["telemetry:read"],"x-conditional-permissions":["alerts:manage","query:sql"]}},"/v2/alerts/rules/preview":{"post":{"tags":["Alert Rules"],"operationId":"previewAlertRule","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Evaluator-faithful preview of a rule over a historical range: the per-window observations the scheduler would have computed, and when incidents would have fired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRulePreviewResult"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/errors/QueryEngineValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/QueryEngineValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/errors/TinybirdOrgTokenConfigError failure. HTTP 500. | The @maple/http/errors/TinybirdOrgTokenMintError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/TinybirdOrgTokenConfigError"},{"$ref":"#/components/schemas/TinybirdOrgTokenMintError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/errors/QueryEngineTimeoutError failure. HTTP 504. | The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QueryEngineTimeoutError"},{"$ref":"#/components/schemas/WorkerUnavailableError"}]}}}}},"description":"Replays a rule definition over a historical range and returns the per-window observations and would-have-fired spans. Read-only (sends nothing). Requires the `alerts:read` scope (`alerts:write` for `raw_query`) plus read scopes for the telemetry the rule queries (`traces:read` for the built-in signals, the draft's source for `builder_query`, and all of `traces:read`, `logs:read`, `metrics:read` for `raw_query`).\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage alerts (`alerts:manage`) and Run raw SQL (`query:sql`).","summary":"Preview an alert rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRulePreviewParams"}}},"required":true},"x-required-permissions":["telemetry:read"],"x-conditional-permissions":["alerts:manage","query:sql"]}},"/v2/alerts/rules/{id}/checks":{"get":{"tags":["Alert Rules"],"operationId":"listAlertRuleChecks","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertRuleId"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"group_key","in":"query","schema":{"type":"string","description":"Only return checks for this group key.","examples":["__total__"]},"required":false},{"name":"since","in":"query","schema":{"type":"string"},"required":false},{"name":"until","in":"query","schema":{"type":"string"},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/_maple_AlertCheckStatus"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of alert checks, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertCheckList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertRuleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the rule's recorded evaluations (its audit trail), newest first, optionally filtered by group key and time range. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List a rule's checks","x-required-permissions":["telemetry:read"]}},"/v2/alerts/rules/{id}/checks/summary":{"get":{"tags":["Alert Rules"],"operationId":"summarizeAlertRuleChecks","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertRuleId"},"required":true},{"name":"since","in":"query","schema":{"type":"string"},"required":true},{"name":"until","in":"query","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Adaptive time buckets for up to one year of checks. The busiest 20 groups are preserved and the remainder is returned as `__other__`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertCheckSummary"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertRuleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns adaptive check-history buckets for a range of up to 365 days. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Summarize a rule's checks","x-required-permissions":["telemetry:read"]}},"/v2/alerts/deliveries":{"get":{"tags":["Alert Deliveries"],"operationId":"listAlertDeliveries","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"incident_id","in":"query","schema":{"$ref":"#/components/schemas/_maple_AlertIncidentId"},"required":false},{"name":"rule_id","in":"query","schema":{"$ref":"#/components/schemas/_maple_AlertRuleId"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDeliveryList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the organization's most recent alert notification attempts, newest first, optionally filtered by `incident_id` or `rule_id`. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List alert deliveries","x-required-permissions":["telemetry:read"]}},"/v2/alerts/destinations":{"get":{"tags":["Alert Destinations"],"operationId":"listAlertDestinations","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of alert destinations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertDestinationStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertDestinationStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's alert destinations, most recently created first. Cursor-paginated. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List alert destinations","x-required-permissions":["telemetry:read"]},"post":{"tags":["Alert Destinations"],"operationId":"createAlertDestination","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"An alert destination returned by a create or update mutation, with optional sync metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationMutationResponse"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/errors/AlertRecipientSelectionError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/AlertRecipientSelectionError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/errors/IntegrationsRevokedError failure. HTTP 401. | The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsRevokedError"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/IntegrationsNotConnectedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotConnectedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertDestinationEncryptionError failure. HTTP 500. | The @maple/http/errors/AlertMemberDirectoryNotConfiguredError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertDestinationEncryptionError"},{"$ref":"#/components/schemas/AlertMemberDirectoryNotConfiguredError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/IntegrationsUpstreamError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsUpstreamError"}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/AlertMemberDirectoryUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/AlertMemberDirectoryUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a notification channel that alert rules can deliver to. The request body is discriminated on `type`; channel secrets are write-only. Requires an org-admin role and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Create an alert destination","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationCreateParams"}}},"required":true},"x-conditional-permissions":["alerts:manage"]}},"/v2/alerts/destinations/telegram/chats":{"post":{"tags":["Alert Destinations"],"operationId":"listTelegramChats","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Chats discovered from the bot's pending updates. Not the standard list envelope: there is no cursor, because Telegram exposes a short retention window rather than a paginated inventory.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramChatList"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Reads a bot's pending updates and returns the chats it can currently post to, so a destination can be created by picking a chat instead of transcribing its numeric ID. The token is used for one read and never stored. Telegram retains updates for about 24 hours; a bot with a webhook registered cannot be inspected this way. Requires an org-admin role and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"List the chats a Telegram bot can see","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramChatsParams"}}},"required":true},"x-conditional-permissions":["alerts:manage"]}},"/v2/alerts/destinations/{id}":{"get":{"tags":["Alert Destinations"],"operationId":"getAlertDestination","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertDestinationId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A notification channel that alert rules deliver to (PagerDuty, generic webhook, Discord, Telegram, Google Chat, Microsoft Teams, incident.io, workspace-member email, a channel in a linked chat workspace, or a Linear team). Channel secrets are write-only: responses carry a redacted `summary` instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestination"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertDestinationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertDestinationStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertDestinationStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single alert destination by its `dest_â¦` ID. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an alert destination","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Alert Destinations"],"operationId":"updateAlertDestination","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertDestinationId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An alert destination returned by a create or update mutation, with optional sync metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationMutationResponse"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/errors/AlertRecipientSelectionError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/AlertRecipientSelectionError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/errors/IntegrationsRevokedError failure. HTTP 401. | The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsRevokedError"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertDestinationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationNotFoundError"}}}},"409":{"description":"The @maple/http/errors/IntegrationsNotConnectedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotConnectedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertDestinationEncryptionError failure. HTTP 500. | The @maple/http/errors/AlertDestinationDecryptionError failure. HTTP 500. | The @maple/http/errors/AlertDestinationStoredConfigInvalidError failure. HTTP 500. | The @maple/http/errors/AlertMemberDirectoryNotConfiguredError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertDestinationEncryptionError"},{"$ref":"#/components/schemas/AlertDestinationDecryptionError"},{"$ref":"#/components/schemas/AlertDestinationStoredConfigInvalidError"},{"$ref":"#/components/schemas/AlertMemberDirectoryNotConfiguredError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/IntegrationsUpstreamError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsUpstreamError"}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/AlertMemberDirectoryUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/AlertMemberDirectoryUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates a destination's configuration. `type` must match the destination's existing type; omitted fields are unchanged. Requires an org-admin role and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Update an alert destination","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationUpdateParams"}}},"required":true},"x-conditional-permissions":["alerts:manage"]},"delete":{"tags":["Alert Destinations"],"operationId":"deleteAlertDestination","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertDestinationId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an alert destination was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertDestinationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationNotFoundError"}}}},"409":{"description":"The @maple/http/errors/AlertDestinationInUseError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationInUseError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertRuleStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Permanently deletes a destination. Fails with a `conflict_error` if any alert rule still references it â detach it from those rules first. Requires an org-admin role and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Delete an alert destination","x-conditional-permissions":["alerts:manage"]}},"/v2/alerts/destinations/{id}/test":{"post":{"tags":["Alert Destinations"],"operationId":"testAlertDestination","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertDestinationId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The outcome of sending a test notification to a destination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationTestResult"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertDestinationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDestinationNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertDestinationDecryptionError failure. HTTP 500. | The @maple/http/errors/AlertDestinationStoredConfigInvalidError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertDestinationDecryptionError"},{"$ref":"#/components/schemas/AlertDestinationStoredConfigInvalidError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/AlertDeliveryError failure. HTTP 502. | The @maple/http/errors/AlertDeliveryAuthError failure. HTTP 502. | The @maple/http/errors/AlertDeliveryTargetMissingError failure. HTTP 502. | The @maple/http/errors/AlertDeliveryRejectedError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertDeliveryError"},{"$ref":"#/components/schemas/AlertDeliveryAuthError"},{"$ref":"#/components/schemas/AlertDeliveryTargetMissingError"},{"$ref":"#/components/schemas/AlertDeliveryRejectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Sends a test notification through the destination and reports the delivery outcome. Requires an org-admin role and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Test an alert destination","x-conditional-permissions":["alerts:manage"]}},"/v2/alerts/incidents":{"get":{"tags":["Alert Incidents"],"operationId":"listAlertIncidents","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/_maple_AlertIncidentStatus"},"required":false},{"name":"rule_id","in":"query","schema":{"$ref":"#/components/schemas/_maple_AlertRuleId"},"required":false},{"name":"acknowledged","in":"query","schema":{"type":"string","enum":["true","false"],"description":"`true` for open incidents someone has acknowledged, `false` for open incidents nobody has. Implies `status=open`.","examples":["false"]},"required":false},{"name":"paged","in":"query","schema":{"type":"string","enum":["me"],"description":"`me` for incidents an escalation step paged the calling user for, on any channel that delivered: with an API key, the user who created the key. Combine with `status=open` for what is paging you now.","examples":["me"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of alert incidents.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's alert incidents, most recently triggered first, optionally filtered by `status`, `rule_id`, `acknowledged` or `paged`. Cursor-paginated. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List alert incidents","x-required-permissions":["telemetry:read"]}},"/v2/alerts/incidents/{id}":{"get":{"tags":["Alert Incidents"],"operationId":"getAlertIncident","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A period during which an alert rule's condition held: opened after enough consecutive breaches, resolved by the scheduler after enough consecutive healthy checks. An open incident can be acknowledged to pause reminders; resolution is scheduler-driven.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncident"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertIncidentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single alert incident by its `inc_â¦` ID. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an alert incident","x-required-permissions":["telemetry:read"]}},"/v2/alerts/incidents/{id}/acknowledge":{"post":{"tags":["Alert Incidents"],"operationId":"acknowledgeAlertIncident","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A period during which an alert rule's condition held: opened after enough consecutive breaches, resolved by the scheduler after enough consecutive healthy checks. An open incident can be acknowledged to pause reminders; resolution is scheduler-driven.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncident"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertIncidentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentNotFoundError"}}}},"409":{"description":"The @maple/http/errors/AlertIncidentResolvedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentResolvedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Marks an open incident as acknowledged by the calling user, which pauses reminders until it is unacknowledged, escalates to a higher severity, or resolves. Acknowledging an already acknowledged incident changes nothing and returns it. Fails with 409 on a resolved incident. Requires the `alerts:write` scope.\n\nThe caller's role needs Respond to incidents (`incidents:respond`) and Read telemetry (`telemetry:read`).","summary":"Acknowledge an alert incident","x-required-permissions":["incidents:respond","telemetry:read"]}},"/v2/alerts/incidents/{id}/unacknowledge":{"post":{"tags":["Alert Incidents"],"operationId":"unacknowledgeAlertIncident","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A period during which an alert rule's condition held: opened after enough consecutive breaches, resolved by the scheduler after enough consecutive healthy checks. An open incident can be acknowledged to pause reminders; resolution is scheduler-driven.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncident"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertIncidentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentNotFoundError"}}}},"409":{"description":"The @maple/http/errors/AlertIncidentResolvedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentResolvedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Clears an open incident's acknowledgement, so reminders resume: one that came due while it was acknowledged is sent on the next check. Fails with 409 on a resolved incident. Requires the `alerts:write` scope.\n\nThe caller's role needs Respond to incidents (`incidents:respond`) and Read telemetry (`telemetry:read`).","summary":"Unacknowledge an alert incident","x-required-permissions":["incidents:respond","telemetry:read"]}},"/v2/alerts/incidents/{id}/resolve":{"post":{"tags":["Alert Incidents"],"operationId":"resolveAlertIncident","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A period during which an alert rule's condition held: opened after enough consecutive breaches, resolved by the scheduler after enough consecutive healthy checks. An open incident can be acknowledged to pause reminders; resolution is scheduler-driven.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncident"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertIncidentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentNotFoundError"}}}},"409":{"description":"The @maple/http/errors/AlertIncidentResolvedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentResolvedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Resolves an open incident by hand and sends the all-clear to every destination it notified. If the rule still breaches, it opens no new incident for this group until a check reads healthy or reads no data, and for a day at most, so a resolve is not undone a minute later. Fails with 409 on an incident that is already resolved. Requires the `alerts:write` scope.\n\nThe caller's role needs Respond to incidents (`incidents:respond`) and Read telemetry (`telemetry:read`).","summary":"Resolve an alert incident","x-required-permissions":["incidents:respond","telemetry:read"]}},"/v2/alerts/incidents/{id}/events":{"get":{"tags":["Alert Incidents"],"operationId":"listAlertIncidentEvents","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An incident's activity, oldest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentEventList"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertIncidentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIncidentNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the incident's acknowledgement history, oldest first, up to its 500 most recent entries. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List an alert incident's events","x-required-permissions":["telemetry:read"]}},"/v2/alerts/escalation_chains":{"get":{"tags":["Escalation Chains"],"operationId":"listEscalationChains","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of escalation chains, by name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChainList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's escalation chains by name, each with the rules that use it. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List escalation chains","x-required-permissions":["telemetry:read"]},"post":{"tags":["Escalation Chains"],"operationId":"createEscalationChain","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"An ordered paging policy. When an incident opens at a severity tier that names the chain, the tier's own destinations fire at once and the chain runs on top: each step notifies its targets, then waits for an acknowledgement before the next. Escalation stops when the incident is acknowledged or resolved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChain"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/AlertMemberDirectoryUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/AlertMemberDirectoryUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a chain. Attach it to an alert rule through a severity tier's `escalation_chain_id`. Fails with an `invalid_request_error` when a step names an unknown destination or schedule, or a user who is not a member. Requires a role that can manage alerts and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Create an escalation chain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChainCreateParams"}}},"required":true},"x-conditional-permissions":["oncall:manage"]}},"/v2/alerts/escalation_chains/{id}":{"get":{"tags":["Escalation Chains"],"operationId":"getEscalationChain","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_EscalationChainId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An ordered paging policy. When an incident opens at a severity tier that names the chain, the tier's own destinations fire at once and the chain runs on top: each step notifies its targets, then waits for an acknowledgement before the next. Escalation stops when the incident is acknowledged or resolved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChain"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/EscalationChainNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChainNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single escalation chain by its `esc_â¦` ID. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an escalation chain","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Escalation Chains"],"operationId":"updateEscalationChain","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_EscalationChainId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An ordered paging policy. When an incident opens at a severity tier that names the chain, the tier's own destinations fire at once and the chain runs on top: each step notifies its targets, then waits for an acknowledgement before the next. Escalation stops when the incident is acknowledged or resolved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChain"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/EscalationChainNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChainNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/AlertMemberDirectoryUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/AlertMemberDirectoryUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Changes the name, description, steps or repeat count. New incidents use the new steps. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Update an escalation chain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChainUpdateParams"}}},"required":true},"x-conditional-permissions":["oncall:manage"]},"delete":{"tags":["Escalation Chains"],"operationId":"deleteEscalationChain","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_EscalationChainId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an escalation chain was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChainDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/EscalationChainNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChainNotFoundError"}}}},"409":{"description":"The @maple/http/errors/EscalationChainInUseError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationChainInUseError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes a chain. Fails with a `conflict_error` while any alert rule tier still names it; detach it from those rules first. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Delete an escalation chain","x-conditional-permissions":["oncall:manage"]}},"/v2/alerts/oncall_schedules":{"get":{"tags":["On-Call Schedules"],"operationId":"listOnCallSchedules","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of on-call schedules, by name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's on-call schedules by name, each with who is on call now. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List on-call schedules","x-required-permissions":["telemetry:read"]},"post":{"tags":["On-Call Schedules"],"operationId":"createOnCallSchedule","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Who is on call when. Each layer rotates its participants; later layers win where they have someone on call, and overrides beat every layer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallSchedule"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertMemberDirectoryNotConfiguredError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertMemberDirectoryNotConfiguredError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/AlertMemberDirectoryUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/AlertMemberDirectoryUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a schedule. Fails with an `invalid_request_error` when a participant is not a member of your organization, or at 50 schedules. Requires a role that can manage alerts and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Create an on-call schedule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleCreateParams"}}},"required":true},"x-conditional-permissions":["oncall:manage"]}},"/v2/alerts/oncall_schedules/{id}":{"get":{"tags":["On-Call Schedules"],"operationId":"getOnCallSchedule","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Who is on call when. Each layer rotates its participants; later layers win where they have someone on call, and overrides beat every layer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallSchedule"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single schedule by its `onc_â¦` ID. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an on-call schedule","x-required-permissions":["telemetry:read"]},"patch":{"tags":["On-Call Schedules"],"operationId":"updateOnCallSchedule","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Who is on call when. Each layer rotates its participants; later layers win where they have someone on call, and overrides beat every layer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallSchedule"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertMemberDirectoryNotConfiguredError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertMemberDirectoryNotConfiguredError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/AlertMemberDirectoryUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/AlertMemberDirectoryUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Changes the name, description, time zone or layers. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Update an on-call schedule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleUpdateParams"}}},"required":true},"x-conditional-permissions":["oncall:manage"]},"delete":{"tags":["On-Call Schedules"],"operationId":"deleteOnCallSchedule","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an on-call schedule and its overrides were deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"}}}},"409":{"description":"The @maple/http/errors/OnCallScheduleInUseError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleInUseError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes a schedule and its overrides. Fails with a `conflict_error` while an escalation chain pages it. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Delete an on-call schedule","x-conditional-permissions":["oncall:manage"]}},"/v2/alerts/oncall_schedules/{id}/calendar_feed":{"post":{"tags":["On-Call Schedules"],"operationId":"createOnCallCalendarFeed","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true},{"name":"replace","in":"query","schema":{"type":"string","enum":["true","false"],"description":"`true` to replace a link the feed already has. Left out or `false`, the request fails when one exists, so a link in use is never ended by accident.","examples":["true"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A private iCalendar link for one schedule: its shifts from a week back to 60 days ahead, one event per shift.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallCalendarFeed"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"}}}},"409":{"description":"The @maple/http/errors/OnCallCalendarFeedExistsError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallCalendarFeedExistsError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Turns on the schedule's private iCalendar feed and returns its link. Fails with a `conflict_error` when the feed already has a link, unless `replace=true`: replacing ends the old link at once, for every calendar subscribed to it. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Create or replace a schedule's calendar feed","x-conditional-permissions":["oncall:manage"]},"delete":{"tags":["On-Call Schedules"],"operationId":"deleteOnCallCalendarFeed","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that a schedule's calendar feed was turned off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallCalendarFeedDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"The feed's link stops working at once. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Turn off a schedule's calendar feed","x-conditional-permissions":["oncall:manage"]}},"/v2/alerts/oncall_schedules/{id}/oncall":{"get":{"tags":["On-Call Schedules"],"operationId":"getOnCall","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true},{"name":"at","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Who is on call for a schedule at one instant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallAt"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns who is on call for the schedule at `at` (default now), with the shift's bounds. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Who is on call","x-required-permissions":["telemetry:read"]}},"/v2/alerts/oncall_schedules/{id}/shifts":{"get":{"tags":["On-Call Schedules"],"operationId":"listOnCallShifts","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true},{"name":"from","in":"query","schema":{"type":"string"},"required":false},{"name":"to","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A schedule rendered over a time range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallShifts"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Renders the schedule over `from` to `to`: each layer's shifts and the effective shifts after overrides. Ranges past 90 days are cut to 90. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Render on-call shifts","x-required-permissions":["telemetry:read"]}},"/v2/alerts/oncall_schedules/{id}/overrides":{"get":{"tags":["On-Call Schedules"],"operationId":"listOnCallOverrides","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"from","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of overrides, by start time.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallOverrideList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the schedule's overrides that end after `from` (default now), by start time. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List on-call overrides","x-required-permissions":["telemetry:read"]},"post":{"tags":["On-Call Schedules"],"operationId":"createOnCallOverride","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"One person covering a schedule for a window. Beats every layer; the newest overlapping override wins.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallOverride"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/AlertMemberDirectoryNotConfiguredError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertMemberDirectoryNotConfiguredError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/AlertMemberDirectoryUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/AlertMemberDirectoryUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Puts one member on call for a window, over every layer. At most 90 days long, not entirely in the past, and 500 upcoming overrides per schedule. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Create an on-call override","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallOverrideCreateParams"}}},"required":true},"x-conditional-permissions":["oncall:manage"]}},"/v2/alerts/oncall_schedules/{id}/overrides/{override_id}":{"delete":{"tags":["On-Call Schedules"],"operationId":"deleteOnCallOverride","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallScheduleId"},"required":true},{"name":"override_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_OnCallOverrideId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an override was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallOverrideDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnCallScheduleNotFoundError failure. HTTP 404. | The @maple/http/errors/OnCallOverrideNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnCallScheduleNotFoundError"},{"$ref":"#/components/schemas/OnCallOverrideNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes an override; the layers decide again. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage on-call schedules (`oncall:manage`).","summary":"Delete an on-call override","x-conditional-permissions":["oncall:manage"]}},"/v2/alerts/oncall_overview":{"get":{"tags":["On-Call Overview"],"operationId":"getOnCallOverview","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Who is on call across the organization, and when the calling user is.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallOverview"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns who is on call on every schedule, each schedule's next 14 days with its coverage gaps, and the calling user's own shifts over the next 60 days. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Who is on call, and when you are","x-required-permissions":["telemetry:read"]}},"/v2/alerts/silences":{"get":{"tags":["Alert Silences"],"operationId":"listAlertSilences","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/_maple_AlertSilenceStatus"},"required":false},{"name":"maintenance_window_id","in":"query","schema":{"$ref":"#/components/schemas/_maple_AlertMaintenanceWindowId"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of alert silences, latest ending first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilenceList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's alert silences, latest ending first, optionally filtered by `status`. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List alert silences","x-required-permissions":["telemetry:read"]},"post":{"tags":["Alert Silences"],"operationId":"createAlertSilence","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A window during which matching alert rules keep evaluating and opening incidents, but send no notifications. Held-back notifications are recorded as `silenced` deliveries. When it ends on a still-open incident, the next breaching check sends the page once; a resolve during the silence reaches only destinations paged before it began.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilence"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Silences notifications for matching rules from `starts_at` (default now) until `ends_at`. Requires a role that can manage alerts and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Create an alert silence","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilenceCreateParams"}}},"required":true},"x-conditional-permissions":["alerts:manage"]}},"/v2/alerts/silences/{id}":{"get":{"tags":["Alert Silences"],"operationId":"getAlertSilence","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertSilenceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A window during which matching alert rules keep evaluating and opening incidents, but send no notifications. Held-back notifications are recorded as `silenced` deliveries. When it ends on a still-open incident, the next breaching check sends the page once; a resolve during the silence reaches only destinations paged before it began.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilence"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertSilenceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilenceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single alert silence by its `sil_â¦` ID. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an alert silence","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Alert Silences"],"operationId":"updateAlertSilence","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertSilenceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A window during which matching alert rules keep evaluating and opening incidents, but send no notifications. Held-back notifications are recorded as `silenced` deliveries. When it ends on a still-open incident, the next breaching check sends the page once; a resolve during the silence reaches only destinations paged before it began.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilence"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertSilenceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilenceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Changes the reason, matchers or window of an active or scheduled silence. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Update an alert silence","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilenceUpdateParams"}}},"required":true},"x-conditional-permissions":["alerts:manage"]}},"/v2/alerts/silences/{id}/end":{"post":{"tags":["Alert Silences"],"operationId":"endAlertSilence","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertSilenceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A window during which matching alert rules keep evaluating and opening incidents, but send no notifications. Held-back notifications are recorded as `silenced` deliveries. When it ends on a still-open incident, the next breaching check sends the page once; a resolve during the silence reaches only destinations paged before it began.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilence"}}}},"400":{"description":"The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertSilenceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSilenceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Ends an active silence now, or cancels a scheduled one. Silences are kept, not deleted, so incident history can still name them. A maintenance window's silence is refused: edit or disable the window. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"End an alert silence","x-conditional-permissions":["alerts:manage"]}},"/v2/alerts/maintenance_windows":{"get":{"tags":["Alert Maintenance Windows"],"operationId":"listAlertMaintenanceWindows","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of maintenance windows, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindowList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's maintenance windows, newest first. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List maintenance windows","x-required-permissions":["telemetry:read"]},"post":{"tags":["Alert Maintenance Windows"],"operationId":"createAlertMaintenanceWindow","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A one-off or weekly window during which matching alert rules are silenced. Each occurrence is written ahead as an alert silence carrying `maintenance_window_id`, so rules keep evaluating and only notifications are held back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindow"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a one-off or weekly maintenance window. Its occurrences in the next 48 hours are written as silences right away. Requires a role that can manage alerts and the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Create a maintenance window","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindowCreateParams"}}},"required":true},"x-conditional-permissions":["alerts:manage"]}},"/v2/alerts/maintenance_windows/{id}":{"get":{"tags":["Alert Maintenance Windows"],"operationId":"getAlertMaintenanceWindow","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertMaintenanceWindowId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A one-off or weekly window during which matching alert rules are silenced. Each occurrence is written ahead as an alert silence carrying `maintenance_window_id`, so rules keep evaluating and only notifications are held back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindow"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertMaintenanceWindowNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindowNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single maintenance window by its `mw_â¦` ID. Requires the `alerts:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a maintenance window","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Alert Maintenance Windows"],"operationId":"updateAlertMaintenanceWindow","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertMaintenanceWindowId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A one-off or weekly window during which matching alert rules are silenced. Each occurrence is written ahead as an alert silence carrying `maintenance_window_id`, so rules keep evaluating and only notifications are held back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindow"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/AlertValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/AlertValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertMaintenanceWindowNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindowNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Changes a maintenance window. `enabled: false` ends an occurrence in progress now. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Update a maintenance window","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindowUpdateParams"}}},"required":true},"x-conditional-permissions":["alerts:manage"]},"delete":{"tags":["Alert Maintenance Windows"],"operationId":"deleteAlertMaintenanceWindow","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertMaintenanceWindowId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that a maintenance window was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindowDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/AlertForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/AlertMaintenanceWindowNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMaintenanceWindowNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AlertPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes a maintenance window, ends an occurrence in progress now and drops the ones ahead. Past occurrences stay as ended silences. Requires the `alerts:write` scope.\n\nDepending on the request, the caller's role may need Manage alerts (`alerts:manage`).","summary":"Delete a maintenance window","x-conditional-permissions":["alerts:manage"]}},"/v2/ingest_keys":{"get":{"tags":["Ingest Keys"],"operationId":"getIngestKeys","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Your organization's telemetry ingest credentials â a public key for client-side senders and a private key for server-side senders. A per-organization singleton: rolling a key immediately invalidates its predecessor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestKeys"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestKeyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's ingest keys, creating them on first access. Requires an org-admin role and the `ingest_keys:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need View ingest keys (`ingest_keys:view`).","summary":"Retrieve ingest keys","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["ingest_keys:view"]}},"/v2/ingest_keys/public":{"get":{"tags":["Ingest Keys"],"operationId":"getPublicIngestKey","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Your organization's public ingest key alone. Every member may read it: it is made to ship in browser and mobile code, and it can only send telemetry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicIngestKey"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestKeyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's public ingest key, creating the keys on first access. Any member may call it. Requires the `ingest_keys:read` scope.\n\nThe caller's role needs View public ingest key (`ingest_keys:view_public`).","summary":"Retrieve the public ingest key","x-required-permissions":["ingest_keys:view_public"]}},"/v2/ingest_keys/public/roll":{"post":{"tags":["Ingest Keys"],"operationId":"rollPublicIngestKey","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Your organization's telemetry ingest credentials â a public key for client-side senders and a private key for server-side senders. A per-organization singleton: rolling a key immediately invalidates its predecessor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestKeys"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestKeyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Replaces the public ingest key with a new one, **immediately invalidating the previous key** â telemetry senders still using it will be rejected. Requires an org-admin role and the `ingest_keys:write` scope.\n\nDepending on the request, the caller's role may need Roll ingest keys (`ingest_keys:roll`).","summary":"Roll the public ingest key","x-conditional-permissions":["ingest_keys:roll"]}},"/v2/ingest_keys/private/roll":{"post":{"tags":["Ingest Keys"],"operationId":"rollPrivateIngestKey","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Your organization's telemetry ingest credentials â a public key for client-side senders and a private key for server-side senders. A per-organization singleton: rolling a key immediately invalidates its predecessor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestKeys"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestKeyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Replaces the private ingest key with a new one, **immediately invalidating the previous key** â telemetry senders still using it will be rejected. Requires an org-admin role and the `ingest_keys:write` scope.\n\nDepending on the request, the caller's role may need Roll ingest keys (`ingest_keys:roll`).","summary":"Roll the private ingest key","x-conditional-permissions":["ingest_keys:roll"]}},"/v2/sources":{"get":{"tags":["Sources"],"operationId":"listSources","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of sources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's sources (without tokens): the default source first, then the most recently created. Open to every member of the organization; requires the `sources:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List sources","x-required-permissions":["telemetry:read"]},"post":{"tags":["Sources"],"operationId":"createSource","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A source including its one-time `secret`. Returned only by create and roll.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceWithSecret"}}}},"400":{"description":"The @maple/http/errors/SourceValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a push source and returns it **with its one-time `secret`**, the token its senders use as their ingest key. Requires an org-admin or engineer role and the `sources:write` scope.\n\nDepending on the request, the caller's role may need Manage sources (`sources:manage`).","summary":"Create a source","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceCreateParams"}}},"required":true},"x-conditional-permissions":["sources:manage"]}},"/v2/sources/usage":{"get":{"tags":["Sources"],"operationId":"getSourcesUsage","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Span, log and metric data point counts and estimated stored bytes per source, over 24 whole hours ending with the current one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceUsageSummary"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns span, log and metric data point counts and estimated stored bytes per source, over 24 whole hours ending with the current one. Sources without data in the window are omitted. Open to every role that reads telemetry; requires the `sources:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve usage for all sources","x-required-permissions":["telemetry:read"]}},"/v2/sources/{id}":{"get":{"tags":["Sources"],"operationId":"getSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Something that sends data to Maple: an OpenTelemetry SDK or collector, a Kubernetes cluster, a Prometheus scrape, a cloud integration. Telemetry from a source is stamped with `maple_source_id`. A push source's token is shown only once, when it is created or rolled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a source by its `src_â¦` ID (without the token). Open to every member of the organization; requires the `sources:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a source","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Sources"],"operationId":"updateSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Something that sends data to Maple: an OpenTelemetry SDK or collector, a Kubernetes cluster, a Prometheus scrape, a cloud integration. Telemetry from a source is stamped with `maple_source_id`. A push source's token is shown only once, when it is created or rolled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"400":{"description":"The @maple/http/errors/SourceValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates a source's settings; omitted fields are unchanged. The ingest gateway picks up changes within a minute. Requires an org-admin or engineer role and the `sources:write` scope.\n\nDepending on the request, the caller's role may need Manage sources (`sources:manage`).","summary":"Update a source","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceUpdateParams"}}},"required":true},"x-conditional-permissions":["sources:manage"]},"delete":{"tags":["Sources"],"operationId":"deleteSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that a source was deleted. Senders using its token are rejected within a minute; an integration source's integration is disconnected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDeleteResponse"}}}},"400":{"description":"The @maple/http/errors/SourceValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Permanently deletes a source. Senders using a push source's token are rejected within a minute. Deleting an integration source disconnects its integration: Maple revokes the credential it holds and stops collecting. Data already stored is kept until retention ends. The default source cannot be deleted. Requires an org-admin or engineer role and the `sources:write` scope.\n\nDepending on the request, the caller's role may need Manage sources (`sources:manage`).","summary":"Delete a source","x-conditional-permissions":["sources:manage"]}},"/v2/sources/{id}/roll":{"post":{"tags":["Sources"],"operationId":"rollSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A source including its one-time `secret`. Returned only by create and roll.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceWithSecret"}}}},"400":{"description":"The @maple/http/errors/SourceValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Replaces a push source's token, keeping its ID and settings, and returns the new one-time `secret`. The previous token stops working within a minute. The default source rolls through the ingest keys endpoints. Requires an org-admin or engineer role and the `sources:write` scope.\n\nDepending on the request, the caller's role may need Manage sources (`sources:manage`).","summary":"Roll a source token","x-conditional-permissions":["sources:manage"]}},"/v2/sources/{id}/pause":{"post":{"tags":["Sources"],"operationId":"pauseSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Something that sends data to Maple: an OpenTelemetry SDK or collector, a Kubernetes cluster, a Prometheus scrape, a cloud integration. Telemetry from a source is stamped with `maple_source_id`. A push source's token is shown only once, when it is created or rolled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"400":{"description":"The @maple/http/errors/SourceValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Pauses ingestion for a source until `until`, or until resumed. Senders keep getting success responses, so nothing retries or backs up, but their data is dropped and not billed. Takes effect within a minute. Requires an org-admin or engineer role and the `sources:write` scope.\n\nDepending on the request, the caller's role may need Manage sources (`sources:manage`).","summary":"Pause a source","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcePauseParams"}}},"required":true},"x-conditional-permissions":["sources:manage"]}},"/v2/sources/{id}/resume":{"post":{"tags":["Sources"],"operationId":"resumeSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Something that sends data to Maple: an OpenTelemetry SDK or collector, a Kubernetes cluster, a Prometheus scrape, a cloud integration. Telemetry from a source is stamped with `maple_source_id`. A push source's token is shown only once, when it is created or rolled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"400":{"description":"The @maple/http/errors/SourceValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Ends a pause so data from the source is stored again, within a minute. Requires an org-admin or engineer role and the `sources:write` scope.\n\nDepending on the request, the caller's role may need Manage sources (`sources:manage`).","summary":"Resume a source","x-conditional-permissions":["sources:manage"]}},"/v2/sources/{id}/usage":{"get":{"tags":["Sources"],"operationId":"getSourceUsage","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Hourly span, log and metric data point counts and estimated stored bytes from a source, over 24 whole hours ending with the current one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceUsage"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/IngestKeyEncryptionError failure. HTTP 500. | The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestKeyEncryptionError"},{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/SourcePersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourcePersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns hourly span, log and metric data point counts and estimated stored bytes from the source, over 24 whole hours ending with the current one. Open to every role that reads telemetry; requires the `sources:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve source usage","x-required-permissions":["telemetry:read"]}},"/v2/integrations/chat_connectors":{"get":{"tags":["Chat Integrations"],"operationId":"listChatConnectors","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The chat connectors Maple ships, each with your organization's linked workspaces. Not the standard `{ object: \"list\", ⦠}` envelope: the set is the deployment's own connector registry, so there is nothing to paginate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatConnectorList"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns every chat connector this Maple deployment ships, whether it is configured, and the workspaces your organization has linked through it. Requires the `integrations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List chat connectors","x-required-permissions":["telemetry:read"]}},"/v2/integrations/chat_connectors/{connector}/install":{"post":{"tags":["Chat Integrations"],"operationId":"installChatConnector","parameters":[{"name":"connector","in":"path","schema":{"$ref":"#/components/schemas/_maple_ChatConnectorId_3"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The authorization URL that begins linking a chat workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInstall"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/v2/CallbackHostUnavailableError failure. HTTP 503. | The @maple/http/errors/IntegrationsConfigurationError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CallbackHostUnavailableError"},{"$ref":"#/components/schemas/IntegrationsConfigurationError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the chat platform's authorization URL to redirect the user to. Running it again links an additional workspace; it does not replace the existing ones. The install is bound to the person who starts it, so this takes a signed-in session and refuses an API key. Requires an org-admin or engineer role.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Begin linking a chat workspace","x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/chat_connectors/{connector}/identity/link":{"post":{"tags":["Chat Integrations"],"operationId":"startChatIdentityLink","parameters":[{"name":"connector","in":"path","schema":{"$ref":"#/components/schemas/_maple_ChatConnectorId_3"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The authorization URL that begins linking your chat account to your Maple user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatIdentityLink"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/v2/CallbackHostUnavailableError failure. HTTP 503. | The @maple/http/errors/IntegrationsConfigurationError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CallbackHostUnavailableError"},{"$ref":"#/components/schemas/IntegrationsConfigurationError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the chat platform's authorization URL to redirect the user to. On approval Maple binds that chat account to the Maple user who started the link, so an action taken from the chat platform runs as them, under their own roles. This links your own account only, so any member may call it; no admin role is required. It must be called with a signed-in session rather than an API key, because a key belongs to the person who created it and linking on their behalf would bind an account to an identity that did not ask for it. Requires the `integrations:write` scope. A connector whose platform cannot say who acted has nothing to link, and is a 404.\n\nThe caller's role needs Connect devices and clients (`devices:connect`).","summary":"Begin linking your chat account","x-required-permissions":["devices:connect"]}},"/v2/integrations/chat_connectors/{connector}/identity":{"delete":{"tags":["Chat Integrations"],"operationId":"deleteChatIdentity","parameters":[{"name":"connector","in":"path","schema":{"$ref":"#/components/schemas/_maple_ChatConnectorId_3"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that your chat account is no longer linked to your Maple user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatIdentityDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Removes the link between your chat account and your Maple user on this connector. Your organization's workspaces stay linked; only your own account is forgotten, and nothing you do on the chat platform is attributed to you afterwards. Unlinking when you hold no link is not an error. Like linking, it must be called with a signed-in session rather than an API key. Requires the `integrations:write` scope.","summary":"Unlink your chat account"}},"/v2/integrations/chat_workspaces/{id}":{"patch":{"tags":["Chat Integrations"],"operationId":"updateChatWorkspace","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ChatWorkspaceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A chat workspace linked to your organization. The link is organization-level: it covers every member of the workspace, and no chat account is linked to an individual Maple user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatWorkspace"}}}},"400":{"description":"The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Replaces a linked workspace's connector-defined settings, and turns its features (alert posts, direct-message pages, the bot's answers) on or off. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Update a chat workspace","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatWorkspaceUpdateParams"}}},"required":true},"x-conditional-permissions":["integrations:manage"]},"delete":{"tags":["Chat Integrations"],"operationId":"deleteChatWorkspace","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ChatWorkspaceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that a chat workspace was unlinked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatWorkspaceDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Unlinks a chat workspace from your organization. Removing the bot from the workspace itself is done on the chat platform. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Unlink a chat workspace","x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/chat_workspaces/{id}/destinations":{"get":{"tags":["Chat Integrations"],"operationId":"listChatWorkspaceDestinations","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ChatWorkspaceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The channels in a linked chat workspace that an alert destination can post to. Not the standard list envelope: the platform answers with the whole set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatDestinationList"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"409":{"description":"The @maple/http/errors/IntegrationsNotConnectedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotConnectedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/IntegrationsUpstreamError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsUpstreamError"}}}},"503":{"description":"The @maple/http/errors/IntegrationsConfigurationError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsConfigurationError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Lists the channels in a linked workspace that Maple can post an alert to, read live from the chat platform. A workspace whose install predates channel access answers `integration_not_connected`: reinstall the app to grant it. Requires an org-admin or engineer role and the `integrations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage integrations (`integrations:manage`).","summary":"List a chat workspace's alert destinations","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/planetscale":{"get":{"tags":["PlanetScale Integration"],"operationId":"getPlanetScaleIntegration","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The PlanetScale connection state for the authenticated organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleIntegration"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/ScrapeTargetStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetStoredConfigInvalidError"}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the PlanetScale connection state for your organization, including which branch-metrics authentication is in effect and the managed scrape target's health. Requires the `integrations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve PlanetScale integration status","x-required-permissions":["telemetry:read"]},"patch":{"tags":["PlanetScale Integration"],"operationId":"updatePlanetScaleIntegration","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The PlanetScale connection state for the authenticated organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleIntegration"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/IntegrationsNotConnectedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotConnectedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/ScrapeTargetStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetStoredConfigInvalidError"}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Turns branch metrics and events on or off. Turning events off deletes the webhooks Maple registered on your databases; turning them on registers them again. Data already collected is kept. Returns the refreshed integration status. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Choose what Maple collects from PlanetScale","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleFeaturesRequest"}}},"required":true},"x-conditional-permissions":["integrations:manage"]},"delete":{"tags":["PlanetScale Integration"],"operationId":"disconnectPlanetScaleIntegration","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that the PlanetScale connection was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleDisconnect"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Removes the OAuth grant, the managed scrape target, and the stored metrics token. Polled inventory and recorded events are kept. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Disconnect PlanetScale","x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/planetscale/connect":{"post":{"tags":["PlanetScale Integration"],"operationId":"connectPlanetScaleIntegration","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The PlanetScale OAuth authorize URL to begin a connection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleConnect"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/v2/CallbackHostUnavailableError failure. HTTP 503. | The @maple/http/errors/IntegrationsConfigurationError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CallbackHostUnavailableError"},{"$ref":"#/components/schemas/IntegrationsConfigurationError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a PlanetScale OAuth authorize URL to redirect the user to. Browser-oriented: a headless caller cannot complete the redirect, so scripted setups should connect once from the dashboard and then drive `select_organization` and `metrics_token` over the API. The connection is bound to the person who starts it, so this takes a signed-in session and refuses an API key. Requires an org-admin or engineer role.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Begin a PlanetScale connection","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleConnectRequest"}}},"required":true},"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/planetscale/organizations":{"get":{"tags":["PlanetScale Integration"],"operationId":"listPlanetScaleOrganizations","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Organizations the OAuth grant can access. Note: unlike most v2 collections this is **not** the standard `{ object: \"list\", data, has_more, next_cursor }` envelope â a grant reaches a handful of organizations and PlanetScale returns them in one unpaginated response, so there is no cursor for a client to follow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleOrganizationList"}}}},"400":{"description":"The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/errors/IntegrationsRevokedError failure. HTTP 401. | The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsRevokedError"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/IntegrationsNotConnectedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotConnectedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/IntegrationsUpstreamError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsUpstreamError"}}}},"503":{"description":"The @maple/http/errors/IntegrationsConfigurationError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsConfigurationError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Lists the PlanetScale organizations the stored OAuth grant can access: the candidates for `select_organization`. Requires an org-admin or engineer role and the `integrations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage integrations (`integrations:manage`).","summary":"List reachable PlanetScale organizations","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/planetscale/select_organization":{"post":{"tags":["PlanetScale Integration"],"operationId":"selectPlanetScaleOrganization","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The PlanetScale connection state for the authenticated organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleIntegration"}}}},"400":{"description":"The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/errors/ScrapeTargetValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/ScrapeTargetValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/errors/IntegrationsRevokedError failure. HTTP 401. | The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsRevokedError"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ScrapeTargetNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetNotFoundError"}}}},"409":{"description":"The @maple/http/errors/IntegrationsNotConnectedError failure. HTTP 409. | The @maple/http/errors/ScrapeTargetLimitReachedError failure. HTTP 409.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsNotConnectedError"},{"$ref":"#/components/schemas/ScrapeTargetLimitReachedError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/ScrapeTargetEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/IntegrationsUpstreamError failure. HTTP 502. | The @maple/http/errors/ScrapeTargetStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsUpstreamError"},{"$ref":"#/components/schemas/ScrapeTargetStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsConfigurationError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsConfigurationError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Binds the stored OAuth grant to one PlanetScale organization, probes API permissions, and provisions (or adopts) the managed scrape target. Re-submitting is an upsert: use it to change organization or edit the scrape target's branch filters. Returns the refreshed integration status. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Bind the connection to a PlanetScale organization","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleSelectOrganizationRequest"}}},"required":true},"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/planetscale/metrics_token":{"post":{"tags":["PlanetScale Integration"],"operationId":"setPlanetScaleMetricsToken","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The PlanetScale connection state for the authenticated organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleIntegration"}}}},"400":{"description":"The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/errors/ScrapeTargetValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/ScrapeTargetValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ScrapeTargetNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetNotFoundError"}}}},"409":{"description":"The @maple/http/errors/IntegrationsNotConnectedError failure. HTTP 409. | The @maple/http/errors/ScrapeTargetLimitReachedError failure. HTTP 409.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsNotConnectedError"},{"$ref":"#/components/schemas/ScrapeTargetLimitReachedError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/ScrapeTargetEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/IntegrationsUpstreamError failure. HTTP 502. | The @maple/http/errors/ScrapeTargetStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsUpstreamError"},{"$ref":"#/components/schemas/ScrapeTargetStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Optional: branch metrics arrive without a token, polled from PlanetScale's metrics API on the OAuth grant. Attaches a service token carrying the single `read_metrics_endpoints` permission to the managed scrape target, switching the connection to Prometheus scraping instead. Maple validates the token against PlanetScale's metrics discovery endpoint before storing it: an invalid or under-permissioned token is rejected with `invalid_request_error` and nothing is written. Re-submitting rotates the token in place. Returns the refreshed integration status, whose `metrics_auth` becomes `service_token` on success. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Attach a PlanetScale metrics service token","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleMetricsTokenRequest"}}},"required":true},"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/planetscale/databases":{"get":{"tags":["PlanetScale Integration"],"operationId":"listPlanetScaleDatabases","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The polled database inventory. Note: unlike most v2 collections this is **not** the standard `{ object: \"list\", data, has_more, next_cursor }` envelope â the inventory is a bounded snapshot returned whole, and the envelope has no place for `last_inventory_at`, which callers need to judge staleness.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleDatabaseList"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the polled database and branch inventory for the bound organization, plus how fresh it is. Served from Maple's copy rather than live from PlanetScale. Requires the `integrations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List PlanetScale databases","x-required-permissions":["telemetry:read"]}},"/v2/integrations/planetscale/webhook_config":{"get":{"tags":["PlanetScale Integration"],"operationId":"getPlanetScaleWebhookConfig","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The material needed to register Maple as a webhook receiver in PlanetScale. Only for members who manage integrations: the response carries the signing secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleWebhookConfig"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deprecated: Maple now registers a webhook on every database itself and verifies each delivery with the secret PlanetScale generated for it; see `webhooks` on the integration status. The URL and secret returned here no longer verify deliveries. The response contains the stored secret, so this requires an org-admin or engineer role and the `integrations:write` scope, although it is a GET. A read that returns the secret is recorded in the audit log.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage integrations (`integrations:manage`).","summary":"Retrieve the PlanetScale webhook configuration (deprecated)","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/planetscale/query_insights":{"post":{"tags":["PlanetScale Integration"],"operationId":"queryPlanetScaleQueryInsights","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Top queries for one branch. Note: **not** the standard list envelope â the response is a fixed top-N with no cursor, and it carries `branch` and `unavailable_reason` alongside the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleQueryInsightList"}}}},"400":{"description":"The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/errors/IntegrationsRevokedError failure. HTTP 401. | The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsRevokedError"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/IntegrationsNotConnectedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotConnectedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/IntegrationsUpstreamError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsUpstreamError"}}}},"503":{"description":"The @maple/http/errors/IntegrationsConfigurationError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsConfigurationError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the top queries by total time for one database branch, proxied live to PlanetScale's Query Insights API and cached briefly. Per-fingerprint cardinality is far too high to store as metrics, so this is computed on demand. A read-only operation despite being a POST â the window and filters belong in a body â so the `integrations:read` scope is sufficient.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Query PlanetScale query insights","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleQueryInsightsRequest"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/integrations/planetscale/events":{"post":{"tags":["PlanetScale Integration"],"operationId":"listPlanetScaleEvents","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A page of the PlanetScale lifecycle timeline. Keyset-paginated with `next_cursor`; it omits `has_more` (a null cursor says the same thing) and so is not the standard list envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleEventList"}}}},"400":{"description":"The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns deploy-request transitions and branch state changes for a window, newest first â the timeline behind deployment markers on infrastructure charts. A read-only operation despite being a POST, so the `integrations:read` scope is sufficient.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List PlanetScale lifecycle events","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanetScaleEventsRequest"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/integrations/gcp":{"get":{"tags":["Google Cloud Integration"],"operationId":"getGcpIntegration","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The Google Cloud integration state for the authenticated organization. Note: `connectors` is **not** the standard `{ object: \"list\", data, has_more, next_cursor }` envelope: an organization has a handful of connectors and they are returned whole next to `metrics_available`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpIntegration"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the organization's Google Cloud connectors with what their setup script last reported and the time and outcome of their latest log push, and whether metrics collection is available. Requires the `integrations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve Google Cloud integration status","x-required-permissions":["telemetry:read"]}},"/v2/integrations/gcp/connectors":{"post":{"tags":["Google Cloud Integration"],"operationId":"createGcpConnector","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"One connected Google Cloud project, folder or organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpConnector"}}}},"400":{"description":"The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/GcpScopeAlreadyConnectedError failure. HTTP 409. | The @maple/http/errors/GcpMetricsUnavailableError failure. HTTP 409.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GcpScopeAlreadyConnectedError"},{"$ref":"#/components/schemas/GcpMetricsUnavailableError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Registers a connector for one project, or for every project under a folder or organization. Nothing reaches Maple until an administrator runs the script from `setup_scripts`. A project, folder or organization can be connected once per Maple organization. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Connect a Google Cloud project, folder or organization","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpCreateConnectorRequest"}}},"required":true},"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/gcp/connectors/{id}":{"patch":{"tags":["Google Cloud Integration"],"operationId":"updateGcpConnector","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_GcpConnectorId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"One connected Google Cloud project, folder or organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpConnector"}}}},"400":{"description":"The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"409":{"description":"The @maple/http/errors/GcpMetricsUnavailableError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpMetricsUnavailableError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Turns log forwarding or metrics and resource collection on or off. Maple cannot change Google Cloud itself: re-run the script from `setup_scripts` afterwards, which sets up what is now enabled and removes what is not. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Change what a connector collects","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpUpdateConnectorRequest"}}},"required":true},"x-conditional-permissions":["integrations:manage"]},"delete":{"tags":["Google Cloud Integration"],"operationId":"deleteGcpConnector","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_GcpConnectorId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that a connector was deleted, with the script that cleans up Google Cloud.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpConnectorDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes the connector, after which Maple rejects its log pushes and stops reading its metrics. Already-ingested data is unaffected. The response carries the cleanup script to run in Google Cloud. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Disconnect a Google Cloud project, folder or organization","x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/gcp/connectors/{id}/setup_scripts":{"post":{"tags":["Google Cloud Integration"],"operationId":"renderGcpConnectorSetupScripts","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_GcpConnectorId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The ways to connect one Google Cloud project, folder or organization: the scripts, or the same resources in the console or as code. Without the script, the first log push confirms log forwarding and the first metrics read confirms read-only access.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpSetupScripts"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the `gcloud` scripts for one connector, and the same setup for the console, Terraform and Alchemy. Rendering changes nothing, but both scripts carry the connector's push secret, so this requires an org-admin or engineer role and the `integrations:write` scope. A render is recorded in the audit log, without the secret.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Render a connector's setup and cleanup scripts","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpSetupScriptsRequest"}}},"required":true},"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/gcp/connectors/{id}/confirm_removal":{"post":{"tags":["Google Cloud Integration"],"operationId":"confirmGcpConnectorRemoval","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_GcpConnectorId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"One connected Google Cloud project, folder or organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpConnector"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Records that what `logs_enabled` or `metrics_enabled`, now `false`, had set up was removed from Google Cloud in the console or as code, which sends Maple no report. Maple takes the caller's word. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Confirm a removal made without the script","x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/aws":{"get":{"tags":["AWS Integration"],"operationId":"getAwsIntegration","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The AWS integration state for the authenticated organization. Note: `connections` is **not** the standard `{ object: \"list\", data, has_more, next_cursor }` envelope: an organization has a handful of connections and they are returned whole.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsIntegration"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the organization's AWS connections with the outcome of their latest check, the modules Maple offers, and whether this deployment can connect AWS at all. Requires the `integrations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve AWS integration status","x-required-permissions":["telemetry:read"]}},"/v2/integrations/aws/connections":{"post":{"tags":["AWS Integration"],"operationId":"createAwsConnection","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"One connected AWS account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsConnection"}}}},"400":{"description":"The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/AwsAccountAlreadyConnectedError failure. HTTP 409. | The @maple/http/errors/AwsIntegrationUnavailableError failure. HTTP 409.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AwsAccountAlreadyConnectedError"},{"$ref":"#/components/schemas/AwsIntegrationUnavailableError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Registers a connection for one account. Maple reads nothing until an administrator deploys the stack from `setup`. An account can be connected once per Maple organization. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Connect an AWS account","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsCreateConnectionRequest"}}},"required":true},"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/aws/connections/{id}":{"patch":{"tags":["AWS Integration"],"operationId":"updateAwsConnection","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AwsConnectionId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"One connected AWS account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsConnection"}}}},"400":{"description":"The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Changes the connection's modules. Maple cannot change AWS itself: deploy the stack from `setup` again afterwards. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Change what a connection reads","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsUpdateConnectionRequest"}}},"required":true},"x-conditional-permissions":["integrations:manage"]},"delete":{"tags":["AWS Integration"],"operationId":"deleteAwsConnection","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AwsConnectionId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"AwsConnectionDeleteResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsConnectionDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes the connection and its source, after which Maple no longer assumes the role. Already-ingested data is unaffected. The response carries the script that deletes the stack. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Disconnect an AWS account","x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/aws/connections/{id}/setup":{"get":{"tags":["AWS Integration"],"operationId":"getAwsConnectionSetup","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AwsConnectionId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The ways to set up one AWS connection: the CloudShell script, or the same resources in the console or as code. Maple confirms the setup by assuming the role.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsSetup"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"409":{"description":"The @maple/http/errors/AwsIntegrationUnavailableError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsIntegrationUnavailableError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the CloudShell script, the CloudFormation template and the Terraform file that set up one connection. With a metric stream set they contain its access key and, with the security module, the events key, so this requires an org-admin or engineer role and the `integrations:write` scope, although it is a GET. A read that returns a key is recorded in the audit log, without the key.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage integrations (`integrations:manage`).","summary":"Render a connection's setup","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/aws/connections/{id}/events_key/rotate":{"post":{"tags":["AWS Integration"],"operationId":"rotateAwsConnectionEventsKey","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AwsConnectionId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"One connected AWS account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsConnection"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Replaces the key the connection's stack sends with its security finding events. The response does not contain the key: fetch `setup` and deploy the stack again. Until then the deployed stack's events are refused, and findings still arrive through the regular poll. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Rotate a connection's events key","x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/aws/connections/{id}/check":{"post":{"tags":["AWS Integration"],"operationId":"checkAwsConnection","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AwsConnectionId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"One connected AWS account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsConnection"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"409":{"description":"The @maple/http/errors/AwsIntegrationUnavailableError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsIntegrationUnavailableError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Assumes the role and reads what the setup granted, instead of waiting for the hourly check. A failed check is reported in `last_check_error`, not as an error response. Requires an org-admin or engineer role and the `integrations:write` scope.\n\nDepending on the request, the caller's role may need Manage integrations (`integrations:manage`).","summary":"Check a connection now","x-conditional-permissions":["integrations:manage"]}},"/v2/integrations/aws/connections/{id}/ingest":{"get":{"tags":["AWS Integration"],"operationId":"getAwsConnectionIngest","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AwsConnectionId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The metrics one connection's stream delivered over the last hour, as Maple stored them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsIngest"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IntegrationsNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the CloudWatch metrics the connection's stream delivered over the last hour, by namespace and region: how many metrics, data points and resources, and when the newest point arrived. Requires the `integrations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"See what a connection sends","x-required-permissions":["telemetry:read"]}},"/v2/error_issues":{"get":{"tags":["Error Issues"],"operationId":"listErrorIssues","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"workflow_state","in":"query","schema":{"$ref":"#/components/schemas/_maple_WorkflowState"},"required":false},{"name":"severity","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/_maple_IssueSeverity"},{"type":"string","enum":["unset"]}]},"required":false},{"name":"kind","in":"query","schema":{"$ref":"#/components/schemas/_maple_IssueKind"},"required":false},{"name":"service_name","in":"query","schema":{"type":"string"},"required":false},{"name":"fingerprint_hash","in":"query","schema":{"type":"string"},"required":false},{"name":"deployment_environment","in":"query","schema":{"type":"string"},"required":false},{"name":"start_time","in":"query","schema":{"type":"string"},"required":false},{"name":"end_time","in":"query","schema":{"type":"string"},"required":false},{"name":"introduced_after","in":"query","schema":{"type":"string"},"required":false},{"name":"actionable","in":"query","schema":{"type":"string","enum":["true"]},"required":false},{"name":"state","in":"query","schema":{"type":"string","enum":["open","closed"]},"required":false},{"name":"search","in":"query","schema":{"type":"string","maxLength":200},"required":false},{"name":"include_archived","in":"query","schema":{"type":"string","enum":["true"]},"required":false},{"name":"sort","in":"query","schema":{"type":"string","enum":["last_seen","severity"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueList"}}}},"400":{"description":"The @maple/http/v2/CursorInvalidError failure. HTTP 400. | The @maple/http/v2/CursorSortMismatchError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CursorInvalidError"},{"$ref":"#/components/schemas/CursorSortMismatchError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a bounded, cursor-paginated page of your organization's issues. Requires `error_issues:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List error issues","x-required-permissions":["telemetry:read"]}},"/v2/error_issues/service_counts":{"get":{"tags":["Error Issues"],"operationId":"listErrorIssueServiceCounts","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueServiceCountList"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the number of open (actionable-state) error issues per service, in one call. Alert-kind issues are excluded. Requires `error_issues:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List open issue counts by service","x-required-permissions":["telemetry:read"]}},"/v2/error_issues/{id}":{"get":{"tags":["Error Issues"],"operationId":"getErrorIssue","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"required":true},{"name":"start_time","in":"query","schema":{"type":"string"},"required":false},{"name":"end_time","in":"query","schema":{"type":"string"},"required":false},{"name":"bucket_seconds","in":"query","schema":{"type":"string"},"required":false},{"name":"sample_limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The issue resource with its requested timeseries window, sample traces, incidents, the environments it was seen in, and its newest stack trace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueDetail"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ErrorIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns an issue with its timeseries, representative traces, and incident history. Requires `error_issues:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an error issue","x-required-permissions":["telemetry:read"]}},"/v2/error_issues/{id}/transitions":{"post":{"tags":["Error Issues"],"operationId":"transitionErrorIssue","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A deduplicated error, alert, or integration issue tracked through Maple's workflow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssue"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ErrorIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueNotFoundError"}}}},"409":{"description":"The @maple/http/v2/ErrorIssueTransitionConflictError failure. HTTP 409. | The @maple/http/v2/ErrorIssueLeaseConflictError failure. HTTP 409.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorIssueTransitionConflictError"},{"$ref":"#/components/schemas/ErrorIssueLeaseHeldError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Moves the issue to another workflow state as the calling user, and returns the updated issue. Requires `error_issues:write`.\n\nThe caller's role needs Triage error issues (`error_issues:triage`) and Read telemetry (`telemetry:read`).","summary":"Transition an error issue","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueTransitionParams"}}},"required":true},"x-required-permissions":["error_issues:triage","telemetry:read"]}},"/v2/error_issues/{id}/claim":{"post":{"tags":["Error Issues"],"operationId":"claimErrorIssue","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A deduplicated error, alert, or integration issue tracked through Maple's workflow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssue"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ErrorIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueNotFoundError"}}}},"409":{"description":"The @maple/http/v2/ErrorIssueTransitionConflictError failure. HTTP 409. | The @maple/http/v2/ErrorIssueLeaseConflictError failure. HTTP 409.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorIssueTransitionConflictError"},{"$ref":"#/components/schemas/ErrorIssueLeaseHeldError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Takes the issue's lease as the calling user, so others see it is being worked on. Requires `error_issues:write`.\n\nThe caller's role needs Triage error issues (`error_issues:triage`) and Read telemetry (`telemetry:read`).","summary":"Claim an error issue","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueClaimParams"}}},"required":true},"x-required-permissions":["error_issues:triage","telemetry:read"]}},"/v2/error_issues/{id}/release":{"post":{"tags":["Error Issues"],"operationId":"releaseErrorIssue","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A deduplicated error, alert, or integration issue tracked through Maple's workflow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssue"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ErrorIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueNotFoundError"}}}},"409":{"description":"The @maple/http/v2/ErrorIssueTransitionConflictError failure. HTTP 409. | The @maple/http/v2/ErrorIssueLeaseConflictError failure. HTTP 409.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorIssueTransitionConflictError"},{"$ref":"#/components/schemas/ErrorIssueLeaseHeldError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Gives up the calling user's lease, optionally moving the issue to another state. Requires `error_issues:write`.\n\nThe caller's role needs Triage error issues (`error_issues:triage`) and Read telemetry (`telemetry:read`).","summary":"Release an error issue","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueReleaseParams"}}},"required":true},"x-required-permissions":["error_issues:triage","telemetry:read"]}},"/v2/error_issues/{id}/merge":{"post":{"tags":["Error Issues"],"operationId":"mergeErrorIssues","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A deduplicated error, alert, or integration issue tracked through Maple's workflow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssue"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ErrorIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Folds the source issues into this one: their occurrences and fingerprints land here from now on, and each source is archived pointing at it. Returns the merged issue. Requires `error_issues:write`.\n\nThe caller's role needs Triage error issues (`error_issues:triage`) and Read telemetry (`telemetry:read`).","summary":"Merge error issues","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueMergeParams"}}},"required":true},"x-required-permissions":["error_issues:triage","telemetry:read"]}},"/v2/error_issues/{id}/unmerge":{"post":{"tags":["Error Issues"],"operationId":"unmergeErrorIssue","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A deduplicated error, alert, or integration issue tracked through Maple's workflow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssue"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ErrorIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Splits a merged issue back out: it leaves the archive and its fingerprints land on it again. Returns the restored issue. Requires `error_issues:write`.\n\nThe caller's role needs Triage error issues (`error_issues:triage`) and Read telemetry (`telemetry:read`).","summary":"Unmerge an error issue","x-required-permissions":["error_issues:triage","telemetry:read"]}},"/v2/error_issues/{id}/severity":{"put":{"tags":["Error Issues"],"operationId":"setErrorIssueSeverity","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A deduplicated error, alert, or integration issue tracked through Maple's workflow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssue"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ErrorIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Sets or clears the issue's manual severity as the calling user. Requires `error_issues:write`.\n\nThe caller's role needs Triage error issues (`error_issues:triage`) and Read telemetry (`telemetry:read`).","summary":"Set an error issue's severity","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorIssueSeverityParams"}}},"required":true},"x-required-permissions":["error_issues:triage","telemetry:read"]}},"/v2/attribute_mappings":{"get":{"tags":["Attribute Mappings"],"operationId":"listAttributeMappings","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of attribute mappings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeMappingList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestAttributeMappingPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's attribute mappings, most recently created first. Cursor-paginated. Requires the `attribute_mappings:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List attribute mappings","x-required-permissions":["telemetry:read"]},"post":{"tags":["Attribute Mappings"],"operationId":"createAttributeMapping","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"An ingest-time attribute rewrite rule: when telemetry arrives, the value at `source_key` (in the span or resource context) is moved or copied to `target_key`. Useful for normalizing attribute names across services without redeploying them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeMapping"}}}},"400":{"description":"The @maple/http/errors/IngestAttributeMappingValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/IngestAttributeMappingForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestAttributeMappingPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates an ingest-time attribute rewrite rule. Requires the `attribute_mappings:write` scope.\n\nDepending on the request, the caller's role may need Manage attribute mappings (`attribute_mappings:manage`).","summary":"Create an attribute mapping","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeMappingCreateParams"}}},"required":true},"x-conditional-permissions":["attribute_mappings:manage"]}},"/v2/attribute_mappings/{id}":{"get":{"tags":["Attribute Mappings"],"operationId":"getAttributeMapping","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_IngestAttributeMappingId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An ingest-time attribute rewrite rule: when telemetry arrives, the value at `source_key` (in the span or resource context) is moved or copied to `target_key`. Useful for normalizing attribute names across services without redeploying them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeMapping"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IngestAttributeMappingNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestAttributeMappingNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestAttributeMappingPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single attribute mapping by its `amap_â¦` ID. Requires the `attribute_mappings:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an attribute mapping","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Attribute Mappings"],"operationId":"updateAttributeMapping","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_IngestAttributeMappingId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An ingest-time attribute rewrite rule: when telemetry arrives, the value at `source_key` (in the span or resource context) is moved or copied to `target_key`. Useful for normalizing attribute names across services without redeploying them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeMapping"}}}},"400":{"description":"The @maple/http/errors/IngestAttributeMappingValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/IngestAttributeMappingForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IngestAttributeMappingNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestAttributeMappingNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestAttributeMappingPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates a mapping's configuration; omitted fields are unchanged. Requires the `attribute_mappings:write` scope.\n\nDepending on the request, the caller's role may need Manage attribute mappings (`attribute_mappings:manage`).","summary":"Update an attribute mapping","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeMappingUpdateParams"}}},"required":true},"x-conditional-permissions":["attribute_mappings:manage"]},"delete":{"tags":["Attribute Mappings"],"operationId":"deleteAttributeMapping","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_IngestAttributeMappingId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an attribute mapping was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributeMappingDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/IngestAttributeMappingForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IngestAttributeMappingNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestAttributeMappingNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestAttributeMappingPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestAttributeMappingPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Permanently deletes an attribute mapping. Already-ingested telemetry is unaffected. Requires the `attribute_mappings:write` scope.\n\nDepending on the request, the caller's role may need Manage attribute mappings (`attribute_mappings:manage`).","summary":"Delete an attribute mapping","x-conditional-permissions":["attribute_mappings:manage"]}},"/v2/source_maps":{"post":{"tags":["Source Maps"],"operationId":"uploadSourceMap","parameters":[{"name":"minified_path","in":"query","schema":{"type":"string","minLength":1,"maxLength":1024,"description":"Path of the JavaScript file the map belongs to, relative to the deploy root, such as `assets/index-Bx81.js`.","examples":["assets/index-Bx81.js"]},"required":true},{"name":"debug_id","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The file's debug id, as `maple sourcemaps inject` (or a bundler plugin) wrote it into the JavaScript file and its map.","examples":["6c5e2b1a-1f2e-4d3c-8b7a-0123456789ab"]},"required":false},{"name":"service","in":"query","schema":{"type":"string","minLength":1,"maxLength":256,"description":"The service the JavaScript belongs to (OTel `service.name`).","examples":["web"]},"required":false},{"name":"version","in":"query","schema":{"type":"string","minLength":1,"maxLength":256,"description":"The release the JavaScript belongs to (OTel `service.version`).","examples":["1.4.2"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A JavaScript source map Maple uses to turn minified browser stack traces back into your original code. Matched to a stack frame by debug id, else by service, version and file path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceMap"}}}},"400":{"description":"The @maple/http/sourcemaps/SourceMapInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceMapInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"413":{"description":"The @maple/http/sourcemaps/SourceMapTooLargeError failure. HTTP 413.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceMapTooLargeError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/sourcemaps/SourceMapStorageError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceMapStorageError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Stores one source map (the raw JSON as the request body, at most 10 MiB, the largest map Maple can symbolicate with; larger is a 413). Index maps (with `sections`) are refused with a 400; emit a regular map. With a `debug_id`, only the map with that `debug_id` is replaced, so builds sharing a release path keep their own maps. Without one, the map without a debug id at the same `service`, `version` and `minified_path` is replaced. Requires an engineer or admin role and the `source_maps:write` scope.\n\nThe caller's role needs Upload source maps (`source_maps:upload`).","summary":"Upload a source map","requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"string","format":"binary"}}},"required":true},"x-required-permissions":["source_maps:upload"]},"get":{"tags":["Source Maps"],"operationId":"listSourceMaps","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"service","in":"query","schema":{"type":"string","minLength":1,"maxLength":256},"required":false},{"name":"version","in":"query","schema":{"type":"string","minLength":1,"maxLength":256},"required":false},{"name":"debug_id","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The file's debug id, as `maple sourcemaps inject` (or a bundler plugin) wrote it into the JavaScript file and its map.","examples":["6c5e2b1a-1f2e-4d3c-8b7a-0123456789ab"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of source maps.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceMapList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/sourcemaps/SourceMapStorageError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceMapStorageError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's source maps, newest first. Cursor-paginated. Requires the `source_maps:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List source maps","x-required-permissions":["telemetry:read"]}},"/v2/source_maps/{id}":{"delete":{"tags":["Source Maps"],"operationId":"deleteSourceMap","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SourceMapFileId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A JavaScript source map Maple uses to turn minified browser stack traces back into your original code. Matched to a stack frame by debug id, else by service, version and file path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceMap"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/sourcemaps/SourceMapNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceMapNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/sourcemaps/SourceMapStorageError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SourceMapStorageError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes a source map and returns it as it was. Requires an engineer or admin role and the `source_maps:write` scope.\n\nThe caller's role needs Upload source maps (`source_maps:upload`).","summary":"Delete a source map","x-required-permissions":["source_maps:upload"]}},"/v2/data_sources":{"get":{"tags":["Data Sources"],"operationId":"listDataSources","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of data sources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/data-sources/DataSourcesDisabledError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourcesDisabledError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/data-sources/DataSourceStorageUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceStorageUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the organization's data sources by name. Any member may call it. Requires `data_sources:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List data sources","x-required-permissions":["telemetry:read"]},"post":{"tags":["Data Sources"],"operationId":"createDataSource","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"SavedDataSource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedDataSource"}}}},"400":{"description":"The @maple/http/data-sources/DataSourceInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/data-sources/DataSourcesDisabledError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourcesDisabledError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/data-sources/DataSourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceNotFoundHttpError"}}}},"422":{"description":"The @maple/http/data-sources/DataSourceUnreachableError failure. HTTP 422.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceUnreachableError"}}}},"429":{"description":"The @maple/http/data-sources/DataSourceRateLimitedError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceRateLimitedHttpError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/data-sources/DataSourceStorageUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceStorageUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Tests the connection first and saves nothing when it fails, then reads the source's catalog. Requires an org-admin role and `data_sources:write`.\n\nDepending on the request, the caller's role may need Connect data sources (`data_sources:manage`).","summary":"Connect a data source","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceCreateParams"}}},"required":true},"x-conditional-permissions":["data_sources:manage"]}},"/v2/data_sources/{id}":{"get":{"tags":["Data Sources"],"operationId":"getDataSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ExternalDataSourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A database or API your organization connected so Maple can query it in place. Nothing is imported.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSource"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/data-sources/DataSourcesDisabledError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourcesDisabledError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/data-sources/DataSourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceNotFoundHttpError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/data-sources/DataSourceStorageUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceStorageUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Requires `data_sources:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a data source","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Data Sources"],"operationId":"updateDataSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ExternalDataSourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"SavedDataSource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedDataSource"}}}},"400":{"description":"The @maple/http/data-sources/DataSourceInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/data-sources/DataSourcesDisabledError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourcesDisabledError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/data-sources/DataSourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceNotFoundHttpError"}}}},"422":{"description":"The @maple/http/data-sources/DataSourceUnreachableError failure. HTTP 422.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceUnreachableError"}}}},"429":{"description":"The @maple/http/data-sources/DataSourceRateLimitedError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceRateLimitedHttpError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/data-sources/DataSourceStorageUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceStorageUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Omitted fields are unchanged. A new `connection` is tested before it is saved; omit its password or key to keep the stored one. Requires an org-admin role and `data_sources:write`.\n\nDepending on the request, the caller's role may need Connect data sources (`data_sources:manage`).","summary":"Update a data source","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceUpdateParams"}}},"required":true},"x-conditional-permissions":["data_sources:manage"]},"delete":{"tags":["Data Sources"],"operationId":"deleteDataSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ExternalDataSourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"DataSourceDeleteResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/data-sources/DataSourcesDisabledError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourcesDisabledError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/data-sources/DataSourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceNotFoundHttpError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/data-sources/DataSourceStorageUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceStorageUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Removes the source, its stored secret and its catalog. Requires an org-admin role and `data_sources:write`.\n\nDepending on the request, the caller's role may need Connect data sources (`data_sources:manage`).","summary":"Delete a data source","x-conditional-permissions":["data_sources:manage"]}},"/v2/data_sources/{id}/test":{"post":{"tags":["Data Sources"],"operationId":"testDataSource","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ExternalDataSourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"DataSourceTestResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceTestResult"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/data-sources/DataSourcesDisabledError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourcesDisabledError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/data-sources/DataSourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceNotFoundHttpError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/data-sources/DataSourceStorageUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceStorageUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Reaches the source with the stored credentials and records the outcome. A failed test is a result with `ok: false`. Requires an org-admin role and `data_sources:write`.\n\nDepending on the request, the caller's role may need Connect data sources (`data_sources:manage`).","summary":"Test a data source","x-conditional-permissions":["data_sources:manage"]}},"/v2/data_sources/{id}/catalog/refresh":{"post":{"tags":["Data Sources"],"operationId":"refreshDataSourceCatalog","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ExternalDataSourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A database or API your organization connected so Maple can query it in place. Nothing is imported.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSource"}}}},"400":{"description":"The @maple/http/data-sources/DataSourceInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/data-sources/DataSourcesDisabledError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourcesDisabledError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/data-sources/DataSourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceNotFoundHttpError"}}}},"422":{"description":"The @maple/http/data-sources/DataSourceUnreachableError failure. HTTP 422.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceUnreachableError"}}}},"429":{"description":"The @maple/http/data-sources/DataSourceRateLimitedError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceRateLimitedHttpError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/data-sources/DataSourceStorageUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceStorageUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Reads the source's tables or resources again. Curation (exposed entries, notes, time fields) is kept. Requires an org-admin role and `data_sources:write`.\n\nDepending on the request, the caller's role may need Connect data sources (`data_sources:manage`).","summary":"Refresh a data source's catalog","x-conditional-permissions":["data_sources:manage"]}},"/v2/data_sources/{id}/catalog":{"get":{"tags":["Data Sources"],"operationId":"getDataSourceCatalog","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ExternalDataSourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"DataSourceCatalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceCatalog"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/data-sources/DataSourcesDisabledError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourcesDisabledError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/data-sources/DataSourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceNotFoundHttpError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/data-sources/DataSourceStorageUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceStorageUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Every stored entry with curation applied, hidden ones included. Requires `data_sources:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a data source's catalog","x-required-permissions":["telemetry:read"]}},"/v2/data_sources/{id}/catalog/entries/{entry}":{"patch":{"tags":["Data Sources"],"operationId":"updateDataSourceCatalogEntry","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ExternalDataSourceId"},"required":true},{"name":"entry","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"DataSourceCatalogEntry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceCatalogEntry"}}}},"400":{"description":"The @maple/http/data-sources/DataSourceInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/data-sources/DataSourcesDisabledError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourcesDisabledError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/data-sources/DataSourceNotFoundError failure. HTTP 404. | The @maple/http/data-sources/CatalogEntryNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceNotFoundHttpError"},{"$ref":"#/components/schemas/DataSourceCatalogEntryNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/data-sources/DataSourceStorageUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataSourceStorageUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Expose or hide an entry from agents, and set its note, time field and field notes. Survives catalog refreshes. Requires an org-admin role and `data_sources:write`.\n\nDepending on the request, the caller's role may need Connect data sources (`data_sources:manage`).","summary":"Curate a catalog entry","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSourceCatalogEntryUpdateParams"}}},"required":true},"x-conditional-permissions":["data_sources:manage"]}},"/v2/ingest_rules":{"get":{"tags":["Ingest Rules"],"operationId":"listIngestRules","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of ingest rules in position order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestRulePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRulePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's ingest rules in position order. Requires the `ingest_rules:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List ingest rules","x-required-permissions":["telemetry:read"]},"post":{"tags":["Ingest Rules"],"operationId":"createIngestRule","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A rule the ingest gateway applies before telemetry is stored or billed: drop matching records, parse log bodies into attributes, or redact values. Applies to new data within 30 seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRule"}}}},"400":{"description":"The @maple/http/errors/IngestRuleValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRuleValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/IngestRuleForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRuleForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestRulePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRulePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a drop, parse or redact rule. Requires the `ingest_rules:write` scope and an admin role.\n\nDepending on the request, the caller's role may need Manage ingest rules (`ingest_rules:manage`).","summary":"Create an ingest rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleCreateParams"}}},"required":true},"x-conditional-permissions":["ingest_rules:manage"]}},"/v2/ingest_rules/stats":{"get":{"tags":["Ingest Rules"],"operationId":"getIngestRuleStats","parameters":[{"name":"start_time","in":"query","schema":{"type":"string"},"required":false},{"name":"end_time","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"What the gateway's rules matched, dropped and redacted. Counts lag by up to a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleStats"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestRulePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRulePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Per-rule and per-signal counts of what rules matched, dropped and redacted, at most 62 days. Requires the `ingest_rules:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Ingest rule stats","x-required-permissions":["telemetry:read"]}},"/v2/ingest_rules/suggestions":{"get":{"tags":["Ingest Rules"],"operationId":"listIngestRuleSuggestions","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Rules the last 24 hours of stored logs and spans suggest: debug logs and health-check spans to drop, and a service's logs below warn to sample when its info logs dominate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleSuggestions"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Rules the last 24 hours of stored logs and spans suggest, from the hourly rollups, with the bytes each would have dropped. Requires the `ingest_rules:read` scope; log suggestions also need `logs:read` and span suggestions `traces:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Suggested ingest rules","x-required-permissions":["telemetry:read"]}},"/v2/ingest_rules/preview":{"post":{"tags":["Ingest Rules"],"operationId":"previewIngestRule","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"What a draft rule would have matched in the last 24 hours of stored logs and spans. An estimate: data other rules already dropped is not stored, and regexes run on the warehouse's engine.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRulePreview"}}}},"400":{"description":"The @maple/http/errors/IngestRuleValidationError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRuleValidationError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Counts what a draft rule's conditions match in the last 24 hours of stored logs and spans, per service, and estimates the records and bytes it would drop. Saves nothing. Requires the `ingest_rules:read` scope, plus `logs:read` and `traces:read` for the signals it counts.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Preview an ingest rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRulePreviewParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/ingest_rules/reorder":{"post":{"tags":["Ingest Rules"],"operationId":"reorderIngestRules","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"IngestRuleReorderResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleReorderResponse"}}}},"400":{"description":"The @maple/http/errors/IngestRuleValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRuleValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/IngestRuleForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRuleForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestRulePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRulePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Sets every rule's position in one transaction, so the order is never half applied. Pass all of the organization's rule ids. Requires the `ingest_rules:write` scope and an admin role.\n\nDepending on the request, the caller's role may need Manage ingest rules (`ingest_rules:manage`).","summary":"Reorder ingest rules","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleReorderParams"}}},"required":true},"x-conditional-permissions":["ingest_rules:manage"]}},"/v2/ingest_rules/{id}":{"get":{"tags":["Ingest Rules"],"operationId":"getIngestRule","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_IngestRuleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A rule the ingest gateway applies before telemetry is stored or billed: drop matching records, parse log bodies into attributes, or redact values. Applies to new data within 30 seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRule"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IngestRuleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestRulePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRulePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns one ingest rule by its `irule_â¦` ID. Requires the `ingest_rules:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an ingest rule","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Ingest Rules"],"operationId":"updateIngestRule","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_IngestRuleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A rule the ingest gateway applies before telemetry is stored or billed: drop matching records, parse log bodies into attributes, or redact values. Applies to new data within 30 seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRule"}}}},"400":{"description":"The @maple/http/errors/IngestRuleValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRuleValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/IngestRuleForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRuleForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IngestRuleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestRulePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRulePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates a rule; omitted fields are unchanged. Requires the `ingest_rules:write` scope and an admin role.\n\nDepending on the request, the caller's role may need Manage ingest rules (`ingest_rules:manage`).","summary":"Update an ingest rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleUpdateParams"}}},"required":true},"x-conditional-permissions":["ingest_rules:manage"]},"delete":{"tags":["Ingest Rules"],"operationId":"deleteIngestRule","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_IngestRuleId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an ingest rule was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/IngestRuleForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRuleForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/IngestRuleNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRuleNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/IngestRulePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IngestRulePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes an ingest rule. Already-stored telemetry is unaffected. Requires the `ingest_rules:write` scope and an admin role.\n\nDepending on the request, the caller's role may need Manage ingest rules (`ingest_rules:manage`).","summary":"Delete an ingest rule","x-conditional-permissions":["ingest_rules:manage"]}},"/v2/audit_log":{"get":{"tags":["Audit Log"],"operationId":"listAuditLogEntries","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"kind","in":"query","schema":{"$ref":"#/components/schemas/AuditLogKind"},"required":false},{"name":"actor_type","in":"query","schema":{"$ref":"#/components/schemas/_maple_AuditActorType"},"required":false},{"name":"actor_id","in":"query","schema":{"type":"string","description":"Only return entries performed by this specific actor: a `user_â¦` user ID, `key_â¦` API key ID, or `actor_â¦` agent ID."},"required":false},{"name":"affected_user","in":"query","schema":{"type":"string","description":"Only return entries that acted on this `user_â¦` user."},"required":false},{"name":"action","in":"query","schema":{"type":"string","description":"Only return entries with exactly this action (e.g. `alert_rule.created`)."},"required":false},{"name":"outcome","in":"query","schema":{"$ref":"#/components/schemas/_maple_AuditOutcome"},"required":false},{"name":"resource_type","in":"query","schema":{"type":"string","description":"Only return entries acting on this kind of resource (e.g. `dashboard`)."},"required":false},{"name":"resource_id","in":"query","schema":{"type":"string","description":"Only return entries acting on this exact resource, by its public ID (e.g. `dash_â¦`)."},"required":false},{"name":"changed","in":"query","schema":{"type":"string","description":"Only return entries whose update touched this field name (e.g. `scopes`)."},"required":false},{"name":"request_id","in":"query","schema":{"type":"string","description":"Only return entries produced by this HTTP request."},"required":false},{"name":"since","in":"query","schema":{"type":"string"},"required":false},{"name":"until","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of audit log entries, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLogEntryList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AuditLogPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AuditLogPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's audit log, newest first, optionally filtered by actor, action, outcome, resource, changed field, request, and time window. Cursor-paginated. Session callers must be organization administrators; API keys require the `audit_log:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Read the audit log (`audit_log:read`).","summary":"List audit log entries","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["audit_log:read"]}},"/v2/scrape_targets":{"get":{"tags":["Scrape Targets"],"operationId":"listScrapeTargets","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of scrape targets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/ScrapeTargetStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetStoredConfigInvalidError"}}}},"503":{"description":"The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's scrape targets, most recently created first. Cursor-paginated. Requires the `scrape_targets:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage scrape targets (`scrape_targets:manage`).","summary":"List scrape targets","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["scrape_targets:manage"]},"post":{"tags":["Scrape Targets"],"operationId":"createScrapeTarget","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A metrics endpoint Maple scrapes on a schedule â a Prometheus endpoint you host, or PlanetScale branch metrics discovered from an organization. Scraped samples flow into your metrics like any other telemetry. Credentials are write-only: responses carry `has_credentials` instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTarget"}}}},"400":{"description":"The @maple/http/errors/ScrapeTargetValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/ScrapeTargetLimitReachedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetLimitReachedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/ScrapeTargetEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a scrape target. `prometheus` targets need a `url`; `planetscale` targets need an `organization` (the URL is derived). Fails with 409 when the organization already has the most scrape targets one organization can hold (50). Requires the `scrape_targets:write` scope and an org-admin caller.\n\nDepending on the request, the caller's role may need Manage scrape targets (`scrape_targets:manage`).","summary":"Create a scrape target","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetCreateParams"}}},"required":true},"x-conditional-permissions":["scrape_targets:manage"]}},"/v2/scrape_targets/{id}":{"get":{"tags":["Scrape Targets"],"operationId":"getScrapeTarget","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ScrapeTargetId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A metrics endpoint Maple scrapes on a schedule â a Prometheus endpoint you host, or PlanetScale branch metrics discovered from an organization. Scraped samples flow into your metrics like any other telemetry. Credentials are write-only: responses carry `has_credentials` instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTarget"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ScrapeTargetNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/ScrapeTargetStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetStoredConfigInvalidError"}}}},"503":{"description":"The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single scrape target by its `scrp_â¦` ID. Requires the `scrape_targets:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage scrape targets (`scrape_targets:manage`).","summary":"Retrieve a scrape target","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["scrape_targets:manage"]},"patch":{"tags":["Scrape Targets"],"operationId":"updateScrapeTarget","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ScrapeTargetId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A metrics endpoint Maple scrapes on a schedule â a Prometheus endpoint you host, or PlanetScale branch metrics discovered from an organization. Scraped samples flow into your metrics like any other telemetry. Credentials are write-only: responses carry `has_credentials` instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTarget"}}}},"400":{"description":"The @maple/http/errors/ScrapeTargetValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ScrapeTargetNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/ScrapeTargetEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/ScrapeTargetStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetStoredConfigInvalidError"}}}},"503":{"description":"The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates a target's configuration; omitted fields are unchanged. Changing the scheme, host, or port of a target that stores credentials requires re-supplying `auth_credentials` in the same request â stored credentials are never carried to a new origin. Targets owned by an integration (`managed_by` set) are edited through that integration. Requires the `scrape_targets:write` scope and an org-admin caller.\n\nDepending on the request, the caller's role may need Manage scrape targets (`scrape_targets:manage`).","summary":"Update a scrape target","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetUpdateParams"}}},"required":true},"x-conditional-permissions":["scrape_targets:manage"]},"delete":{"tags":["Scrape Targets"],"operationId":"deleteScrapeTarget","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ScrapeTargetId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that a scrape target was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetDeleteResponse"}}}},"400":{"description":"The @maple/http/errors/ScrapeTargetValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ScrapeTargetNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Permanently deletes a scrape target and stops scraping it. Already-ingested metrics are unaffected. Targets owned by an integration (`managed_by` set) are removed through that integration. Requires the `scrape_targets:write` scope and an org-admin caller.\n\nDepending on the request, the caller's role may need Manage scrape targets (`scrape_targets:manage`).","summary":"Delete a scrape target","x-conditional-permissions":["scrape_targets:manage"]}},"/v2/scrape_targets/{id}/probe":{"post":{"tags":["Scrape Targets"],"operationId":"probeScrapeTarget","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ScrapeTargetId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The outcome of an on-demand probe scrape.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetProbeResult"}}}},"400":{"description":"The @maple/http/errors/IntegrationsValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/errors/IntegrationsRevokedError failure. HTTP 401. | The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationsRevokedError"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ScrapeTargetNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetNotFoundError"}}}},"409":{"description":"The @maple/http/errors/IntegrationsNotConnectedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsNotConnectedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/ScrapeTargetEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/IntegrationsUpstreamError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationsUpstreamError"}}}},"503":{"description":"The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/IntegrationsPersistenceError failure. HTTP 503. | The @maple/http/errors/IntegrationsConfigurationError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/IntegrationsPersistenceError"},{"$ref":"#/components/schemas/IntegrationsConfigurationError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Runs an on-demand scrape against the target and reports the outcome without waiting for the schedule. Requires the `scrape_targets:write` scope and an org-admin caller.\n\nDepending on the request, the caller's role may need Manage scrape targets (`scrape_targets:manage`).","summary":"Probe a scrape target","x-conditional-permissions":["scrape_targets:manage"]}},"/v2/scrape_targets/{id}/checks":{"get":{"tags":["Scrape Targets"],"operationId":"listScrapeTargetChecks","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_ScrapeTargetId"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"since","in":"query","schema":{"type":"string"},"required":false},{"name":"until","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of scrape checks, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetCheckList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/ScrapeTargetNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeTargetNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ScrapeTargetPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScrapeTargetPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns recent scheduled-scrape attempts for the target, newest first, optionally bounded by `since`/`until`. Cursor-paginated over the most recent 200 checks. Requires the `scrape_targets:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List scrape checks","x-required-permissions":["telemetry:read"]}},"/v2/uptime_monitors":{"get":{"tags":["Uptime Monitors"],"operationId":"listUptimeMonitors","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of uptime monitors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/UptimeMonitorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UptimeMonitorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's uptime monitors with their current state, most recently created first. Cursor-paginated. Requires the `uptime_monitors:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage uptime monitors (`uptime_monitors:manage`).","summary":"List uptime monitors","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["uptime_monitors:manage"]},"post":{"tags":["Uptime Monitors"],"operationId":"createUptimeMonitor","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A check Maple runs on a schedule from outside your infrastructure (HTTP, TCP or DNS), or a heartbeat your own job sends. Each check is recorded as a span in your traces.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitor"}}}},"400":{"description":"The @maple/http/errors/UptimeMonitorValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UptimeMonitorValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"402":{"description":"The @maple/http/errors/UptimeMonitorLimitReachedError failure. HTTP 402.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorLimitReachedError"}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/UptimeMonitorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UptimeMonitorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates an uptime monitor. It starts `pending` until its first result. Fails with 402 when the organization already has as many monitors as its plan allows. Requires the `uptime_monitors:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Manage uptime monitors (`uptime_monitors:manage`).","summary":"Create an uptime monitor","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorCreateParams"}}},"required":true},"x-conditional-permissions":["uptime_monitors:manage"]}},"/v2/uptime_monitors/test":{"post":{"tags":["Uptime Monitors"],"operationId":"testUptimeMonitor","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The outcome of one HTTP check run on demand.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorTestResult"}}}},"400":{"description":"The @maple/http/errors/UptimeMonitorValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UptimeMonitorValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Runs one HTTP check now with the given config and reports the response, without saving anything. TCP, DNS and heartbeat monitors run after creation. Requires the `uptime_monitors:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Manage uptime monitors (`uptime_monitors:manage`).","summary":"Test an uptime check","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorTestParams"}}},"required":true},"x-conditional-permissions":["uptime_monitors:manage"]}},"/v2/uptime_monitors/{id}":{"get":{"tags":["Uptime Monitors"],"operationId":"getUptimeMonitor","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_UptimeMonitorId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A check Maple runs on a schedule from outside your infrastructure (HTTP, TCP or DNS), or a heartbeat your own job sends. Each check is recorded as a span in your traces.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitor"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/UptimeMonitorNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/UptimeMonitorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UptimeMonitorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single uptime monitor by its `upm_â¦` ID. Requires the `uptime_monitors:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Manage uptime monitors (`uptime_monitors:manage`).","summary":"Retrieve an uptime monitor","x-required-permissions":["telemetry:read"],"x-conditional-permissions":["uptime_monitors:manage"]},"patch":{"tags":["Uptime Monitors"],"operationId":"updateUptimeMonitor","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_UptimeMonitorId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A check Maple runs on a schedule from outside your infrastructure (HTTP, TCP or DNS), or a heartbeat your own job sends. Each check is recorded as a span in your traces.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitor"}}}},"400":{"description":"The @maple/http/errors/UptimeMonitorValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UptimeMonitorValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/UptimeMonitorNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/UptimeMonitorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UptimeMonitorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates a monitor; omitted fields are unchanged. Set `enabled` to pause or resume it. Requires the `uptime_monitors:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Manage uptime monitors (`uptime_monitors:manage`).","summary":"Update an uptime monitor","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorUpdateParams"}}},"required":true},"x-conditional-permissions":["uptime_monitors:manage"]},"delete":{"tags":["Uptime Monitors"],"operationId":"deleteUptimeMonitor","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_UptimeMonitorId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an uptime monitor was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/UptimeMonitorNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UptimeMonitorNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/UptimeMonitorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UptimeMonitorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Permanently deletes an uptime monitor and stops its checks. Recorded check spans are unaffected. Requires the `uptime_monitors:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Manage uptime monitors (`uptime_monitors:manage`).","summary":"Delete an uptime monitor","x-conditional-permissions":["uptime_monitors:manage"]}},"/v2/slos":{"get":{"tags":["SLOs"],"operationId":"listSlos","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of SLOs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SloPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's SLOs, most recently created first. Cursor-paginated.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List SLOs","x-required-permissions":["telemetry:read"]},"post":{"tags":["SLOs"],"operationId":"createSlo","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A service level objective: the share of a service's entry-point spans that must be good over a rolling window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Slo"}}}},"400":{"description":"The @maple/http/errors/SloValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SloPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates an SLO. Requires a caller who can manage alerts.\n\nDepending on the request, the caller's role may need Manage SLOs and budgets (`slos:manage`).","summary":"Create an SLO","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloCreateParams"}}},"required":true},"x-conditional-permissions":["slos:manage"]}},"/v2/slos/statuses":{"get":{"tags":["SLOs"],"operationId":"listSloStatuses","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Every SLO's status at once, read together rather than one request per SLO.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloStatusList"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/SloPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the SLI, budget left and burn windows of every SLO in the organization, read together.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List every SLO's status","x-required-permissions":["telemetry:read"]}},"/v2/slos/{id}":{"get":{"tags":["SLOs"],"operationId":"getSlo","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SloId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A service level objective: the share of a service's entry-point spans that must be good over a rolling window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Slo"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SloNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SloPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single SLO by its `slo_â¦` ID.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an SLO","x-required-permissions":["telemetry:read"]},"patch":{"tags":["SLOs"],"operationId":"updateSlo","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SloId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A service level objective: the share of a service's entry-point spans that must be good over a rolling window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Slo"}}}},"400":{"description":"The @maple/http/errors/SloValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SloNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SloPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates an SLO; omitted fields are unchanged. Requires a caller who can manage alerts.\n\nDepending on the request, the caller's role may need Manage SLOs and budgets (`slos:manage`).","summary":"Update an SLO","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloUpdateParams"}}},"required":true},"x-conditional-permissions":["slos:manage"]},"delete":{"tags":["SLOs"],"operationId":"deleteSlo","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SloId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an SLO was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SloNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SloPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Permanently deletes an SLO and its burn-rate alert rule. Requires a caller who can manage alerts.\n\nDepending on the request, the caller's role may need Manage SLOs and budgets (`slos:manage`).","summary":"Delete an SLO","x-conditional-permissions":["slos:manage"]}},"/v2/slos/{id}/status":{"get":{"tags":["SLOs"],"operationId":"getSloStatus","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SloId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Where an SLO stands now: its SLI, the budget left and how fast it burns.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloStatus"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SloNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/SloPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the SLO's SLI and error budget over its window, and its current burn rates.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an SLO's status","x-required-permissions":["telemetry:read"]}},"/v2/slos/{id}/history":{"get":{"tags":["SLOs"],"operationId":"getSloHistory","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SloId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The error budget over the SLO window, one point per hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloHistory"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SloNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/SloPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SloPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the error budget left over the SLO window, one point per hour.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an SLO's budget history","x-required-permissions":["telemetry:read"]}},"/v2/status_pages":{"get":{"tags":["Status Pages"],"operationId":"listStatusPages","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of status pages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's status pages, oldest first. Cursor-paginated. Requires the `status_pages:read` scope.","summary":"List status pages"},"post":{"tags":["Status Pages"],"operationId":"createStatusPage","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A public status page. Maple publishes it to edge storage, so it stays up when Maple does not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPage"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/StatusPageSlugTakenError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageSlugTakenError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates a status page with its components in one write. It is published within a minute, right away with `publish: true`, or created as a draft with `publish: false`. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Create a status page","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageCreateParams"}}},"required":true},"x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/preview":{"post":{"tags":["Status Pages"],"operationId":"previewStatusPage","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"pageId":{"$ref":"#/components/schemas/_maple_StatusPageId_1"},"revision":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"generatedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"page":{"type":"object","properties":{"name":{"type":"string"},"slug":{"$ref":"#/components/schemas/_maple_StatusPageSlug"},"orgKey":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"logoDarkUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"theme":{"type":"object","properties":{"preset":{"type":"string","enum":["default","maple","mono","midnight","paper"]},"appearance":{"type":"string","enum":["auto","light","dark"]},"accent":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"background":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"text":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"card":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"border":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"radius":{"type":"string","enum":["none","sm","md","lg"]},"font":{"type":"string","enum":["sans","serif","mono"]}},"required":["preset","appearance","accent","background","text","card","border","radius","font"],"additionalProperties":false},"showPoweredBy":{"type":"boolean"},"privacyUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibility":{"$ref":"#/components/schemas/_maple_StatusPageVisibility_1"}},"required":["name","slug","description","websiteUrl","logoUrl","showPoweredBy"],"additionalProperties":false},"components":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_StatusPageComponentId"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/_maple_StatusPageComponentStatus_1"},"baseStatus":{"$ref":"#/components/schemas/_maple_StatusPageComponentStatus_1"},"showUptime":{"type":"boolean"},"monitored":{"type":"boolean"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checks":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"failures":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"downChecks":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["day","checks","failures","downChecks"],"additionalProperties":false}}},"required":["id","name","description","group","status","baseStatus","showUptime","monitored","days"],"additionalProperties":false}},"incidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/components/schemas/_maple_StatusPageIncidentKind"},"title":{"type":"string"},"impact":{"$ref":"#/components/schemas/_maple_StatusPageIncidentImpact"},"status":{"$ref":"#/components/schemas/_maple_StatusPageIncidentStatus"},"startedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"resolvedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"scheduledStart":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"scheduledEnd":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"componentIds":{"type":"array","items":{"type":"string"}},"openedByOverlayEntryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"$ref":"#/components/schemas/_maple_StatusPageIncidentStatus"},"body":{"type":"string"},"at":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"source":{"$ref":"#/components/schemas/_maple_StatusPageUpdateSource"},"overlayEntryId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","status","body","at","source","overlayEntryId"],"additionalProperties":false}}},"required":["id","kind","title","impact","status","startedAt","resolvedAt","scheduledStart","scheduledEnd","componentIds","openedByOverlayEntryId","updates"],"additionalProperties":false}},"incidentHistory":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"$ref":"#/components/schemas/_maple_StatusPageIncidentKind"},"impact":{"$ref":"#/components/schemas/_maple_StatusPageIncidentImpact"},"startedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"resolvedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"componentIds":{"type":"array","items":{"type":"string"}}},"required":["id","title","kind","impact","startedAt","resolvedAt"],"additionalProperties":false}}},"required":["schemaVersion","pageId","revision","generatedAt","page","components","incidents"],"additionalProperties":false}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Builds the snapshot a draft config would publish, from your organization's real uptime history. Writes nothing. Requires the `status_pages:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Preview a status page","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPagePreviewParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/status_pages/{id}":{"get":{"tags":["Status Pages"],"operationId":"getStatusPage","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A public status page. Maple publishes it to edge storage, so it stays up when Maple does not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPage"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a status page by its `stp_â¦` ID. Requires the `status_pages:read` scope.","summary":"Retrieve a status page"},"patch":{"tags":["Status Pages"],"operationId":"updateStatusPage","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A public status page. Maple publishes it to edge storage, so it stays up when Maple does not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPage"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"409":{"description":"The @maple/http/errors/StatusPageSlugTakenError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageSlugTakenError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates a status page; omitted fields are unchanged. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Update a status page","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageUpdateParams"}}},"required":true},"x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]},"delete":{"tags":["Status Pages"],"operationId":"deleteStatusPage","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that a status page was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes a status page with its components and incidents, and takes it offline. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Delete a status page","x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/view":{"get":{"tags":["Status Pages"],"operationId":"viewStatusPage","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"pageId":{"$ref":"#/components/schemas/_maple_StatusPageId_1"},"revision":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"generatedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"page":{"type":"object","properties":{"name":{"type":"string"},"slug":{"$ref":"#/components/schemas/_maple_StatusPageSlug"},"orgKey":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"logoDarkUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"theme":{"type":"object","properties":{"preset":{"type":"string","enum":["default","maple","mono","midnight","paper"]},"appearance":{"type":"string","enum":["auto","light","dark"]},"accent":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"background":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"text":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"card":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"border":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"radius":{"type":"string","enum":["none","sm","md","lg"]},"font":{"type":"string","enum":["sans","serif","mono"]}},"required":["preset","appearance","accent","background","text","card","border","radius","font"],"additionalProperties":false},"showPoweredBy":{"type":"boolean"},"privacyUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"customDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibility":{"$ref":"#/components/schemas/_maple_StatusPageVisibility_1"}},"required":["name","slug","description","websiteUrl","logoUrl","showPoweredBy"],"additionalProperties":false},"components":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_StatusPageComponentId"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/_maple_StatusPageComponentStatus_1"},"baseStatus":{"$ref":"#/components/schemas/_maple_StatusPageComponentStatus_1"},"showUptime":{"type":"boolean"},"monitored":{"type":"boolean"},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checks":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"failures":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"downChecks":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["day","checks","failures","downChecks"],"additionalProperties":false}}},"required":["id","name","description","group","status","baseStatus","showUptime","monitored","days"],"additionalProperties":false}},"incidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/components/schemas/_maple_StatusPageIncidentKind"},"title":{"type":"string"},"impact":{"$ref":"#/components/schemas/_maple_StatusPageIncidentImpact"},"status":{"$ref":"#/components/schemas/_maple_StatusPageIncidentStatus"},"startedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"resolvedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"scheduledStart":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"scheduledEnd":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"componentIds":{"type":"array","items":{"type":"string"}},"openedByOverlayEntryId":{"anyOf":[{"type":"string"},{"type":"null"}]},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"$ref":"#/components/schemas/_maple_StatusPageIncidentStatus"},"body":{"type":"string"},"at":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"source":{"$ref":"#/components/schemas/_maple_StatusPageUpdateSource"},"overlayEntryId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","status","body","at","source","overlayEntryId"],"additionalProperties":false}}},"required":["id","kind","title","impact","status","startedAt","resolvedAt","scheduledStart","scheduledEnd","componentIds","openedByOverlayEntryId","updates"],"additionalProperties":false}},"incidentHistory":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"$ref":"#/components/schemas/_maple_StatusPageIncidentKind"},"impact":{"$ref":"#/components/schemas/_maple_StatusPageIncidentImpact"},"startedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"resolvedAt":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"componentIds":{"type":"array","items":{"type":"string"}}},"required":["id","title","kind","impact","startedAt","resolvedAt"],"additionalProperties":false}}},"required":["schemaVersion","pageId","revision","generatedAt","page","components","incidents"],"additionalProperties":false}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Builds the page as visitors would see it now, whatever its visibility: how members read an `internal` page. Writes nothing. Requires the `status_pages:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"View a status page","x-required-permissions":["telemetry:read"]}},"/v2/status_pages/{id}/publish":{"post":{"tags":["Status Pages"],"operationId":"publishStatusPage","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"What a publish request did.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPagePublishResult"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Publishes the page now instead of within the minute, making a draft public first. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Publish a status page","x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/rotate_break_glass":{"post":{"tags":["Status Pages"],"operationId":"rotateStatusPageBreakGlassToken","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A newly issued break-glass token. Issuing one replaces any previous token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageBreakGlassToken"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Issues a new break-glass token, replacing any previous one, and returns it once. Requires the `status_pages:write` scope and an org-admin caller.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Issue a break-glass token","x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/break_glass":{"delete":{"tags":["Status Pages"],"operationId":"revokeStatusPageBreakGlassToken","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A public status page. Maple publishes it to edge storage, so it stays up when Maple does not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPage"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Revokes the page's break-glass token. Requires the `status_pages:write` scope and an org-admin caller.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Revoke the break-glass token","x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/password":{"put":{"tags":["Status Pages"],"operationId":"setStatusPagePassword","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A public status page. Maple publishes it to edge storage, so it stays up when Maple does not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPage"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Sets or replaces the password visitors enter on a `password` page; replacing it signs every visitor out. Setting one does not change the visibility. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Set a status page password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPagePasswordParams"}}},"required":true},"x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]},"delete":{"tags":["Status Pages"],"operationId":"removeStatusPagePassword","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A public status page. Maple publishes it to edge storage, so it stays up when Maple does not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPage"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Removes the page password. A `password` page must be made `public` or `internal` first. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Remove a status page password","x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/custom_domain":{"get":{"tags":["Status Pages"],"operationId":"getStatusPageCustomDomain","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A status page's custom domain (`status.acme.com`). Add the DNS records it lists; Maple checks them every minute at first and the page goes live on the domain once its certificate is issued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageCustomDomain"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the page's custom domain with its status and the DNS records to add, or `hostname: null` without one. Requires the `status_pages:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a status page's custom domain","x-required-permissions":["telemetry:read"]},"put":{"tags":["Status Pages"],"operationId":"setStatusPageCustomDomain","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A status page's custom domain (`status.acme.com`). Add the DNS records it lists; Maple checks them every minute at first and the page goes live on the domain once its certificate is issued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageCustomDomain"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"409":{"description":"The @maple/http/errors/StatusPageCustomDomainTakenError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageCustomDomainTakenError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPageCustomDomainsUnavailableError failure. HTTP 503. | The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageCustomDomainsUnavailableError"},{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Serves the page on a subdomain you control, like `status.acme.com`, replacing a different one it has; the same hostname again changes nothing. Add the returned DNS records: Maple sets a new domain up once it finds the ownership TXT record, and the page goes live there once the certificate is issued. A hostname held by a page that never proved it owns the domain answers 409 with the record that claims it. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Set a status page's custom domain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageCustomDomainParams"}}},"required":true},"x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]},"delete":{"tags":["Status Pages"],"operationId":"removeStatusPageCustomDomain","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A status page's custom domain (`status.acme.com`). Add the DNS records it lists; Maple checks them every minute at first and the page goes live on the domain once its certificate is issued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageCustomDomain"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404. | The @maple/http/errors/StatusPageCustomDomainNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageNotFoundError"},{"$ref":"#/components/schemas/StatusPageCustomDomainNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Stops serving the page on its custom domain within a minute. The page stays up at its Maple address. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Remove a status page's custom domain","x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/custom_domain/check":{"post":{"tags":["Status Pages"],"operationId":"checkStatusPageCustomDomain","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A status page's custom domain (`status.acme.com`). Add the DNS records it lists; Maple checks them every minute at first and the page goes live on the domain once its certificate is issued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageCustomDomain"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404. | The @maple/http/errors/StatusPageCustomDomainNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageNotFoundError"},{"$ref":"#/components/schemas/StatusPageCustomDomainNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPageCustomDomainsUnavailableError failure. HTTP 503. | The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageCustomDomainsUnavailableError"},{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Checks the domain's DNS and certificate now instead of waiting for the next scheduled check, and retries a failed certificate. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Check a status page's custom domain now","x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/config":{"get":{"tags":["Status Pages"],"operationId":"getStatusPageConfig","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A whole status page as one document: its settings, visibility, theme and components, without incidents, the break-glass token, the page password or publish state. Applying it replaces the page; omitted optional fields take their defaults.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageConfig"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the page's settings, theme and components as one document, the body `PUT â¦/config` takes, with its `version`. Requires the `status_pages:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a status page config","x-required-permissions":["telemetry:read"]},"put":{"tags":["Status Pages"],"operationId":"applyStatusPageConfig","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true},{"name":"if_version","in":"query","schema":{"type":"string","description":"The `version` the document was read with. When the page's config has changed since, the apply answers 409 `status_page_conflict` and changes nothing."},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A whole status page as one document: its settings, visibility, theme and components, without incidents, the break-glass token, the page password or publish state. Applying it replaces the page; omitted optional fields take their defaults.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageConfig"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"409":{"description":"The @maple/http/errors/StatusPageSlugTakenError failure. HTTP 409. | The @maple/http/errors/StatusPageConflictError failure. HTTP 409.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageSlugTakenError"},{"$ref":"#/components/schemas/StatusPageConflictError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Replaces the page with the document in one write: components listed with an `id` are updated, without one created, and left out deleted; list order is display order. Any invalid part, or a key the document does not define, rejects the whole document. With `if_version`, a config that changed since that version was read answers 409 and nothing is written; status flips and publishes do not change it. Returns the applied config. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Apply a status page config","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageConfig"}}},"required":true},"x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/components":{"get":{"tags":["Status Pages"],"operationId":"listStatusPageComponents","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A page's components in display order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageComponentList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a page's components in display order. Requires the `status_pages:read` scope.","summary":"List status page components"},"post":{"tags":["Status Pages"],"operationId":"createStatusPageComponent","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"One line on a status page. Its status is the worst of its monitor, the manual override, and active incidents naming it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageComponent"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Adds a component after the existing ones; a page holds at most 200. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Add a status page component","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageComponentCreateParams"}}},"required":true},"x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/components/reorder":{"post":{"tags":["Status Pages"],"operationId":"reorderStatusPageComponents","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A page's components in display order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageComponentList"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Sets the display order; the list must name every component once. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Reorder status page components","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageComponentReorderParams"}}},"required":true},"x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_pages/{id}/components/{component_id}":{"patch":{"tags":["Status Pages"],"operationId":"updateStatusPageComponent","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true},{"name":"component_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageComponentId_1"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"One line on a status page. Its status is the worst of its monitor, the manual override, and active incidents naming it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageComponent"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404. | The @maple/http/errors/StatusPageComponentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageNotFoundError"},{"$ref":"#/components/schemas/StatusPageComponentNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates a component; omitted fields are unchanged. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Update a status page component","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageComponentUpdateParams"}}},"required":true},"x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]},"delete":{"tags":["Status Pages"],"operationId":"deleteStatusPageComponent","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":true},{"name":"component_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageComponentId_1"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that a component was removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageComponentDeleteResponse"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404. | The @maple/http/errors/StatusPageComponentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageNotFoundError"},{"$ref":"#/components/schemas/StatusPageComponentNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Removes a component from its page. Requires the `status_pages:write` scope and a caller with at least the engineer role.\n\nDepending on the request, the caller's role may need Edit status pages (`status_pages:edit`), Control who can view status pages (`status_pages:access`) and Manage break-glass tokens (`status_pages:break_glass`).","summary":"Remove a status page component","x-conditional-permissions":["status_pages:edit","status_pages:access","status_pages:break_glass"]}},"/v2/status_page_incidents":{"get":{"tags":["Status Page Incidents"],"operationId":"listStatusPageIncidents","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"page_id","in":"query","schema":{"$ref":"#/components/schemas/_maple_StatusPageId"},"required":false},{"name":"state","in":"query","schema":{"type":"string","enum":["open","closed","all"],"description":"`open` (the default) is unresolved incidents and maintenance not yet completed.","examples":["open"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of status page incidents, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncidentList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns incidents and maintenance across your pages or one page, newest first. Requires the `status_page_incidents:read` scope.","summary":"List status page incidents"},"post":{"tags":["Status Page Incidents"],"operationId":"createStatusPageIncident","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A customer-facing incident or scheduled maintenance, with its public updates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncident"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Opens an incident or schedules maintenance with its first public update. Published unless `published` is `false`. Requires the `status_page_incidents:write` scope.\n\nThe caller's role needs Post status page updates (`status_page_incidents:post`).","summary":"Open a status page incident","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncidentCreateParams"}}},"required":true},"x-required-permissions":["status_page_incidents:post"]}},"/v2/status_page_incidents/{id}":{"get":{"tags":["Status Page Incidents"],"operationId":"getStatusPageIncident","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A customer-facing incident or scheduled maintenance, with its public updates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncident"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageIncidentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncidentNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns an incident with its updates. Requires the `status_page_incidents:read` scope.","summary":"Retrieve a status page incident"},"patch":{"tags":["Status Page Incidents"],"operationId":"updateStatusPageIncident","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A customer-facing incident or scheduled maintenance, with its public updates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncident"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageIncidentNotFoundError failure. HTTP 404. | The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageIncidentNotFoundError"},{"$ref":"#/components/schemas/StatusPageNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Edits the title, impact, components, window or published flag without posting an update. Requires the `status_page_incidents:write` scope.\n\nThe caller's role needs Post status page updates (`status_page_incidents:post`).","summary":"Update a status page incident","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncidentUpdateParams"}}},"required":true},"x-required-permissions":["status_page_incidents:post"]},"delete":{"tags":["Status Page Incidents"],"operationId":"deleteStatusPageIncident","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Confirmation that an incident was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncidentDeleteResponse"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageIncidentNotFoundError failure. HTTP 404. | The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageIncidentNotFoundError"},{"$ref":"#/components/schemas/StatusPageNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Deletes an incident and its updates from the page. Requires the `status_page_incidents:write` scope.\n\nThe caller's role needs Post status page updates (`status_page_incidents:post`).","summary":"Delete a status page incident","x-required-permissions":["status_page_incidents:post"]}},"/v2/status_page_incidents/{id}/updates":{"post":{"tags":["Status Page Incidents"],"operationId":"postStatusPageIncidentUpdate","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_StatusPageIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A customer-facing incident or scheduled maintenance, with its public updates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncident"}}}},"400":{"description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/StatusPageIncidentNotFoundError failure. HTTP 404. | The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPageIncidentNotFoundError"},{"$ref":"#/components/schemas/StatusPageNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StatusPagePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Posts a public update and moves the incident to its status; `resolved` or `completed` closes it. Requires the `status_page_incidents:write` scope.\n\nThe caller's role needs Post status page updates (`status_page_incidents:post`).","summary":"Post a status page update","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPageIncidentPostUpdateParams"}}},"required":true},"x-required-permissions":["status_page_incidents:post"]}},"/v2/instrumentation/recommendations":{"get":{"tags":["Instrumentation Recommendations"],"operationId":"listInstrumentationRecommendations","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of recommendations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/RecommendationIssuePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RecommendationIssuePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Reconciles instrumentation recommendations against your live telemetry and returns the full numbered list. Cursor-paginated. Requires the `instrumentation:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List instrumentation recommendations","x-required-permissions":["telemetry:read"]}},"/v2/instrumentation/recommendations/{id}/dismiss":{"post":{"tags":["Instrumentation Recommendations"],"operationId":"dismissInstrumentationRecommendation","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_RecommendationIssueId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An instrumentation improvement detected from your live telemetry â for example a non-canonical attribute name that should be renamed. Recommendations are reconciled automatically against incoming data; dismiss ones you don't plan to act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recommendation"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/RecommendationIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationIssueNotFoundError"}}}},"409":{"description":"The @maple/http/errors/RecommendationIssueTransitionError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationIssueTransitionError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/RecommendationIssuePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RecommendationIssuePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Marks an instrumentation recommendation as dismissed so it stops appearing as actionable. Requires the `instrumentation:write` scope.\n\nThe caller's role needs Triage recommendations (`recommendations:triage`) and Read telemetry (`telemetry:read`).","summary":"Dismiss an instrumentation recommendation","x-required-permissions":["recommendations:triage","telemetry:read"]}},"/v2/instrumentation/recommendations/{id}/reopen":{"post":{"tags":["Instrumentation Recommendations"],"operationId":"reopenInstrumentationRecommendation","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_RecommendationIssueId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An instrumentation improvement detected from your live telemetry â for example a non-canonical attribute name that should be renamed. Recommendations are reconciled automatically against incoming data; dismiss ones you don't plan to act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recommendation"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/RecommendationIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationIssueNotFoundError"}}}},"409":{"description":"The @maple/http/errors/RecommendationIssueTransitionError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationIssueTransitionError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/RecommendationIssuePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RecommendationIssuePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a dismissed instrumentation recommendation to the `open` state. Requires the `instrumentation:write` scope.\n\nThe caller's role needs Triage recommendations (`recommendations:triage`) and Read telemetry (`telemetry:read`).","summary":"Reopen an instrumentation recommendation","x-required-permissions":["recommendations:triage","telemetry:read"]}},"/v2/instrumentation/audit":{"get":{"tags":["Setup Audit"],"operationId":"getSetupAudit","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A point-in-time audit of the organization's Maple setup: whether alerts can actually deliver, whether every service is sending the signals you expect, whether attribute conventions hold, and whether traces arrive intact. Recomputed on every request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupAudit"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SetupAuditUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SetupAuditUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Audits the organization's Maple setup and returns every check with its outcome. Covers alert routing and delivery health, error-notification wiring, ingest coverage per service, attribute conventions, trace completeness, and integration health. Configuration checks always run; telemetry-backed checks report `skip` when the warehouse is unavailable, so this endpoint returns `503` only if configuration itself cannot be read. Requires the `instrumentation:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve the setup audit","x-required-permissions":["telemetry:read"]}},"/v2/instrumentation/signals":{"get":{"tags":["Telemetry Signals"],"operationId":"getTelemetrySignals","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"What kinds of telemetry the organization is actually sending. Answers 'is this page empty because nothing is wired up, or because nothing happened?' â the question every empty view in Maple has to resolve before it can give useful advice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelemetrySignals"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Reports which kinds of telemetry the organization is sending and when each last arrived, over a trailing window. Deliberately cheap: traces, logs and metrics are read from an hourly usage rollup rather than the raw signal tables. A warehouse outage returns `200` with every signal `unknown` rather than an error, so a caller that renders guidance from this can always render something. Requires the `instrumentation:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve telemetry signal presence","x-required-permissions":["telemetry:read"]}},"/v2/investigations":{"get":{"tags":["Investigations"],"operationId":"listInvestigations","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/_maple_InvestigationStatus"},"required":false},{"name":"issue_id","in":"query","schema":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"required":false},{"name":"incident_kind","in":"query","schema":{"$ref":"#/components/schemas/_maple_AiTriageIncidentKind"},"required":false},{"name":"incident_id","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/_maple_ErrorIncidentId"},{"$ref":"#/components/schemas/_maple_AnomalyIncidentId"},{"$ref":"#/components/schemas/_maple_AlertIncidentId"}],"description":"Only return investigations for this prefixed incident ID."},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of investigations, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/investigations/InvestigationDataCorruptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationDataCorruptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/investigations/InvestigationPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's investigations, newest first, optionally filtered by status, error issue, or incident. Cursor-paginated. Requires the `investigations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List investigations","x-required-permissions":["telemetry:read"]},"post":{"tags":["Investigations"],"operationId":"createInvestigation","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A durable investigation 'war-room' â an autonomous or human-opened diagnostic session over an incident or an ad-hoc question. Carries the structured AI diagnosis once it lands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Investigation"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/investigations/InvestigationDataCorruptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationDataCorruptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/investigations/InvestigationPersistenceError failure. HTTP 503. | The @maple/http/investigations/InvestigationAgentUnavailableError failure. HTTP 503. | The @maple/http/investigations/InvestigationStartFailedError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationPersistenceError"},{"$ref":"#/components/schemas/InvestigationAgentUnavailableError"},{"$ref":"#/components/schemas/InvestigationStartFailedError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Opens an investigation over an incident or an ad-hoc question. Incident-anchored investigations return the existing war-room if one is already open. Requires the `investigations:write` scope.\n\nThe caller's role needs Run investigations (`investigations:run`) and Read telemetry (`telemetry:read`).","summary":"Open an investigation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationCreateParams"}}},"required":true},"x-required-permissions":["investigations:run","telemetry:read"]}},"/v2/investigations/{id}":{"get":{"tags":["Investigations"],"operationId":"getInvestigation","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_InvestigationId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A durable investigation 'war-room' â an autonomous or human-opened diagnostic session over an incident or an ad-hoc question. Carries the structured AI diagnosis once it lands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Investigation"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/investigations/InvestigationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/investigations/InvestigationDataCorruptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationDataCorruptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/investigations/InvestigationPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single investigation by its `inv_â¦` ID, including its diagnosis when one exists. Requires the `investigations:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an investigation","x-required-permissions":["telemetry:read"]}},"/v2/investigations/{id}/restart":{"post":{"tags":["Investigations"],"operationId":"restartInvestigation","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_InvestigationId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A durable investigation 'war-room' â an autonomous or human-opened diagnostic session over an incident or an ad-hoc question. Carries the structured AI diagnosis once it lands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Investigation"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/investigations/InvestigationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationNotFoundError"}}}},"409":{"description":"The @maple/http/investigations/InvestigationTransitionError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationTransitionError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/investigations/InvestigationDataCorruptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationDataCorruptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/investigations/InvestigationPersistenceError failure. HTTP 503. | The @maple/http/investigations/InvestigationAgentUnavailableError failure. HTTP 503. | The @maple/http/investigations/InvestigationStartFailedError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationPersistenceError"},{"$ref":"#/components/schemas/InvestigationAgentUnavailableError"},{"$ref":"#/components/schemas/InvestigationStartFailedError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Starts a replacement autonomous pass while retaining the previous report until a new diagnosis lands. A run still `investigating` cannot be restarted (409). Requires the `investigations:write` scope.\n\nThe caller's role needs Run investigations (`investigations:run`) and Read telemetry (`telemetry:read`).","summary":"Restart an investigation","x-required-permissions":["investigations:run","telemetry:read"]}},"/v2/investigations/{id}/status":{"post":{"tags":["Investigations"],"operationId":"updateInvestigationStatus","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_InvestigationId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A durable investigation 'war-room' â an autonomous or human-opened diagnostic session over an incident or an ad-hoc question. Carries the structured AI diagnosis once it lands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Investigation"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/investigations/InvestigationNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationNotFoundError"}}}},"409":{"description":"The @maple/http/investigations/InvestigationTransitionError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationTransitionError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/investigations/InvestigationDataCorruptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationDataCorruptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/investigations/InvestigationPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvestigationPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Resolves a finished investigation (`diagnosed`, `inconclusive` or `failed` to `resolved`), or reopens a resolved one back to the verdict its run reached. Any other move, or a run still `investigating`, is a 409. Requires the `investigations:write` scope.\n\nThe caller's role needs Run investigations (`investigations:run`) and Read telemetry (`telemetry:read`).","summary":"Update investigation status","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationStatusUpdateParams"}}},"required":true},"x-required-permissions":["investigations:run","telemetry:read"]}},"/v2/anomalies/incidents":{"get":{"tags":["Anomalies"],"operationId":"listAnomalyIncidents","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/_maple_AnomalyIncidentStatus"},"required":false},{"name":"signal_type","in":"query","schema":{"$ref":"#/components/schemas/_maple_AnomalySignalType_1"},"required":false},{"name":"service_name","in":"query","schema":{"type":"string","description":"Filter by service name."},"required":false},{"name":"deployment_env","in":"query","schema":{"type":"string","description":"Filter by deployment environment."},"required":false},{"name":"error_issue_id","in":"query","schema":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"required":false},{"name":"start_time","in":"query","schema":{"type":"string"},"required":false},{"name":"end_time","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of anomaly incidents, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyIncidentList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/anomalies/AnomalyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnomalyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns your organization's anomaly incidents, newest first, with optional filters. Cursor-paginated. Requires the `anomalies:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List anomaly incidents","x-required-permissions":["telemetry:read"]}},"/v2/anomalies/incidents/service_counts":{"get":{"tags":["Anomalies"],"operationId":"listAnomalyServiceCounts","parameters":[{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/_maple_AnomalyIncidentStatus_2"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Every group for the org in one page â the aggregate is not paginated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyServiceCountList"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/anomalies/AnomalyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnomalyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns open anomaly incidents collapsed to one row per (service, environment, signal), with the worst severity and most recent trigger â the whole fleet in one call, without paging the incident list. Requires the `anomalies:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List anomaly counts by service","x-required-permissions":["telemetry:read"]}},"/v2/anomalies/incidents/{id}":{"get":{"tags":["Anomalies"],"operationId":"getAnomalyIncident","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AnomalyIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A detected anomaly on a monitored signal (error rate, latency, throughput, error spike, or log volume) for a service and environment, opened by Maple's baseline detector.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyIncident"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/anomalies/AnomalyIncidentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyIncidentNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/anomalies/AnomalyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnomalyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single anomaly incident by its `anom_â¦` ID. Requires the `anomalies:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve an anomaly incident","x-required-permissions":["telemetry:read"]}},"/v2/anomalies/incidents/{id}/timeseries":{"get":{"tags":["Anomalies"],"operationId":"getAnomalyIncidentTimeseries","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AnomalyIncidentId"},"required":true},{"name":"start_time","in":"query","schema":{"type":"string"},"required":false},{"name":"end_time","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The monitored signal's timeseries around an incident, with the baseline and threshold.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyIncidentTimeseries"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/anomalies/AnomalyIncidentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyIncidentNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/anomalies/AnomalyPersistenceError failure. HTTP 503. | The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnomalyPersistenceError"},{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the monitored signal's timeseries around the incident, with baseline and threshold overlays. Requires the `anomalies:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve incident timeseries","x-required-permissions":["telemetry:read"]}},"/v2/anomalies/incidents/{id}/resolve":{"post":{"tags":["Anomalies"],"operationId":"resolveAnomalyIncident","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AnomalyIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A detected anomaly on a monitored signal (error rate, latency, throughput, error spike, or log volume) for a service and environment, opened by Maple's baseline detector.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyIncident"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/anomalies/AnomalyIncidentNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyIncidentNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/anomalies/AnomalyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnomalyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Manually resolves an open anomaly incident and returns it. Requires the `anomalies:write` scope.\n\nThe caller's role needs Respond to incidents (`incidents:respond`) and Read telemetry (`telemetry:read`).","summary":"Resolve an anomaly incident","x-required-permissions":["incidents:respond","telemetry:read"]}},"/v2/anomalies/incidents/{id}/issue":{"put":{"tags":["Anomalies"],"operationId":"setAnomalyIncidentIssue","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AnomalyIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A detected anomaly on a monitored signal (error rate, latency, throughput, error spike, or log volume) for a service and environment, opened by Maple's baseline detector.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyIncident"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/anomalies/AnomalyIncidentNotFoundError failure. HTTP 404. | The @maple/http/anomalies/AnomalyLinkedIssueNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnomalyIncidentNotFoundError"},{"$ref":"#/components/schemas/AnomalyLinkedIssueNotFoundError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/anomalies/AnomalyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/AnomalyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Links (or unlinks, with `issue_id: null`) an error issue to an anomaly incident. Requires the `anomalies:write` scope.\n\nThe caller's role needs Respond to incidents (`incidents:respond`) and Read telemetry (`telemetry:read`).","summary":"Link an error issue to an incident","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyLinkIssueParams"}}},"required":true},"x-required-permissions":["incidents:respond","telemetry:read"]}},"/v2/anomalies/settings":{"get":{"tags":["Anomalies"],"operationId":"getAnomalySettings","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Org-wide anomaly detector configuration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalySettings"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/anomalies/AnomalyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnomalyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the org-wide anomaly detector settings. Requires the `anomalies:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve anomaly settings","x-required-permissions":["telemetry:read"]},"patch":{"tags":["Anomalies"],"operationId":"updateAnomalySettings","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Org-wide anomaly detector configuration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalySettings"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/anomalies/AnomalyForbiddenError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnomalyForbiddenError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/anomalies/AnomalyPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnomalyPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Updates the org-wide detector settings; omitted fields are unchanged. Org-admin only. Requires the `anomalies:write` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`). Depending on the request, it may also need Configure anomaly detection (`anomalies:configure`).","summary":"Update anomaly settings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalySettingsUpdateParams"}}},"required":true},"x-required-permissions":["telemetry:read"],"x-conditional-permissions":["anomalies:configure"]}},"/v2/organization":{"get":{"tags":["Organization"],"operationId":"getOrganization","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The authenticated organization. Identity is sourced from the auth provider; in self-hosted mode only the `id` is populated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/OrganizationProviderError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationProviderError"}}}},"503":{"description":"The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the organization the credentials belong to. Requires the `organization:read` scope.","summary":"Retrieve the organization"}},"/v2/retention":{"get":{"tags":["Retention"],"operationId":"getRetention","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"How long the organization keeps each signal, and the sources that keep a signal for a period of their own.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionPolicy"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/retention/RetentionPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetentionPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns how long the organization keeps each signal, and every source that sets a period of its own. Requires the `retention:read` scope and a telemetry read permission, all telemetry or namespace-limited.","summary":"Retrieve retention"},"patch":{"tags":["Retention"],"operationId":"updateRetention","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"How long the organization keeps each signal, and the sources that keep a signal for a period of their own.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionPolicy"}}}},"400":{"description":"The @maple/http/retention/RetentionInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetentionInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/retention/RetentionOwnWarehouseError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionOwnWarehouseError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/retention/RetentionPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetentionPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Sets how long the organization keeps each signal. Data keeps the period in force when it arrived. Once an organization has set any period, reads of every signal reach back as far as the longest period any source keeps it, the default included: a shorter period (or going back to a shorter default) hides older data unless another source keeps it longer, and a longer one applies to data received from about a minute after the change, once the ingest gateway reads the new policy. Session replays and product events keep their default for now: setting either is refused with `retention_invalid` (400). A patch that changes nothing writes nothing. Refused with `retention_own_warehouse` (409) for an organization on its own ClickHouse. Requires the `retention:write` scope and the Manage retention permission.\n\nThe caller's role needs Manage retention (`retention:manage`).","summary":"Update retention","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionUpdateParams"}}},"required":true},"x-required-permissions":["retention:manage"]}},"/v2/retention/sources/{id}":{"patch":{"tags":["Retention"],"operationId":"updateSourceRetention","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SourceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"How long the organization keeps each signal, and the sources that keep a signal for a period of their own.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionPolicy"}}}},"400":{"description":"The @maple/http/retention/RetentionInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetentionInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/SourceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceNotFoundError"}}}},"409":{"description":"The @maple/http/retention/RetentionOwnWarehouseError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionOwnWarehouseError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/retention/RetentionPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetentionPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Sets how long one source keeps each signal, shorter or longer than the organization. Data keeps the period in force when it arrived. Once an organization has set any period, reads of every signal reach back as far as the longest period any source keeps it, the default included: a shorter period (or going back to a shorter default) hides older data unless another source keeps it longer, and a longer one applies to data received from about a minute after the change, once the ingest gateway reads the new policy. Session replays and product events keep their default for now: setting either is refused with `retention_invalid` (400). A patch that changes nothing writes nothing. Refused with `retention_own_warehouse` (409) for an organization on its own ClickHouse. Requires the `retention:write` scope and the Manage retention permission.\n\nThe caller's role needs Manage retention (`retention:manage`).","summary":"Update a source's retention","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceRetentionUpdateParams"}}},"required":true},"x-required-permissions":["retention:manage"]}},"/v2/onboarding/checklist":{"get":{"tags":["Onboarding Checklist"],"operationId":"getOnboardingChecklist","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The org's progress through the onboarding reward checklist: activation steps that earn a credit when finished within a window of the org's creation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingChecklist"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/OnboardingChecklistUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnboardingChecklistUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Reports the org's progress through the onboarding reward checklist. Each step is verified from the org's state on every call; nothing here is self-reported. An org past its reward window answers `expired` without evaluating the steps. Requires the `onboarding:read` scope.","summary":"Retrieve the onboarding checklist"}},"/v2/onboarding/checklist/claim":{"post":{"tags":["Onboarding Checklist"],"operationId":"claimOnboardingReward","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The org's progress through the onboarding reward checklist: activation steps that earn a credit when finished within a window of the org's creation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingChecklist"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/OnboardingRewardNotClaimableError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingRewardNotClaimableError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/BillingNotConfiguredError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BillingNotConfiguredError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/BillingUpstreamError failure. HTTP 502.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingUpstreamError"}}}},"503":{"description":"The @maple/http/errors/OnboardingChecklistUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnboardingChecklistUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Re-verifies every step and the window, then applies the credit as a one-off discount on the org's next invoice. Idempotent: a second call after a successful claim returns the claimed checklist without applying the credit again. Answers `409 onboarding_reward_not_claimable` while steps remain, once the window has closed, or while the org has no active plan. Requires an org-admin role and the `onboarding:write` scope.\n\nDepending on the request, the caller's role may need Manage billing (`billing:manage`).","summary":"Claim the onboarding reward","x-conditional-permissions":["billing:manage"]}},"/v2/onboarding/agent_run":{"post":{"tags":["Onboarding Agent Run"],"operationId":"startOnboardingAgentRun","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A new onboarding run and the single-use code that hands it to a coding agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAgentHandoff"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/OnboardingAgentRunRateLimitedError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnboardingAgentRunRateLimitedError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/OnboardingAgentRunUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnboardingAgentRunUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Starts a run for the signed-in person, closing any open one, and returns a single-use handoff code that signs the `maple` CLI in as them within the next hour. Takes a signed-in session: an API key is refused. Requires the `onboarding:write` scope.","summary":"Start an onboarding agent run"},"get":{"tags":["Onboarding Agent Run"],"operationId":"getOnboardingAgentRun","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A coding agent's Maple setup, reported by the agent stage by stage. Self-reported progress, shown on the connect step.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAgentRun"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnboardingAgentRunNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAgentRunNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/OnboardingAgentRunUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnboardingAgentRunUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the caller's latest onboarding run, answering `404 onboarding_agent_run_not_found` before there is one. To poll, use `GET /v2/onboarding/agent_run/latest`, which answers `run: null` instead. Requires the `onboarding:read` scope.","summary":"Retrieve your onboarding agent run"}},"/v2/onboarding/agent_run/latest":{"get":{"tags":["Onboarding Agent Run"],"operationId":"getLatestOnboardingAgentRun","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The caller's latest onboarding run, if any.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAgentRunLookup"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/OnboardingAgentRunUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnboardingAgentRunUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the caller's latest onboarding run in `run`, or `run: null` before they start one. Requires the `onboarding:read` scope.","summary":"Look up your latest onboarding agent run"}},"/v2/onboarding/agent_run/status":{"post":{"tags":["Onboarding Agent Run"],"operationId":"reportOnboardingAgentRun","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A coding agent's Maple setup, reported by the agent stage by stage. Self-reported progress, shown on the connect step.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAgentRun"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/OnboardingAgentRunNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAgentRunNotFoundError"}}}},"409":{"description":"The @maple/http/errors/OnboardingAgentRunClosedError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAgentRunClosedError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/OnboardingAgentRunUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnboardingAgentRunUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Records a stage of the caller's latest open run. Answers `409 onboarding_agent_run_closed` once the run is completed, failed or expired: stop reporting then. Requires the `onboarding:write` scope.","summary":"Report onboarding progress","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAgentReport"}}},"required":true}}},"/v2/support/slack_channel":{"get":{"tags":["Support Channel"],"operationId":"getSupportChannel","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The org's shared Slack channel with the Maple team, reached through Slack Connect. One per org.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportChannel"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SupportChannelUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SupportChannelUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Reports whether the org has a shared Slack channel with the Maple team. Requires the `support:read` scope.","summary":"Retrieve the shared Slack channel"}},"/v2/support/slack_channel/invite":{"post":{"tags":["Support Channel"],"operationId":"inviteToSupportChannel","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"The org's shared Slack channel with the Maple team, reached through Slack Connect. One per org.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportChannel"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"409":{"description":"The @maple/http/errors/SupportChannelBusyError failure. HTTP 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportChannelBusyError"}}}},"422":{"description":"The @maple/http/errors/SupportChannelNoEmailError failure. HTTP 422.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportChannelNoEmailError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/SupportChannelNotConfiguredError failure. HTTP 503. | The @maple/http/errors/SupportChannelUnavailableError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SupportChannelNotConfiguredError"},{"$ref":"#/components/schemas/SupportChannelUnavailableError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Creates the org's shared Slack channel if it does not exist yet, then sends a Slack Connect invite to the calling member's email. Calling it again sends a fresh invite to whoever calls it, so each teammate can join on their own. Answers `503 support_channel_not_configured` on instances without a Slack workspace. Requires a member session or the `support:write` scope.\n\nThe caller's role needs Join the support channel (`support:join`).","summary":"Join the shared Slack channel","x-required-permissions":["support:join"]}},"/v2/mobile_devices":{"get":{"tags":["Mobile Devices"],"operationId":"listMobileDevices","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileDeviceList"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/MobileDevicePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MobileDevicePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the devices the current user has registered in the current organization. Requires the `mobile_devices:read` scope.","summary":"List my devices"}},"/v2/mobile_devices/{token}":{"put":{"tags":["Mobile Devices"],"operationId":"registerMobileDevice","parameters":[{"name":"token","in":"path","schema":{"type":"string","minLength":16,"maxLength":512,"title":"Device token","description":"The platform push token â the hex APNs device token on iOS. Opaque to Maple.","examples":["a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90"]},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A phone registered for push notifications by the current user in the current organization. Alert incidents fan out to every enabled device whose preferences include the event.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileDevice"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/MobileDevicePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MobileDevicePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Upserts the device identified by its push token for the current user and organization, re-enabling it if the platform had marked it dead. Requires the `mobile_devices:write` scope.\n\nThe caller's role needs Connect devices and clients (`devices:connect`) and Read telemetry (`telemetry:read`).","summary":"Register or refresh a device","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileDeviceRegisterParams"}}},"required":true},"x-required-permissions":["devices:connect","telemetry:read"]},"delete":{"tags":["Mobile Devices"],"operationId":"unregisterMobileDevice","parameters":[{"name":"token","in":"path","schema":{"type":"string","minLength":16,"maxLength":512,"title":"Device token","description":"The platform push token â the hex APNs device token on iOS. Opaque to Maple.","examples":["a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90"]},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"MobileDeviceDeleteResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileDeviceDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/MobileDeviceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileDeviceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/MobileDevicePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MobileDevicePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Removes the device from the current organization; the app calls this on sign-out. Requires the `mobile_devices:write` scope.","summary":"Unregister a device"}},"/v2/mobile_devices/{token}/live_activities/{incident_id}":{"put":{"tags":["Mobile Devices"],"operationId":"registerLiveActivity","parameters":[{"name":"token","in":"path","schema":{"type":"string","minLength":16,"maxLength":512,"title":"Device token","description":"The platform push token â the hex APNs device token on iOS. Opaque to Maple.","examples":["a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90"]},"required":true},{"name":"incident_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A Lock Screen Live Activity running on one device for one alert incident. Maple pushes updates to it as the incident renotifies, and ends it when the incident resolves.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveActivity"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/MobileDeviceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileDeviceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/MobileDevicePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MobileDevicePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Records the APNs update token for a Live Activity the device started for this incident, so Maple can update and end it. Requires the `mobile_devices:write` scope.\n\nThe caller's role needs Connect devices and clients (`devices:connect`) and Read telemetry (`telemetry:read`).","summary":"Register a Live Activity update token","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveActivityRegisterParams"}}},"required":true},"x-required-permissions":["devices:connect","telemetry:read"]},"delete":{"tags":["Mobile Devices"],"operationId":"endLiveActivity","parameters":[{"name":"token","in":"path","schema":{"type":"string","minLength":16,"maxLength":512,"title":"Device token","description":"The platform push token â the hex APNs device token on iOS. Opaque to Maple.","examples":["a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90"]},"required":true},{"name":"incident_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_AlertIncidentId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"LiveActivityDeleteResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveActivityDeleteResponse"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/MobileDeviceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileDeviceNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/MobileDevicePersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MobileDevicePersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Called when the activity ended on the device â dismissed by the user or ended by the app â so Maple stops pushing to a dead token. Requires the `mobile_devices:write` scope.","summary":"Forget a Live Activity"}},"/v2/mobile_devices/test_page":{"post":{"tags":["Mobile Devices"],"operationId":"sendMobileTestPage","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"What a test page came to. All counts zero with `configured` true means no phone of the caller's is registered and enabled here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileTestPage"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Sends a test page to the current user's own phones in the current organization, delivered exactly as an escalation step's page is (time sensitive, top priority) and saying it is a test. Use it to see that a page reaches the phone through Focus and notification settings. Requires the `mobile_devices:write` scope.","summary":"Send myself a test page"}},"/v2/mcp_connections":{"get":{"tags":["MCP Connections"],"operationId":"listMcpConnections","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of MCP connections.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpConnectionList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/McpConnectionPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/McpConnectionPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the live MCP OAuth connections, most recently refreshed first. Org admins see every member's connections; other members see their own. Requires the `mcp_connections:read` scope.","summary":"List MCP connections"}},"/v2/mcp_connections/{id}":{"delete":{"tags":["MCP Connections"],"operationId":"revokeMcpConnection","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_McpConnectionId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An MCP client a member approved through OAuth. The client's access token rotates hourly; the connection is the grant behind it, and revoking it signs the client out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpConnection"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/errors/McpConnectionNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpConnectionNotFoundError"}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/McpConnectionPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/McpConnectionPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Ends the connection and every access token it minted, and returns the final object. The client has to be approved again to reconnect. Members may revoke their own connections; org admins may revoke any. Requires the `mcp_connections:write` scope.","summary":"Revoke an MCP connection"}},"/v2/agent_feedback":{"post":{"tags":["Agent Feedback"],"operationId":"createAgentFeedback","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Feedback about Maple sent by an agent: a bug it hit, a capability it missed, docs that misled it. Read by the Maple team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFeedback"}}}},"400":{"description":"The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AgentFeedbackPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentFeedbackPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Sends feedback about Maple from an agent to the Maple team: say what kind it is, which agent is sending it, and why. Needs no scope: any API key of the organization can send feedback.","summary":"Send feedback","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFeedbackCreateParams"}}},"required":true}},"get":{"tags":["Agent Feedback"],"operationId":"listAgentFeedback","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFeedbackList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"503":{"description":"The @maple/http/errors/AgentFeedbackPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentFeedbackPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Feedback agents in this organization have sent, newest first. Needs no scope: any API key of the organization can list it.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List feedback","x-required-permissions":["telemetry:read"]}},"/v2/session_replays/search":{"post":{"tags":["Session Replays"],"operationId":"searchSessionReplays","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of session replays, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplayList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/CursorInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/CursorInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Searches recorded browser sessions within a time window, with optional filters. Cursor-paginated. Requires the `session_replays:read` scope. (For reverse correlation from a trace, use `POST /v2/session_replays/for_trace`.)\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Search session replays","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaySearchParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/session_replays/{id}":{"get":{"tags":["Session Replays"],"operationId":"getSessionReplay","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SessionId"},"required":true},{"name":"window_start","in":"query","schema":{"type":"string"},"required":false},{"name":"window_end","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A recorded browser session with full detail, returned by retrieve.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplay"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/v2/SessionReplayNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplayNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a single session replay by its `srep_â¦` ID with full detail. Requires the `session_replays:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a session replay","x-required-permissions":["telemetry:read"]}},"/v2/session_replays/{id}/manifest":{"get":{"tags":["Session Replays"],"operationId":"getSessionReplayManifest","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SessionId"},"required":true},{"name":"window_start","in":"query","schema":{"type":"string"},"required":false},{"name":"window_end","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"The session's chunk timeline without payloads â fetch this first, then request payload ranges against it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplayManifest"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/v2/SessionReplayNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplayNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns every chunk's position and size without payloads â the session's timeline in one cheap read. Fetch this before `/events`: a session's payload can run to hundreds of megabytes, so it must be pulled a range at a time, and the manifest is what tells you which ranges exist and where the seekable checkpoints are. Requires the `session_replays:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a session replay manifest","x-required-permissions":["telemetry:read"]}},"/v2/session_replays/{id}/events":{"get":{"tags":["Session Replays"],"operationId":"getSessionReplayEvents","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SessionId"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"window_start","in":"query","schema":{"type":"string"},"required":false},{"name":"window_end","in":"query","schema":{"type":"string"},"required":false},{"name":"from_chunk_seq","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false},{"name":"to_chunk_seq","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of rrweb event chunks, in order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplayChunkList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/v2/SessionReplayNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplayNotFoundError"}}}},"413":{"description":"The @maple/http/v2/SessionReplayRangeTooLargeError failure. HTTP 413.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplayRangeTooLargeError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the session's rrweb event chunks (player payload) in order. Scope the read with `from_chunk_seq`/`to_chunk_seq` from the manifest; the response is capped, and a range whose payload exceeds the cap is refused with `range_too_large` rather than truncated silently. Cursor-paginated within the range. Requires the `session_replays:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List session replay events","x-required-permissions":["telemetry:read"]}},"/v2/session_replays/{id}/transcript":{"get":{"tags":["Session Replays"],"operationId":"getSessionReplayTranscript","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SessionId"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"window_start","in":"query","schema":{"type":"string"},"required":false},{"name":"window_end","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of distilled transcript events, in order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionTranscriptList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/v2/SessionReplayNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplayNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns the session's distilled transcript (navigation, clicks, network, console, errors) in order. Cursor-paginated. Requires the `session_replays:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List session transcript events","x-required-permissions":["telemetry:read"]}},"/v2/session_replays/for_trace":{"post":{"tags":["Session Replays"],"operationId":"listSessionReplaysForTrace","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"A cursor-paginated page of session references correlated to a trace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplayRefList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns lightweight references to the sessions that contain a given trace. Cursor-paginated. Requires the `session_replays:read` scope.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Find sessions for a trace","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReplaysForTraceParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/users":{"get":{"tags":["Users"],"operationId":"listUsers","parameters":[{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"start_time","in":"query","schema":{"type":"string"},"required":true},{"name":"end_time","in":"query","schema":{"type":"string"},"required":true},{"name":"namespace","in":"query","schema":{"type":"string","description":"Only these service namespaces, comma-separated (`storefront,billing`). Omit for every namespace."},"required":false},{"name":"q","in":"query","schema":{"type":"string","minLength":1,"maxLength":200,"description":"Case-insensitive substring of the user's id, name or email."},"required":false},{"name":"has_errors","in":"query","schema":{"type":"string","enum":["true"],"description":"Only users with errors in the window."},"required":false},{"name":"group","in":"query","schema":{"type":"string","description":"Only users in these group ids, comma-separated."},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A page of end users, most recently seen first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/CursorInvalidError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/CursorInvalidError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Lists the end users seen in a window (browser sessions, product events, MCP sessions, spans and logs that carried a user id), most recently seen first. Cursor-paginated. Requires `users:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List users","x-required-permissions":["telemetry:read"]}},"/v2/users/{user_id}":{"get":{"tags":["Users"],"operationId":"getUser","parameters":[{"name":"user_id","in":"path","schema":{"type":"string","minLength":1,"maxLength":512,"title":"End user ID","description":"The id the app identified the user with (`identify()` or the `user.id` attribute).","examples":["user_2abc"]},"required":true},{"name":"start_time","in":"query","schema":{"type":"string"},"required":true},{"name":"end_time","in":"query","schema":{"type":"string"},"required":true},{"name":"namespace","in":"query","schema":{"type":"string","description":"Only these service namespaces, comma-separated (`storefront,billing`). Omit for every namespace."},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"One end user's identity and totals over the requested window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfile"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/v2/UserNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns one end user's identity, devices, services and request, log and issue totals over a window. A user with no signal in the window is `user_not_found`. Requires `users:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a user","x-required-permissions":["telemetry:read"]}},"/v2/users/{user_id}/activity":{"get":{"tags":["Users"],"operationId":"getUserActivity","parameters":[{"name":"user_id","in":"path","schema":{"type":"string","minLength":1,"maxLength":512,"title":"End user ID","description":"The id the app identified the user with (`identify()` or the `user.id` attribute).","examples":["user_2abc"]},"required":true},{"name":"start_time","in":"query","schema":{"type":"string"},"required":true},{"name":"end_time","in":"query","schema":{"type":"string"},"required":true},{"name":"namespace","in":"query","schema":{"type":"string","description":"Only these service namespaces, comma-separated (`storefront,billing`). Omit for every namespace."},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"What one end user did in the window, as lists and one merged timeline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserActivity"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns one end user's browser sessions, product events and MCP sessions, plus a timeline that merges them with the issues they hit, failed or slow requests and warning logs. Each list is capped. Requires `users:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a user's activity","x-required-permissions":["telemetry:read"]}},"/v2/users/{user_id}/issues":{"get":{"tags":["Users"],"operationId":"listUserIssues","parameters":[{"name":"user_id","in":"path","schema":{"type":"string","minLength":1,"maxLength":512,"title":"End user ID","description":"The id the app identified the user with (`identify()` or the `user.id` attribute).","examples":["user_2abc"]},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"start_time","in":"query","schema":{"type":"string"},"required":true},{"name":"end_time","in":"query","schema":{"type":"string"},"required":true},{"name":"namespace","in":"query","schema":{"type":"string","description":"Only these service namespaces, comma-separated (`storefront,billing`). Omit for every namespace."},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A page of the issues one user hit, most hits first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserIssueList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ErrorPersistenceError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ErrorPersistenceError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Lists the error issues one end user hit in a window, most hits first (at most 100). Cursor-paginated. Requires `users:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List a user's issues","x-required-permissions":["telemetry:read"]}},"/v2/traces/search":{"post":{"tags":["Traces"],"operationId":"searchTraces","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceList"}}}},"400":{"description":"The @maple/http/v2/CursorInvalidError failure. HTTP 400. | The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CursorInvalidError"},{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Searches root traces in an explicit time window. Requires `traces:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Search traces","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceSearchParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/traces/timeseries":{"post":{"tags":["Traces"],"operationId":"queryTraceTimeseries","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"TraceTimeseriesResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceTimeseriesResult"}}}},"400":{"description":"The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/v2/TelemetryBucketCountTooLargeError failure. HTTP 400. | The @maple/http/v2/TraceQueryInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/errors/QueryEngineValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/TelemetryBucketCountTooLargeError"},{"$ref":"#/components/schemas/TraceQueryInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/QueryEngineValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/errors/QueryEngineResultMismatchError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/QueryEngineResultMismatchError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/errors/QueryEngineTimeoutError failure. HTTP 504. | The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QueryEngineTimeoutError"},{"$ref":"#/components/schemas/WorkerUnavailableError"}]}}}}},"description":"Aggregates traces into chronological series. Requires `traces:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Query trace timeseries","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceTimeseriesParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/traces/breakdown":{"post":{"tags":["Traces"],"operationId":"queryTraceBreakdown","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"TraceBreakdownResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceBreakdownResult"}}}},"400":{"description":"The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/v2/TelemetryBreakdownFilterRequiredError failure. HTTP 400. | The @maple/http/v2/TraceQueryInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/errors/QueryEngineValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/TelemetryBreakdownFilterRequiredError"},{"$ref":"#/components/schemas/TraceQueryInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/QueryEngineValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/errors/QueryEngineResultMismatchError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/QueryEngineResultMismatchError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/errors/QueryEngineTimeoutError failure. HTTP 504. | The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QueryEngineTimeoutError"},{"$ref":"#/components/schemas/WorkerUnavailableError"}]}}}}},"description":"Aggregates traces by one dimension. Requires `traces:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Query trace breakdown","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceBreakdownParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/traces/{trace_id}":{"get":{"tags":["Traces"],"operationId":"getTrace","parameters":[{"name":"trace_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_TraceId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"A trace and its spans.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trace"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/v2/TraceNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TraceNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/errors/QueryEngineTimeoutError failure. HTTP 504. | The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QueryEngineTimeoutError"},{"$ref":"#/components/schemas/WorkerUnavailableError"}]}}}}},"description":"Returns a trace and its flat parent-linked span collection. Requires `traces:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a trace","x-required-permissions":["telemetry:read"]}},"/v2/traces/{trace_id}/spans/{span_id}":{"get":{"tags":["Traces"],"operationId":"getSpan","parameters":[{"name":"trace_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_TraceId"},"required":true},{"name":"span_id","in":"path","schema":{"$ref":"#/components/schemas/_maple_SpanId"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An OpenTelemetry span.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Span"}}}},"400":{"description":"The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/v2/SpanNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpanNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns one span with complete attribute maps. Requires `traces:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a span","x-required-permissions":["telemetry:read"]}},"/v2/logs/search":{"post":{"tags":["Logs"],"operationId":"searchLogs","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogList"}}}},"400":{"description":"The @maple/http/v2/CursorInvalidError failure. HTTP 400. | The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CursorInvalidError"},{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Searches logs in an explicit time window. Requires `logs:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Search logs","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogSearchParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/logs/timeseries":{"post":{"tags":["Logs"],"operationId":"queryLogTimeseries","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"LogTimeseriesResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogTimeseriesResult"}}}},"400":{"description":"The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/v2/TelemetryBucketCountTooLargeError failure. HTTP 400. | The @maple/http/v2/LogQueryInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/errors/QueryEngineValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/TelemetryBucketCountTooLargeError"},{"$ref":"#/components/schemas/LogQueryInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/QueryEngineValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/errors/QueryEngineResultMismatchError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/QueryEngineResultMismatchError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/errors/QueryEngineTimeoutError failure. HTTP 504. | The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QueryEngineTimeoutError"},{"$ref":"#/components/schemas/WorkerUnavailableError"}]}}}}},"description":"Counts logs in chronological buckets. Requires `logs:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Query log timeseries","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogTimeseriesParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/logs/breakdown":{"post":{"tags":["Logs"],"operationId":"queryLogBreakdown","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"LogBreakdownResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogBreakdownResult"}}}},"400":{"description":"The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/v2/TelemetryBreakdownFilterRequiredError failure. HTTP 400. | The @maple/http/v2/LogQueryInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/errors/QueryEngineValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/TelemetryBreakdownFilterRequiredError"},{"$ref":"#/components/schemas/LogQueryInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/QueryEngineValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/errors/QueryEngineResultMismatchError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/QueryEngineResultMismatchError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/errors/QueryEngineTimeoutError failure. HTTP 504. | The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QueryEngineTimeoutError"},{"$ref":"#/components/schemas/WorkerUnavailableError"}]}}}}},"description":"Counts logs by service or severity. Requires `logs:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Query log breakdown","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogBreakdownParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/logs/{id}":{"get":{"tags":["Logs"],"operationId":"getLog","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/LogIdEncoded"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"An OpenTelemetry log record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Log"}}}},"400":{"description":"The @maple/http/v2/LogIdInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LogIdInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"404":{"description":"The @maple/http/v2/LogNotFoundError failure. HTTP 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogNotFoundError"}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Returns a log by its opaque `log_â¦` ID. Requires `logs:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Retrieve a log","x-required-permissions":["telemetry:read"]}},"/v2/metrics":{"get":{"tags":["Metrics"],"operationId":"listMetrics","parameters":[{"name":"start_time","in":"query","schema":{"type":"string"},"required":true},{"name":"end_time","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","title":"Cursor","description":"Opaque pagination cursor. Pass the `next_cursor` from a previous response to fetch the following page. Omit for the first page.","examples":["off_1k"]},"required":false},{"name":"service_name","in":"query","schema":{"$ref":"#/components/schemas/_maple_ServiceName"},"required":false},{"name":"metric_type","in":"query","schema":{"type":"string"},"required":false},{"name":"search","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Cursor-paginated list envelope wrapping a page of objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricList"}}}},"400":{"description":"The @maple/http/v2/ParameterInvalidError failure. HTTP 400. | The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParameterInvalidError"},{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUnavailableError"}}}}},"description":"Lists metric catalog entries in an explicit time window. Requires `metrics:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"List metrics","x-required-permissions":["telemetry:read"]}},"/v2/metrics/timeseries":{"post":{"tags":["Metrics"],"operationId":"queryMetricsTimeseries","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"MetricTimeseriesResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricTimeseriesResult"}}}},"400":{"description":"The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/v2/TelemetryBucketCountTooLargeError failure. HTTP 400. | The @maple/http/v2/MetricQueryInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/errors/QueryEngineValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/TelemetryBucketCountTooLargeError"},{"$ref":"#/components/schemas/MetricQueryInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/QueryEngineValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/errors/QueryEngineResultMismatchError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/QueryEngineResultMismatchError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/errors/QueryEngineTimeoutError failure. HTTP 504. | The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QueryEngineTimeoutError"},{"$ref":"#/components/schemas/WorkerUnavailableError"}]}}}}},"description":"Executes one typed metric timeseries query. Requires `metrics:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Query metric timeseries","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsTimeseriesParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/metrics/breakdown":{"post":{"tags":["Metrics"],"operationId":"queryMetricBreakdown","parameters":[],"security":[{"bearer":[]}],"responses":{"200":{"description":"MetricBreakdownResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricBreakdownResult"}}}},"400":{"description":"The @maple/http/v2/TimeRangeInvalidError failure. HTTP 400. | The @maple/http/v2/TelemetryRangeTooLargeError failure. HTTP 400. | The @maple/http/v2/TelemetryBreakdownFilterRequiredError failure. HTTP 400. | The @maple/http/v2/MetricQueryInvalidError failure. HTTP 400. | The @maple/http/errors/WarehouseInvalidSqlError failure. HTTP 400. | The @maple/http/errors/QueryEngineValidationError failure. HTTP 400. | The @maple/http/v2/InvalidRequestError failure. HTTP 400.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeRangeInvalidError"},{"$ref":"#/components/schemas/TelemetryRangeTooLargeError"},{"$ref":"#/components/schemas/TelemetryBreakdownFilterRequiredError"},{"$ref":"#/components/schemas/MetricQueryInvalidError"},{"$ref":"#/components/schemas/WarehouseInvalidSqlError"},{"$ref":"#/components/schemas/QueryEngineValidationError"},{"$ref":"#/components/schemas/InvalidRequestError"}]}}}},"401":{"description":"The @maple/http/v2/InvalidCredentialsError failure. HTTP 401. | The @maple/http/v2/InvalidDpopProofError failure. HTTP 401. | The @maple/http/errors/UnauthorizedError failure. HTTP 401.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/InvalidDpopProofError"},{"$ref":"#/components/schemas/UnauthorizedError"}]}}}},"403":{"description":"The @maple/http/errors/WarehouseDataScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientScopeError failure. HTTP 403. | The @maple/http/v2/InsufficientPermissionsError failure. HTTP 403. | The @maple/http/v2/OrganizationAccessDeniedError failure. HTTP 403. | The @maple/http/v2/NoActiveOrganizationError failure. HTTP 403. | The @maple/http/errors/OrganizationWrongRegionError failure. HTTP 403.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseDataScopeError"},{"$ref":"#/components/schemas/InsufficientScopeError"},{"$ref":"#/components/schemas/InsufficientPermissionsError"},{"$ref":"#/components/schemas/OrganizationAccessDeniedError"},{"$ref":"#/components/schemas/NoActiveOrganizationError"},{"$ref":"#/components/schemas/OrganizationWrongRegionError"}]}}}},"429":{"description":"The @maple/http/errors/WarehouseQuotaExceededError failure. HTTP 429. | The @maple/http/v2/RateLimitError failure. HTTP 429.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQuotaExceededError"},{"$ref":"#/components/schemas/RateLimitError"}]}}},"headers":{"Retry-After":{"description":"Seconds to wait or an HTTP-date indicating when the request may be retried.","schema":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"example":60}}},"500":{"description":"The @maple/http/errors/WarehouseMalformedQueryError failure. HTTP 500. | The @maple/http/errors/WarehouseScopeError failure. HTTP 500. | The @maple/http/errors/OrgClickHouseSettingsEncryptionError failure. HTTP 500. | The @maple/http/errors/QueryEngineResultMismatchError failure. HTTP 500. | The @maple/http/v2/ResponseSchemaError failure. HTTP 500. | The @maple/http/v2/UnexpectedError failure. HTTP 500.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseMalformedQueryError"},{"$ref":"#/components/schemas/WarehouseScopeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsEncryptionError"},{"$ref":"#/components/schemas/QueryEngineResultMismatchError"},{"$ref":"#/components/schemas/ResponseSchemaError"},{"$ref":"#/components/schemas/UnexpectedError"}]}}}},"502":{"description":"The @maple/http/errors/WarehouseQueryError failure. HTTP 502. | The @maple/http/errors/WarehouseAuthError failure. HTTP 502. | The @maple/http/errors/WarehouseConfigError failure. HTTP 502. | The @maple/http/errors/WarehouseClientError failure. HTTP 502. | The @maple/http/errors/WarehouseSchemaDriftError failure. HTTP 502. | The @maple/http/errors/WarehouseResultDecodeError failure. HTTP 502. | The @maple/http/errors/OrgClickHouseSettingsStoredConfigInvalidError failure. HTTP 502.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseQueryError"},{"$ref":"#/components/schemas/WarehouseAuthError"},{"$ref":"#/components/schemas/WarehouseConfigError"},{"$ref":"#/components/schemas/WarehouseClientError"},{"$ref":"#/components/schemas/WarehouseSchemaDriftError"},{"$ref":"#/components/schemas/WarehouseResultDecodeError"},{"$ref":"#/components/schemas/OrgClickHouseSettingsStoredConfigInvalidError"}]}}}},"503":{"description":"The @maple/http/errors/WarehouseUpstreamError failure. HTTP 503. | The @maple/http/errors/ApiKeyLookupPersistenceError failure. HTTP 503. | The @maple/http/errors/AuthorizationUnavailableError failure. HTTP 503.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WarehouseUpstreamError"},{"$ref":"#/components/schemas/ApiKeyLookupPersistenceError"},{"$ref":"#/components/schemas/AuthorizationUnavailableError"}]}}}},"504":{"description":"The @maple/http/errors/QueryEngineTimeoutError failure. HTTP 504. | The @maple/http/v2/WorkerUnavailableError failure. HTTP 504.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QueryEngineTimeoutError"},{"$ref":"#/components/schemas/WorkerUnavailableError"}]}}}}},"description":"Aggregates one metric by a single dimension. Requires `metrics:read`.\n\nThe caller's role needs Read telemetry (`telemetry:read`).","summary":"Query metric breakdown","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsBreakdownParams"}}},"required":true},"x-required-permissions":["telemetry:read"]}},"/v2/metrics/prometheus/api/v1/query":{"get":{"tags":["Prometheus"],"operationId":"prometheusQuery","parameters":[{"name":"query","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"PromQL expression."},"required":false},{"name":"time","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Evaluation time: RFC3339 or Unix seconds. Defaults to now."},"required":false},{"name":"start","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Range start: RFC3339 or Unix seconds."},"required":false},{"name":"end","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Range end: RFC3339 or Unix seconds."},"required":false},{"name":"step","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Resolution: a duration like `30s` or float seconds."},"required":false},{"name":"timeout","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Evaluation timeout for `query` and `query_range`: a duration like `30s`, applied to the whole evaluation. Each metric store read also stops at 30s."},"required":false},{"name":"limit","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Maximum number of returned items."},"required":false},{"name":"metric","in":"query","schema":{"anyOf":[{"type":"string"}],"description":"Metric name to return metadata for."},"required":false},{"name":"match[]","in":"query","schema":{"anyOf":[{"type":"array","items":{"type":"string"}}],"description":"Repeated series selector, e.g. `up{job=\"api\"}`."},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Values are `[ maple auth login`. Returned only here; treat it like a password."},"handoff_expires_at":{"type":"string"},"run":{"$ref":"#/components/schemas/OnboardingAgentRun"}},"required":["object","handoff_code","handoff_expires_at","run"],"additionalProperties":false,"title":"Onboarding agent handoff","description":"A new onboarding run and the single-use code that hands it to a coding agent."},"BillingUpstreamError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/BillingUpstreamError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["billing_upstream_unavailable"]},"title":{"type":"string","enum":["Billing is temporarily unavailable"]},"message":{"type":"string","enum":["Maple could not reach billing. Try again in a moment."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Billing is temporarily unavailable","description":"The @maple/http/errors/BillingUpstreamError failure. HTTP 502."},"BillingNotConfiguredError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/BillingNotConfiguredError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["billing_not_configured"]},"title":{"type":"string","enum":["Billing is unavailable"]},"message":{"type":"string","enum":["Billing is unavailable right now. This is on us â please contact support if it persists."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["contact_support"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Billing is unavailable","description":"The @maple/http/errors/BillingNotConfiguredError failure. HTTP 500."},"OnboardingChecklistUnavailableError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/OnboardingChecklistUnavailableError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["onboarding_checklist_unavailable"]},"title":{"type":"string","enum":["Onboarding checklist is temporarily unavailable"]},"message":{"type":"string","enum":["The onboarding checklist is temporarily unavailable. Retry in a few seconds."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Onboarding checklist is temporarily unavailable","description":"The @maple/http/errors/OnboardingChecklistUnavailableError failure. HTTP 503."},"OnboardingRewardNotClaimableError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/OnboardingRewardNotClaimableError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["conflict_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["onboarding_reward_not_claimable"]},"title":{"type":"string","enum":["Reward cannot be claimed"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["fix_request"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Reward cannot be claimed","description":"The @maple/http/errors/OnboardingRewardNotClaimableError failure. HTTP 409."},"OnboardingChecklist":{"type":"object","properties":{"object":{"type":"string","enum":["onboarding_checklist"],"description":"The object type â always `\"onboarding_checklist\"`.","examples":["onboarding_checklist"]},"status":{"type":"string","enum":["in_progress","claimable","claimed","expired"],"description":"`in_progress` while steps remain and the window is open, `claimable` once every step is done inside the window, `claimed` after the credit was redeemed, `expired` when the window closed first (or the org's age is unknown).","examples":["in_progress"]},"reward_amount_usd":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"deadline_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the window closes â org creation plus the reward window. `null` only when the org's creation time is unknown, in which case `status` is `expired`."},"claimed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the credit was redeemed, or `null`."},"completed_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"total_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"steps":{"type":"array","items":{"$ref":"#/components/schemas/OnboardingChecklistStep"},"description":"Every step, in display order. `join_slack_channel` is left out on instances that cannot create shared Slack channels; every other step is always present."}},"required":["object","status","reward_amount_usd","deadline_at","claimed_at","completed_count","total_count","steps"],"additionalProperties":false,"title":"Onboarding checklist","description":"The org's progress through the onboarding reward checklist: activation steps that earn a credit when finished within a window of the org's creation.","examples":[{"object":"onboarding_checklist","status":"in_progress","reward_amount_usd":30,"deadline_at":"2026-07-28T12:00:00.000Z","claimed_at":null,"completed_count":3,"total_count":5,"steps":[{"object":"onboarding_checklist_step","id":"add_card","title":"Add a card","completed":true,"href":"/settings/billing","optional":false},{"object":"onboarding_checklist_step","id":"send_telemetry","title":"Send your first telemetry","completed":true,"href":"/settings/ingestion","optional":false},{"object":"onboarding_checklist_step","id":"connect_github","title":"Connect GitHub","completed":true,"href":"/integrations?integration=github","optional":false},{"object":"onboarding_checklist_step","id":"create_alert_rule","title":"Create an alert with a destination","completed":false,"href":"/alerts","optional":false},{"object":"onboarding_checklist_step","id":"connect_mcp_agent","title":"Connect an MCP agent","completed":false,"href":"/settings/mcp","optional":false},{"object":"onboarding_checklist_step","id":"invite_teammate","title":"Invite a teammate","completed":false,"href":"/settings/members","optional":true}]}]},"OnboardingChecklistStep":{"type":"object","properties":{"object":{"type":"string","enum":["onboarding_checklist_step"],"description":"The object type â always `\"onboarding_checklist_step\"`.","examples":["onboarding_checklist_step"]},"id":{"type":"string","enum":["add_card","send_telemetry","connect_github","create_alert_rule","connect_mcp_agent","invite_teammate","join_slack_channel"],"description":"Stable step identifier.","examples":["connect_github"]},"title":{"type":"string","description":"What the step asks the user to do.","examples":["Connect GitHub"]},"completed":{"type":"boolean","description":"Whether Maple can see the step done. Verified from the org's actual state (telemetry received, an active installation, an existing rule) â never self-reported.","examples":[true]},"href":{"type":"string","description":"App-relative path of the page where the step is done.","examples":["/integrations?integration=github"]},"optional":{"type":"boolean","description":"Optional steps are shown but never required for the reward, and are excluded from `completed_count` and `total_count`.","examples":[false]}},"required":["object","id","title","completed","href","optional"],"additionalProperties":false,"title":"Onboarding checklist step","description":"One activation step of the onboarding reward checklist."},"RetentionPersistenceError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/retention/RetentionPersistenceError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["retention_unavailable"]},"title":{"type":"string","enum":["Retention settings are temporarily unavailable"]},"message":{"type":"string","enum":["Retention settings could not be read or changed right now. Try again in a few seconds."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Retention settings are temporarily unavailable","description":"The @maple/http/retention/RetentionPersistenceError failure. HTTP 503."},"SourceNotFoundError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/SourceNotFoundError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["not_found_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["source_not_found"]},"title":{"type":"string","enum":["Source not found"]},"message":{"type":"string","enum":["No such source."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["none"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Source not found","description":"The @maple/http/errors/SourceNotFoundError failure. HTTP 404."},"RetentionOwnWarehouseError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/retention/RetentionOwnWarehouseError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["conflict_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["retention_own_warehouse"]},"title":{"type":"string","enum":["Retention is set in your own ClickHouse"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["none"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Retention is set in your own ClickHouse","description":"The @maple/http/retention/RetentionOwnWarehouseError failure. HTTP 409."},"RetentionInvalidError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/retention/RetentionInvalidError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["invalid_request_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["retention_invalid"]},"title":{"type":"string","enum":["Invalid retention period"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["fix_request"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Invalid retention period","description":"The @maple/http/retention/RetentionInvalidError failure. HTTP 400."},"RetentionPolicy":{"type":"object","properties":{"object":{"type":"string","enum":["retention_policy"]},"storage":{"type":"string","enum":["managed","own_warehouse"],"description":"Where the organization's telemetry is stored. `own_warehouse` keeps the retention set in that ClickHouse, and these periods do not apply."},"periods":{"type":"array","items":{"$ref":"#/components/schemas/_maple_RetentionDays"},"description":"The periods a signal can be kept for, in days."},"defaults":{"$ref":"#/components/schemas/RetentionDays"},"organization":{"type":"object","properties":{"set":{"$ref":"#/components/schemas/OrganizationRetentionSet"},"days":{"$ref":"#/components/schemas/RetentionDays_1"}},"required":["set","days"],"additionalProperties":false,"description":"What the organization set, and what a source that sets nothing keeps."},"read_horizon_days":{"$ref":"#/components/schemas/RetentionDays_2"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/SourceRetention"}}},"required":["object","storage","periods","defaults","organization","read_horizon_days","sources"],"additionalProperties":false,"title":"Retention policy","description":"How long the organization keeps each signal, and the sources that keep a signal for a period of their own.","examples":[{"object":"retention_policy","storage":"managed","periods":[3,7,14,30,60,90,180,365,730],"defaults":{"traces":30,"logs":30,"metrics":90,"sessions":30,"events":365,"profiles":14},"organization":{"set":{"traces":null,"logs":90,"metrics":null,"sessions":null,"events":null,"profiles":null},"days":{"traces":30,"logs":90,"metrics":90,"sessions":30,"events":365,"profiles":14}},"read_horizon_days":{"traces":30,"logs":180,"metrics":90,"sessions":30,"events":365,"profiles":14},"sources":[{"source_id":"src_4CzLmR8kTq","set":{"traces":null,"logs":180,"metrics":null,"sessions":null,"events":null,"profiles":null},"days":{"traces":30,"logs":180,"metrics":90,"sessions":30,"events":365,"profiles":14}}]}]},"SourceRetention":{"type":"object","properties":{"source_id":{"$ref":"#/components/schemas/_maple_SourceId"},"set":{"$ref":"#/components/schemas/SourceRetentionSet"},"days":{"$ref":"#/components/schemas/RetentionDays_1"}},"required":["source_id","set","days"],"additionalProperties":false,"title":"Source retention","description":"A source that keeps at least one signal for a period of its own."},"RetentionDays_1":{"type":"object","properties":{"traces":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days spans are kept.","examples":[30]},"logs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days log records are kept.","examples":[30]},"metrics":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days metric data points are kept.","examples":[30]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days session replays are kept.","examples":[30]},"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days product events are kept.","examples":[30]},"profiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days profiles are kept.","examples":[30]}},"required":["traces","logs","metrics","sessions","events","profiles"],"additionalProperties":false,"title":"Retention days"},"SourceRetentionSet":{"type":"object","properties":{"traces":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the organization's period.","examples":[90,null]},"logs":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the organization's period.","examples":[90,null]},"metrics":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the organization's period.","examples":[90,null]},"sessions":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the organization's period.","examples":[90,null]},"events":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the organization's period.","examples":[90,null]},"profiles":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the organization's period.","examples":[90,null]}},"required":["traces","logs","metrics","sessions","events","profiles"],"additionalProperties":false,"title":"Source retention set"},"_maple_RetentionDays":{"type":"number","enum":[3,7,14,30,60,90,180,365,730],"title":"Retention Days","description":"Days to keep a signal: one of 3, 7, 14, 30, 60, 90, 180, 365 or 730."},"_maple_SourceId":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `src_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["src_YofPTrK9782DWwcnXhpcCw"]},"RetentionDays_2":{"type":"object","properties":{"traces":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days spans are kept.","examples":[30]},"logs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days log records are kept.","examples":[30]},"metrics":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days metric data points are kept.","examples":[30]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days session replays are kept.","examples":[30]},"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days product events are kept.","examples":[30]},"profiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days profiles are kept.","examples":[30]}},"required":["traces","logs","metrics","sessions","events","profiles"],"additionalProperties":false,"title":"Retention days","description":"How far back reads reach per signal: the longest any source keeps it."},"OrganizationRetentionSet":{"type":"object","properties":{"traces":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the default.","examples":[90,null]},"logs":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the default.","examples":[90,null]},"metrics":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the default.","examples":[90,null]},"sessions":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the default.","examples":[90,null]},"events":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the default.","examples":[90,null]},"profiles":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"The period set here, or `null` to keep the default.","examples":[90,null]}},"required":["traces","logs","metrics","sessions","events","profiles"],"additionalProperties":false,"title":"Organization retention set"},"RetentionDays":{"type":"object","properties":{"traces":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days spans are kept.","examples":[30]},"logs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days log records are kept.","examples":[30]},"metrics":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days metric data points are kept.","examples":[30]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days session replays are kept.","examples":[30]},"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days product events are kept.","examples":[30]},"profiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days profiles are kept.","examples":[30]}},"required":["traces","logs","metrics","sessions","events","profiles"],"additionalProperties":false,"title":"Retention days","description":"What a signal keeps when nothing is set."},"SourceRetentionUpdateParams":{"type":"object","properties":{"traces":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the organization's period. Omitted is unchanged."},"logs":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the organization's period. Omitted is unchanged."},"metrics":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the organization's period. Omitted is unchanged."},"sessions":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the organization's period. Omitted is unchanged."},"events":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the organization's period. Omitted is unchanged."},"profiles":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the organization's period. Omitted is unchanged."}},"additionalProperties":false,"title":"Update a source's retention"},"RetentionUpdateParams":{"type":"object","properties":{"traces":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the default. Omitted is unchanged."},"logs":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the default. Omitted is unchanged."},"metrics":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the default. Omitted is unchanged."},"sessions":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the default. Omitted is unchanged."},"events":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the default. Omitted is unchanged."},"profiles":{"anyOf":[{"$ref":"#/components/schemas/_maple_RetentionDays"},{"type":"null"}],"description":"Days to keep, or `null` to keep the default. Omitted is unchanged."}},"additionalProperties":false,"title":"Update retention"},"OrganizationProviderError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/OrganizationProviderError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["organization_provider_unavailable"]},"title":{"type":"string","enum":["Organization provider unavailable"]},"message":{"type":"string","enum":["The organization provider is temporarily unavailable."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Organization provider unavailable","description":"The @maple/http/errors/OrganizationProviderError failure. HTTP 502."},"Organization":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_OrgId_1"},"object":{"type":"string","enum":["organization"],"description":"The object type â always `\"organization\"`.","examples":["organization"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The organization's display name, or `null` in self-hosted mode.","examples":["Acme Inc"]},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The organization's URL slug, or `null` when unset or in self-hosted mode.","examples":["acme"]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the organization was created, or `null` in self-hosted mode."}},"required":["id","object","name","slug","created_at"],"additionalProperties":false,"title":"Organization","description":"The authenticated organization. Identity is sourced from the auth provider; in self-hosted mode only the `id` is populated.","examples":[{"id":"org_2abcDEF","object":"organization","name":"Acme Inc","slug":"acme","created_at":"2026-01-15T12:00:00.000Z"}]},"_maple_OrgId_1":{"type":"string","minLength":1,"pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","title":"Organization ID","description":"The organization's opaque `org_â¦` ID (e.g. `org_2abcDEF`)."},"AnomalyPersistenceError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/anomalies/AnomalyPersistenceError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["anomalies_unavailable"]},"title":{"type":"string","enum":["Anomalies are temporarily unavailable"]},"message":{"type":"string","enum":["Anomalies are temporarily unavailable. Retry in a few seconds."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Anomalies are temporarily unavailable","description":"The @maple/http/anomalies/AnomalyPersistenceError failure. HTTP 503."},"AnomalyForbiddenError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/anomalies/AnomalyForbiddenError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["permission_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["anomaly_settings_forbidden"]},"title":{"type":"string","enum":["Permission required"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["request_access"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Permission required","description":"The @maple/http/anomalies/AnomalyForbiddenError failure. HTTP 403."},"AnomalySettings":{"type":"object","properties":{"object":{"type":"string","enum":["anomaly_settings"],"description":"The object type â always `\"anomaly_settings\"`."},"enabled":{"type":"boolean","description":"Whether anomaly detection is enabled for the org."},"sensitivity":{"$ref":"#/components/schemas/_maple_AnomalySensitivity"},"muted_signals":{"type":"array","items":{"$ref":"#/components/schemas/_maple_AnomalySignalType"},"description":"Signals the detector ignores."},"included_environments":{"type":"array","items":{"type":"string"},"description":"Non-production environments the detector watches anyway. By default it skips environments whose name reads as non-production (`staging`, `development`, `local`, `pr-123`...)."},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When settings were last updated, or `null`."},"updated_by":{"anyOf":[{"$ref":"#/components/schemas/_maple_UserId_1"},{"type":"null"}],"description":"The `user_â¦` who last updated settings, or `null`."}},"required":["object","enabled","sensitivity","muted_signals","included_environments","updated_at","updated_by"],"additionalProperties":false,"title":"Anomaly detector settings","description":"Org-wide anomaly detector configuration.","examples":[{"object":"anomaly_settings","enabled":true,"sensitivity":"normal","muted_signals":[],"included_environments":[],"updated_at":"2026-07-15T09:12:00.000Z","updated_by":"user_2abc"}]},"_maple_AnomalySignalType":{"type":"string","enum":["error_rate","latency_p95","throughput","error_spike","log_volume"],"title":"Anomaly Signal Type"},"_maple_AnomalySensitivity":{"type":"string","enum":["low","normal","high"],"title":"Anomaly Sensitivity","description":"Detector sensitivity (`low`, `normal`, `high`).","examples":["normal"]},"AnomalySettingsUpdateParams":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable or disable detection."},"sensitivity":{"$ref":"#/components/schemas/_maple_AnomalySensitivity_1"},"muted_signals":{"type":"array","items":{"$ref":"#/components/schemas/_maple_AnomalySignalType"},"description":"Replace the set of muted signals."},"included_environments":{"type":"array","items":{"type":"string"},"maxItems":50,"description":"Replace the non-production environments the detector watches anyway, e.g. `[\"staging\"]`."}},"additionalProperties":false,"title":"Anomaly settings update parameters","description":"Request body for updating the detector settings. Omitted fields are left unchanged.","examples":[{"sensitivity":"high"}]},"_maple_AnomalySensitivity_1":{"type":"string","enum":["low","normal","high"],"title":"Anomaly Sensitivity","description":"Set detector sensitivity."},"AnomalyLinkedIssueNotFoundError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/anomalies/AnomalyLinkedIssueNotFoundError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["not_found_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["error_issue_not_found"]},"title":{"type":"string","enum":["Error issue not found"]},"message":{"type":"string","enum":["No such error issue."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["none"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Error issue not found","description":"The @maple/http/anomalies/AnomalyLinkedIssueNotFoundError failure. HTTP 404."},"AnomalyIncidentNotFoundError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/anomalies/AnomalyIncidentNotFoundError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["not_found_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["anomaly_incident_not_found"]},"title":{"type":"string","enum":["Anomaly incident not found"]},"message":{"type":"string","enum":["No such anomaly incident."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["none"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Anomaly incident not found","description":"The @maple/http/anomalies/AnomalyIncidentNotFoundError failure. HTTP 404."},"AnomalyIncident":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_AnomalyIncidentId"},"object":{"type":"string","enum":["anomaly_incident"],"description":"The object type â always `\"anomaly_incident\"`.","examples":["anomaly_incident"]},"detector_key":{"type":"string","description":"Stable key identifying the detector (signal + service + env) that opened the incident."},"signal_type":{"$ref":"#/components/schemas/_maple_AnomalySignalType_2"},"service_name":{"type":"string","description":"The service the anomaly was detected on."},"deployment_env":{"type":"string","description":"The deployment environment (e.g. `production`)."},"fingerprint_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The error fingerprint for `error_spike` incidents, or `null` for golden-signal incidents."},"error_issue_id":{"anyOf":[{"$ref":"#/components/schemas/_maple_ErrorIssueId"},{"type":"null"}],"description":"The `iss_â¦` error issue linked to the incident, or `null`."},"status":{"$ref":"#/components/schemas/_maple_AnomalyIncidentStatus_1"},"severity":{"$ref":"#/components/schemas/_maple_AnomalyIncidentSeverity"},"opened_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"baseline_median":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"baseline_sigma":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"threshold_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"last_observed_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"last_sample_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"first_triggered_at":{"type":"string"},"last_triggered_at":{"type":"string"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the incident resolved, or `null`."},"resolve_reason":{"anyOf":[{"$ref":"#/components/schemas/_maple_AnomalyResolveReason"},{"type":"null"}],"description":"Why the incident resolved (`returned_to_baseline`, `no_data`, `manual`), or `null`."},"triage_status":{"$ref":"#/components/schemas/_maple_AnomalyTriageStatus"},"fingerprints":{"type":"array","items":{"$ref":"#/components/schemas/AnomalyIncidentFingerprint"},"description":"Fingerprints sharing this incident; empty for golden-signal incidents."},"reopen_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"last_reopened_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the incident last reopened, or `null`."}},"required":["id","object","detector_key","signal_type","service_name","deployment_env","fingerprint_hash","error_issue_id","status","severity","opened_value","baseline_median","baseline_sigma","threshold_value","last_observed_value","last_sample_count","first_triggered_at","last_triggered_at","resolved_at","resolve_reason","triage_status","fingerprints","reopen_count","last_reopened_at"],"additionalProperties":false,"title":"Anomaly incident","description":"A detected anomaly on a monitored signal (error rate, latency, throughput, error spike, or log volume) for a service and environment, opened by Maple's baseline detector.","examples":[{"id":"anom_YofPTrK9782DWwcnXhpcCw","object":"anomaly_incident","detector_key":"error_rate:payments:production","signal_type":"error_rate","service_name":"payments","deployment_env":"production","fingerprint_hash":null,"error_issue_id":null,"status":"open","severity":"critical","opened_value":0.12,"baseline_median":0.01,"baseline_sigma":0.004,"threshold_value":0.05,"last_observed_value":0.14,"last_sample_count":4200,"first_triggered_at":"2026-07-15T09:12:00.000Z","last_triggered_at":"2026-07-15T09:18:00.000Z","resolved_at":null,"resolve_reason":null,"triage_status":"completed","fingerprints":[],"reopen_count":0,"last_reopened_at":null}]},"AnomalyIncidentFingerprint":{"type":"object","properties":{"fingerprint_hash":{"type":"string","description":"The error fingerprint hash."},"error_issue_id":{"anyOf":[{"$ref":"#/components/schemas/_maple_ErrorIssueId"},{"type":"null"}],"description":"The `iss_â¦` error issue for this fingerprint, or `null`."},"opened_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"last_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"severity":{"$ref":"#/components/schemas/_maple_AnomalyIncidentSeverity_1"},"attached_at":{"type":"string"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this fingerprint returned to baseline, or `null`."}},"required":["fingerprint_hash","error_issue_id","opened_value","last_value","severity","attached_at","resolved_at"],"additionalProperties":false,"title":"Anomaly incident fingerprint","description":"One error fingerprint participating in a consolidated error-spike incident."},"_maple_AnomalyIncidentSeverity_1":{"type":"string","enum":["warning","critical"],"title":"Anomaly Incident Severity","description":"Severity contributed by this fingerprint."},"_maple_AnomalyTriageStatus":{"type":"string","enum":["none","pending","completed","skipped"],"title":"Anomaly Triage Status","description":"AI-triage state for the incident (`none`, `pending`, `completed`, `skipped`)."},"_maple_AnomalyResolveReason":{"type":"string","enum":["returned_to_baseline","no_data","manual"],"title":"Anomaly Resolve Reason"},"_maple_AnomalyIncidentSeverity":{"type":"string","enum":["warning","critical"],"title":"Anomaly Incident Severity","description":"Incident severity: `warning` or `critical`.","examples":["critical"]},"_maple_AnomalyIncidentStatus_1":{"type":"string","enum":["open","resolved"],"title":"Anomaly Incident Status","description":"Incident status: `open` or `resolved`.","examples":["open"]},"_maple_AnomalySignalType_2":{"type":"string","enum":["error_rate","latency_p95","throughput","error_spike","log_volume"],"title":"Anomaly Signal Type","description":"The monitored signal that triggered the anomaly.","examples":["error_rate"]},"_maple_AnomalyIncidentId":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `anom_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["anom_YofPTrK9782DWwcnXhpcCw"]},"AnomalyLinkIssueParams":{"type":"object","properties":{"issue_id":{"anyOf":[{"$ref":"#/components/schemas/_maple_ErrorIssueId"},{"type":"null"}],"description":"The `iss_â¦` error issue to link, or `null` to clear an existing link."}},"required":["issue_id"],"additionalProperties":false,"title":"Anomaly link-issue parameters","description":"Request body for linking (or unlinking) an error issue to an incident.","examples":[{"issue_id":"iss_YofPTrK9782DWwcnXhpcCw"}]},"AnomalyIncidentTimeseries":{"type":"object","properties":{"object":{"type":"string","enum":["anomaly_incident.timeseries"],"description":"The object type â always `\"anomaly_incident.timeseries\"`."},"signal_type":{"$ref":"#/components/schemas/_maple_AnomalySignalType_2"},"unit":{"$ref":"#/components/schemas/_maple_AnomalyTimeseriesUnit"},"bucket_seconds":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"buckets":{"type":"array","items":{"$ref":"#/components/schemas/AnomalyTimeseriesBucket"},"description":"The signal timeseries around the incident window."},"baseline_median":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"threshold_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["object","signal_type","unit","bucket_seconds","buckets","baseline_median","threshold_value"],"additionalProperties":false,"title":"Anomaly incident timeseries","description":"The monitored signal's timeseries around an incident, with the baseline and threshold.","examples":[{"object":"anomaly_incident.timeseries","signal_type":"error_rate","unit":"ratio","bucket_seconds":300,"buckets":[{"bucket":"2026-07-15T09:10:00.000Z","value":0.12,"sample_count":4200}],"baseline_median":0.01,"threshold_value":0.05}]},"AnomalyTimeseriesBucket":{"type":"object","properties":{"bucket":{"type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"sample_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["bucket","value","sample_count"],"additionalProperties":false,"title":"Anomaly timeseries bucket"},"_maple_AnomalyTimeseriesUnit":{"type":"string","enum":["ratio","milliseconds","per_minute","count_per_30m"],"title":"Anomaly Timeseries Unit","description":"The unit of the bucketed values (`ratio`, `milliseconds`, `per_minute`, `count_per_30m`)."},"AnomalyServiceCountList":{"type":"object","properties":{"object":{"type":"string","enum":["list"],"description":"Always `\"list\"` for a list response.","examples":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/AnomalyServiceCount"},"description":"The page of objects, in the ordering documented by the endpoint."},"has_more":{"type":"boolean","description":"Whether more objects exist after this page. When `true`, use `next_cursor` to fetch them.","examples":[true]},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for the next page, or `null` on the last page. Pass it back as the `cursor` query param.","examples":["off_1k"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false,"title":"Anomaly service count list","description":"Every group for the org in one page â the aggregate is not paginated."},"AnomalyServiceCount":{"type":"object","properties":{"object":{"type":"string","enum":["anomaly_service_count"],"description":"The object type â always `\"anomaly_service_count\"`.","examples":["anomaly_service_count"]},"service_name":{"type":"string","description":"The service the incidents were detected on."},"deployment_env":{"type":"string","description":"The deployment environment (e.g. `production`)."},"signal_type":{"$ref":"#/components/schemas/_maple_AnomalySignalType_2"},"severity":{"$ref":"#/components/schemas/_maple_AnomalyIncidentSeverity_2"},"incident_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"last_triggered_at":{"type":"string"}},"required":["object","service_name","deployment_env","signal_type","severity","incident_count","last_triggered_at"],"additionalProperties":false,"title":"Anomaly service count","description":"Open anomaly incidents for one (service, environment, signal), collapsed to a count with the worst severity and the most recent trigger.","examples":[{"object":"anomaly_service_count","service_name":"payments","deployment_env":"production","signal_type":"error_rate","severity":"critical","incident_count":2,"last_triggered_at":"2026-07-15T09:18:00.000Z"}]},"_maple_AnomalyIncidentSeverity_2":{"type":"string","enum":["warning","critical"],"title":"Anomaly Incident Severity","description":"The worst severity among the incidents in this group.","examples":["critical"]},"_maple_AnomalyIncidentStatus_2":{"type":"string","enum":["open","resolved"],"title":"Anomaly Incident Status","description":"Which incidents to aggregate. Defaults to `open`."},"AnomalyIncidentList":{"type":"object","properties":{"object":{"type":"string","enum":["list"],"description":"Always `\"list\"` for a list response.","examples":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/AnomalyIncident"},"description":"The page of objects, in the ordering documented by the endpoint."},"has_more":{"type":"boolean","description":"Whether more objects exist after this page. When `true`, use `next_cursor` to fetch them.","examples":[true]},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for the next page, or `null` on the last page. Pass it back as the `cursor` query param.","examples":["off_1k"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false,"title":"Anomaly incident list","description":"A cursor-paginated page of anomaly incidents, newest first."},"_maple_AnomalySignalType_1":{"type":"string","enum":["error_rate","latency_p95","throughput","error_spike","log_volume"],"title":"Anomaly Signal Type","description":"Filter by signal type."},"_maple_AnomalyIncidentStatus":{"type":"string","enum":["open","resolved"],"title":"Anomaly Incident Status","description":"Filter by incident status."},"InvestigationDataCorruptionError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/investigations/InvestigationDataCorruptionError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["investigation_data_corrupt"]},"title":{"type":"string","enum":["Stored investigation data is invalid"]},"message":{"type":"string","enum":["Maple could not decode the stored investigation."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["contact_support"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Stored investigation data is invalid","description":"The @maple/http/investigations/InvestigationDataCorruptionError failure. HTTP 500."},"InvestigationTransitionError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/investigations/InvestigationTransitionError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["conflict_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["investigation_status_conflict"]},"title":{"type":"string","enum":["Investigation status cannot change"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["refresh"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Investigation status cannot change","description":"The @maple/http/investigations/InvestigationTransitionError failure. HTTP 409."},"InvestigationNotFoundError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/investigations/InvestigationNotFoundError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["not_found_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["investigation_not_found"]},"title":{"type":"string","enum":["Investigation not found"]},"message":{"type":"string","enum":["No such investigation."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["none"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Investigation not found","description":"The @maple/http/investigations/InvestigationNotFoundError failure. HTTP 404."},"InvestigationPersistenceError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/investigations/InvestigationPersistenceError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["investigations_unavailable"]},"title":{"type":"string","enum":["Investigations are temporarily unavailable"]},"message":{"type":"string","enum":["Investigations are temporarily unavailable. Retry in a few seconds."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Investigations are temporarily unavailable","description":"The @maple/http/investigations/InvestigationPersistenceError failure. HTTP 503."},"Investigation":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_InvestigationId"},"object":{"type":"string","enum":["investigation"],"description":"The object type â always `\"investigation\"`.","examples":["investigation"]},"status":{"$ref":"#/components/schemas/_maple_InvestigationStatus_1"},"subject":{"$ref":"#/components/schemas/InvestigationSubject"},"snapshot":{"type":"object","properties":{"title":{"type":"string"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"severity":{"anyOf":[{"$ref":"#/components/schemas/_maple_IssueSeverity"},{"type":"null"}]},"facts":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}},"references":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"incident_started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"incident_ended_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"fingerprint_hash":{"anyOf":[{"type":"string"},{"type":"null"}]},"exception_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"exception_message":{"anyOf":[{"type":"string"},{"type":"null"}]},"top_frame":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_label":{"anyOf":[{"type":"string"},{"type":"null"}]},"occurrence_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"service_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"deployment_env":{"anyOf":[{"type":"string"},{"type":"null"}]},"signal_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"observed_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"threshold_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]}},"required":["title","scope","status","severity","facts","references","incident_started_at","incident_ended_at"],"additionalProperties":false},"progress":{"anyOf":[{"type":"object","properties":{"step_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"steps":{"type":"array","items":{"type":"object","properties":{"tool":{"type":"string"},"label":{"type":"string"},"at":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["tool","label","at"],"additionalProperties":false}},"updated_at":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["step_count","steps","updated_at"],"additionalProperties":false},{"type":"null"}],"description":"What the pass is doing, or got as far as doing, as a capped tail of steps. `null` before the first step. Kept after the run ends."},"report":{"anyOf":[{"type":"object","properties":{"headline":{"type":"string","description":"One line naming the suspected cause, for list rows and headings. Absent on reports produced before the field existed."},"summary":{"type":"string"},"suspected_cause":{"type":"string"},"severity_assessment":{"$ref":"#/components/schemas/_maple_IssueSeverity"},"affected_scope":{"type":"string"},"evidence":{"type":"array","items":{"type":"object","properties":{"trace_ids":{"type":"array","items":{"$ref":"#/components/schemas/_maple_TraceId"}},"log_patterns":{"type":"array","items":{"type":"string"}},"related_services":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["trace_ids","log_patterns","related_services","note"],"additionalProperties":false}},"suggested_actions":{"type":"array","items":{"type":"string"}},"confidence":{"type":"string","enum":["high","medium","low"]},"ruled_out":{"type":"array","items":{"type":"string"}},"unchecked":{"type":"array","items":{"type":"string"}},"suspect_commit":{"type":"object","properties":{"sha":{"type":"string","pattern":"^[0-9a-f]{7,40}$"},"repo":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9-]*\\/(?!\\.\\.?$)[A-Za-z0-9_.-]+$"}},"required":["sha"],"additionalProperties":false,"description":"The commit the diagnosis holds responsible, when it could pin the cause to one: a 7 to 40 character lowercase SHA and, when known, the repository as `owner/name`."}},"required":["summary","suspected_cause","affected_scope","evidence","suggested_actions","confidence"],"additionalProperties":false},{"type":"null"}],"description":"The latest structured AI diagnosis, or `null` until the first diagnosis lands. The report's internal fields are an evolving shape â treat it as a diagnosis blob, not a stability-committed schema."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The model that produced the diagnosis, or `null`."},"severity":{"anyOf":[{"$ref":"#/components/schemas/_maple_IssueSeverity"},{"type":"null"}],"description":"Severity denormalized from the report for cheap list rendering, or `null`."},"confidence":{"anyOf":[{"$ref":"#/components/schemas/_maple_InvestigationConfidence"},{"type":"null"}],"description":"The diagnosis confidence (`high`/`medium`/`low`), or `null`."},"seeded_by":{"$ref":"#/components/schemas/_maple_InvestigationSeededBy"},"created_by":{"anyOf":[{"$ref":"#/components/schemas/_maple_UserId_1"},{"type":"null"}],"description":"The `user_â¦` ID that opened the investigation, or `null` for system-seeded ones."},"input_tokens":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}],"description":"Input tokens consumed by the diagnostic pass, or `null`."},"output_tokens":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}],"description":"Output tokens produced by the diagnostic pass, or `null`."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The failure message if the diagnostic pass errored, or `null`."},"created_at":{"type":"string"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the current pass began, re-stamped on each restart. Use this rather than `created_at` to measure how long a run took."},"diagnosed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When a diagnosis was first attached, or `null`."},"updated_at":{"type":"string"}},"required":["id","object","status","subject","snapshot","progress","report","model","severity","confidence","seeded_by","created_by","input_tokens","output_tokens","error","created_at","started_at","diagnosed_at","updated_at"],"additionalProperties":false,"title":"Investigation","description":"A durable investigation 'war-room' â an autonomous or human-opened diagnostic session over an incident or an ad-hoc question. Carries the structured AI diagnosis once it lands.","examples":[{"id":"inv_YofPTrK9782DWwcnXhpcCw","object":"investigation","status":"diagnosed","subject":{"type":"incident","incident_kind":"error","incident_id":"einc_YofPTrK9782DWwcnXhpcCw","issue_id":"iss_YofPTrK9782DWwcnXhpcCw"},"snapshot":{"title":"Checkout timeout rate increased","scope":"checkout-api","status":"open","severity":"high","facts":[],"references":[],"incident_started_at":"2026-07-15T09:04:00.000Z","incident_ended_at":null},"report":{"headline":"Deploy 4f21a shortened checkout-api's upstream timeout","summary":"A deploy to checkout-api four minutes before the onset regressed the timeout budget.","suspected_cause":"Deploy 4f21a shortened the upstream timeout below the p99 of the call it guards.","severity_assessment":"high","affected_scope":"checkout-api","evidence":[],"suggested_actions":["Roll back deploy 4f21a."],"confidence":"high","ruled_out":["Downstream dependency: every callee stayed under 90ms in the window."],"unchecked":[],"suspect_commit":{"sha":"4f21a9c0d3e8b7f6a5c4d3e2f1a0b9c8d7e6f5a4","repo":"acme/checkout-api"}},"progress":{"step_count":9,"steps":[{"tool":"diagnose_service","label":"Diagnose service · checkout-api","at":1763020800000},{"tool":"inspect_trace","label":"Inspect trace · 7f3a9c04b1","at":1763020812000}],"updated_at":1763020812000},"model":"claude-opus-4-8","severity":"high","confidence":"high","seeded_by":"system","created_by":null,"input_tokens":12000,"output_tokens":800,"error":null,"created_at":"2026-07-15T09:12:00.000Z","started_at":"2026-07-15T09:12:05.000Z","diagnosed_at":"2026-07-15T09:12:42.000Z","updated_at":"2026-07-15T09:12:42.000Z"}]},"_maple_InvestigationSeededBy":{"type":"string","enum":["user","system"],"title":"Investigation Seeded By","description":"Who opened the investigation: `user` (attended) or `system` (incident-open trigger)."},"_maple_InvestigationConfidence":{"type":"string","enum":["high","medium","low"],"title":"Investigation Confidence"},"InvestigationSubject":{"anyOf":[{"$ref":"#/components/schemas/InvestigationIncidentSubject"},{"$ref":"#/components/schemas/InvestigationFreeformSubject"},{"$ref":"#/components/schemas/InvestigationFixVerificationSubject"}],"title":"Investigation subject","description":"What is being investigated â a typed incident or an ad-hoc question."},"InvestigationFixVerificationSubject":{"type":"object","properties":{"type":{"type":"string","enum":["fix_verification"],"description":"Discriminator â always `\"fix_verification\"` for a post-merge fix check."},"issue_id":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"pull_request_url":{"type":"string","description":"The merged pull request the verification is checking."},"baseline_versions":{"type":"array","items":{"type":"string"},"description":"Builds the issue was known to affect when the fix merged. An occurrence from a build outside this set means the fix did not work."},"merged_at":{"type":"string","description":"When the pull request merged (ISO 8601)."}},"required":["type","issue_id","pull_request_url","baseline_versions","merged_at"],"additionalProperties":false,"title":"Fix verification subject","description":"An investigation that checks whether a merged pull request actually stopped an error."},"InvestigationFreeformSubject":{"type":"object","properties":{"type":{"type":"string","enum":["freeform"],"description":"Discriminator â always `\"freeform\"` for an ad-hoc investigation."},"title":{"type":"string","description":"Short human-readable title for the investigation."},"prompt":{"type":"string","description":"The question or task the investigation should answer."},"context_refs":{"type":"array","items":{"type":"object"},"description":"Opaque context hints (services, traces, dashboards, â¦) passed through verbatim for the agent to read as JSON."}},"required":["type","title","prompt","context_refs"],"additionalProperties":false,"title":"Freeform subject","description":"An ad-hoc investigation into a user-supplied question with optional context."},"InvestigationIncidentSubject":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["incident"],"description":"Discriminator â always `\"incident\"` for an incident-anchored investigation."},"issue_id":{"anyOf":[{"$ref":"#/components/schemas/_maple_ErrorIssueId"},{"type":"null"}],"description":"The linked `iss_â¦` error issue, or `null` when the incident has none."},"incident_kind":{"type":"string","enum":["error"]},"incident_id":{"$ref":"#/components/schemas/_maple_ErrorIncidentId"}},"required":["type","issue_id","incident_kind","incident_id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["incident"],"description":"Discriminator â always `\"incident\"` for an incident-anchored investigation."},"issue_id":{"anyOf":[{"$ref":"#/components/schemas/_maple_ErrorIssueId"},{"type":"null"}],"description":"The linked `iss_â¦` error issue, or `null` when the incident has none."},"incident_kind":{"type":"string","enum":["anomaly"]},"incident_id":{"$ref":"#/components/schemas/_maple_AnomalyIncidentId"}},"required":["type","issue_id","incident_kind","incident_id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["incident"],"description":"Discriminator â always `\"incident\"` for an incident-anchored investigation."},"issue_id":{"anyOf":[{"$ref":"#/components/schemas/_maple_ErrorIssueId"},{"type":"null"}],"description":"The linked `iss_â¦` error issue, or `null` when the incident has none."},"incident_kind":{"type":"string","enum":["alert"]},"incident_id":{"$ref":"#/components/schemas/_maple_AlertIncidentId"}},"required":["type","issue_id","incident_kind","incident_id"],"additionalProperties":false}],"title":"Incident subject","description":"An investigation anchored to a typed incident. The public-ID prefix must match `incident_kind`: `einc_â¦`, `anom_â¦`, or `inc_â¦`."},"_maple_ErrorIncidentId":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `einc_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["einc_YofPTrK9782DWwcnXhpcCw"]},"_maple_InvestigationStatus_1":{"type":"string","enum":["investigating","diagnosed","inconclusive","resolved","failed"],"title":"Investigation Status","description":"Lifecycle state: `investigating` (diagnostic pass in progress), `diagnosed` (report attached), `resolved` (human-closed), or `failed`.","examples":["diagnosed"]},"_maple_InvestigationId":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `inv_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["inv_YofPTrK9782DWwcnXhpcCw"]},"InvestigationStatusUpdateParams":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/_maple_InvestigationStatus_2"}},"required":["status"],"additionalProperties":false,"title":"Investigation status update parameters","description":"Request body for changing an investigation's lifecycle status.","examples":[{"status":"resolved"}]},"_maple_InvestigationStatus_2":{"type":"string","enum":["investigating","diagnosed","inconclusive","resolved","failed"],"title":"Investigation Status","description":"The new lifecycle status: `resolved` to close a finished run, or the run's own verdict to reopen a resolved one.","examples":["resolved"]},"InvestigationStartFailedError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/investigations/InvestigationStartFailedError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["investigation_start_failed"]},"title":{"type":"string","enum":["Investigation could not be started"]},"message":{"type":"string","enum":["The investigation could not be started. Retry in a few seconds."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Investigation could not be started","description":"The @maple/http/investigations/InvestigationStartFailedError failure. HTTP 503."},"InvestigationAgentUnavailableError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/investigations/InvestigationAgentUnavailableError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["investigation_agent_unavailable"]},"title":{"type":"string","enum":["Investigation agent is temporarily unavailable"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Investigation agent is temporarily unavailable","description":"The @maple/http/investigations/InvestigationAgentUnavailableError failure. HTTP 503."},"InvestigationCreateParams":{"type":"object","properties":{"subject":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["incident"],"description":"Discriminator â always `\"incident\"` for an incident-anchored investigation."},"issue_id":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"incident_kind":{"type":"string","enum":["error"]},"incident_id":{"$ref":"#/components/schemas/_maple_ErrorIncidentId"}},"required":["type","incident_kind","incident_id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["incident"],"description":"Discriminator â always `\"incident\"` for an incident-anchored investigation."},"issue_id":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"incident_kind":{"type":"string","enum":["anomaly"]},"incident_id":{"$ref":"#/components/schemas/_maple_AnomalyIncidentId"}},"required":["type","incident_kind","incident_id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["incident"],"description":"Discriminator â always `\"incident\"` for an incident-anchored investigation."},"issue_id":{"$ref":"#/components/schemas/_maple_ErrorIssueId"},"incident_kind":{"type":"string","enum":["alert"]},"incident_id":{"$ref":"#/components/schemas/_maple_AlertIncidentId"}},"required":["type","incident_kind","incident_id"],"additionalProperties":false},{"$ref":"#/components/schemas/InvestigationFreeformSubject"}]},"snapshot":{"type":"object","properties":{"title":{"type":"string"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"severity":{"anyOf":[{"$ref":"#/components/schemas/_maple_IssueSeverity"},{"type":"null"}]},"facts":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}},"references":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"incident_started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"incident_ended_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"fingerprint_hash":{"anyOf":[{"type":"string"},{"type":"null"}]},"exception_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"exception_message":{"anyOf":[{"type":"string"},{"type":"null"}]},"top_frame":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_label":{"anyOf":[{"type":"string"},{"type":"null"}]},"occurrence_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"service_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"deployment_env":{"anyOf":[{"type":"string"},{"type":"null"}]},"signal_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"observed_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"threshold_value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]}},"required":["title","scope","status","severity","facts","references","incident_started_at","incident_ended_at"],"additionalProperties":false}},"required":["subject"],"additionalProperties":false,"title":"Investigation create parameters","description":"Request body for opening an investigation. Incident-anchored investigations dedup to one per incident.","examples":[{"subject":{"type":"incident","incident_kind":"error","incident_id":"einc_YofPTrK9782DWwcnXhpcCw"}}]},"InvestigationList":{"type":"object","properties":{"object":{"type":"string","enum":["list"],"description":"Always `\"list\"` for a list response.","examples":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Investigation"},"description":"The page of objects, in the ordering documented by the endpoint."},"has_more":{"type":"boolean","description":"Whether more objects exist after this page. When `true`, use `next_cursor` to fetch them.","examples":[true]},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for the next page, or `null` on the last page. Pass it back as the `cursor` query param.","examples":["off_1k"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false,"title":"Investigation list","description":"A cursor-paginated page of investigations, newest first."},"_maple_AiTriageIncidentKind":{"type":"string","enum":["error","anomaly","alert"],"title":"AI Triage Incident Kind","description":"Only return investigations for this incident kind."},"_maple_InvestigationStatus":{"type":"string","enum":["investigating","diagnosed","inconclusive","resolved","failed"],"title":"Investigation Status","description":"Only return investigations in this status."},"TelemetrySignals":{"type":"object","properties":{"object":{"type":"string","enum":["telemetry_signals"],"description":"The object type â always `\"telemetry_signals\"`.","examples":["telemetry_signals"]},"generated_at":{"type":"string"},"window_start":{"type":"string"},"window_end":{"type":"string"},"warehouse_available":{"type":"boolean","description":"Whether the warehouse could be read. When `false` every signal reports `unknown` and the response is still a 200 â callers use this to decide whether to show telemetry-dependent guidance at all.","examples":[true]},"signals":{"type":"array","items":{"$ref":"#/components/schemas/TelemetrySignal"},"description":"One entry per signal kind, always the full set. A signal never drops out of this array â absence is reported as `status: \"absent\"`, so a missing entry is a bug rather than a no-data answer."}},"required":["object","generated_at","window_start","window_end","warehouse_available","signals"],"additionalProperties":false,"title":"Telemetry signals","description":"What kinds of telemetry the organization is actually sending. Answers 'is this page empty because nothing is wired up, or because nothing happened?' â the question every empty view in Maple has to resolve before it can give useful advice.","examples":[{"object":"telemetry_signals","generated_at":"2026-07-27T12:00:00.000Z","window_start":"2026-06-27T12:00:00.000Z","window_end":"2026-07-27T12:00:00.000Z","warehouse_available":true,"signals":[{"object":"telemetry_signal","signal":"traces","status":"present","count":1842013,"first_seen":"2026-06-27T12:00:00.000Z","last_seen":"2026-07-27T11:00:00.000Z"},{"object":"telemetry_signal","signal":"logs","status":"absent","count":0,"first_seen":null,"last_seen":null},{"object":"telemetry_signal","signal":"metrics","status":"present","count":90400,"first_seen":"2026-06-27T12:00:00.000Z","last_seen":"2026-07-27T11:00:00.000Z"},{"object":"telemetry_signal","signal":"sessions","status":"absent","count":0,"first_seen":null,"last_seen":null},{"object":"telemetry_signal","signal":"product_events","status":"absent","count":0,"first_seen":null,"last_seen":null}]}]},"TelemetrySignal":{"type":"object","properties":{"object":{"type":"string","enum":["telemetry_signal"],"description":"The object type â always `\"telemetry_signal\"`.","examples":["telemetry_signal"]},"signal":{"type":"string","enum":["traces","logs","metrics","sessions","product_events"],"description":"Which signal this entry describes.","examples":["logs"]},"status":{"type":"string","enum":["present","absent","unknown"],"description":"`present` when the signal arrived within the window, `absent` when it did not, and `unknown` when the warehouse could not be read. Treat `unknown` as 'do not advise' â it is not evidence of absence.","examples":["present"]},"count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}],"description":"Events seen in the window, or `null` when `status` is `unknown`. An estimate for rolled-up signals, exact for sessions and product events.","examples":[1842]},"first_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the signal first arrived inside the window â not the all-time first, which may predate it. `null` unless `status` is `present`."},"last_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the signal most recently arrived. `null` unless `status` is `present`. Hourly precision for traces, logs and metrics, which are read from an hourly rollup."}},"required":["object","signal","status","count","first_seen","last_seen"],"additionalProperties":false,"title":"Telemetry signal","description":"Whether one kind of telemetry is reaching Maple, and when it last did."},"SetupAuditUnavailableError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/SetupAuditUnavailableError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["setup_audit_unavailable"]},"title":{"type":"string","enum":["Setup audit is temporarily unavailable"]},"message":{"type":"string","enum":["The setup audit is temporarily unavailable. Retry in a few seconds."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Setup audit is temporarily unavailable","description":"The @maple/http/errors/SetupAuditUnavailableError failure. HTTP 503."},"SetupAudit":{"type":"object","properties":{"object":{"type":"string","enum":["setup_audit"],"description":"The object type â always `\"setup_audit\"`.","examples":["setup_audit"]},"generated_at":{"type":"string"},"data_status":{"type":"string","enum":["ok","no_data"],"description":"`no_data` means the organization has never received telemetry; `checks` is empty because connecting a service comes first.","examples":["ok"]},"telemetry_checks_available":{"type":"boolean","description":"Whether telemetry-backed checks could run. When `false`, those checks report `skip` and the configuration checks still apply.","examples":[true]},"summary":{"$ref":"#/components/schemas/SetupAuditSummary"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/SetupAuditCheck"},"description":"Every check, passing ones included, so the summary is verifiable from the payload."},"open_recommendation_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["object","generated_at","data_status","telemetry_checks_available","summary","checks","open_recommendation_count"],"additionalProperties":false,"title":"Setup audit","description":"A point-in-time audit of the organization's Maple setup: whether alerts can actually deliver, whether every service is sending the signals you expect, whether attribute conventions hold, and whether traces arrive intact. Recomputed on every request.","examples":[{"object":"setup_audit","generated_at":"2026-07-27T12:00:00.000Z","data_status":"ok","telemetry_checks_available":true,"summary":{"critical":1,"warn":2,"info":0,"pass":15,"skip":0},"checks":[{"object":"setup_audit_check","id":"CFG-ALERT-03","category":"alerting","title":"Every enabled alert rule routes somewhere","severity":"critical","status":"fail","detail":"1 enabled alert rule will evaluate and breach but deliver to nobody.","affected":[{"kind":"alert_rule","id":"alrt_4CzLmR1pTx","name":"API error rate","note":"every selected destination is disabled or deleted"}],"affected_count":1,"fix_hint":"Open each rule and pick at least one enabled destination under Notifications."}],"open_recommendation_count":3}]},"SetupAuditCheck":{"type":"object","properties":{"object":{"type":"string","enum":["setup_audit_check"],"description":"The object type â always `\"setup_audit_check\"`.","examples":["setup_audit_check"]},"id":{"type":"string","description":"Stable check identifier. Safe to key alerting or suppression on â ids are never reused for a different check.","examples":["CFG-ALERT-03"]},"category":{"type":"string","enum":["alerting","notifications","ingestion","attributes","traces","integrations","data_platform"],"description":"Which part of the setup the check covers.","examples":["alerting"]},"title":{"type":"string","description":"What the check asserts, phrased as the healthy state.","examples":["Every enabled alert rule routes somewhere"]},"severity":{"type":"string","enum":["critical","warn","info"],"description":"How bad a failure is: `critical` breaks a feature outright, `warn` degrades it, `info` is advisory. Fixed per check; `TRC-02` is tiered by rate.","examples":["critical"]},"status":{"type":"string","enum":["pass","fail","skip"],"description":"`pass` when the assertion holds, `fail` when it does not, `skip` when the check needs telemetry that was unavailable.","examples":["fail"]},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One-sentence description of the finding. A `pass` may carry an informational note (e.g. Cloudflare datasets the plan does not include) and is otherwise `null`.","examples":["2 enabled alert rules will evaluate and breach but deliver to nobody."]},"affected":{"type":"array","items":{"$ref":"#/components/schemas/SetupAuditAffectedEntity"},"description":"The objects this finding points at, capped at 20 entries."},"affected_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"fix_hint":{"type":"string","description":"How to resolve the finding.","examples":["Open each rule and pick at least one enabled destination under Notifications."]}},"required":["object","id","category","title","severity","status","detail","affected","affected_count","fix_hint"],"additionalProperties":false,"title":"Setup audit check","description":"The result of one setup audit check."},"SetupAuditAffectedEntity":{"type":"object","properties":{"kind":{"type":"string","enum":["service","alert_rule","alert_destination","attribute_mapping","scrape_target","repository","integration","attribute_key"],"description":"What kind of object the finding points at.","examples":["alert_rule"]},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The object's public ID when it is addressable through this API, otherwise `null`. Treat it as an opaque string.","examples":["alrt_4CzLmR1pTx"]},"name":{"type":"string","description":"Display name of the affected object.","examples":["API error rate"]},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Per-object evidence for the finding.","examples":["every selected destination is disabled or deleted"]}},"required":["kind","id","name","note"],"additionalProperties":false,"title":"Setup audit affected entity","description":"One object a setup audit finding points at."},"SetupAuditSummary":{"type":"object","properties":{"critical":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"warn":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"info":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"pass":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"skip":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["critical","warn","info","pass","skip"],"additionalProperties":false,"title":"Setup audit summary","description":"Check counts by outcome. Always consistent with `checks`."},"RecommendationIssuePersistenceError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/RecommendationIssuePersistenceError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["recommendations_unavailable"]},"title":{"type":"string","enum":["Recommendations are temporarily unavailable"]},"message":{"type":"string","enum":["Recommendations are temporarily unavailable. Retry in a few seconds."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Recommendations are temporarily unavailable","description":"The @maple/http/errors/RecommendationIssuePersistenceError failure. HTTP 503."},"RecommendationIssueTransitionError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/RecommendationIssueTransitionError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["conflict_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["recommendation_transition_not_allowed"]},"title":{"type":"string","enum":["Recommendation status change not allowed"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["refresh"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","properties":{"from":{"type":"string","enum":["open","dismissed","applied","resolved"]},"to":{"type":"string","enum":["open","dismissed","applied","resolved"]}},"required":["from","to"],"additionalProperties":false}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Recommendation status change not allowed","description":"The @maple/http/errors/RecommendationIssueTransitionError failure. HTTP 409."},"RecommendationIssueNotFoundError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/RecommendationIssueNotFoundError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["not_found_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["recommendation_not_found"]},"title":{"type":"string","enum":["Recommendation not found"]},"message":{"type":"string","enum":["No such recommendation."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["none"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Recommendation not found","description":"The @maple/http/errors/RecommendationIssueNotFoundError failure. HTTP 404."},"Recommendation":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_RecommendationIssueId"},"object":{"type":"string","enum":["recommendation"],"description":"The object type â always `\"recommendation\"`.","examples":["recommendation"]},"number":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"recommendation_key":{"type":"string","description":"Stable key identifying the recommendation across reconciliation runs.","examples":["rename:http.status_code"]},"kind":{"type":"string","enum":["rename","double-emission","naming"],"description":"What kind of instrumentation issue was detected: `rename` (a non-canonical attribute name), `double-emission` (the same signal emitted twice), or `naming` (a convention violation).","examples":["rename"]},"source_key":{"type":"string","description":"The attribute or signal name the recommendation is about, as observed in your telemetry.","examples":["http.status_code"]},"canonical_key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The canonical (recommended) name to migrate to, or `null` when not applicable.","examples":["http.response.status_code"]},"status":{"type":"string","enum":["open","dismissed","applied","resolved"],"description":"Lifecycle state: `open`, `dismissed`, `applied`, or `resolved`.","examples":["open"]},"usage_count":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"opened_at":{"type":"string"},"updated_at":{"type":"string"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the recommendation was resolved, or `null` while it is still open or dismissed."}},"required":["id","object","number","recommendation_key","kind","source_key","canonical_key","status","usage_count","opened_at","updated_at","resolved_at"],"additionalProperties":false,"title":"Recommendation","description":"An instrumentation improvement detected from your live telemetry â for example a non-canonical attribute name that should be renamed. Recommendations are reconciled automatically against incoming data; dismiss ones you don't plan to act on.","examples":[{"id":"rec_YofPTrK9782DWwcnXhpcCw","object":"recommendation","number":7,"recommendation_key":"rename:http.status_code","kind":"rename","source_key":"http.status_code","canonical_key":"http.response.status_code","status":"open","usage_count":4182,"opened_at":"2026-07-01T12:00:00.000Z","updated_at":"2026-07-15T09:12:00.000Z","resolved_at":null}]},"_maple_RecommendationIssueId":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `rec_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["rec_YofPTrK9782DWwcnXhpcCw"]},"RecommendationList":{"type":"object","properties":{"object":{"type":"string","enum":["list"],"description":"Always `\"list\"` for a list response.","examples":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Recommendation"},"description":"The page of objects, in the ordering documented by the endpoint."},"has_more":{"type":"boolean","description":"Whether more objects exist after this page. When `true`, use `next_cursor` to fetch them.","examples":[true]},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for the next page, or `null` on the last page. Pass it back as the `cursor` query param.","examples":["off_1k"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false,"title":"Recommendation list","description":"A cursor-paginated page of recommendations."},"StatusPagePersistenceError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/StatusPagePersistenceError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["api_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["status_pages_unavailable"]},"title":{"type":"string","enum":["Status pages are temporarily unavailable"]},"message":{"type":"string","enum":["Status pages are temporarily unavailable. Retry in a few seconds."]},"retryable":{"type":"boolean","enum":[true]},"recovery":{"type":"string","enum":["retry"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Status pages are temporarily unavailable","description":"The @maple/http/errors/StatusPagePersistenceError failure. HTTP 503."},"StatusPageValidationError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/StatusPageValidationError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["invalid_request_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["status_page_invalid"]},"title":{"type":"string","enum":["Invalid status page"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["fix_request"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Invalid status page","description":"The @maple/http/errors/StatusPageValidationError failure. HTTP 400."},"StatusPageNotFoundError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/StatusPageNotFoundError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["not_found_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["status_page_not_found"]},"title":{"type":"string","enum":["Status page not found"]},"message":{"type":"string","enum":["No such status page."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["none"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Status page not found","description":"The @maple/http/errors/StatusPageNotFoundError failure. HTTP 404."},"StatusPageIncidentNotFoundError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/StatusPageIncidentNotFoundError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["not_found_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["status_page_incident_not_found"]},"title":{"type":"string","enum":["Status page incident not found"]},"message":{"type":"string","enum":["No such status page incident."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["none"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Status page incident not found","description":"The @maple/http/errors/StatusPageIncidentNotFoundError failure. HTTP 404."},"StatusPageIncident":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_StatusPageIncidentId"},"object":{"type":"string","enum":["status_page_incident"],"description":"The object type, always `\"status_page_incident\"`.","examples":["status_page_incident"]},"page_id":{"$ref":"#/components/schemas/_maple_StatusPageId"},"kind":{"$ref":"#/components/schemas/_maple_StatusPageIncidentKind_1"},"title":{"type":"string"},"impact":{"$ref":"#/components/schemas/_maple_StatusPageIncidentImpact_1"},"status":{"$ref":"#/components/schemas/_maple_StatusPageIncidentStatus_1"},"published":{"type":"boolean","description":"Drafts (`false`) are not shown on the page."},"scheduled_start":{"anyOf":[{"type":"string"},{"type":"null"}]},"scheduled_end":{"anyOf":[{"type":"string"},{"type":"null"}]},"auto_complete":{"type":"boolean","description":"Maintenance only: `true` completes it when its window ends; `false` keeps it in progress until someone completes it."},"started_at":{"type":"string"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"component_ids":{"type":"array","items":{"$ref":"#/components/schemas/_maple_StatusPageComponentId_1"}},"updates":{"type":"array","items":{"$ref":"#/components/schemas/StatusPageIncidentUpdate"},"description":"Newest first."},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","object","page_id","kind","title","impact","status","published","scheduled_start","scheduled_end","auto_complete","started_at","resolved_at","component_ids","updates","created_at","updated_at"],"additionalProperties":false,"title":"Status Page Incident","description":"A customer-facing incident or scheduled maintenance, with its public updates.","examples":[{"id":"sti_YofPTrK9782DWwcnXhpcCw","object":"status_page_incident","page_id":"stp_YofPTrK9782DWwcnXhpcCw","kind":"incident","title":"Elevated API errors","impact":"minor","status":"investigating","published":true,"scheduled_start":null,"scheduled_end":null,"auto_complete":true,"started_at":"2026-07-15T09:12:00.000Z","resolved_at":null,"component_ids":["stc_YofPTrK9782DWwcnXhpcCw"],"updates":[{"id":"stu_YofPTrK9782DWwcnXhpcCw","status":"investigating","body":"We are looking into elevated error rates.","source":"api","created_at":"2026-07-15T09:12:00.000Z"}],"created_at":"2026-07-15T09:12:00.000Z","updated_at":"2026-07-15T09:12:00.000Z"}]},"StatusPageIncidentUpdate":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_StatusPageIncidentUpdateId"},"status":{"$ref":"#/components/schemas/_maple_StatusPageIncidentStatus"},"body":{"type":"string","description":"The public message."},"source":{"$ref":"#/components/schemas/_maple_StatusPageUpdateSource_1"},"created_at":{"type":"string"}},"required":["id","status","body","source","created_at"],"additionalProperties":false,"title":"Status page incident update"},"_maple_StatusPageUpdateSource_1":{"type":"string","enum":["dashboard","api","mcp","auto","break_glass"],"title":"Status Page Update Source","description":"Where it was posted from: `dashboard`, `api`, `mcp`, `auto` or `break_glass`."},"_maple_StatusPageIncidentStatus":{"type":"string","enum":["investigating","identified","monitoring","resolved","scheduled","in_progress","completed"],"title":"Status Page Incident Status"},"_maple_StatusPageIncidentUpdateId":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `stu_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["stu_YofPTrK9782DWwcnXhpcCw"]},"_maple_StatusPageComponentId_1":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `stc_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["stc_YofPTrK9782DWwcnXhpcCw"]},"_maple_StatusPageIncidentStatus_1":{"type":"string","enum":["investigating","identified","monitoring","resolved","scheduled","in_progress","completed"],"title":"Status Page Incident Status","description":"Incidents: `investigating`, `identified`, `monitoring`, `resolved`. Maintenance: `scheduled`, `in_progress`, `completed`."},"_maple_StatusPageIncidentImpact_1":{"type":"string","enum":["none","minor","major","critical"],"title":"Status Page Incident Impact","description":"`none`, `minor`, `major` or `critical`: how hard it hits the components it names."},"_maple_StatusPageIncidentKind_1":{"type":"string","enum":["incident","maintenance"],"title":"Status Page Incident Kind","description":"`incident` or scheduled `maintenance`."},"_maple_StatusPageId":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `stp_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["stp_YofPTrK9782DWwcnXhpcCw"]},"_maple_StatusPageIncidentId":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `sti_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["sti_YofPTrK9782DWwcnXhpcCw"]},"StatusPageIncidentPostUpdateParams":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/_maple_StatusPageIncidentStatus"},"body":{"type":"string","minLength":1,"maxLength":20000,"description":"The public message."},"impact":{"$ref":"#/components/schemas/_maple_StatusPageIncidentImpact"},"component_ids":{"type":"array","items":{"$ref":"#/components/schemas/_maple_StatusPageComponentId_1"}},"resolved_at":{"type":"string"}},"required":["status","body"],"additionalProperties":false,"title":"Status page incident post-update parameters","description":"A public update; `resolved` or `completed` closes the incident.","examples":[{"status":"resolved","body":"Error rates are back to normal."}]},"_maple_StatusPageIncidentImpact":{"type":"string","enum":["none","minor","major","critical"],"title":"Status Page Incident Impact"},"StatusPageIncidentDeleteResponse":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_StatusPageIncidentId"},"object":{"type":"string","enum":["status_page_incident"]},"deleted":{"type":"boolean","enum":[true]}},"required":["id","object","deleted"],"additionalProperties":false,"title":"Status page incident delete response","description":"Confirmation that an incident was deleted.","examples":[{"id":"sti_YofPTrK9782DWwcnXhpcCw","object":"status_page_incident","deleted":true}]},"StatusPageIncidentUpdateParams":{"type":"object","properties":{"title":{"type":"string","minLength":1},"impact":{"$ref":"#/components/schemas/_maple_StatusPageIncidentImpact"},"published":{"type":"boolean"},"scheduled_start":{"anyOf":[{"type":"string"},{"type":"null"}]},"scheduled_end":{"anyOf":[{"type":"string"},{"type":"null"}]},"auto_complete":{"type":"boolean"},"started_at":{"type":"string"},"resolved_at":{"type":"string"},"component_ids":{"type":"array","items":{"$ref":"#/components/schemas/_maple_StatusPageComponentId_1"}}},"additionalProperties":false,"title":"Status page incident update parameters","description":"Request body for editing an incident without posting an update. Omitted fields are left unchanged. A maintenance window must end after it starts; once completed it no longer changes, and while open it must end in the future. A scheduled maintenance cannot move its start into the past (post `in_progress` to start it now); one in progress cannot move its start into the future.","examples":[{"published":true}]},"StatusPageIncidentCreateParams":{"type":"object","properties":{"page_id":{"$ref":"#/components/schemas/_maple_StatusPageId"},"kind":{"$ref":"#/components/schemas/_maple_StatusPageIncidentKind_2"},"title":{"type":"string","minLength":1,"examples":["Elevated API errors"]},"impact":{"$ref":"#/components/schemas/_maple_StatusPageIncidentImpact_2"},"status":{"$ref":"#/components/schemas/_maple_StatusPageIncidentStatus_2"},"body":{"type":"string","minLength":1,"maxLength":20000,"description":"The first public update."},"component_ids":{"type":"array","items":{"$ref":"#/components/schemas/_maple_StatusPageComponentId_1"}},"published":{"type":"boolean","description":"`false` saves a draft. Defaults to `true`."},"scheduled_start":{"type":"string"},"scheduled_end":{"type":"string"},"auto_complete":{"type":"boolean","description":"Maintenance only: `false` keeps it in progress past its window until someone completes it. Defaults to `true`."},"started_at":{"type":"string"}},"required":["page_id","title","body"],"additionalProperties":false,"title":"Status page incident create parameters","description":"Request body for opening an incident or scheduling maintenance.","examples":[{"page_id":"stp_YofPTrK9782DWwcnXhpcCw","title":"Elevated API errors","body":"We are looking into elevated error rates."}]},"_maple_StatusPageIncidentStatus_2":{"type":"string","enum":["investigating","identified","monitoring","resolved","scheduled","in_progress","completed"],"title":"Status Page Incident Status","description":"Defaults to `investigating` for an incident. Open maintenance takes its status from its window: `scheduled` before `scheduled_start`, `in_progress` after; a window that already ended is refused unless `completed`."},"_maple_StatusPageIncidentImpact_2":{"type":"string","enum":["none","minor","major","critical"],"title":"Status Page Incident Impact","description":"Defaults to `minor` for an incident and `none` for maintenance."},"_maple_StatusPageIncidentKind_2":{"type":"string","enum":["incident","maintenance"],"title":"Status Page Incident Kind","description":"Defaults to `incident`."},"StatusPageIncidentList":{"type":"object","properties":{"object":{"type":"string","enum":["list"],"description":"Always `\"list\"` for a list response.","examples":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/StatusPageIncident"},"description":"The page of objects, in the ordering documented by the endpoint."},"has_more":{"type":"boolean","description":"Whether more objects exist after this page. When `true`, use `next_cursor` to fetch them.","examples":[true]},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for the next page, or `null` on the last page. Pass it back as the `cursor` query param.","examples":["off_1k"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false,"title":"Status page incident list","description":"A cursor-paginated page of status page incidents, newest first."},"StatusPageComponentNotFoundError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/StatusPageComponentNotFoundError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["not_found_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["status_page_component_not_found"]},"title":{"type":"string","enum":["Status page component not found"]},"message":{"type":"string","enum":["No such status page component."]},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["none"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Status page component not found","description":"The @maple/http/errors/StatusPageComponentNotFoundError failure. HTTP 404."},"StatusPageComponentDeleteResponse":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_StatusPageComponentId_1"},"object":{"type":"string","enum":["status_page_component"]},"deleted":{"type":"boolean","enum":[true]}},"required":["id","object","deleted"],"additionalProperties":false,"title":"Status page component delete response","description":"Confirmation that a component was removed.","examples":[{"id":"stc_YofPTrK9782DWwcnXhpcCw","object":"status_page_component","deleted":true}]},"StatusPageComponent":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/_maple_StatusPageComponentId_1"},"object":{"type":"string","enum":["status_page_component"],"description":"The object type, always `\"status_page_component\"`.","examples":["status_page_component"]},"page_id":{"$ref":"#/components/schemas/_maple_StatusPageId"},"name":{"type":"string","examples":["API"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Heading the component is listed under."},"position":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"monitor_id":{"anyOf":[{"$ref":"#/components/schemas/_maple_UptimeMonitorId"},{"type":"null"}],"description":"The uptime monitor driving its status and uptime bars, or `null`."},"manual_status":{"anyOf":[{"$ref":"#/components/schemas/_maple_StatusPageComponentStatus"},{"type":"null"}]},"show_uptime":{"type":"boolean","description":"Whether the page shows its 90 days of uptime bars."},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","object","page_id","name","description","group","position","monitor_id","manual_status","show_uptime","created_at","updated_at"],"additionalProperties":false,"title":"Status Page Component","description":"One line on a status page. Its status is the worst of its monitor, the manual override, and active incidents naming it.","examples":[{"id":"stc_YofPTrK9782DWwcnXhpcCw","object":"status_page_component","page_id":"stp_YofPTrK9782DWwcnXhpcCw","name":"API","description":null,"group":null,"position":0,"monitor_id":"upm_YofPTrK9782DWwcnXhpcCw","manual_status":null,"show_uptime":true,"created_at":"2026-07-01T12:00:00.000Z","updated_at":"2026-07-01T12:00:00.000Z"}]},"_maple_StatusPageComponentStatus":{"type":"string","enum":["operational","maintenance","degraded","partial_outage","major_outage"],"title":"Status Page Component Status","description":"A manual status override: `operational`, `maintenance`, `degraded`, `partial_outage` or `major_outage`."},"_maple_UptimeMonitorId":{"type":"string","title":"Public ID","description":"Opaque, prefixed public object ID (e.g. `upm_YofPTrK9782DWwcnXhpcCw`). A reversible base58 encoding of the internal ID â treat it as an opaque string.","format":"maple.public_id","examples":["upm_YofPTrK9782DWwcnXhpcCw"]},"StatusPageComponentUpdateParams":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"anyOf":[{"type":"string"},{"type":"null"}]},"monitor_id":{"anyOf":[{"$ref":"#/components/schemas/_maple_UptimeMonitorId"},{"type":"null"}]},"manual_status":{"anyOf":[{"$ref":"#/components/schemas/_maple_StatusPageComponentStatus"},{"type":"null"}]},"show_uptime":{"type":"boolean"}},"additionalProperties":false,"title":"Status page component update parameters","description":"Request body for updating a component. Omitted fields are left unchanged.","examples":[{"manual_status":"degraded"}]},"StatusPageComponentList":{"type":"object","properties":{"object":{"type":"string","enum":["list"],"description":"Always `\"list\"` for a list response.","examples":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/StatusPageComponent"},"description":"The page of objects, in the ordering documented by the endpoint."},"has_more":{"type":"boolean","description":"Whether more objects exist after this page. When `true`, use `next_cursor` to fetch them.","examples":[true]},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for the next page, or `null` on the last page. Pass it back as the `cursor` query param.","examples":["off_1k"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false,"title":"Status page component list","description":"A page's components in display order."},"StatusPageComponentReorderParams":{"type":"object","properties":{"component_ids":{"type":"array","items":{"$ref":"#/components/schemas/_maple_StatusPageComponentId_1"},"description":"Every component of the page exactly once, in the new order."}},"required":["component_ids"],"additionalProperties":false,"title":"Status page component reorder parameters","description":"The page's components in their new order.","examples":[{"component_ids":["stc_YofPTrK9782DWwcnXhpcCw"]}]},"StatusPageComponentCreateParams":{"type":"object","properties":{"name":{"type":"string","minLength":1,"examples":["API"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"anyOf":[{"type":"string"},{"type":"null"}]},"monitor_id":{"anyOf":[{"$ref":"#/components/schemas/_maple_UptimeMonitorId"},{"type":"null"}]},"manual_status":{"anyOf":[{"$ref":"#/components/schemas/_maple_StatusPageComponentStatus"},{"type":"null"}]},"show_uptime":{"type":"boolean"}},"required":["name"],"additionalProperties":false,"title":"Status page component create parameters","description":"Request body for adding a component; it is appended after the existing ones.","examples":[{"name":"API","monitor_id":"upm_YofPTrK9782DWwcnXhpcCw"}]},"StatusPageConflictError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/StatusPageConflictError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["conflict_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["status_page_conflict"]},"title":{"type":"string","enum":["Status page changed"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["fix_request"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Status page changed","description":"The @maple/http/errors/StatusPageConflictError failure. HTTP 409."},"StatusPageSlugTakenError":{"type":"object","properties":{"error":{"type":"object","properties":{"_tag":{"type":"string","enum":["@maple/http/errors/StatusPageSlugTakenError"],"description":"Stable semantic error tag. Branch on this exact value."},"type":{"type":"string","enum":["conflict_error"],"description":"Broad error category shared by related semantic tags."},"code":{"type":"string","enum":["status_page_slug_taken"]},"title":{"type":"string","enum":["Status page address is taken"]},"message":{"type":"string","description":"Human-readable explanation for people, not programmatic branching."},"retryable":{"type":"boolean","enum":[false]},"recovery":{"type":"string","enum":["fix_request"]},"retry_after_seconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0,"description":"Minimum delay before retrying, mirrored in the Retry-After header."},"retry_at":{"type":"string"},"param":{"type":"string","description":"Request parameter associated with the failure."},"details":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"boolean"}]},"description":"Safe, failure-specific values, such as an upstream provider's HTTP status."}},"required":["_tag","type","code","title","message","retryable","recovery"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"title":"Status page address is taken","description":"The @maple/http/errors/StatusPageSlugTakenError failure. HTTP 409."},"StatusPageConfig":{"type":"object","properties":{"version":{"type":"string","description":"A tag of this document's content as read. Read-only: an apply ignores it; send it back as `if_version` to refuse the apply if the config changed since.","examples":["3k9x2m1q7z"]},"name":{"type":"string","minLength":1,"description":"Page title.","examples":["Acme Status"]},"slug":{"type":"string","description":"The page's address, `/s/