REST API

REST API endpoint reference for Stitch Workspace operations.

The v2alpha REST API powers Stitch Workspace management, codebase priorities, insights, and solutions.

Calling endpoints via stitch api <path> requires workspace features to be enabled once with stitch enable loop.

Calling the API from the CLI

stitch api workspaces
stitch api workspaces/<workspace-id>/goals
stitch api -X POST workspaces/<workspace-id>/insights:generate --json '{}'

Endpoints

MethodEndpoint
POSTclientNotices:fetch
POSTcontexts:parseMcpJson
POSTfeedback:submit
POSTworkspaces/{workspace}/files
GETorganizations/{organization}
GETorganizations
POSTtos:accept
GETtos:check
GETusers/{user}/preferences
PATCHusers/{user}/preferences
POSTusers/{user}/tos:accept
GETusers/{user}/tos:check
POSTv2alpha:completeOAuth
POSTworkspaces/{workspace}:addRepository
POSTworkspaces/{workspace}:addUser
POSTworkspaces
POSTworkspaces/{workspace}:createToolkitConnectLink
DELETEworkspaces/{workspace}
GETworkspaces/{workspace}
GETworkspaces/{workspace}/marketRadarCheckpoint
GETworkspaces/{workspace}/userNotificationSettings
GETworkspaces/{workspace}/workspaceNotificationSettings
GETworkspaces
PATCHworkspaces/{workspace}
POSTworkspaces/{workspace}:removeRepository
POSTworkspaces/{workspace}:removeUser
PATCHworkspaces/{workspace}/userNotificationSettings
PATCHworkspaces/{workspace}/workspaceNotificationSettings
DELETEworkspaces/{workspace}/assessments/{assessment}
POSTworkspaces/{workspace}/assessments:generate
GETworkspaces/{workspace}/assessments/{assessment}
GETworkspaces/{workspace}/assessments
PATCHworkspaces/{workspace}/assessments/{assessment}
POSTworkspaces/{workspace}/contexts
DELETEworkspaces/{workspace}/contexts/{context}
GETworkspaces/{workspace}/contexts/{context}
POSTworkspaces/{workspace}/contexts:initiateOAuth
GETworkspaces/{workspace}/contexts
PATCHworkspaces/{workspace}/contexts/{context}
GETworkspaces/{workspace}/contexts:search
GETworkspaces/{workspace}/eventDeliveries/{eventDeliverie}
GETworkspaces/{workspace}/eventDeliveries
GETworkspaces/{workspace}/events
POSTworkspaces/{workspace}/events/{event}:replay
GETworkspaces/{workspace}/feedback:batchGet
POSTworkspaces/{workspace}/fileSystemEntries
DELETEworkspaces/{workspace}/fileSystemEntries/{fileSystemEntrie}
GETworkspaces/{workspace}/fileSystemEntries/{fileSystemEntrie}
GETworkspaces/{workspace}/fileSystemEntries
PATCHworkspaces/{workspace}/fileSystemEntries/{fileSystemEntrie}
DELETEworkspaces/{workspace}/files/{file}
GETworkspaces/{workspace}/files/{file}
GETworkspaces/{workspace}/files
GETworkspaces/{workspace}/goalTemplates
POSTworkspaces/{workspace}/goals
DELETEworkspaces/{workspace}/goals/{goal}
GETworkspaces/{workspace}/goals/{goal}
GETworkspaces/{workspace}/goals/{goal}/insightGeneration
GETworkspaces/{workspace}/goals
PATCHworkspaces/{workspace}/goals/{goal}
POSTworkspaces/{workspace}/goals/suggest
GETworkspaces/{workspace}/goals/{goal}/insightGeneration:queryStatusUpdates
GETworkspaces/{workspace}/insights:batchGet
POSTworkspaces/{workspace}/insights/{insight}:dismiss
POSTworkspaces/{workspace}/insights/generate
GETworkspaces/{workspace}/insights/{insight}
GETworkspaces/{workspace}/insights/{insight}/investigationReport
GETworkspaces/{workspace}/insights/summary
GETworkspaces/{workspace}/insights
POSTworkspaces/{workspace}/insights/{insight}/setReadStatus
POSTworkspaces/{workspace}/insights/{insight}:undismiss
POSTworkspaces/{workspace}/insights/{insight}/feedback
DELETEworkspaces/{workspace}/insights/{insight}/feedback/{feedback}
GETworkspaces/{workspace}/insights/{insight}/feedback/{feedback}
GETworkspaces/{workspace}/insights/{insight}/feedback
PATCHworkspaces/{workspace}/insights/{insight}/feedback/{feedback}
GETworkspaces/{workspace}/insights/{insight}/insightUpdates/{insightUpdate}/investigationReport
GETworkspaces/{workspace}/insights/{insight}/insightUpdates
POSTworkspaces/{workspace}/marketRadarCheckpoint/generate
POSTworkspaces/{workspace}/productMd:generate
GETworkspaces/{workspace}/productMd:getStatus
POSTworkspaces/{workspace}/skills
DELETEworkspaces/{workspace}/skills/{skill}
GETworkspaces/{workspace}/skills
PATCHworkspaces/{workspace}/skills/{skill}
DELETEworkspaces/{workspace}/toolProviders/{toolProvider}
DELETEworkspaces/{workspace}/toolProviders/{toolProvider}:deleteAuth
GETworkspaces/{workspace}/toolProviders
POSTworkspaces/{workspace}/toolProviders:upsert
POSTworkspaces/{workspace}/toolProviders/{toolProvider}:upsertAuth
GETworkspaces/{workspace}/users
POSTworkspaces/{workspace}/webhookConfigs
DELETEworkspaces/{workspace}/webhookConfigs/{webhookConfig}
GETworkspaces/{workspace}/webhookConfigs/{webhookConfig}
GETworkspaces/{workspace}/webhookConfigs
PATCHworkspaces/{workspace}/webhookConfigs/{webhookConfig}
PATCHworkspaces/{workspace}/webhookConfigs/{webhookConfig}/verify
GETworkspaces/{workspace}/webhookEvents/{webhookEvent}
GETworkspaces/{workspace}/webhookEvents
POSTworkspaces/{workspace}/webhookEvents/{webhookEvent}:send

