From fb51458c28b3438dae34b4ed032c4a317afea7a6 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 16:09:33 +0000 Subject: [PATCH] docs: sync openapi.yaml with workspace members endpoint --- openapi/openapi.yaml | 129 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 46d391a..abc9f83 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -10924,6 +10924,29 @@ components: required: - data type: object + ListWorkspaceMembersResponse: + example: + data: + - created_at: '2025-08-24T10:30:00Z' + id: 660e8400-e29b-41d4-a716-446655440000 + role: member + user_id: user_abc123 + workspace_id: 550e8400-e29b-41d4-a716-446655440000 + total_count: 1 + properties: + data: + description: List of workspace members + items: + $ref: '#/components/schemas/WorkspaceMember' + type: array + total_count: + description: Total number of members in the workspace + example: 5 + type: integer + required: + - data + - total_count + type: object ListWorkspacesResponse: example: data: @@ -33983,6 +34006,112 @@ paths: tags: - Workspaces x-speakeasy-name-override: setBudget + /workspaces/{id}/members: + get: + description: >- + List all members of a workspace. Returns paginated results. For the default workspace, returns all organization + members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required. + operationId: listWorkspaceMembers + parameters: + - description: The workspace ID (UUID) or slug + in: path + name: id + required: true + schema: + description: The workspace ID (UUID) or slug + example: production + minLength: 1 + type: string + - description: Number of records to skip for pagination + in: query + name: offset + required: false + schema: + description: Number of records to skip for pagination + example: 0 + minimum: 0 + nullable: true + type: integer + - description: Maximum number of records to return (max 100) + in: query + name: limit + required: false + schema: + description: Maximum number of records to return (max 100) + example: 50 + maximum: 100 + minimum: 1 + type: integer + responses: + '200': + content: + application/json: + example: + data: + - created_at: '2025-08-24T10:30:00Z' + id: 660e8400-e29b-41d4-a716-446655440000 + role: member + user_id: user_abc123 + workspace_id: 550e8400-e29b-41d4-a716-446655440000 + total_count: 1 + schema: + $ref: '#/components/schemas/ListWorkspaceMembersResponse' + description: List of workspace members + '401': + content: + application/json: + example: + error: + code: 401 + message: Missing Authentication header + schema: + $ref: '#/components/schemas/UnauthorizedResponse' + description: Unauthorized - Authentication required or invalid credentials + '403': + content: + application/json: + example: + error: + code: 403 + message: Only management keys can perform this operation + schema: + $ref: '#/components/schemas/ForbiddenResponse' + description: Forbidden - Authentication successful but insufficient permissions + '404': + content: + application/json: + example: + error: + code: 404 + message: Resource not found + schema: + $ref: '#/components/schemas/NotFoundResponse' + description: Not Found - Resource does not exist + '500': + content: + application/json: + example: + error: + code: 500 + message: Internal Server Error + schema: + $ref: '#/components/schemas/InternalServerResponse' + description: Internal Server Error - Unexpected server error + summary: List workspace members + tags: + - Workspaces + x-speakeasy-name-override: listMembers + x-speakeasy-pagination: + inputs: + - in: parameters + name: offset + type: offset + - in: parameters + name: limit + type: limit + outputs: + results: $.data + type: offsetLimit /workspaces/{id}/members/add: post: description: >-