You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d4c8b02
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+8-15Lines changed: 8 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -39893,6 +39893,7 @@ components:
39893
39893
type: 'string'
39894
39894
type: 'object'
39895
39895
Workspace:
39896
+
description: 'Workspace metadata. Configuration fields are omitted without permission to view workspace settings.'
39896
39897
example:
39897
39898
created_at: '2025-08-24T10:30:00Z'
39898
39899
created_by: 'user_abc123'
@@ -39966,11 +39967,11 @@ components:
39966
39967
format: 'uuid'
39967
39968
type: 'string'
39968
39969
include_byok_in_budgets:
39969
-
description: 'Whether BYOK (bring-your-own-key) spend counts toward this workspace''s budgets. Set it via the workspace budget endpoints.'
39970
+
description: 'Whether BYOK (bring-your-own-key) spend counts toward this workspace''s budgets. Omitted without settings and budget visibility. Set it via the workspace budget endpoints.'
39970
39971
example: false
39971
39972
type: 'boolean'
39972
39973
io_logging_api_key_ids:
39973
-
description: 'Optional array of API key IDs to filter I/O logging. Null means all keys are logged.'
39974
+
description: 'API key IDs used to filter I/O logging. Null means all keys are logged. Omitted without access to workspace settings and API key identifiers.'
39974
39975
example: null
39975
39976
items:
39976
39977
type: 'integer'
@@ -40014,14 +40015,6 @@ components:
40014
40015
- 'name'
40015
40016
- 'slug'
40016
40017
- 'description'
40017
-
- 'default_text_model'
40018
-
- 'default_image_model'
40019
-
- 'default_provider_sort'
40020
-
- 'is_observability_io_logging_enabled'
40021
-
- 'is_observability_broadcast_enabled'
40022
-
- 'is_data_discount_logging_enabled'
40023
-
- 'io_logging_sampling_rate'
40024
-
- 'io_logging_api_key_ids'
40025
40018
- 'created_at'
40026
40019
- 'updated_at'
40027
40020
- 'created_by'
@@ -40196,7 +40189,7 @@ openapi: '3.1.0'
40196
40189
paths:
40197
40190
/activity:
40198
40191
get:
40199
-
description: 'Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
40192
+
description: 'Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys. `user_id` also requires `workspace_members:view` on an explicit non-default workspace; organization and default-workspace member filtering requires `org_members:view`, which is not available as a Custom grant. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
40200
40193
operationId: 'getUserActivity'
40201
40194
parameters:
40202
40195
- description: 'Filter by a single UTC date in the last 30 days (YYYY-MM-DD format).'
@@ -40318,7 +40311,7 @@ paths:
40318
40311
x-speakeasy-max-method-params: 5
40319
40312
/analytics/meta:
40320
40313
get:
40321
-
description: 'Returns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. Workspace-scoped management keys are accepted. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
40314
+
description: 'Returns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. Custom access requires an organization-scoped key with `analytics:view`. Workspace-scoped keys with base Read Only or Read Write access are also accepted. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
40322
40315
operationId: 'getAnalyticsMeta'
40323
40316
responses:
40324
40317
'200':
@@ -40462,7 +40455,7 @@ paths:
40462
40455
- 'Analytics'
40463
40456
/analytics/query:
40464
40457
post:
40465
-
description: 'Execute an analytics query with specified metrics, dimensions, filters, and time range. A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: it is refused a `workspace` filter naming another workspace, it excludes legacy rows with no workspace (including for the default workspace), and possible-cache metrics such as `possible_cached_tokens` return 400. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
40458
+
description: 'Execute an analytics query with specified metrics, dimensions, filters, and time range. Custom access requires an organization-scoped key with `analytics:view`; grouping or filtering by `api_key_id` or `api_key_tag` also requires `api_keys:view_all`, and by `user` requires `org_members:view`. Key hash filters resolve only non-deleted ordinary keys. Workspace-scoped keys with base Read Only or Read Write access can query only their own workspace: a `workspace` filter naming another workspace is refused, legacy rows with no workspace are excluded (including for the default workspace), and possible-cache metrics such as `possible_cached_tokens` return 400. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
40466
40459
operationId: 'queryAnalytics'
40467
40460
requestBody:
40468
40461
content:
@@ -54291,7 +54284,7 @@ paths:
54291
54284
results: '$.data'
54292
54285
type: 'offsetLimit'
54293
54286
post:
54294
-
description: 'Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity''s default workspace, or a workspace-scoped management key''s own workspace; use the `workspace_id` body field to scope to a different workspace. A workspace-scoped management key can only create in its own workspace; any other `workspace_id` returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
54287
+
description: 'Create a new observability destination. A maximum of 5 enabled destinations per workspace, across all types, is allowed; disabled destinations do not count. A workspace already above the cap keeps its enabled destinations but cannot create or enable more until fewer than 5 are enabled. Defaults to the authenticated entity''s default workspace, or a workspace-scoped management key''s own workspace; use the `workspace_id` body field to scope to a different workspace. A workspace-scoped management key can only create in its own workspace; any other `workspace_id` returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
54295
54288
operationId: 'createObservabilityDestination'
54296
54289
requestBody:
54297
54290
content:
@@ -54545,7 +54538,7 @@ paths:
54545
54538
- 'Observability'
54546
54539
x-speakeasy-name-override: 'get'
54547
54540
patch:
54548
-
description: 'Update an existing observability destination. Only the fields provided in the request body are updated. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
54541
+
description: 'Update an existing observability destination. Only the fields provided in the request body are updated. Enabling a disabled destination returns 400 while the workspace already has 5 enabled destinations. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
0 commit comments