clientNotices.fetch

Fetches dynamic notices, alert banners, outage notices, and disclaimers for the client.

stitch api -X POST clientNotices:fetch

contexts.parseMcpJson

Parses MCP JSON configuration into normalized tool provider configs.

stitch api -X POST contexts:parseMcpJson

feedback.submit

Submits product feedback (e.g. from Stitch CLI).

stitch api -X POST feedback:submit

media.upload

Creates a File.

stitch api -X POST workspaces/{workspace}/files

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace to create the file metadata in. Format: workspaces/{workspace}.

organizations.get

Gets a single organization by resource name.

stitch api organizations/{organization}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the organization to retrieve. Format: organizations/{organization}

organizations.list

Lists organizations.

stitch api organizations

Parameters

NameInTypeDescription
filterquerystringOptional. A CEL filter expression to filter organizations.
pageSizequeryintegerOptional. The maximum number of organizations to return.
pageTokenquerystringOptional. A page token received from a previous ListOrganizations call.

tos.accept

Records that the authenticated user has accepted the specified ToS version.

stitch api -X POST tos:accept

tos.check

Checks whether the authenticated user has accepted the specified ToS version.

stitch api tos:check

Parameters

NameInTypeDescription
userquerystringOptional. Optional resource name of the user. Defaults to the authenticated user (“users/me”).
versionquerystringOptional. Optional version of the ToS to check (e.g. "2026-03-18"). If omitted, the server checks against the active ToS version configured on the backend.

users.getPreferences

Gets preferences for the user.

stitch api users/{user}/preferences

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the user preferences to retrieve. Format: users/{user}/preferences or users/me/preferences

users.updatePreferences

Updates preferences for the user.

stitch api -X PATCH users/{user}/preferences

Parameters

NameInTypeDescription
name (required)pathstringIdentifier. Resource name of the user preferences. Format: users/{user}/preferences or users/me/preferences
updateMaskquerystringOptional. The list of fields to update. If empty or contains ”*”, all mutable fields are updated.

users.tos.accept

Records that the authenticated user has accepted the specified ToS version.

stitch api -X POST users/{user}/tos:accept

Parameters

NameInTypeDescription
user (required)pathstringOptional. Optional resource name of the user. Defaults to the authenticated user (“users/me”).

users.tos.check

Checks whether the authenticated user has accepted the specified ToS version.

stitch api users/{user}/tos:check

Parameters

NameInTypeDescription
user (required)pathstringOptional. Optional resource name of the user. Defaults to the authenticated user (“users/me”).
versionquerystringOptional. Optional version of the ToS to check (e.g. "2026-03-18"). If omitted, the server checks against the active ToS version configured on the backend.

completeOAuth

Completes the OAuth 2.0 flow by exchanging the authorization code for tokens and securely storing them. This is a stateless custom method (AIP-136) as the workspace and provider identities are securely encapsulated within and resolved from the state_token rather than a resource path or parent collection.

stitch api -X POST v2alpha:completeOAuth

workspaces.addRepository

Adds a repository to a workspace.

stitch api -X POST workspaces/{workspace}:addRepository

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the workspace to add the repository to. Format: workspaces/{workspace}

workspaces.addUser

Adds a user to a workspace.

stitch api -X POST workspaces/{workspace}:addUser

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the workspace to add the user to. Format: workspaces/{workspace}

workspaces.create

Creates a new workspace.

stitch api -X POST workspaces

Creates a connect link for authenticating a toolkit in the workspace.

stitch api -X POST workspaces/{workspace}:createToolkitConnectLink

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace to create the toolkit connect link for. Format: workspaces/{workspace}.

workspaces.delete

Deletes a workspace by resource name.

stitch api -X DELETE workspaces/{workspace}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the workspace to delete. Format: workspaces/{workspace}

workspaces.get

Gets a single workspace by resource name.

stitch api workspaces/{workspace}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the workspace to retrieve. Format: workspaces/{workspace}

workspaces.getMarketRadarCheckpoint

Gets competitive market analysis details checkpoint.

stitch api workspaces/{workspace}/marketRadarCheckpoint

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the market radar checkpoint. Format: workspaces/{workspace}/marketRadarCheckpoint

workspaces.getUserNotificationSettings

Gets the calling user’s notification settings for a workspace.

stitch api workspaces/{workspace}/userNotificationSettings

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the user notification settings. Format: workspaces/{workspace}/userNotificationSettings

workspaces.getWorkspaceNotificationSettings

Gets workspace-level notification settings.

stitch api workspaces/{workspace}/workspaceNotificationSettings

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the workspace notification settings. Format: workspaces/{workspace}/workspaceNotificationSettings

workspaces.list

Lists workspaces.

stitch api workspaces

Parameters

NameInTypeDescription
filterquerystringOptional. A CEL filter expression to filter workspaces.
pageSizequeryintegerOptional. The maximum number of workspaces to return.
pageTokenquerystringOptional. A page token received from a previous ListWorkspaces call.

workspaces.patch

Updates an existing workspace.

stitch api -X PATCH workspaces/{workspace}

Parameters

NameInTypeDescription
name (required)pathstringIdentifier. Resource name. Format: workspaces/{workspace}
updateMaskquerystringOptional. The list of fields to update.

workspaces.removeRepository

Removes a repository from a workspace.

stitch api -X POST workspaces/{workspace}:removeRepository

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the workspace to remove the repository from. Format: workspaces/{workspace}

workspaces.removeUser

Removes a user from a workspace.

stitch api -X POST workspaces/{workspace}:removeUser

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the workspace to remove the user from. Format: workspaces/{workspace}

workspaces.updateUserNotificationSettings

Updates the calling user’s notification settings for a workspace.

stitch api -X PATCH workspaces/{workspace}/userNotificationSettings

Parameters

NameInTypeDescription
name (required)pathstringIdentifier. Resource name. Format: workspaces/{workspace}/userNotificationSettings
updateMaskquerystringOptional. The list of fields to update.

workspaces.updateWorkspaceNotificationSettings

Updates workspace-level notification settings.

stitch api -X PATCH workspaces/{workspace}/workspaceNotificationSettings

Parameters

NameInTypeDescription
name (required)pathstringIdentifier. Resource name. Format: workspaces/{workspace}/workspaceNotificationSettings
updateMaskquerystringOptional. The list of fields to update.

workspaces.assessments.delete

Deletes an assessment by name.

stitch api -X DELETE workspaces/{workspace}/assessments/{assessment}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the assessment to delete. Format: workspaces/{workspace}/assessments/{assessment}

workspaces.assessments.generate

Generates assessments for a list of insights.

stitch api -X POST workspaces/{workspace}/assessments:generate

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace. Format: workspaces/{workspace}

workspaces.assessments.get

Gets a single assessment by name.

stitch api workspaces/{workspace}/assessments/{assessment}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the assessment to get. Format: workspaces/{workspace}/assessments/{assessment}

workspaces.assessments.list

Lists assessments in a workspace.

stitch api workspaces/{workspace}/assessments

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression to filter assessments. Supported fields: insights. E.g. insights:"workspaces/123/insights/456"
pageSizequeryintegerOptional. The maximum number of assessments to return. The service may return fewer than this value. If unspecified, at most 20 assessments will be returned. The maximum value is 100; values above 100 will be coerced to 100.
pageTokenquerystringOptional. A page token, received from a previous ListAssessments call. Provide this to retrieve the subsequent page.
parent (required)pathstringRequired. The parent workspace to list assessments for. Format: workspaces/{workspace}

workspaces.assessments.patch

Updates an assessment.

stitch api -X PATCH workspaces/{workspace}/assessments/{assessment}

Parameters

NameInTypeDescription
name (required)pathstringIdentifier. The full resource name of the assessment. Format: workspaces/{workspace}/assessments/{assessment}
updateMaskquerystringOptional. Mask specifying which fields to update.

workspaces.contexts.create

Ingests a new context into the workspace.

stitch api -X POST workspaces/{workspace}/contexts

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace to create the context in. Format: workspaces/{workspace}.

workspaces.contexts.delete

Deletes a context in the workspace.

stitch api -X DELETE workspaces/{workspace}/contexts/{context}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the context to delete. Format: workspaces/{workspace}/contexts/{context}.

workspaces.contexts.get

Gets a context by id.

stitch api workspaces/{workspace}/contexts/{context}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the context to retrieve. Format: workspaces/{workspace}/contexts/{context}.

workspaces.contexts.initiateOAuth

Initiates the OAuth 2.0 flow for a tool provider. Returns the authorization URL the caller should redirect the user to.

stitch api -X POST workspaces/{workspace}/contexts:initiateOAuth

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace to initiate OAuth for. Format: workspaces/{workspace}.

workspaces.contexts.list

Lists the contexts in the workspace.

stitch api workspaces/{workspace}/contexts

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression to narrow the returned contexts. Supported filterable fields: - data_source: equality match on the context’s data source. Example: data_source = "user_feedback" - annotations.: equality match on an annotation value. Example: annotations.env = "prod" - description: substring match using the HAS (:) operator. Example: description : "error" - data: substring match using the HAS (:) operator. Example: data : "exception" - create_time: inequality match (<=, <, >=, >) using RFC 3339 timestamps. Example: create_time >= "2024-01-01T00:00:00Z" Only compound expressions using AND are supported: data_source = "notes" AND description : "bug" Returns INVALID_ARGUMENT for malformed or unsupported filters.
orderByquerystringOptional. Sort order of the returned contexts.
pageSizequeryintegerOptional. The maximum number of contexts to return. The service may return fewer than this value. If unspecified, at most 50 contexts will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
pageTokenquerystringOptional. A page token, received from a previous ListContexts call. Provide this to retrieve the subsequent page.
parent (required)pathstringRequired. The workspace to list contexts for. Format: workspaces/{workspace}.

workspaces.contexts.patch

Updates an existing context in the workspace.

stitch api -X PATCH workspaces/{workspace}/contexts/{context}

Parameters

NameInTypeDescription
name (required)pathstringOutput only. Identifier. The full resource name of the context. Format: workspaces/{workspace}/contexts/{context}
updateMaskquerystringOptional. The list of fields to update.

Searches contexts by semantic similarity using vector embeddings.

stitch api workspaces/{workspace}/contexts:search

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression to narrow the returned contexts. Follows https://google.aip.dev/160 Supported filterable fields: - data_source: equality match on the context’s data source. Example: data_source = "user_feedback" - annotations.: equality match on an annotation value. Example: annotations.env = "prod" - description: substring match using the HAS (:) operator. Example: description : "error" - data: substring match using the HAS (:) operator. Example: data : "exception" - create_time: inequality match (<=, <, >=, >) using RFC 3339 timestamps. Example: create_time >= "2024-01-01T00:00:00Z"
maxResultsqueryintegerOptional. Deprecated: Use page_size instead.
pageSizequeryintegerOptional. The maximum number of search results to return. If unspecified, at most 10 results will be returned. The maximum value is 100; values above 100 will be coerced to 100.
pageTokenquerystringOptional. A page token, received from a previous SearchContexts call. Provide this to retrieve the subsequent page.
parent (required)pathstringRequired. The parent workspace to search contexts in. Format: workspaces/{workspace}.
queryquerystringRequired. Natural language search query.
readMaskquerystringOptional. Optional. Mask specifying which fields of Context to return.

workspaces.eventDeliveries.get

Gets a single event delivery by resource name.

stitch api workspaces/{workspace}/eventDeliveries/{eventDeliverie}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the event delivery. Format: workspaces/{workspace}/eventDeliveries/{event_delivery}

workspaces.eventDeliveries.list

Lists event deliveries for a workspace.

stitch api workspaces/{workspace}/eventDeliveries

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression for status and/or event_type.
pageSizequeryintegerOptional. The maximum number of delivery events to return.
pageTokenquerystringOptional. The optional token to use for pagination.
parent (required)pathstringRequired. The workspace to list event deliveries for. Format: workspaces/{workspace}

workspaces.events.list

Lists notification events for a workspace.

stitch api workspaces/{workspace}/events

Parameters

NameInTypeDescription
pageSizequeryintegerOptional. The maximum number of events to return.
pageTokenquerystringOptional. The token to use for pagination.
parent (required)pathstringRequired. The workspace to list events for. Format: workspaces/{workspace}

workspaces.events.replay

Replays a notification event to one or more subscribers.

stitch api -X POST workspaces/{workspace}/events/{event}:replay

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the event to replay. Format: workspaces/{workspace}/events/{event}

workspaces.feedback.batchGet

Batch retrieves feedback items across multiple insights.

stitch api workspaces/{workspace}/feedback:batchGet

Parameters

NameInTypeDescription
namesquerystringRequired. The resource names of the insights to retrieve feedback for. Format: workspaces/{workspace}/insights/{insight}
parent (required)pathstringRequired. The parent workspace containing the insights. Format: workspaces/{workspace}

workspaces.fileSystemEntries.create

Creates a file system entry at the given path.

stitch api -X POST workspaces/{workspace}/fileSystemEntries

Parameters

NameInTypeDescription
fileSystemEntryIdquerystringOptional. The ID to use for the file system entry, which will become the final component of the file system entry’s resource name.
parent (required)pathstringRequired. The parent workspace to create the entry in. Format: workspaces/{workspace}.

workspaces.fileSystemEntries.delete

Deletes a file system entry at the given path.

stitch api -X DELETE workspaces/{workspace}/fileSystemEntries/{fileSystemEntrie}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The name of the file system entry to delete. Format: workspaces/{workspace}/fileSystemEntries/{file_system_entry}

workspaces.fileSystemEntries.get

Gets a file system entry by path.

stitch api workspaces/{workspace}/fileSystemEntries/{fileSystemEntrie}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The name of the file system entry to retrieve. Format: workspaces/{workspace}/fileSystemEntries/{file_system_entry}

workspaces.fileSystemEntries.list

Lists file system entries in a workspace.

stitch api workspaces/{workspace}/fileSystemEntries

Parameters

NameInTypeDescription
filterquerystringOptional. Standard filter string.
pageSizequeryintegerOptional. The maximum number of entries to return.
pageTokenquerystringOptional. The page token to use for pagination.
parent (required)pathstringRequired. The parent workspace to list entries for. Format: workspaces/{workspace}.

workspaces.fileSystemEntries.patch

Updates a file system entry at the given path.

stitch api -X PATCH workspaces/{workspace}/fileSystemEntries/{fileSystemEntrie}

Parameters

NameInTypeDescription
name (required)pathstringIdentifier. The resource name of the file system entry. Format: workspaces/{workspace}/fileSystemEntries/{file_system_entry} The {file_system_entry} segment is the user-specified relative path.
updateMaskquerystringOptional. The list of fields to update.

workspaces.files.delete

Deletes a file from the workspace.

stitch api -X DELETE workspaces/{workspace}/files/{file}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the file to delete. Format: workspaces/{workspace}/files/{file}.

workspaces.files.get

Gets a file by id.

stitch api workspaces/{workspace}/files/{file}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the file to retrieve. Format: workspaces/{workspace}/files/{file}.

workspaces.files.list

Lists the files in the workspace.

stitch api workspaces/{workspace}/files

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression to narrow the returned files. Follows https://google.aip.dev/160 Supported filterable fields: - annotations.: equality match on an annotation value stored in the FileAnnotations table. Only the = (EQUALS) comparator is supported. Example: annotations.env = "prod" Only compound expressions using AND are supported: annotations.env = "prod" AND annotations.team = "ai" Filtering on any other field (e.g. display_name) is not supported and returns INVALID_ARGUMENT. Returns INVALID_ARGUMENT for malformed or unsupported filters.
orderByquerystringOptional. Sort order of the returned files.
pageSizequeryintegerOptional. The maximum number of files to return.
pageTokenquerystringOptional. A page token, received from a previous ListFiles call.
parent (required)pathstringRequired. The workspace to list files for. Format: workspaces/{workspace}.

workspaces.goalTemplates.list

Lists available starter goal templates for a workspace.

stitch api workspaces/{workspace}/goalTemplates

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression to filter goal templates. Follows https://google.aip.dev/160
pageSizequeryintegerOptional. The maximum number of goal templates to return. The service may return fewer than this value. If unspecified, at most 20 templates will be returned. The maximum value is 100; values above 100 will be coerced to 100.
pageTokenquerystringOptional. A page token, received from a previous ListGoalTemplates call. Provide this to retrieve the subsequent page.
parent (required)pathstringRequired. The parent workspace where goals will be created. Format: workspaces/{workspace}
readMaskquerystringOptional. Optional. Mask specifying which fields to read.

workspaces.goals.create

Creates a new goal in the specified workspace.

stitch api -X POST workspaces/{workspace}/goals

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace to create the goal in. Format: workspaces/{workspace}

workspaces.goals.delete

Deletes a goal.

stitch api -X DELETE workspaces/{workspace}/goals/{goal}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the goal to delete. Format: workspaces/{workspace}/goals/{goal}

workspaces.goals.get

Gets a single goal by resource name.

stitch api workspaces/{workspace}/goals/{goal}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the goal to retrieve. Format: workspaces/{workspace}/goals/{goal}
readMaskquerystringOptional. Optional. Mask specifying which fields to read.

workspaces.goals.getInsightGeneration

Retrieves the status and state of the latest insight generation run.

stitch api workspaces/{workspace}/goals/{goal}/insightGeneration

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the insight generation status. Format: workspaces/{workspace}/goals/{goal}/insightGeneration.

workspaces.goals.list

Lists goals in a workspace.

stitch api workspaces/{workspace}/goals

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression to filter goals.
pageSizequeryintegerOptional. The maximum number of goals to return. The service may return fewer than this value. If unspecified, at most 20 goals will be returned. The maximum value is 100; values above 100 will be coerced to 100.
pageTokenquerystringOptional. A page token, received from a previous ListGoals call. Provide this to retrieve the subsequent page.
parent (required)pathstringRequired. The parent workspace to list goals for. Format: workspaces/{workspace}
readMaskquerystringOptional. Optional. Mask specifying which fields to read.

workspaces.goals.patch

Updates an existing goal.

stitch api -X PATCH workspaces/{workspace}/goals/{goal}

Parameters

NameInTypeDescription
name (required)pathstringIdentifier. The full resource name of the goal. Format: workspaces/{workspace}/goals/{goal}
updateMaskquerystringOptional. The list of fields to update.

workspaces.goals.suggest

Suggests goals for a workspace.

stitch api -X POST workspaces/{workspace}/goals/suggest

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace where goals will be suggested. Format: workspaces/{workspace}

workspaces.goals.insightGeneration.queryStatusUpdates

Queries intermediate status updates emitted during an insight generation run.

stitch api workspaces/{workspace}/goals/{goal}/insightGeneration:queryStatusUpdates

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the insight generation status. Format: workspaces/{workspace}/goals/{goal}/insightGeneration.
pageSizequeryintegerOptional. The maximum number of status updates to return.
pageTokenquerystringOptional. A page token received from a previous call to fetch only newly emitted updates.

workspaces.insights.batchGet

Gets multiple insights by name.

stitch api workspaces/{workspace}/insights:batchGet

Parameters

NameInTypeDescription
namesquerystringRequired. The names of the insights to retrieve. A maximum of 100 insights can be retrieved in a batch. Format: workspaces/{workspace}/insights/{insight}
parent (required)pathstringRequired. The parent workspace containing the insights. Format: workspaces/{workspace}

workspaces.insights.dismiss

Dismisses an insight.

stitch api -X POST workspaces/{workspace}/insights/{insight}:dismiss

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the insight to dismiss. Format: workspaces/{workspace}/insights/{insight}.

workspaces.insights.generate

Generates insights for a set of goals in a workspace.

stitch api -X POST workspaces/{workspace}/insights/generate

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace triggering insight generation. Format: workspaces/{workspace}

workspaces.insights.get

Gets a single insight by name.

stitch api workspaces/{workspace}/insights/{insight}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the insight to get. Format: workspaces/{workspace}/insights/{insight}.

workspaces.insights.getInvestigationReport

Gets an investigation report for an insight or a specific insight update. If requested for an insight (workspaces/{workspace}/insights/{insight}/investigationReport), returns the latest investigation report (corresponding to the most recent insight update). If requested for a specific insight update (workspaces/{workspace}/insights/{insight}/insightUpdates/{insight_update}/investigationReport), returns the investigation report at that update.

stitch api workspaces/{workspace}/insights/{insight}/investigationReport

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the investigation report. Format: - workspaces/{workspace}/insights/{insight}/investigationReport to retrieve the latest investigation report for the insight (corresponding ## to the most recent insight update). workspaces/{workspace}/insights/{insight}/insightUpdates/{insight_update}/investigationReport to retrieve the investigation report for a specific insight update.

workspaces.insights.getSummary

Gets a summary of insight counts by status for a workspace.

stitch api workspaces/{workspace}/insights/summary

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression to filter insights summary.
name (required)pathstringRequired. The parent workspace to query insights summary for. Format: workspaces/{workspace}.

workspaces.insights.list

Lists insights in a workspace.

stitch api workspaces/{workspace}/insights

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression to filter insights. Supported fields: “state”, “goal_ids”.
pageSizequeryintegerOptional. The maximum number of insights to return. The service may return fewer than this value. If unspecified, at most 20 insights will be returned. The maximum value is 100; values above 100 will be coerced to 100.
pageTokenquerystringOptional. A page token, received from a previous ListInsights call. Provide this to retrieve the subsequent page.
parent (required)pathstringRequired. The parent workspace to list insights for. Format: workspaces/{workspace}.
readMaskquerystringOptional. Optional. Mask specifying which fields to read. The wildcard * is not supported.

workspaces.insights.setReadStatus

Sets the per-user read/unread status for an insight.

stitch api -X POST workspaces/{workspace}/insights/{insight}/setReadStatus

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the insight. Format: workspaces/{workspace}/insights/{insight}

workspaces.insights.undismiss

Undismisses an insight.

stitch api -X POST workspaces/{workspace}/insights/{insight}:undismiss

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the insight to undismiss. Format: workspaces/{workspace}/insights/{insight}.

workspaces.insights.feedback.create

Submits feedback on an insight.

stitch api -X POST workspaces/{workspace}/insights/{insight}/feedback

Parameters

NameInTypeDescription
insightFeedbackIdquerystringOptional. The ID to use for the feedback, which will become the final component of the feedback’s resource name. Client-assigned IDs are not supported. This field must be empty.
parent (required)pathstringRequired. The parent insight resource name. Format: workspaces/{workspace}/insights/{insight}

workspaces.insights.feedback.delete

Deletes an insight feedback entry.

stitch api -X DELETE workspaces/{workspace}/insights/{insight}/feedback/{feedback}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the feedback item to delete. Format: workspaces/{workspace}/insights/{insight}/feedback/{feedback} Supports the virtual resource alias like (per AIP-122) to operate directly on the authenticated caller’s like without pre-fetching its ID.

workspaces.insights.feedback.get

Gets a specific feedback entry for an insight.

stitch api workspaces/{workspace}/insights/{insight}/feedback/{feedback}

Parameters

NameInTypeDescription
name (required)pathstringRequired. Resource name of the feedback item. Format: workspaces/{workspace}/insights/{insight}/feedback/{feedback} Supports the virtual resource alias like (per AIP-122) to operate directly on the authenticated caller’s like without pre-fetching its ID.

workspaces.insights.feedback.list

Lists feedback entries on an insight.

stitch api workspaces/{workspace}/insights/{insight}/feedback

Parameters

NameInTypeDescription
pageSizequeryintegerOptional. The maximum number of feedback items to return.
pageTokenquerystringOptional. A page token, received from a previous ListInsightFeedbacks call.
parent (required)pathstringRequired. The parent insight to list feedback for. Format: workspaces/{workspace}/insights/{insight}

workspaces.insights.feedback.patch

Updates an existing insight feedback submission.

stitch api -X PATCH workspaces/{workspace}/insights/{insight}/feedback/{feedback}

Parameters

NameInTypeDescription
name (required)pathstringIdentifier. The full resource name of the feedback item. Format: workspaces/{workspace}/insights/{insight}/feedback/{feedback}
updateMaskquerystringOptional. The list of fields to update.

workspaces.insights.insightUpdates.getInvestigationReport

Gets an investigation report for an insight or a specific insight update. If requested for an insight (workspaces/{workspace}/insights/{insight}/investigationReport), returns the latest investigation report (corresponding to the most recent insight update). If requested for a specific insight update (workspaces/{workspace}/insights/{insight}/insightUpdates/{insight_update}/investigationReport), returns the investigation report at that update.

stitch api workspaces/{workspace}/insights/{insight}/insightUpdates/{insightUpdate}/investigationReport

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the investigation report. Format: - workspaces/{workspace}/insights/{insight}/investigationReport to retrieve the latest investigation report for the insight (corresponding ## to the most recent insight update). workspaces/{workspace}/insights/{insight}/insightUpdates/{insight_update}/investigationReport to retrieve the investigation report for a specific insight update.

workspaces.insights.insightUpdates.list

Lists updates for an insight.

stitch api workspaces/{workspace}/insights/{insight}/insightUpdates

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression to filter insight updates. Supported fields: substantive, source, create_time, description.
orderByquerystringOptional. The field to sort the insight updates by. Supported syntax follows AIP-132 (e.g., create_time, create_time desc). Supported fields: create_time. If empty, defaults to create_time desc.
pageSizequeryintegerOptional. The maximum number of insight updates to return. The service may return fewer than this value. If unspecified, at most 20 insight updates will be returned. The maximum value is 100; values above 100 will be coerced to 100.
pageTokenquerystringOptional. A page token, received from a previous ListInsightUpdates call. Provide this to retrieve the subsequent page.
parent (required)pathstringRequired. The parent insight to list updates for. Format: workspaces/{workspace}/insights/{insight}.
readMaskquerystringOptional. Optional. Mask specifying which fields to read. The wildcard * is not supported.

workspaces.marketRadarCheckpoint.generate

Triggers background generation of a market radar checkpoint.

stitch api -X POST workspaces/{workspace}/marketRadarCheckpoint/generate

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace to trigger market radar generation for. Format: workspaces/{workspace}

workspaces.productMd.generate

Launches the ProductMd agent for a workspace.

stitch api -X POST workspaces/{workspace}/productMd:generate

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The resource name of the workspace to generate ProductMd for. Format: workspaces/{workspace}

workspaces.productMd.getStatus

Polls for intermediate status updates from a running ProductMd agent.

stitch api workspaces/{workspace}/productMd:getStatus

Parameters

NameInTypeDescription
agencySessionIdquerystringOptional. Deprecated: use execution_id instead. The agency session ID returned by GenerateProductMd.
continuationTokenquerystringOptional. Continuation token from a previous GetProductMdStatus response.
executionIdquerystringOptional. The execution ID returned by GenerateProductMd.
parent (required)pathstringRequired. The resource name of the workspace. Format: workspaces/{workspace}

workspaces.skills.create

Creates a skill in the workspace.

stitch api -X POST workspaces/{workspace}/skills

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace to create the skill in. Format: workspaces/{workspace}.
skillIdquerystringOptional. The ID to use for the skill, which will become the final component of the skill’s resource name (workspaces/{workspace}/skills/{skill_id}). The server does not generate IDs, so the ID must be supplied either here or via skill.name. If both are set they must agree, otherwise INVALID_ARGUMENT is returned.

workspaces.skills.delete

Deletes a skill in the workspace.

stitch api -X DELETE workspaces/{workspace}/skills/{skill}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The name of the skill to delete. Format: workspaces/{workspace}/skills/{skill}

workspaces.skills.list

Lists skills in the workspace.

stitch api workspaces/{workspace}/skills

Parameters

NameInTypeDescription
filterquerystringOptional. Standard filter string.
pageSizequeryintegerOptional. The maximum number of skills to return.
pageTokenquerystringOptional. The page token to use for pagination.
parent (required)pathstringRequired. The parent workspace to list skills for. Format: workspaces/{workspace}.

workspaces.skills.patch

Updates a skill in the workspace.

stitch api -X PATCH workspaces/{workspace}/skills/{skill}

Parameters

NameInTypeDescription
allowMissingquerybooleanOptional. If set to true, and the skill is not found, a new skill will be created.
name (required)pathstringIdentifier. The resource name of the skill. Format: workspaces/{workspace}/skills/{skill}
updateMaskquerystringOptional. The list of fields to update.

workspaces.toolProviders.delete

Deletes a tool provider configuration for the user.

stitch api -X DELETE workspaces/{workspace}/toolProviders/{toolProvider}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the tool provider to delete. Format: workspaces/{workspace}/toolProviders/{tool_provider}

workspaces.toolProviders.deleteAuth

Deletes all auth credentials for a tool provider.

stitch api -X DELETE workspaces/{workspace}/toolProviders/{toolProvider}:deleteAuth

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the tool provider whose auth credentials are to be deleted. Format: workspaces/{workspace}/toolProviders/{tool_provider}

workspaces.toolProviders.list

Lists available tool providers for a workspace.

stitch api workspaces/{workspace}/toolProviders

Parameters

NameInTypeDescription
filterquerystringOptional. An AIP-160 filter expression.
orderByquerystringOptional. The sorting order of the tool providers.
pageSizequeryintegerOptional. The maximum number of tool providers to return.
pageTokenquerystringOptional. The page token to use for pagination.
parent (required)pathstringRequired. The workspace to list tool providers for. Format: workspaces/{workspace}.

workspaces.toolProviders.upsert

Upserts a tool provider configuration for the user.

stitch api -X POST workspaces/{workspace}/toolProviders:upsert

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace to upsert the tool provider in. Format: workspaces/{workspace}.

workspaces.toolProviders.upsertAuth

Replaces the full auth header set for a tool provider.

stitch api -X POST workspaces/{workspace}/toolProviders/{toolProvider}:upsertAuth

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the tool provider to update auth for. Format: workspaces/{workspace}/toolProviders/{tool_provider}

workspaces.users.list

Lists users in a workspace.

stitch api workspaces/{workspace}/users

Parameters

NameInTypeDescription
filterquerystringOptional. A CEL filter expression to filter users.
pageSizequeryintegerOptional. The maximum number of users to return.
pageTokenquerystringOptional. A page token received from a previous ListUsers call.
parent (required)pathstringRequired. Resource name of the workspace to list users for. Format: workspaces/{workspace}

workspaces.webhookConfigs.create

Creates a new webhook configuration in the specified workspace.

stitch api -X POST workspaces/{workspace}/webhookConfigs

Parameters

NameInTypeDescription
parent (required)pathstringRequired. The parent workspace to create the webhook configuration in. Format: workspaces/{workspace}

workspaces.webhookConfigs.delete

Deletes a webhook configuration by its resource name.

stitch api -X DELETE workspaces/{workspace}/webhookConfigs/{webhookConfig}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the webhook configuration to delete. Format: workspaces/{workspace}/webhookConfigs/{webhook_config}

workspaces.webhookConfigs.get

Gets a single webhook configuration by its resource name.

stitch api workspaces/{workspace}/webhookConfigs/{webhookConfig}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the webhook configuration to retrieve. Format: workspaces/{workspace}/webhookConfigs/{webhook_config}

workspaces.webhookConfigs.list

Lists all webhook configurations for a workspace.

stitch api workspaces/{workspace}/webhookConfigs

Parameters

NameInTypeDescription
pageSizequeryintegerOptional. The maximum number of webhook configurations to return per page. The maximum allowed value is 100.
pageTokenquerystringOptional. A page token received from a previous ListWebhookConfigs call. Provide this to retrieve the subsequent page.
parent (required)pathstringRequired. The parent workspace to list webhook configurations for. Format: workspaces/{workspace}

workspaces.webhookConfigs.patch

Updates an existing webhook configuration. Only fields specified in the update mask are modified.

stitch api -X PATCH workspaces/{workspace}/webhookConfigs/{webhookConfig}

Parameters

NameInTypeDescription
name (required)pathstringIdentifier. Resource name of the webhook configuration. Format: workspaces/{workspace}/webhookConfigs/{webhook_config}
updateMaskquerystringOptional. The list of fields to update. If not set, all mutable fields are updated.

workspaces.webhookConfigs.verify

Verifies a webhook endpoint by sending a challenge request and confirming the endpoint echoes it back correctly.

stitch api -X PATCH workspaces/{workspace}/webhookConfigs/{webhookConfig}/verify

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the webhook configuration to verify. Format: workspaces/{workspace}/webhookConfigs/{webhook_config}

workspaces.webhookEvents.get

Gets a single webhook event by its resource name.

stitch api workspaces/{workspace}/webhookEvents/{webhookEvent}

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the webhook event to retrieve. Format: workspaces/{workspace}/webhookEvents/{webhook_event}

workspaces.webhookEvents.list

Lists all webhook events for a workspace.

stitch api workspaces/{workspace}/webhookEvents

Parameters

NameInTypeDescription
filterquerystringOptional. A filter expression that filters webhook events returned in the response. Filtering is supported for ‘delivery_state’ and ‘event_type’.
pageSizequeryintegerOptional. The maximum number of webhook events to return per page. The maximum allowed value is 100.
pageTokenquerystringOptional. A page token received from a previous ListWebhookEvents call. Provide this to retrieve the subsequent page.
parent (required)pathstringRequired. The parent workspace to list webhook events for. Format: workspaces/{workspace}

workspaces.webhookEvents.send

Delivers a webhook event payload to its configured endpoints. This can be used to manually redeliver an event.

stitch api -X POST workspaces/{workspace}/webhookEvents/{webhookEvent}:send

Parameters

NameInTypeDescription
name (required)pathstringRequired. The resource name of the webhook event to send. Format: workspaces/{workspace}/webhookEvents/{webhook_event}

Original: https://stitch.withgoogle.com/docs/cli/reference/rest-api/

Translated from the official Google Stitch documentation. Original content © Google LLC. This is an independent, unofficial translation.